Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
[FMI] Encourage Avatar Usage Details »»
[FMI] Encourage Avatar Usage
Version: 1.00, by b00k b00k is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.2.0 Rating:
Released: 11-14-2012 Last Update: 11-14-2012 Installs: 12
Template Edits
Re-useable Code  
No support by the author.

Enclosed is our Avatar Encouragement system. What this plugin does is look to see if a user is using an avatar or not. If the user is not using an avatar it will insert a default avatar the admin has selected. The avatar will be click-able to enter the users USERCP and will only be show to that specific user.


Notable Features:
Developed by ForuMedia Inc. We use our products on our network!
Avatar clicks to USERCP profile so user knows where to go to update avatar.
Avatar only appears for the user, not all users. This means you won't see the default avatar everywhere.
Enable usergroup filter. Who it works for, who it doesn't.
Ability to change path of missing avatar image (you can use a CDN!)

How to test if it works?
Delete your avatar. Go to a thread and see if you have your assigned default avatar listed.
You can also create a test account with a test thread / post with no USERCP set avatar and see if it works

Need Avatars?
10 Pack of "Click Me - add your avatar" images.

Footer Link
You may disable it however we would appreciate it if you didn't. It helps support our efforts.

Support
Support will only be offered on ForuMedia & vBorg.
Our support thread:

Install Details
See attached .txt file.

Admincp screen shot

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
fxdigi-cash, RedTurtle

Comments
  #2  
Old 11-15-2012, 06:34 PM
b00k b00k is offline
 
Join Date: Feb 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

reserved for updates.
Reply With Quote
  #3  
Old 11-15-2012, 07:42 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting mod...

I can't find <a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">

In my postbit template. The closest I find is

<a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">

Please advise
Reply With Quote
  #4  
Old 11-15-2012, 08:02 PM
neopets neopets is offline
 
Join Date: Jul 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

scott, just change
{vb:link member, {vb:raw post}}

to
<vb:if condition="$avae">profile.php?do=editavatar<vb:els e />{vb:link member, {vb:raw post}}</vb:if>
Reply With Quote
  #5  
Old 11-15-2012, 08:05 PM
b00k b00k is offline
 
Join Date: Feb 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Scott

please back up any of your templates etc

Quote:
Originally Posted by scottct1 View Post
I can't find <a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
The above mentioned code should be in postbit legacy and can be replaced.

Quote:
Originally Posted by scottct1 View Post
<a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
the above mentioned code will be in the postbit and can be replaced.




Sorry, instructions were a bit vague. I will now update them for you guys.
Reply With Quote
  #6  
Old 11-15-2012, 08:16 PM
RedTurtle's Avatar
RedTurtle RedTurtle is offline
 
Join Date: May 2006
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an awesome idea and will definitely help encourage users to use an avatar on my board.

Thank you for releasing this to the community!

BTW, is this compatible with vB3 also?
Reply With Quote
  #7  
Old 11-15-2012, 08:18 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I changed it to the line in your new instructions and it works, however the users avatar is now to the right of their name instead of the left.
Reply With Quote
  #8  
Old 11-15-2012, 08:18 PM
b00k b00k is offline
 
Join Date: Feb 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedTurtle View Post
This is an awesome idea and will definitely help encourage users to use an avatar on my board.

Thank you for releasing this to the community!

BTW, is this compatible with vB3 also?
At some point we will release for vB3

Very near future.
Reply With Quote
  #9  
Old 11-15-2012, 08:22 PM
RedTurtle's Avatar
RedTurtle RedTurtle is offline
 
Join Date: May 2006
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TSR View Post
At some point we will release for vB3

Very near future.
Great to hear. Good to see a new developer on vBorg! Looking forward to the stuff you provide the community.

This mod is working great on my board.

Nominated :up:
Reply With Quote
  #10  
Old 11-15-2012, 08:30 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got i t working using this code instead.

<a class="postuseravatarlink" href="<vb:if condition="$avae">profile.php?do=editavatar<vb:els e />{vb:link member, {vb:raw post}} </vb:if>" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">

Only issue is the link for all the other avatars on that page turn to the profile.php?do=editavatar but its livable.
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 06:34 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.04728 seconds
  • Memory Usage 2,300KB
  • Queries Executed 25 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete