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 03-24-2009, 04:14 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Image next to Username for Members that have donated...

Hi guys,

Before I upgraded from 3.6.8 PL2 to 3.8.1 PL1, I had a seperate usergroup that has a "Golden Cup" image linked to it.

What would happen is that when a member made a 'Donation' to the forum, I would add them as a member of this group. In return the Golden Cup would show to the right of their username.

Although the usergroup is still there, The golden cups have vanished.

I have forgotten how I did this previously, so would there be anyone out there that could explain to me how I could get it to work again please?

Many Thanks.
Reply With Quote
  #2  
Old 03-24-2009, 04:18 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The easy way to do it is to add it in the username html markup in the usergroup manager.
Reply With Quote
  #3  
Old 03-24-2009, 04:23 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Lynne,

I failed to mention that I tried that, Sorry. It shows with a border line around it and they show in the "Members that have visited in the last 24 hrs" section as suchh too, and it looks terrible.
Reply With Quote
  #4  
Old 03-24-2009, 04:26 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Exactly where is it that you wish to have this image show then? Only on the showthread page? Have you considered using Ranks?
Reply With Quote
  #5  
Old 03-24-2009, 04:28 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What would also show is, for exmple, let's say that the username is: Dobe.

When you hover your mouse over the username, it would show (title/alt) Dobe has donated

--------------- Added [DATE]1237915768[/DATE] at [TIME]1237915768[/TIME] ---------------

On the post bit, profile and the users' posts, are where I would ideally like them to be seen. Not on the "Members that have visited" section, though. :|

--------------- Added [DATE]1237915996[/DATE] at [TIME]1237915996[/TIME] ---------------

Ranks, Lynne?
Reply With Quote
  #6  
Old 03-24-2009, 04:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For the hovering on the username on the main page, you can just edit the template (to find the template - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.) and add into the <a> tag a condition:
HTML Code:
<if condition="is_member_of($loggedin,x)">title="$loggedin[username] has Donated"</if>
And in the postbits, you could just add in this condition where you want:
HTML Code:
<if condition="is_member_of($post,x)">image code</if>
As for Ranks, just take a look in the manual - link in my sig and under Quick Links.
Reply With Quote
  #7  
Old 03-24-2009, 06:13 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would have to do that for every user?

There was a much siplier way of just selecting the tick box of the usergroup that I set up for the "Donators" and the Golden Cup would automatically appear at the side of their username.

It is driving me mad that I can't remember.

--------------- Added [DATE]1237923336[/DATE] at [TIME]1237923336[/TIME] ---------------

I have just tried the "Rank" option and I got the following error....


Forbidden
You don't have permission to access /admincp/ranks.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

--------------- Added [DATE]1237925874[/DATE] at [TIME]1237925874[/TIME] ---------------

I have added the image as HTML in the Rank.

It shows on the right, under the reputation bars in the profile,


And under the username in the postbit. (where I wanted it) - Thanks Lynne.


How exactly - do I add the title/alt of "[username] (whoever it maybe) Has donated, Please?

I do believe that it is something like {1}?

I would like to add this to their profile and Posting ones only - If that makes sense?


Thanks Again,
Reply With Quote
  #8  
Old 03-24-2009, 08:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is_member_of is a usergroup function. So, if you use it, you are setting a condition for whether a user is in that usergroup. So no, you don't need to do a condition per user id.

Do you mean you want an actual title - like mine here is Moderator - of just the alt text which is what you get when you hover over a name?
Reply With Quote
  #9  
Old 03-25-2009, 08:16 AM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just the alt text when the mouse is hovered over a name, please Lynee.
Reply With Quote
  #10  
Old 03-25-2009, 03:00 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can either add it to the link using title or to the image using alt="" . I outlined how to do it in post 6.
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 08:14 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.04943 seconds
  • Memory Usage 2,253KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_html
  • (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
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete