vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBadvanced CMPS (https://vborg.vbsupport.ru/forumdisplay.php?f=101)
-   -   toggle between index and cmps_index (https://vborg.vbsupport.ru/showthread.php?t=110306)

dirtycrow 03-14-2006 01:45 AM

toggle between index and cmps_index
 
if you take a look at www.vbplaza.com they have a link on the nav bar to toggle back and forth from the cmps index and the index php?

i have vbadvanced on my site and i can firgure it out at all.

i've bene told
Quote:

<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</a></if></td>
but that creates a link that does nothing for me.

clearly I'm doing something wrong or I'm missing something.

i have two files. index.php and cmps_index.php. what code should i be entering? i assume at line 97.

the index.php and cmps_index.php are in the same directory. please help.

KW802 03-14-2006 03:21 AM

Um... that change is for your "navbar" template, you shouldn't be touching any PHP file for that.

dirtycrow 03-15-2006 04:12 AM

i'm not changing any php file. i know it is a navbar template change. any one have any ideas?

derfelix 03-17-2006 05:55 AM

i saw that hack at vbadvanced.com in the forums

i think its an <if> conditin in the template

something like
<if> thisscript=index.php then forum
<else>
home

thats not code .. only to give you the idea check out their forums

Felix

KW802 03-17-2006 01:09 PM

derfelix,

The HTML code that dirtycow posted above is the code that he wants to put into his navbar template. .... but he lost me by talking about saying he knows there are two PHP files but then switching to saying that he knows that he needs to modify the template.

dirtycrow 03-17-2006 01:12 PM

i was just letting everyone know that I did not rename the cmps_index.php file.

so basiclly i just want a link on my navbar that toggles between cmps_index and index.

KW802 03-17-2006 03:04 PM

Quote:

Originally Posted by dirtycrow
i was just letting everyone know that I did not rename the cmps_index.php file.

so basiclly i just want a link on my navbar that toggles between cmps_index and index.

The name of the PHP file has nothing to do with the conditional. The HTML code that you already posted above is what you want.

http://www.vbadvanced.com/forum/showthread.php?t=41

Amaranth 06-18-2006 06:02 PM

Thanks alot, this helped me out.


All times are GMT. The time now is 04:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01031 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete