vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2005, 12:36 AM
eam eam is offline
Junior Member
 
Join Date: Sep 2004
Posts: 29
Default vbAdvanced columns throughtout site for 3.5

A while back I asked about implementing left and right columns from vbAdvanced throughout the rest of the forum.

I was directed to this:

http://www.vbadvanced.com/membersare...tid=4&pageid=6

...which worked at the time, but now, after upgrading to vb 3.5 and vbAdvanced 2.0, I need to implement this again, but the above link isn't coming up.

Could someone direct me to an updated link, or some other directions to do this? I like having login/latest threads on forumdisplay pages, because it also lets me put in links to Amazon products and things like that.

Alternatively, if there is a way to do this using the new plugin feature of vb 3.5 that would work too...

Thanks.
Reply With Quote
  #2  
Old 10-16-2005, 05:28 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: vbAdvanced columns throughtout site for 3.5

http://www.vbadvanced.com/membersare...tid=4&pageid=6
Reply With Quote
  #3  
Old 10-16-2005, 05:36 PM
eam eam is offline
Junior Member
 
Join Date: Sep 2004
Posts: 29
Default Re: vbAdvanced columns throughtout site for 3.5

Thanks Brian - looks even easier this time around.
Reply With Quote
  #4  
Old 10-16-2005, 05:50 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: vbAdvanced columns throughtout site for 3.5

Yup, I figured out a much simpler way and updated the instructions a few weeks ago.
Reply With Quote
  #5  
Old 10-17-2005, 04:21 PM
AndyA AndyA is offline
Member
 
Join Date: Apr 2005
Posts: 99
Default Re: vbAdvanced columns throughtout site for 3.5

I'd like to see a site that has this feature, anyone have a link ?
Reply With Quote
  #6  
Old 10-17-2005, 04:38 PM
eam eam is offline
Junior Member
 
Join Date: Sep 2004
Posts: 29
Default Re: vbAdvanced columns throughtout site for 3.5

Quote:
Originally Posted by AndyA
I'd like to see a site that has this feature, anyone have a link ?
I already have it implemented in mine: www.ultimatecentral.com
Reply With Quote
  #7  
Old 10-20-2005, 01:21 PM
Computer Ninja Computer Ninja is offline
Junior Member
 
Join Date: Oct 2005
Posts: 12
Default Re: vbAdvanced columns throughtout site for 3.5

I'm having no luck with this.

Brian, I followed your instructions, but it's not working out as simply as it seems to be for others.

Do I have to open my /forum/index.php and make the changes there, as well as every single php file this site uses, like search.php (for new posts, for example)?

Also, when I first tried this on forum/index.php, I had a problem with how the boxes were laid out. I included content for all three columns, as I'm interested in having blocks on both the left and right sides.

Sorry if I'm overlooking something simple.
Reply With Quote
  #8  
Old 10-20-2005, 01:46 PM
eam eam is offline
Junior Member
 
Join Date: Sep 2004
Posts: 29
Default Re: vbAdvanced columns throughtout site for 3.5

Quote:
Originally Posted by Computer Ninja
Do I have to open my /forum/index.php and make the changes there, as well as every single php file this site uses, like search.php (for new posts, for example)?
Just the pages you want to columns to appear on. I use it on my forum index, search, and forumdisplay pages (link above). That part is easy, it really is just 2 lines of code that you paste into the pages.

I don't know what to tell you as far as getting it to work without specifics on the problems you're having. All I can say is that it works, and very well. Brian did a great job with this.
Reply With Quote
  #9  
Old 10-20-2005, 02:19 PM
Computer Ninja Computer Ninja is offline
Junior Member
 
Join Date: Oct 2005
Posts: 12
Default Re: vbAdvanced columns throughtout site for 3.5

When I tried this on the index.php page, I selected modules to be shown in all three columns, as I have modules in the right and left columns, as well as something (an ad) at the top of the center column. What this did was display my forum info in the left column, above my left column modules, and then had a big white space and then the right column modules.
Reply With Quote
  #10  
Old 10-20-2005, 03:39 PM
eam eam is offline
Junior Member
 
Join Date: Sep 2004
Posts: 29
Default Re: vbAdvanced columns throughtout site for 3.5

The only thing I can think of is to make sure that for the page you created, make sure you don't have modules checked that you don't want to appear, and make sure you have the custom content module checked. And then make sure you are calling that page on the PHP pages you want them to appear on, and not a different page.
Reply With Quote
  #11  
Old 10-20-2005, 03:42 PM
Computer Ninja Computer Ninja is offline
Junior Member
 
Join Date: Oct 2005
Posts: 12
Default Re: vbAdvanced columns throughtout site for 3.5

Hmmm. I'm pretty sure I did all that. I lodged a ticket. Maybe Brian can hook me up.
Reply With Quote
  #12  
Old 10-20-2005, 04:33 PM
bold bold is offline
Junior Member
 
Join Date: Oct 2004
Posts: 10
Default Re: vbAdvanced columns throughtout site for 3.5

i added this to my index and now it says the page's name in the title of index page. anyone kno how i can keep it as my forums title?
Reply With Quote
  #13  
Old 10-21-2005, 02:14 PM
JTyson JTyson is offline
Junior Member
 
Join Date: Apr 2005
Posts: 5
Default Re: vbAdvanced columns throughtout site for 3.5

Cool, Worked well for me, only took a couple of minutes

Check the attachment for the settings i used on the page if it helps.


oh and the code added to the index.php etc for the settings below was this

PHP Code:
define('VBA_PORTAL'true);
define('VBA_PAGE''forum'); 
Attached Images
File Type: jpg forumpagesetup.jpg (35.9 KB, 277 views)

Last edited by JTyson; 10-21-2005 at 02:31 PM.
Reply With Quote
  #14  
Old 10-22-2005, 10:33 PM
cbr929rrerion cbr929rrerion is offline
Member
 
Join Date: Oct 2005
Posts: 66
Default Re: vbAdvanced columns throughtout site for 3.5

please help.. I had it working and messed it up..

now if i put it on the right it all line up fine, if i do the left all of it works except the bottom parts, they say centered and looks like crap..

please help..

here is how bad it looks

www.crotchrocketracing.com

click any form and you will see it works fine there..

************** UPDATE *****************
Never mind.. Fixed it

Last edited by cbr929rrerion; 10-23-2005 at 10:04 PM.
Reply With Quote
  #15  
Old 10-24-2005, 12:50 PM
Computer Ninja Computer Ninja is offline
Junior Member
 
Join Date: Oct 2005
Posts: 12
Default Re: vbAdvanced columns throughtout site for 3.5

I posted a ticket, but Brian hasn't helped yet. I have a module that is in the top middle column, but it only shows up on the home page, no other php pages.

http://www.aximusers.com
Reply With Quote
  #16  
Old 11-04-2005, 05:28 AM
dd4w2000 dd4w2000 is offline
Junior Member
 
Join Date: Oct 2005
Posts: 3
Wink Re: vbAdvanced columns throughtout site for 3.5

Hi guys

Having a few problems with implementing this hack and could do with some pointers in the right direction.
I'll talk you through the steps that i have done and the errors that i am getting.

First step
Open your /forum/includes/functions.php file.


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'))
{
define('SKIP_OUTPUT', true);

global $home;

print_portal_output($home, $vartext);
}

Done that and the code from my functions.php file is below:
if (defined('NOSHUTDOWNFUNC'))
{
exec_shut_down();
}
if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT'))
{
define('SKIP_OUTPUT', true);

global $home;

print_portal_output($home, $vartext);
}

if ($vbulletin->options['addtemplatename'])
{
if ($doctypepos = @strpos($vartext, $stylevar['htmldoctype']))
{


step 2/3/4

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

Done that and called the new page "includes". Left handed modules have been selected and the custom page content module is the only module in the centre column.

Step 5:
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', 'includes');

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

This has been added to the forum/forumdisplay.php and forum/calender.php files. Here is the code from one of those files:

calender.php

<?php
define('VBA_PORTAL', true);
define('VBA_PAGE', 'includes');
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.5.0 -
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2005 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);



When i go to the vbadvanced page of my website and attempt to enter the forum and calender i get the following error displayed.

Fatal error: Call to undefined function: print_portal_output() in /home/xxxxxxxx/public_html/exams/forum/includes/functions.php on line 2548

Any ideas on where i might be going wrong or if there are any mistakes in the steps/coding above.

Any suggestions appreciated.

mark

Last edited by dd4w2000; 04-21-2006 at 11:05 AM.
Reply With Quote
  #17  
Old 11-04-2005, 09:06 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: vbAdvanced columns throughtout site for 3.5

That error usually indicates that you haven't made the changes to your global.php file.
Reply With Quote
  #18  
Old 11-04-2005, 09:07 AM
NuFFy NuFFy is offline
Junior Member
 
Join Date: Sep 2004
Posts: 22
Default Re: vbAdvanced columns throughtout site for 3.5

When i add define('VBA_PORTAL', true);
define('VBA_PAGE', '2'); to links/index.php i get the following error.

Fatal error: Cannot redeclare construct_orderby() (previously declared in blablabla forums/includes/functions_gallery.php:1343) in blablabla forums/includes/functions_links.php on line 282

any fix?
Reply With Quote
  #19  
Old 11-04-2005, 09:49 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: vbAdvanced columns throughtout site for 3.5

Double check that you have made the same modification to your functions.php file that is in the instructions now. They were just updated a week or two ago because of that problem.
Reply With Quote
  #20  
Old 11-04-2005, 05:00 PM
mhc1576 mhc1576 is offline
Junior Member
 
Join Date: Oct 2005
Posts: 14
Default Re: vbAdvanced columns throughtout site for 3.5

Nuffy,

You probably try to display gallery on a links page. Does not work since they use the same functions but with different content.
Probably something needs to be unset??
Started to rename Links functions since I could not figure out what to be unset in Gallery before Links was called but after one was fixed another came up. A lot of uncached templates also. Fix one by one......
I gave up and went for another portal instead.
Tried to post some questions about integrating not working with CMPS on Gallery and Links but no answer. Thought if I bought all modules from the same supplier they would integrate but I was wrong for the moment.
Links need update since it's just a rewamped vb 3.0.x, mostly Gallery to.
Probably works better when using pure 3.5 API and product/plugin system in an future updated version.
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
My vbadvanced site kmayen Show off your vBadvanced! 3 06-15-2005 10:53 PM
vbAdvanced columns throughout forums eam Troubleshooting / "How do I..." Questions 6 10-01-2004 01:20 PM
OUR vBAdvanced Site bigsoccer Show off your vBadvanced! 1 04-09-2004 01:19 PM


All times are GMT -4. The time now is 07:06 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.