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
  #101  
Old 03-03-2006, 03:42 PM
jcline jcline is offline
Junior Member
 
Join Date: Aug 2004
Posts: 1
Default Re: Dynamic Forum / Home Link in Navbar

Quote:
Originally Posted by Kizzmet
I`m using 3.5.4 with cmps V2. Thank you for posting the above. It did not work for me, but I was able to sort it out through your post.

You want to look for the section under the
PHP Code:
<!-- nav buttons bar--> 
and above the
PHP Code:
<if condition=$show['member']"> 
I put:
PHP Code:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumurl]$session[sessionurl]"Forums <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"Home </if></a></td
I had changed my forum home page name to portal (for some reason that is what it wanted to link to) and I changed [forumhome] to [forumurl]
not a huge difference from the orignal post, but the changes made it work for me.
Thanks again!

after updating to the VB 3.5.4 and VBA 2.10 the orig. code didn't seem to work right, but your fix worked for me as well
Reply With Quote
  #102  
Old 03-04-2006, 10:24 PM
TheBeave TheBeave is offline
Junior Member
 
Join Date: Mar 2006
Posts: 1
Default Re: Dynamic Forum / Home Link in Navbar

This is what worked for me.

PHP Code:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumurl] $session[sessionurl]"Forums <else /> <a href="$vboptions[homeurl] $session[sessionurl]"Home </if></a></td
Reply With Quote
  #103  
Old 03-09-2006, 09:41 PM
FLMom FLMom is offline
Member
 
Join Date: Feb 2006
Location: Florida
Posts: 55
Default Re: Dynamic Forum / Home Link in Navbar

Okay, I have VB 3.5.4 and am using cmps v2 and I think I found the section that you were all talking about, can someone verify this for me before I start to mess around with this? I am new to all of this and would hate to mess things up Where exactly do I put the code and do I delete any of the old code? TIA

<!-- / breadcrumb, login, pm info -->

<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$show['member']">
Reply With Quote
  #104  
Old 04-03-2006, 05:37 PM
beduino beduino is offline
Member
 
Join Date: Jan 2006
Location: rio de janeiro
Posts: 49
Thumbs up Re: Dynamic Forum / Home Link in Navbar

Tks to this topic!
Very useful.
cheers
beduino
Reply With Quote
  #105  
Old 04-05-2006, 05:13 PM
hypnoparadise hypnoparadise is offline
Junior Member
 
Join Date: Mar 2006
Posts: 5
Default Re: Dynamic Forum / Home Link in Navbar

Quote:
Originally Posted by Kizzmet
I`m using 3.5.4 with cmps V2. Thank you for posting the above. It did not work for me, but I was able to sort it out through your post.

You want to look for the section under the
PHP Code:
<!-- nav buttons bar--> 
and above the
PHP Code:
<if condition=$show['member']"> 
I put:
PHP Code:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumurl]$session[sessionurl]"Forums <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"Home </if></a></td
I had changed my forum home page name to portal (for some reason that is what it wanted to link to) and I changed [forumhome] to [forumurl]
not a huge difference from the orignal post, but the changes made it work for me.
Thanks again!


Sorry, but in what file do i change this? I use versionV 2.10.

Last edited by hypnoparadise; 04-05-2006 at 05:17 PM.
Reply With Quote
  #106  
Old 04-05-2006, 08:47 PM
beduino beduino is offline
Member
 
Join Date: Jan 2006
Location: rio de janeiro
Posts: 49
Smile Re: Dynamic Forum / Home Link in Navbar

template navbar>breadcrumbs...I think
cheers
beduino
Reply With Quote
  #107  
Old 04-06-2006, 02:25 PM
sali sali is offline
Junior Member
 
Join Date: Sep 2005
Posts: 1
Default Re: Dynamic Forum / Home Link in Navbar

Quote:
Originally Posted by mholtum
admincp / Style Manager / Edit Styles /Navigation & Breadcrumbs / navbar
I don't have a Style Manager folder in my admincp. I checked my zip file from the original download, and it doesn't have it either. Is there something I'm missing?

Thanks!!!

Sonny
Reply With Quote
  #108  
Old 05-05-2006, 03:56 PM
Kingster Kingster is offline
Junior Member
 
Join Date: Sep 2005
Posts: 13
Default Re: Dynamic Forum / Home Link in Navbar

Gah. I'm not quite sure what the story is here...

I've added the code:
PHP Code:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"Forums <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"Home </if></a></td
But it gives me:
http://www.domain.net//index.php?

If I merely remove the last p from the .php, the proper link comes in (except for the fact that it isn't falid due to the last p is missing, i.e., http://www.domain.net/forumindex.ph?). Can someone explain to me why this is occurring?

Additionally, the return to the VBA homepage works properly (as it is just using homeurl), but something is funny about what is happening in that .php piece.
Reply With Quote
  #109  
Old 05-05-2006, 05:49 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Dynamic Forum / Home Link in Navbar

Quote:
Originally Posted by sali
I don't have a Style Manager folder in my admincp. I checked my zip file from the original download, and it doesn't have it either. Is there something I'm missing?

Thanks!!!

Sonny
It wont be in the zip as it is a template not a .php file. It is there check again.
Reply With Quote
  #110  
Old 05-11-2006, 08:07 PM
Scelus Scelus is offline
Junior Member
 
Join Date: Mar 2006
Posts: 8
Default Re: Dynamic Forum / Home Link in Navbar

Is there something additional to do here to make it work with a custom style? Currently I can only get this to work in the default style, but my custom style (which is a child of the default) doesn't change.
Reply With Quote
  #111  
Old 05-12-2006, 01:16 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Dynamic Forum / Home Link in Navbar

unless you have edited the custom template directly it will trickle down. Otherwise just edit the custom style.
Reply With Quote
  #112  
Old 05-18-2006, 03:40 PM
markymoo markymoo is offline
Junior Member
 
Join Date: May 2006
Posts: 8
Default Re: Dynamic Forum / Home Link in Navbar

it works good only theres a extra gap space to the next User Settings and so dont look even
Reply With Quote
  #113  
Old 05-18-2006, 03:55 PM
Ncturnal Ncturnal is offline
Everything is a trade-off
 
Join Date: Jun 2005
Location: Atlanta, GA
Posts: 28
Default Re: Dynamic Forum / Home Link in Navbar

Then you didn't do something correctly.
Reply With Quote
  #114  
Old 05-18-2006, 05:49 PM
markymoo markymoo is offline
Junior Member
 
Join Date: May 2006
Posts: 8
Default Re: Dynamic Forum / Home Link in Navbar

because im trying to put more than 1 in like 3 , 2 is ok but anymore than 2 and jumps across. anyway forget that im ok now. what i really need is a multiple if statement i think but not sure how to do.

[code]
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Trouble Ticket <else /> <a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> HelpDesk</if></a></td>

<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> KnowledgeBase <else /> <a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Trouble Ticket</if></a></td>[/code

the links are wrong above you get the idea...

i want to goto 3 pages from the navbar and show the other 2 links on the navbar pointing back and not anyone being duplicated. i nearly done it, the above will do it for 2 pages but not for 3 as 3 will show the link on the page when i dont need it as im on that page.

so its like this

1st page portal - navbar links are trouble ticket and knowledge
2nd page ticket - navbar links are portal and knowledge
3rd page knowledge - navbar links are portal and ticket

Last edited by markymoo; 05-18-2006 at 06:38 PM.
Reply With Quote
  #115  
Old 05-18-2006, 08:22 PM
markymoo markymoo is offline
Junior Member
 
Join Date: May 2006
Posts: 8
Default Re: Dynamic Forum / Home Link in Navbar

ok i done it. i cleaned up the code. the portal page portal.php is adv_index so i checked for the forum page index.php which is defined as index, i used a extra if and else statement. for those who dont know this is more than just putting Home link on the navbar. 2 links on navbar over 3 pages so each link isnt shown up on the page your on.

Code:
<td class="vbmenu_control"><a href="your home url"> Home</a></td> 

<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="vBSupport.php"> Trouble Ticket <else /> <a href="portal.php"> HelpDesk </if></if></a></td>

<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="index.php"> KnowledgeBase <else /> <if condition="THIS_SCRIPT == 'index'"><a href="vBSupport.php"> Trouble Ticket <else /> <a href="index.php"> KnowledgeBase </if></if></a></td>

Last edited by markymoo; 05-18-2006 at 09:42 PM.
Reply With Quote
  #116  
Old 05-19-2006, 06:05 PM
jon_argent jon_argent is offline
Junior Member
 
Join Date: May 2006
Posts: 12
Default Re: Dynamic Forum / Home Link in Navbar

I can't get it to work for me! It keeps bringing up the url http://www.landofthepinkbunnies.co.uk/?, and does nothing! Do i need to add the names of the CMPS index and the forums index, if so, the root folder is www.landofthepinkbunnies.co.uk, the cmps is index.php, and the forums is forums.php

Thanks in advance!
Reply With Quote
  #117  
Old 05-21-2006, 02:47 PM
jon_argent jon_argent is offline
Junior Member
 
Join Date: May 2006
Posts: 12
Default Re: Dynamic Forum / Home Link in Navbar

Polite bump
Reply With Quote
  #118  
Old 05-25-2006, 03:35 PM
jon_argent jon_argent is offline
Junior Member
 
Join Date: May 2006
Posts: 12
Default Re: Dynamic Forum / Home Link in Navbar

another bump... please, someone has to be able to help!! This is important
Reply With Quote
  #119  
Old 06-01-2006, 05:58 PM
StuntFactoryX StuntFactoryX is offline
Senior Member
 
Join Date: May 2006
Posts: 174
Default Re: Dynamic Forum / Home Link in Navbar

im a newbie but it works!

Quote:
<if condition="THIS_SCRIPT != 'adv_index'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]?$session[sessionurl]">Home</a></td>
</if>
<if condition="VBA_SCRIPT != 'forums'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]/forum/?$session[sessionurl]">Forums</a></td>
</if>
<if condition="VBA_SCRIPT != 'gallery'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]/photopost/?$session[sessionurl]">Gallery</a></td>
</if>
my cmps is in the root called index.php

my forums are in the root under /forum

my gallary is in the root called /photopost

i took the code molthom wrote and used the code he had for gallary for my forum link and changed the paths. the orig code for forums was sending me to a bad forum link. the only problem w/ that code is in forum and gallary the links still show for all 3. but i can live w/ that.

Last edited by StuntFactoryX; 06-01-2006 at 06:12 PM.
Reply With Quote
  #120  
Old 06-05-2006, 07:33 PM
Finn snor Finn snor is offline
Junior Member
 
Join Date: Feb 2006
Posts: 4
Default Re: Dynamic Forum / Home Link in Navbar

It works with all letters in blue, however i have the rest of my navbar en white letters. How do i change it from blue to white to make it fit with my skin ?
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
Dynamic Link To Forum Home addictive "How Do I..." Questions 2 06-27-2005 07:49 AM
Dynamic Forum Home Announcement - vBaCMPS Integration kall Add-On Modules & Modifications 2 09-12-2004 03:58 AM


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