vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   how to change positon of prefix title in navbar template (https://vborg.vbsupport.ru/showthread.php?t=200141)

cellow 12-29-2008 10:49 PM

how to change positon of prefix title in navbar template
 
Hi,

how can i switch the position of the prefix title in thread title on threadbit template and on navbar template?
I found this 2 variables in the templates:
  • $thread[title_editable]
  • $navbits[lastelement]

Actualy the title in navbar looks like " [prefix_title] [thread_title] "
and i want to have it like
" [thread_title] [prefix_title] "

Thx 4 ur support!

cellow 12-31-2008 02:01 PM

Does nobody know this little php or template hack?
Please, i need this asap.

regards

Lynne 12-31-2008 03:28 PM

Are you talking about the navbits? I don't know where you are talking about.

You mention the threadbit template, have you tried just switching them?
HTML Code:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
            $thread[prefix_rich]


cellow 12-31-2008 11:41 PM

Oh man, yes u right... i looked at $prefix but i don't find it.
Ok i can switch it now on threadbit template, thx 4 that!

But i wish to switch it also in the navbar template (pathway).
There will be used the variable $navbits[lastelement]
I don't know, how 2 switch the prefix position there. Either how to don't show the prefix in the lastelement variable.
Can u help me?

Thx a lot and a happy new year 2009 :-)

Lynne 12-31-2008 11:55 PM

Look in your showthread.php page around line 2130 where $navbits is defined and switch them around also (you must do this through a file edit).

cellow 01-01-2009 12:14 AM

awesome man!

Quote:

$navbits[''] = $thread['prefix_rich'] . ' ' . $thread['title'];
that was the key! Thx a lot, the new year is save :D


All times are GMT. The time now is 04:17 AM.

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.01081 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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