vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   one signature per thread (https://vborg.vbsupport.ru/showthread.php?t=94750)

mrsbuzzy 08-21-2005 02:28 AM

one signature per thread
 
This was incredibly helpful, rather than seeing the same (sometimes large) signatures repeated throughout a thread.

Thanks.

nintendo 10-01-2005 08:05 AM

*bump*

Jenta 10-01-2005 12:20 PM

you dont need to hack this
a simple conditional in the postbit template will handle this

dont have the url right now but check in the 3.0 section at vb.com

thedvs 10-02-2005 11:45 AM

pfft well i cant find the relevant url at vb

Jenta 10-02-2005 12:08 PM

http://www.vbulletin.com/forum/showt...756#post777756

Originally posted by Kier

In the postbit template, find this conditional:
HTML Code:

<if condition="$post['signature']">
And replace it with this one:
HTML Code:

<if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">
This will cause each user's signature to be shown only on their first post on each page.

thedvs 10-02-2005 12:29 PM

thank you Jenta, I was only looking in 3.5 forums at vb

tryckj?vel 10-02-2005 09:04 PM

are you sure that works in 3.5? im no php coder, but i think its bad when it throws the following error when trying to swap that line of code for the above:

Code:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home2/turbobri/public_html/forums/includes/adminfunctions_template.php(3519) : eval()'d code on line 138

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


Jenta 10-02-2005 09:09 PM

havent tested it but it should or will with slight modification
i think the error is being caused by the ' characters

so instead of

HTML Code:

<if condition="$post['signature']">
do

HTML Code:

<if condition="$post[signature]">
remove all the other ' characters

tryckj?vel 10-02-2005 09:11 PM

Sorry, i got it to work, both in postbit and postbit_legacy

turned out to be some problem with copying the template to notepad and editing it there first, then pasting it back in. strange

Jenta 10-02-2005 09:31 PM

Quote:

Originally Posted by tryckj?vel
Sorry, i got it to work, both in postbit and postbit_legacy

turned out to be some problem with copying the template to notepad and editing it there first, then pasting it back in. strange

strange indeed as i do all my template editing in notepad
the vb editors are just too small...i need full screen and tab to work :)


All times are GMT. The time now is 03:21 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.01530 seconds
  • Memory Usage 1,736KB
  • 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_code_printable
  • (4)bbcode_html_printable
  • (1)bbcode_quote_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