PDA

View Full Version : Paid subscription logo


eviljoker7075
02-05-2010, 07:17 AM
Hey, I'm just wondering if there's any way to allow my users to pay to become a 'site subscriber', and when they do they get a custom logo appear by their username or something. Similar to the subscription service in last.fm - when you pay you get a little floating black box over your avatar in the corner to indicate you're supporting the site).

Any advice would be appreciated. I am running vB 4.0 with full CMS

Thanks

VAG
05-10-2011, 08:14 AM
Looking for the same.
Anyone ?

MagicThemeParks
05-10-2011, 10:01 AM
You'd have to add a conditional around the avatar code in postbit (or postbit_legacy) and then add CSS to include an image (with proper padding).

You may want to search this site as there are some tips to help you with that.

Here's a list of conditionals: vB4 - https://vborg.vbsupport.ru/showthread.php?t=231525&highlight=conditionals and vB3 - https://vborg.vbsupport.ru/showthread.php?t=215032&highlight=conditionals

Then, search for code to add CSS to the avatar area. Good luck! :up:

fevredsuk
05-10-2011, 08:42 PM
You could just create a rank with the required image and attach it to the subscription usergroup.

e.g. create a usergroup subscriber
when a member donates/subscribes the subscriber usergroup is added to that member. (their primary group is not changed)

also create a rank
Number of times to repeat rank: 1
Usergroup: subscriber
minimum posts: 0
stack rank: Yes
display type: always
user rank file path:
html text: <img src="url of the image">

update usertitles and ranks

Once the member subscribes the image should be added the next time your promotions scheduled task runs

Ranks show below username and above avatar. if you choose not to stack the will be side by side if more than one rank

Thats how I would do it anyway. Hope it helps.