vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Links Directory > vBa Links Directory v1.0 Support > Modifications

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2005, 12:02 AM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Integrating CMS

I am trying to display a different left menu for one specific category and its children.

In browselinks.php I did at the very top, 10 being the main category and * for anything else that comes after, but I can't get it to work. Is that possible at all?

Quote:
define('VBA_PORTAL', true);
if (in_array($catinfo['parentlist']='*,10'))
{
define('VBA_PAGE', 'speciallinks');
}
else {
define('VBA_PAGE', 'linksdirectory');
}
and also tried at the bottom right after
$minlimit = number_format($minlimit);
$maxlimit = number_format($maxlimit);
$countlinks['count'] = number_format($countlinks['count']);

Quote:
$myspeciallinks =array($catinfo['parentlist']='*,10');
define('VBA_PORTAL', true);
if (in_array('myapeciallinks'))
{
define('VBA_PAGE', 'speciallinks');
}
else {
define('VBA_PAGE', 'linksdirectory');
}
Reply With Quote
  #2  
Old 05-22-2005, 12:44 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrating CMS

The only way to do it would be something like this at the very top of the file:
PHP Code:
define('VBA_PORTAL'true);
if (
in_array($_REQUEST['catid'], array(XYZ)))
{
define('VBA_PAGE''speciallinks');
}
else
{
define('VBA_PAGE''linksdirectory');

Then replace X, Y, Z there with each categoryid.
Reply With Quote
  #3  
Old 05-22-2005, 01:47 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: Integrating CMS

Sorry, that does not work.
Reply With Quote
  #4  
Old 05-22-2005, 01:53 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: Integrating CMS

got it to work, thanks. replaced catid by "c"
Reply With Quote
  #5  
Old 05-22-2005, 02:25 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Integrating CMS

You may want to dupliacate that code for $_REQUEST['catid'] as well. For the most part people should be getting to the category with c= in the URL, but there may be some instanaces where catid= will be used.
Reply With Quote
  #6  
Old 05-22-2005, 02:31 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: Integrating CMS

Yes I just realized that after you mentioned it.
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
Having trouble integrating Forum with CMPS memobug Feedback & Suggestions 2 04-23-2005 01:28 AM
integrating with other pages Lionel Troubleshooting / "How do I..." Questions 5 03-29-2005 06:21 PM
Integrating modules into forum pages? SalTheWop Troubleshooting / "How do I..." Questions 2 01-19-2005 06:23 PM
Integrating a Php Script into the CMPS Polo Troubleshooting / "How do I..." Questions 2 12-23-2004 12:54 PM
Integrating a Bible To VBadvanced Polo Troubleshooting / "How do I..." Questions 8 07-15-2004 01:07 PM


All times are GMT -4. The time now is 10:59 PM.

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.