Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2009, 08:05 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Auto Sig

How do we mimic the VB.org signature system.

ie. Installed in sig

Developer in sig

Etc etc , this is something I would like to adopt for our members, and moderator teams. I presume its a Usergroup permission thing, with automatic code added to their sig ( i dnt need the vb.org complex version )

Any help. Ste
Reply With Quote
  #2  
Old 01-12-2009, 08:08 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could use a condition and add an image to the postbit, not sure how though
Reply With Quote
  #3  
Old 01-12-2009, 09:04 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking at the vb.org code, it appears to be in sig.
Reply With Quote
  #4  
Old 01-12-2009, 10:38 PM
Bellardia Bellardia is offline
 
Join Date: Jul 2007
Location: Hamilton, Ontario
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Signature is parsed in the postbit. Display things here depending on certain conditions.

Any more specifics?
Reply With Quote
  #5  
Old 01-12-2009, 10:47 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nope just wanted to know what the code would be for us to post an image of say:

Thread Starter in the signature of a user, who starts a thread.

Often as you go thru pages and pages of posts, you forget who started / created the thread. So similarly to VB.org where INSTALLEd or DEVELOPER is displayed in the postbit, we would like to replicate this

Ste
Reply With Quote
  #6  
Old 01-12-2009, 10:53 PM
Bellardia Bellardia is offline
 
Join Date: Jul 2007
Location: Hamilton, Ontario
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My guess (Similar to the first post on all pages mod) is that you add an extra column to the thread table and store who created the thread inside it.

Edit - Silly me...thread starter is stored in the thread table...not sure if it can normally be accessed though, maybe globalize it and then use a conditional?

Access the variable inside the postbit with a conditional.

Edit again.. Solution!

Find in postbit
HTML Code:
<!-- sig -->
			<div>
				__________________<br />
				$post[signature]
			</div>
		<!-- / sig -->
Replace...change code to fit needs
HTML Code:
<if condition="$post['signature'] OR $thread[postuserid] == $post[userid]">
		<!-- sig -->
			<div>
				__________________<br />
                <if condition="$thread[postuserid] == $post[userid]">
                	testing..
                </if>
				$post[signature]
			</div>
		<!-- / sig -->
		</if>
The if conditions may seem redundant since there's two...but the catch is if the user doesn't have a signature it won't post him as the thread starter regardless of if he is or not.
Reply With Quote
  #7  
Old 01-13-2009, 12:21 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So tell me, please.

If lets say we created a watermarked image , such as: below.

Would we code:

Code:
<if condition="$post['signature'] OR $thread[postuserid] == $post[userid]">
		<!-- sig -->
			<div>
				__________________<br />
                <if condition="$thread[postuserid] == $post[userid]">
                	<img src="http://mywebsite.com/forum/images/thread_starter.gif">
                </if>
				$post[signature]
			</div>
		<!-- / sig -->
		</if>
Attached Images
File Type: gif thread_starter.gif (1.3 KB, 0 views)
Reply With Quote
  #8  
Old 01-13-2009, 12:24 AM
Bellardia Bellardia is offline
 
Join Date: Jul 2007
Location: Hamilton, Ontario
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, just make sure you add an alt attribute so it validates!
Reply With Quote
  #9  
Old 01-13-2009, 12:35 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bellardia View Post
Yes, just make sure you add an alt attribute so it validates!
thanks will give it a go, now. Presumably we can just add align=left ? without it affecting users signature? or what do you think?
Reply With Quote
  #10  
Old 01-13-2009, 12:37 AM
Bellardia Bellardia is offline
 
Join Date: Jul 2007
Location: Hamilton, Ontario
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Put it in a container if you want to style it such as a div, but since it's just an image it should be fine and align left to begin with.

Consider adding a line break after the image <br /> if you want to ensure it's on its own line.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:15 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.04182 seconds
  • Memory Usage 2,275KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete