![]() |
Site Supporter button in postbit!
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']"> Code:
<!-- Subscriber button --> |
reserved
|
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 |
you have to change in if condition="is_member_of($bbuserinfo, X) the x with the groupid!!!
|
Quote:
Code:
Benutzergruppe: CM-Supporter (ID: 18) |
now your code is:
PHP Code:
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 |
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 |
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 |
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. |
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. |
All times are GMT. The time now is 06:53 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|