Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 03-04-2007, 05:45 PM
Draygonia Draygonia is offline
 
Join Date: Jun 2006
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Default Avatar + Signature

I seem to be gliding by posters that post something but do not have an avatar or sig. Their post seems meaningless and unimportant.

Perhaps there should be a mod that gives a default avatar and signature to new users who sign up but do not define one.
Reply With Quote
  #2  
Old 03-05-2007, 04:52 PM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This could easily be done with only template changes.
Reply With Quote
  #3  
Old 03-05-2007, 05:11 PM
Draygonia Draygonia is offline
 
Join Date: Jun 2006
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What template changes would that be?
Reply With Quote
  #4  
Old 03-05-2007, 05:51 PM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In template "postbit" or "postbit_legacy,"

Find:

Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
and replace it with:

Code:
<td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="<if condition="$show['avatar']">$post[avatarurl]<else />images/avatars/default.gif</if>" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td>
and in template "MEMBERINFO,"

Find:

Code:
<if condition="$show['avatar']">
	<td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
<else />
	<td>&nbsp;</td>
</if>
and replace it with:

Code:
<td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="<if condition="$show['avatar']">$post[avatarurl]<else />images/avatars/default.gif</if>" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td>
Be sure to replace the red text with the location of the default avatar file.


Edited:

For a default signature, do the following.

In template "postbit" or "postbit_legacy,"

Find:

Code:
<if condition="$post['signature']">
<!-- sig -->
	<div>
		__________________<br />
		$post[signature]
	</div>
<!-- / sig -->
</if>
and replace it with:

Code:
<!-- sig -->
	<div>
		__________________<br />
		<if condition="$post['signature']">$post[signature]<else />Default Signature Here</if>
	</div>
<!-- / sig -->
</if>
In template "MEMBERINFO,"

Find:

Code:
<if condition="$show['signature']">
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
	<td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td>
</tr>
</table>
<!-- / signature row -->
<br />
</if>
and replace it with:

Code:
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
	<td class="alt1" title="$vbphrase[signature]"><if condition="$show['signature']">$userinfo[signature]<else />Default Signature Here</td>
</tr>
</table>
<!-- / signature row -->
<br />
Remember to replace the red text with the default signature that you want to appear.
Reply With Quote
  #5  
Old 03-05-2007, 09:32 PM
Draygonia Draygonia is offline
 
Join Date: Jun 2006
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! Once I create a default sig and avatar I will do it! Thanks a lot! Saving your post
Reply With Quote
  #6  
Old 03-08-2007, 08:57 AM
shaunh shaunh is offline
 
Join Date: Apr 2006
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gray Matter View Post
In template "postbit" or "postbit_legacy,"

Find:

Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
and replace it with:

Code:
<td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="<if condition="$show['avatar']">$post[avatarurl]<else />images/avatars/default.gif</if>" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td>
This tore my pages apart something awful.

I had success with this instead:

Code:
<div class="smallfont">&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="<if condition="$show['avatar']">$post[avatarurl]<else />images/avatars/default.gif</if>" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></div>
Reply With Quote
  #7  
Old 03-10-2007, 01:15 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice, I have been asking this very question for a long time...With the template edits above, is there a way to to have many default avatars & sigs...Then a member without avatars & sigs can pick from the few default ones to use or upload their own?
Reply With Quote
Reply

Thread Tools
Display Modes

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 09:43 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.08108 seconds
  • Memory Usage 2,223KB
  • Queries Executed 11 (?)
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
  • (11)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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