PDA

View Full Version : Prefix inside moduls hacks


voter
07-26-2007, 06:30 AM
I need that a hack that I am using on forum and now is transfered to cmps be prefixed with Forum's URL.

I have the forum in subfolder vb "vipamenia.com/vb"
CMPS is installed on main domain "viparmenia.com/cmps_index.php"

Adding variables in Portal Output Global Variables for a modification hack (e.g Cyb hack for advanced statistic or topnavbar) makes the mod work, but everything inside the mod (e.g.images, links, menus) is without forum prefix "vb", so images are broken, links redirecting to file not found ....

How could I explain vbadvanced, that have to add prefix to everything inside the extra mods?

succo
07-26-2007, 06:35 AM
you have to change the templates used by that hacks and add $vbulletin->options['bburl'] everywhere, that's all

Our Sponsors
 

voter
07-26-2007, 06:45 AM
Thanks I will try.

I was actually wanting to escape that step, going inside all the templates, as of I am plaining not only 2 or 3 mods to transfere into cmps but also mods themselfs having huge ammount of templates, that are used to generated their tables, like Cyb's statistic.

Brian
07-28-2007, 03:03 PM
You would need to prefix them with "$vboptions[bburl]" in the templates, not "$vbulletin->options['bburl']".