vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Tweet-This (vBulletin Style) (https://vborg.vbsupport.ru/showthread.php?t=242425)

dargox 05-21-2010 03:29 PM

Hi guys... I can´t find the ADVERTISING option to paste the code, and where is the POSTBIT_LEGACY so I can edit ?

I think those steps are easy but I don´t know about programming so please help me.

Sparrow-Sean 05-23-2010 12:00 AM

As a person of lack of intelligence here, there has to be someone who can mimick this code surely to integrate it better in to a forum :)

Dargox, what version are you running?

kall 05-23-2010 06:16 PM

PHP Code:

<vb:if condition="THIS_SCRIPT == 'showthread'">Code Here</vb:if> 

That will restrict it to only showing when showthread.php is the active script.

Sparrow-Sean 05-24-2010 08:03 AM

Quote:

Originally Posted by kall (Post 2042340)
PHP Code:

<vb:if condition="THIS_SCRIPT == 'showthread'">Code Here</vb:if> 

That will restrict it to only showing when showthread.php is the active script.

Will this prevent it in Private Messages Kall?

Thanks,

Sean:D

dargox 05-24-2010 02:43 PM

Quote:

Originally Posted by Sparrow-Sean (Post 2042056)
As a person of lack of intelligence here, there has to be someone who can mimick this code surely to integrate it better in to a forum :)

Dargox, what version are you running?

I?m running the 4.0.3

kall 05-24-2010 05:19 PM

Quote:

Originally Posted by Sparrow-Sean (Post 2042574)
Will this prevent it in Private Messages Kall?

Thanks,

Sean:D

Yes. :)

Look at the start of the php file, under the block of copyright and stuff, there's a definition of "THIS_SCRIPT". showthread.php = showthread, private.php = private etc.

The template conditional I gave will only activate if the page that the viewer is on is showthread.php (so, not private.php).

Boko577 05-26-2010 05:54 AM

Mine looks like this? Any way to bump it up???
https://vborg.vbsupport.ru/

http://grab.by/grabs/c01c7f6d95cef17...9766cd8959.png

Boko577 05-27-2010 02:21 AM

Read Above Post!

kall 05-27-2010 03:23 AM

Quote:

Originally Posted by Boko577 (Post 2043883)
Read Above Post!

Read This Post!

https://vborg.vbsupport.ru/showpost....98&postcount=6

ChopSuey 05-27-2010 08:23 AM

You can just add it into the showthread template.


All times are GMT. The time now is 11:21 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.01114 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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