View Full Version : implamenting cmps on forum
I am interested in implementing the cmps "engine" on the actuall forum as well (aka have side bars on forum) im guessing this requires some hacking but i need to know what exactly needs to be done.
anyone ?
Guy Nesher
Brian
05-19-2004, 07:13 PM
I will have detailed instructions on how to do this when the user's manual is created, but I have made it very simple to do.
First, create a new page. Call it whatever you'd like and just be sure to make a note of what you used for the "Page Identifier" option. Also be sure that you enable the modules you would like on the page, and be sure that the "Custom Page Content" module is active as this is where the content from your file will be displayed.
Next, open the file you would like to include the cmps on and add this code at the top, right after the opening <?php tag:
define('VBA_PORTAL', true);
define('VBA_PAGE', 'page_identifier_here');
Replace 'page_identifier_here' with whatever you used for the "Page Identifier" option in the previous step (also be sure to keep the ' marks on each side of that).
Next, search the file for "print_output". You will most likely find some code that looks like this:
eval('print_output("' . fetch_template('FORUMHOME') . '");');
Replace that with:
eval('$html = "' . fetch_template('FORUMHOME') . '";');
print_portal_output($home, $html);
** Notice that whatever was in the "fetch_template()" part of the code you found should be replaced into the same part marked in bold in the code you are replacing it with.
Save & upload the file and you're done. :)
if i will offer you to marry me now, it would sound a bit wired right ? :D :eek:
anywayz GR8 work, really really really love the new version.
Guy Nesher
Theres a rather big bug when i try to implament this on forumdisplay. the detailes are in the "Troubleshooting & Problems" forum but baisicly the forum number i send is getting trashed and i reach the same forum no matter what i do.
Please help.
r00t3d
05-20-2004, 07:44 AM
Next, open the file you would like to include the cmps on and add this code at the top, right after the opening <?php tag:
Can you eloborate as to which file we need to open, or do we create a new file?
Brian
05-20-2004, 11:33 AM
Whatever file you're trying to integrate with the CMPS.
anagarically
11-17-2004, 12:34 PM
Well, okay.. i follow those instructions..
addding the
define('VBA_PORTAL', true);
define('VBA_PAGE', 'page_identifier_here');
to the beginning of the file... and the
eval('$html = "' . fetch_template('FORUMHOME') . '";');
print_portal_output($home, $html);
in place of the
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('FORUMHOME') . '");');
well.. that is what i did...
then... i created a new page.. using the vbadcanced cmps.. with the page identifier set to 'forumindex' ... which matchs that information in the file i saved... i left the page template blank... and... yes i have page title... i set the columns up... with the blocks on want on the side checked... the only thing in the center column that is checked is the Custom Page Content...
here is what i get....
http://www.cyberphaze.net/testingforum/index2.php
the custom content is there... but no showing up left... it is messed up... it is on the left instead of the center... and everything on the left... is below it.... but... the size of the left content is wrong... so... i don't know.... any ideas would be great
Brian
11-17-2004, 12:39 PM
Hmmm... Would you mind submitting a support ticket via the Member's Area here so I can have a look and see what the problem is?
anagarically
11-17-2004, 01:15 PM
i think i will... becuase i am lost here... but... it will take a few hours... have to get permissions from the person that owns the site... i just admin... so.. lol.. but.. he will probably agree here... thanks a lot... just for looking...
JohnBee
11-17-2004, 06:45 PM
This is amazing, so I can keep my vBadvanced look accross my whole
site and iintergrate my forums into it?
anagarically
11-18-2004, 12:51 AM
I submitted a support ticket for the issue. I have the information in the ticket as to the directory structure... really... i just need some help on this page... if i can figure out one... or at least see one that is actaully working... i wouldn't mind that... if someone would just send me like... their php... for that page... so i can make sure it is correct... and maybe a screenshot of the page settings in the vbadvanced cmps edit page... section... i just need to check stuff... i have played with it... but everything seems to make it worse... so... lol... if i can just get one working.... a guide... lol
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.