vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Paid subscription logo (https://vborg.vbsupport.ru/showthread.php?t=235063)

eviljoker7075 02-05-2010 07:17 AM

Paid subscription logo
 
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 07:14 AM

Looking for the same.
Anyone ?

MagicThemeParks 05-10-2011 09: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/showthrea...t=conditionals and vB3 - https://vborg.vbsupport.ru/showthrea...t=conditionals

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

fevredsuk 05-10-2011 07: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.


All times are GMT. The time now is 07:49 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.01677 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete