vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > vBa CMPS v3.x & 2.x > Modifications (version 3.x & 2.x)

Reply
 
Thread Tools Display Modes
  #1  
Old 01-25-2006, 05:27 PM
TbChampions TbChampions is offline
Junior Member
 
Join Date: Jul 2005
Posts: 18
Default Integrating Other vB Pages & Hacks tutorial -- question about this, please help

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.
Reply With Quote
  #2  
Old 01-25-2006, 05:34 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

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.
Reply With Quote
  #3  
Old 01-25-2006, 05:35 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
Senior Member
 
Join Date: Jan 2004
Location: Raleigh, NC
Posts: 1,364
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

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. ***
Reply With Quote
  #4  
Old 01-25-2006, 05:35 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
Senior Member
 
Join Date: Jan 2004
Location: Raleigh, NC
Posts: 1,364
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

Wow. We even listed the same examples.
__________________
My Blog
GPS Discussion Forum

*** Please do not contact me privately for help. Thanks. ***
Reply With Quote
  #5  
Old 01-25-2006, 05:55 PM
TbChampions TbChampions is offline
Junior Member
 
Join Date: Jul 2005
Posts: 18
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

Thanks, guys. Sorry if it was a stupid question. ;-)

I'd want it to show up on all my forum pages, so......
Reply With Quote
  #6  
Old 01-25-2006, 05:55 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
Senior Member
 
Join Date: Jan 2004
Location: Raleigh, NC
Posts: 1,364
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

...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. ***
Reply With Quote
  #7  
Old 01-25-2006, 06:01 PM
TbChampions TbChampions is offline
Junior Member
 
Join Date: Jul 2005
Posts: 18
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

I gotcha now.... it's working well. Much thanks to both of you. ;-)
Reply With Quote
  #8  
Old 06-20-2006, 10:47 PM
Fargo Fargo is offline
Member
 
Join Date: Jul 2004
Posts: 46
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

im really quite surprised that no one has made use of the plugin system for this job.
Reply With Quote
  #9  
Old 09-30-2006, 12:06 AM
DSB DSB is offline
Junior Member
 
Join Date: Aug 2006
Posts: 1
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

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"
Reply With Quote
  #10  
Old 09-30-2006, 10:13 PM
eJM's Avatar
eJM eJM is offline
Senior Citizen
 
Join Date: Jul 2006
Location: teh Ether
Posts: 321
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

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
Reply With Quote
  #11  
Old 10-18-2006, 07:51 AM
easyskillz easyskillz is offline
Member
 
Join Date: Jan 2005
Posts: 85
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

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
Reply With Quote
  #12  
Old 10-18-2006, 08:17 AM
easyskillz easyskillz is offline
Member
 
Join Date: Jan 2005
Posts: 85
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

And also i noticed that this technique slows the website a lot or i am mistaken ?
Reply With Quote
  #13  
Old 10-18-2006, 02:52 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

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.
Reply With Quote
  #14  
Old 10-18-2006, 05:03 PM
easyskillz easyskillz is offline
Member
 
Join Date: Jan 2005
Posts: 85
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

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.
Reply With Quote
  #15  
Old 10-19-2006, 01:08 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

Sorry, but you'd have to ask the guys at PhotoPost about that one.
Reply With Quote
  #16  
Old 11-26-2006, 03:17 PM
1996 328ti's Avatar
1996 328ti 1996 328ti is offline
Senior Member
 
Join Date: Aug 2004
Posts: 233
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

Quote:
Originally Posted by Fargo View Post
im really quite surprised that no one has made use of the plugin system for this job.
I've been looking through vb.org and here for the exact same thing. A plug in to add to index.php, forumdisplay.php and showthread.php. vBadvanced is the only addon that I still need to edit php files.
Not a big deal, it's only 2 lines but it still would be nice.
__________________
...steven

www.318ti.org
forum.nccbmwcca.org
Reply With Quote
  #17  
Old 02-07-2007, 09:18 PM
Tigratrus Tigratrus is offline
Junior Member
 
Join Date: Nov 2006
Posts: 15
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

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 4864
when 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
Reply With Quote
  #18  
Old 02-08-2007, 11:33 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

Tigratrus - Can you post a link to your site?
Reply With Quote
  #19  
Old 02-08-2007, 01:26 PM
Tigratrus Tigratrus is offline
Junior Member
 
Join Date: Nov 2006
Posts: 15
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

Quote:
Tigratrus - Can you post a link to your site?
Thanks Brian - I've PM'd you with the information as it seems to be happening in our Private Forums only as far as I can tell. I created an account for you which is detailed in the PM, along with a direct link. Please let me know if you require anything further. Thanks!

Susan
Reply With Quote
  #20  
Old 02-09-2007, 02:39 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrating Other vB Pages & Hacks tutorial -- question about this, please help

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:
define('VBA_PORTAL'true);
define('VBA_PAGE''include'); 
It seems to have that problem whenever you use the normal vBulletin URL instead of the vBSEO URL's, but that shouldn't make a difference assuming that's how you integrated things.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 06:42 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.