vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Star for paid subscribers (https://vborg.vbsupport.ru/showthread.php?t=131612)

johnrizz 11-15-2006 01:04 AM

Star for paid subscribers
 
1 Attachment(s)
I need some help please!
what I did was set up a paid subscriber area on my forum and what i'm trying to do is have it were all paid subscribers get a star next to their name, this is where I hit the brick wall. I'am sure it isn't as complicated as I make it out to be. If anyone has an insight to this I would surely appreciate the help? :)


This picture is an example of what I'm trying to do..

John..

bada_bing 11-15-2006 01:27 AM

I would be interested also for my premium members

paul41598 11-15-2006 11:42 AM

seems easy. Since paid subscribers generally are moved into a new usergroup Im presuming on your forums too...you could write a conditional. If part of x group, display star icon

RedTyger 11-15-2006 12:58 PM

In Usergroup settings, there's two fields for username markup. In the second, add something like:

&nbsp;<img src="images/star.gif" border="0" class="inlineimg" />

bada_bing 11-15-2006 02:31 PM

Quote:

Originally Posted by RedTyger (Post 1117905)
In Usergroup settings, there's two fields for username markup. In the second, add something like:

&nbsp;<img src="images/star.gif" border="0" class="inlineimg" />



Wow that seams to easy.. I will try it

Quote:

Originally Posted by bada_bing (Post 1117960)
Wow that seams to easy.. I will try it

This did not work...

Quote:

Originally Posted by bada_bing (Post 1117960)
Wow that seams to easy.. I will try it



This did not work...


Awww OK it actually does work except that it adds the image next to the member name in between the membername and the on/offline status.
Can I have this image show up under the member name?

Another issue with placing it in the HTML markup are is that now this image diaplays in all these areas Logged-in Users, Who's Online, Users Browsing Forum, Users Browsing Thread, Posts, Member List etc.)

I only want it to show up under the members name but only if they are a premium member..

johnrizz 11-15-2006 08:08 PM

Quote:

Originally Posted by RedTyger (Post 1117905)
In Usergroup settings, there's two fields for username markup. In the second, add something like:

&nbsp;<img src="images/star.gif" border="0" class="inlineimg" />

Thanks RT I'll gave it a shot

**EDIT**
That did it! your the best.... haha! I removed the &nbsp; from the line to bring the star closer to the user name. Thanks again!!

<img src="images/star.gif" border="0" class="inlineimg" />

Ok, another question! Is there a way to block the star.gif from showing up next to the name in your Who's Online area at the bottom? srry! dont wana be a pest!

bada_bing 11-16-2006 07:34 PM

Quote:

Originally Posted by bada_bing (Post 1117960)
Wow that seams to easy.. I will try it



This did not work...




Awww OK it actually does work except that it adds the image next to the member name in between the membername and the on/offline status.
Can I have this image show up under the member name?

Another issue with placing it in the HTML markup are is that now this image diaplays in all these areas Logged-in Users, Who's Online, Users Browsing Forum, Users Browsing Thread, Posts, Member List etc.)

I only want it to show up under the members name but only if they are a premium member..



Any one?

johnrizz 11-16-2006 07:47 PM

bada_bing

what I did was added a </div> infront of the code, Like so </div><img src="images/green-star.gif" border="0" class="inlineimg" /> that put the star under the user name...

bada_bing 11-16-2006 07:51 PM

Quote:

Originally Posted by stone0075 (Post 1118870)
bada_bing

what I did was added a </div> infront of the code, Like so </div><img src="images/green-star.gif" border="0" class="inlineimg" /> that put the star under the user name...


Yea but that does not stop if from displaying that image in various other locations like who's online, memberlist and do on.. I just want the image to apear when the postbit or postbit_legacy only

johnrizz 11-16-2006 09:21 PM

Ok, This is what was just handed to me form vbulletin.com, I haven't tried it yet so, will see....

You can keep using the username markup, but you will need to edit the templates for the areas where you don't want the markup to show. For example:

Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Forum Home Templates -> forumhome_loggedinuser

Remove the m that is highlighted:
Code:

$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
You will need to make a similar change to the other templates. You can find these templates in your:

Admin CP -> Styles & Templates -> Search in Templates

Search for "musername".

bada_bing 11-16-2006 10:33 PM

Wow thanks for the research on this.. I think I will try and see if there are other solutions because this can get complicate trouble shooting when you edit features our to make up for one.. I dont like doing that as it can bit you in the butt in the long run


All times are GMT. The time now is 06:13 AM.

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.01039 seconds
  • Memory Usage 1,743KB
  • 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)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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