Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
WoWRoster (SigGen) Default Signature for vB Details »»
WoWRoster (SigGen) Default Signature for vB
Version: 1.00, by Mother_Dee Mother_Dee is offline
Developer Last Online: Dec 2014 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.x Rating:
Released: 01-24-2008 Last Update: Never Installs: 9
Template Edits
 
No support by the author.

I've had a couple of people ask how I did a default signature on my forums, so I thought I'd post the slip of code for the community.

Please note that without a WoWRoster/vBulletin integration this will currently only work if you require your Members to register with their World of Warcraft main character name (as we do since our website is a guild site.)

You must have the WoWRoster SigGen addon installed for this to work, since it pulls the default signature from the SigGen addon in WoWRoster for display. Also, this is based off of WoWRoster version 2.0 Beta release and not the previous version of WoWRoster.

Once an individual creates their own signature, the default signature graphic disappears, to be replaced by the user-created signature.

First, decide which usergroups this should apply to. This would mean any usergroups that wouldn't show on your Roster should be discluded. Write the usergroup numbers down so you don't forget.

Open your postbit or postbit_legacy (or both, if you have a user choice) template and find:

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

Now take note of what the format of the signature is below. For a basic style the code might be something like:

Code:
<!-- sig -->
			<div>
				__________________<br />
				$post[signature]
			</div>
		<!-- / sig -->

You will want to copy the basic layout of the user-posted signature (div, table, etcetera, however it is posted) so that the layout is completely consistent. This is just one of many layouts styles will use, make sure you take note of the one on your forums!

Here's how it should look, with you inserting your styles' signature layout:

Code:
<if condition="$post['signature']">
(table or div format for user-set signature)
<else />

     <if condition="is_member_of($post, USERGROUP,USERGROUP)">
(same table or div setup as the above so it matches)
     <a href="http://www.YOURFORUMS.com/roster/index.php?p=char-info&member=$post[username]"><img src="http://www.YOURFORUMS.com/roster/index.php?p=util-siggen&mode=signature&member=$post[username]@REGION-SERVER" border="0" /></a>
     </if>
</if>

Replace USERGROUP with your chosen usergroup (comma separated per the example,) YOURFORUMS with your website, REGION with EU or US, and SERVER with your server name (ie: Kael'thas).

If you want the default signature to show on the profile page for the member where a user-input signature would show, just repeat the above instructions for the member_info template.

If you have any questions, please let me know, and please *CLICK INSTALL* if you used this on your forums.

Demo Links:
Default Signature
Member Info Template

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-25-2008, 08:28 PM
Mother_Dee Mother_Dee is offline
 
Join Date: Jul 2007
Location: Wisconsin
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the above code doesn't work to pull your information, try using the alternate code used by SigGen (it's been changed between the two a few times.)

Replace:

Code:
<a href="http://www.YOURFORUMS.com/roster/index.php?p=char-info&member=$post[username]"><img src="http://www.YOURFORUMS.com/roster/index.php?p=util-siggen&mode=signature&member=$post[username]@REGION-SERVER" border="0" /></a>

With:

Code:
<a href="http://www.YOURFORUMS.com/roster/index.php?p=char-info&a=c:$post[username]"><img src="http://www.YOURFORUMS.com/roster/index.php?p=util-siggen-signature&a=c:$post[username]@REGION-SERVER" border="0" /></a>
Reply With Quote
  #3  
Old 01-25-2008, 11:40 PM
BlizzardHQ BlizzardHQ is offline
 
Join Date: Dec 2007
Location: Fort Wayne Indiana
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me clicks for future reference
Reply With Quote
  #4  
Old 01-28-2008, 01:46 PM
Mother_Dee Mother_Dee is offline
 
Join Date: Jul 2007
Location: Wisconsin
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm waiting to see if there are going to be any changes once the beta for WoWRoster is completed, I'll post updates if that happens.
Reply With Quote
  #5  
Old 01-28-2008, 01:56 PM
Mother_Dee Mother_Dee is offline
 
Join Date: Jul 2007
Location: Wisconsin
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the install.
Reply With Quote
  #6  
Old 01-30-2008, 07:18 PM
Mother_Dee Mother_Dee is offline
 
Join Date: Jul 2007
Location: Wisconsin
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated demo links as I've made some changes to my forums.
Reply With Quote
Reply

Thread Tools

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 05:10 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.04312 seconds
  • Memory Usage 2,245KB
  • Queries Executed 19 (?)
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
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete