vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   with plugin? (https://vborg.vbsupport.ru/showthread.php?t=311321)

TTayfun 05-13-2014 03:24 PM

with plugin?
 
hi guys;
how can i change this code with plugin in showthread.php?

before
PHP Code:

$navbits[''] = $thread['prefix_rich'] . ' ' $thread['title']; 

after

PHP Code:

$navbits[''] = $thread['title']; 


Lynne 05-13-2014 05:34 PM

How about with CSS instead?

HTML Code:

li.navbit.lastnavbit > span > span {display: none;}

TTayfun 05-13-2014 05:48 PM

i didnt understand .. @Lynne

Lynne 05-13-2014 08:35 PM

I'm saying Why do it via a plugin when you can so easily do it with CSS?

TTayfun 05-14-2014 04:15 PM

but i added your css code my site, but not work, don't forget i am using vB 3.8 series. what must i do exactly?

Lynne 05-14-2014 04:39 PM

Sorry, you are right, I was thinking vB4, not vB3. Try:

td.navbar > strong > span {display: none;}

TTayfun 05-14-2014 04:54 PM

i have in navbar templates this code:

HTML Code:

<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="" border="0" /><else /><a href="$navbar_reloadurl"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
will i try this?:

HTML Code:

<span class=" td.navbar > strong > span {display: none;} "><strong>$navbits[lastelement]</strong></span>
else directly will i add general css?

TTayfun 05-14-2014 04:59 PM

1 Attachment(s)
okey okey i added navbar_link but everything is flied :) but i want only remove prefix text

HTML Code:

        <span class="td.navbar > strong > span {display: none;}">$nav_title</span>

Lynne 05-14-2014 05:23 PM

That is CSS I gave you. You put it in the last textarea on the Main CSS page, not into your template.

TTayfun 05-14-2014 05:58 PM

i put but not work :(


All times are GMT. The time now is 01:11 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.01141 seconds
  • Memory Usage 1,734KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete