vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - Site Supporter Button in Postbit - Primary/Additional Usergroups supported (https://vborg.vbsupport.ru/showthread.php?t=148629)

713JunctionP 06-04-2007 02:04 AM

Quote:

Originally Posted by morrow (Post 1260623)
Installed and working, no problems.

I do have one question though. Is there a way to limit this to only the first post in a thread? It's annoying to see this icon numerous times through-out a thread.

I just let it show everytime the 'site supporter' makes it post. doesn't seem to bother us on the forums I run.

however, as far as limiting the 'site supporter' button to only appear in the first post of each page of a thread...that sounds like something along the lines of a hack I've seen here on vB.org it's a hack where the users signature only shows on their first post per page of any thread. you might be able to take the code from that and do something with it. :)

R1lover 06-04-2007 02:38 PM

Quote:

Originally Posted by pds (Post 1260642)
Some people prefer this in a hack because they want the "supporter" button to show up in a different place from where the "ranks" function does.

I understand this can be done with user ranks, and frankly it is easier to control doing so.

In my case user ranks currently gives them different icons based upon how many posts they have, and this appears right under the username. I want the site supporter button to appear lower in the postbit_legacy. (In fact the sample image of the postbit for this hack was taken from my site...even though I am not yet using the hack...must have been some creative photoshoping)

That makes sense in your situation... Thanks :) Funny on the image... :)

bada_bing 06-04-2007 02:52 PM

I like this will install in the near future

713JunctionP 06-04-2007 04:28 PM

Quote:

Originally Posted by R1lover (Post 1261034)
That makes sense in your situation... Thanks :) Funny on the image... :)

funny because I got the image from another individual who originally posted this hack but had made it unclear to users the differentiation between the $bbuserinfo and $post array's.

morrow 06-05-2007 10:43 PM

Someone on my site recommended for the Site Supporter icon to also link to paypal, so this is what I did...

Code:

<!-- Site Supporter Code -->
<br />
<if condition="$post[usergroupid] == 2 and is_member_of($post, 20)"><a href="https://www.paypal.com/cgi-bin/webscr"><img src="images/misc/supporter.gif"></if>
<!-- / Site Supporter Code -->

Now when you click on the icon, it will take you to paypal. :)

713JunctionP 06-05-2007 11:40 PM

^ you should probably close your <a href> tag at the end before the </if> tag.

Code:

<!-- Site Supporter Code -->
<br />
<if condition="$post[usergroupid] == 2 and is_member_of($post, 20)"><a href="https://www.paypal.com/cgi-bin/webscr"><img src="images/misc/supporter.gif"></a></if>
<!-- / Site Supporter Code -->


btw, good idea. but will it link the user to YOUR website's paypal contribution page?

I just may add your contribution to this thread's first post and give you credit for it. :)

713JunctionP 06-23-2007 07:09 PM

morrow, would you like me to add your edit to this hack and give you credit?

let me know. :)

morrow 06-25-2007 02:53 AM

Hmmm. Nah, it's your modification. Thanks alot for asking.

JadedSouls 08-22-2007 06:31 PM

Finally got this to work for me! *dances*

BulletNow 09-19-2007 01:26 AM

Anyway to make the photo show up in the persons profile?


All times are GMT. The time now is 08:41 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.01390 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete