Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Site Supporter button in postbit! Details »»
Site Supporter button in postbit!
Version: 1.00, by Bratz-Designs Bratz-Designs is offline
Developer Last Online: Nov 2011 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.7 Rating:
Released: 05-24-2007 Last Update: Never Installs: 3
 
No support by the author.

Hello all,

This small modification was requested here. It will ad a small button to your postbit template.

1. Upload the button.

Pick the button you want to use and rename it to "subscriber.gif" after that upload it to your 'Misc' folder.

2. Change templates Postbit_lecacy and Postbit.

Change the X in the code to the # of the subscribersgroup!

Find:
Code:
		<if condition="$show['postedited']">
		<!-- edit note -->
			<div class="smallfont">			<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
				<em>
				<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
				<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
				</em>			</div>
		<!-- / edit note -->
		</if>
After ad:
Code:
		<!--  Subscriber button -->
<br /><if condition="is_member_of($bbuserinfo, X) "><img src="images/misc/subscriber.gif" border="0"></if>
		<!-- / Subscriber button -->
Mark

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-26-2007, 03:43 PM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

reserved
Reply With Quote
  #3  
Old 05-26-2007, 05:57 PM
Snatch Snatch is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use this modification, but it dount show me the image.

If I use this code only "<img src="images/misc/subscriber.gif" border="0">" I see the Image. But when I put the complete Code I can not see the Image. all the same with all usergroup IDs that I have replased the X.

GreeTz
Snatch
Reply With Quote
  #4  
Old 05-26-2007, 06:02 PM
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Posts: 1,630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have to change in if condition="is_member_of($bbuserinfo, X) the x with the groupid!!!
Reply With Quote
  #5  
Old 05-26-2007, 06:05 PM
Snatch Snatch is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ragtek View Post
you have to change in if condition="is_member_of($bbuserinfo, X) the x with the groupid!!!
Yes I know. I have change it to UID 18 <- that ist my Supporter uID.
Code:
Benutzergruppe: CM-Supporter (ID: 18)
But it dont show me the Image.
Reply With Quote
  #6  
Old 05-26-2007, 06:12 PM
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Posts: 1,630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now your code is:
PHP Code:
        <!--  Subscriber button -->
<
br /><if condition="is_member_of($bbuserinfo, 18) "><img src="images/misc/subscriber.gif" border="0"></if>
        <!-- / 
Subscriber button --> 
???

und auf was man hier achten sollte: dieser code f?gt zu einem jeden postbit eine datenbankabfrage hinzu!! also achte auf die performance

english:
this code addes to every postbit an query
so if you have 20 posts on a site there will be 20 extraquerys
Reply With Quote
  #7  
Old 05-27-2007, 05:26 AM
Snatch Snatch is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hallo,

nun habe ich den Fehler gefunden, wusste doch, dass ich alles richtig gemacht habe.
Die Grafik kann mit diesem Code nur v?n den Supportern selbst gesehen werden.
Ich m?chte jedoch, dass nur Supporter diese Grafik im Postbit haben, zu sehen sein soll sie aber dann f?r alle. Ich denke die Supporter wissen selbst das sie Supporter sind

Mein Englisch ist leider sehr schlecht.

now I have found the problem. With this code, only the supporter usergroup can see the image. But this ist not this what I whant. The supporter usergroup knows that they are supporters. I whant, that the Image only schon in a supporters Postbit but every usergroup can see the Image.

GreeTz
Snatch
Reply With Quote
  #8  
Old 05-27-2007, 07:22 AM
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Posts: 1,630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol

bbuserinfo are the data of the USER WHO IS VIEWING the site

the data of the postuser are saved in the $post-array!
$post[username], $post[statustitle], $post[userid]...
so you have to chack if $post[userid] is in the correct usergroup
Reply With Quote
  #9  
Old 05-30-2007, 04:58 PM
pds pds is offline
 
Join Date: Apr 2003
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Having a little trouble getting this working as well. I have the code in the postbit_legacy, and have changed the user group, but can not see the image.

I'll keep playing around and report back.
Reply With Quote
  #10  
Old 05-30-2007, 05:33 PM
pds pds is offline
 
Join Date: Apr 2003
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Verified I am having the same issue.

Only members of the specified usergroup can see the image. I was looking to have all users be able to see the image in a users postbit. The thought was that if you saw it in another users postbit, and you did not have it in yours, it may encourage paid subscriptions.
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 06:37 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.04564 seconds
  • Memory Usage 2,295KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (9)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