![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Sorry, but I'm very new. What does the bolded part mean? What file specifically? I tried one of the module files (navigation) that I wanted to keep on the left side of the forum page, but that didn't work in a big way, adding those 2 lines of code. Please help. Thanks!
----------------------------------------------- Integrating Other vB Pages & Hacks We have tried to make it as easy as possible to integrate vBadvanced CMPS with other vBulletin files and hacks. This section covers how to integrate them. Let's say you wanted to add your left column to your forum's homepage, as many people seem to like. Simply follow these steps: Open your /forum/includes/functions.php file. If you are running vBulletin 3.0.x, look for this code within that file: if ($vboptions['addtemplatename']) Or, if you are running vBulletin 3.5.x, look for this code: if ($vbulletin->options['addtemplatename']) Just Above this code, add: if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT') AND !defined('NOPMPOPUP')) { define('SKIP_OUTPUT', true); global $home; print_portal_output($home, $vartext); } Log into your Admin CP. Click on the 'Add Page' link listed under your 'vBa CMPS' options in the left frame, and then click on 'Module Page. Once there, enter a Title and a Page Identifier for your page. You may call these two options whatever you would like, just be sure to make a note of what you used for the 'Page Identifier' option. For this example we are going to use 'include' for both. Since we only want to include the modules in the left column on this page, uncheck all modules that are in your right and center columns, with the exception of your 'Custom Page Content' module. This module is what will be used to display the content from the page you are integrating, so it must be active on this page. Or of course if you would like other modules to be active then you may leave them as active. Set any additional options that you would like, and then save the page. Now you will want to open the vBulletin file that you would like to integrate. In the file, right after the opening <?php tag, you will want to add this code: define('VBA_PORTAL', true); define('VBA_PAGE', 'include');Note that if you changed the 'Page Identifier' setting for this page above then you will want to replace 'include' (marked in bold above) to whatever you used for the 'Page Identifier' option. Upload the file and you are done. To start integrating other pages, simply follow steps 5 & 6 with the other files. |
|
#2
|
||||
|
||||
|
The bolded part means exactly what it says... You open the vBulletin file that you want to integrate (ex: index.php, forumdisplay.php, showthread.php, etc) and add that code to the top. There's no reason to touch your CMPS module files, or any other CMPS files for that matter.
|
|
#3
|
||||
|
||||
|
You edit the vBulletin pages. ie, /forum/index.php, /forum/forumdisplay.php, /forum/showthread.php, etc. depending on what pages you want the CMPS modules to display.
__________________
My Blog GPS Discussion Forum *** Please do not contact me privately for help. Thanks. *** |
|
#4
|
||||
|
||||
|
Wow. We even listed the same examples.
__________________
My Blog GPS Discussion Forum *** Please do not contact me privately for help. Thanks. *** |
|
#5
|
|||
|
|||
|
Thanks, guys. Sorry if it was a stupid question. ;-)
I'd want it to show up on all my forum pages, so...... |
|
#6
|
||||
|
||||
|
...so you need to edit a lot of files.... If you mean all pages, like UserCP, Calendar, etc.
__________________
My Blog GPS Discussion Forum *** Please do not contact me privately for help. Thanks. *** |
|
#7
|
|||
|
|||
|
I gotcha now.... it's working well. Much thanks to both of you. ;-)
|
|
#8
|
|||
|
|||
|
im really quite surprised that no one has made use of the plugin system for this job.
|
|
#9
|
|||
|
|||
|
will this work for vb3.6.1 ?
I only ask because it says "If you are running vBulletin 3.0.x or 3.5.x" |
|
#10
|
||||
|
||||
|
Yes, it works as described for vB 3.6.1 and earlier.
__________________
If my post was helpful to you, or made you or ,please take the time to register at my forum and ask a question you've always wanted to know about floors. The Floor Pro Community |
|
#11
|
|||
|
|||
|
If i edit the global.php file like it's said on the tutorial...It works on all pages but i get a bug on cmps where it displays only the RIGHT column !! in the middle of the page...
so is there a way to make this work on all pages without having to edit php by php ! ? thanks
|
|
#12
|
|||
|
|||
|
And also i noticed that this technique slows the website a lot or i am mistaken ?
|
|
#13
|
||||
|
||||
|
easyskillz - Can you post a link to your site so I can see the problem with the main CMPS page? As for it slowing the site down, it could depeding on what modules you're using.
|
|
#14
|
|||
|
|||
|
www.maroceve.com
Nevermind, i found the fix here that you posted i still have troubles with showimage.php ..making me nuts ! works on all pages but showimage.php
Last edited by easyskillz; 10-18-2006 at 05:05 PM. |
|
#15
|
||||
|
||||
|
Sorry, but you'd have to ask the guys at PhotoPost about that one.
|
|
#16
|
||||
|
||||
|
Quote:
Not a big deal, it's only 2 lines but it still would be nice. |
|
#17
|
|||
|
|||
|
I utilized this same method to add modules to a left column on my forum and other pages, and I'm getting this error
Fatal error: Call to undefined function print_portal_output() in /home/oursite/public_html/forums/includes/functions.php on line 4864when trying to change the sort order in forums, using the sort options at the bottom of forumdisplay pages. Has anyone else had this problem, or could someone point me in the right direction for fixing it? Much appreciated! I don't want to have to remove this hack, as I love the functionality it adds to my forum pages. Thanks! Last edited by Tigratrus; 02-07-2007 at 09:20 PM. Reason: to remove identifying info |
|
#18
|
||||
|
||||
|
Tigratrus - Can you post a link to your site?
|
|
#19
|
|||
|
|||
|
Quote:
Susan |
|
#20
|
||||
|
||||
|
How exactly did you integrate the forums with the CMPS? Did you follow the users manual here and add something like this to your forumdisplay.php file?
PHP Code:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Integrating Other vB Pages & Hacks w/Plugin? | jonnyquest | Troubleshooting & Problems | 15 | 02-14-2007 11:09 AM |
| Integrating Other vB Pages & Hacks | badblu | Troubleshooting & Problems | 4 | 10-07-2005 01:11 PM |
| Integrating Other vB pages | ncwoodworker | "How Do I..." Questions | 2 | 09-01-2005 04:27 PM |
| integrating with other pages | Lionel | Troubleshooting / "How do I..." Questions | 5 | 03-29-2005 06:21 PM |