Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Set Avatar Link Details »»
Set Avatar Link
Version: 1.00, by cono1717 cono1717 is offline
Developer Last Online: Sep 2017 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.x Rating:
Released: 05-14-2009 Last Update: Never Installs: 7
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

This small change will automatically add a "Set Avatar" link under a users avatar area when no avatar is detected.

In this you have two options A link or a noavatar image.

No Avatar Image
Demo can be found http://cc-designs.co.uk/index.php?styleid=1 just view the main forum post "Welcome".

Firstly Download the ZIP file below. Upload the contents to your forums root directory (or your image directory) basically you want to upload the picture to YOURBOARD/images/misc

Now in ACP > Style Manager > Edit Templates > 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>
BEFORE THE </if> add:

Code:
<else />
<td class="alt2">
<img src="images/misc/noavatar.jpg" /><a href="./profile.php?do=editavatar"><br />Set Avatar</a>
</td>
Simple Link

Demo can be found http://cc-designs.co.uk/index.php?styleid=16 just view the main forum post.

Here is what you have to do, there is no need to download any files.

Go to ACP > Style Manger and choose either postbit or postbit_legacy (whichever you are using).

Next find this

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>
BEFORE THE </if> add:
Code:
<td class="alt2">
<a href="./profile.php?do=editavatar">Set Avatar</a>
</td>
</if>
Job Done Save and view your posts and click install

As you can see this is only a simple edit but I saw it on a forum once and I thought that it would be a nice edition to those that want it.

A PSD has also been included in the ZIP file,

Thanks,

Connor

Download Now

File Type: zip Set Avatar.zip (80.2 KB, 54 views)

Show Your Support

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

Comments
  #2  
Old 05-15-2009, 06:14 PM
Daniel_HBK Daniel_HBK is offline
 
Join Date: Feb 2006
Location: Egypt
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx man for this add-ons
Reply With Quote
  #3  
Old 05-15-2009, 06:50 PM
cono1717 cono1717 is offline
 
Join Date: Sep 2008
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No Problem
Reply With Quote
  #4  
Old 05-17-2009, 12:26 AM
peleh peleh is offline
 
Join Date: May 2009
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I prefer like this, marked as installed anyway...

PHP Code:
<else />
<
td class="alt2">
<
a href="./profile.php?do=editavatar"><img src="images/misc/setavatar.gif" border="0"/></a>
</
td
Reply With Quote
  #5  
Old 05-19-2009, 01:38 PM
Michael.A's Avatar
Michael.A Michael.A is offline
 
Join Date: Dec 2008
Location: L.A
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol thanks peleh marked as installed anyway..
Reply With Quote
  #6  
Old 05-30-2009, 12:11 AM
shinng's Avatar
shinng shinng is offline
 
Join Date: May 2009
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

used peleh's coding. installed
Reply With Quote
  #7  
Old 06-21-2009, 08:18 PM
ctrlbrk ctrlbrk is offline
 
Join Date: Nov 2008
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's not clear to me --- does this show for EVERYONE viewing a thread, or only to the individuals who don't have an avatar?

for instance, I only want it to show up for the person that can actually set it...

Mike
http://forum.bigmiketrading.com
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 02:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06579 seconds
  • Memory Usage 2,281KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (6)postbit
  • (1)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete