How can I show the rep bar like your forum in mybb ?
Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.
How can I show the rep bar like Letsforum ?
Hi, I don't have time to post a tutorial right now but I will later today! So if you don't mind comeback within 4 to 5 hours.
OK I have just updated user reputation bar to version 2.0 it looks much cooler
So lets make it happen. First to make it work you don't need to create any plugin but you do need to have a MYBB plugin installed called "template conditionals" because we will need to pool user reputation from the database in order to make this reputation bar to move
Add this code somewhere in the postbit template anywhere you like I have it under user group image for instance.
You will have to create 2 images (DON'T USE MINE I HATE PEOPLE STILLING MY SH*T) anyways as I've said open Photoshop or similar photo editing software and create 2 images with these dimensions and upload them to MYBB images folder:
2px X 21px save as div.png
200px X 15px save as reputation.png
You can make them bigger or smaller but if you do then you'll need to alter HTML code.
This is the PHP conditional what makes it happen so make sure you have template conditionals installed.
Feel free to ask your questions

So lets make it happen. First to make it work you don't need to create any plugin but you do need to have a MYBB plugin installed called "template conditionals" because we will need to pool user reputation from the database in order to make this reputation bar to move

Add this code somewhere in the postbit template anywhere you like I have it under user group image for instance.
PHP Code:
<table width="200" height="15" cellspacing="0" cellpadding="0" style="background-image: url(images/reputation.png); margin-bottom: 2px; margin-top: 2px;" title="User Reputation">
<tr>
<td width="<if $post['reputation'] <= 1 then>1<elseif $post['reputation'] >= 1 && $post['reputation'] <= 199 then>{$post['reputation']}<else /></if><if $post['reputation'] >= 199 then>199</if>" align="right"><div class="postbit_rep"><img src="images/div.png" height="21" width="2" border="0"></div></td>
<td style="background-color: #F5F5F5; opacity: 0.8;"><span></span></td>
</tr>
</table>
You will have to create 2 images (DON'T USE MINE I HATE PEOPLE STILLING MY SH*T) anyways as I've said open Photoshop or similar photo editing software and create 2 images with these dimensions and upload them to MYBB images folder:
2px X 21px save as div.png
200px X 15px save as reputation.png
You can make them bigger or smaller but if you do then you'll need to alter HTML code.
This is the PHP conditional what makes it happen so make sure you have template conditionals installed.
PHP Code:
<if $post['reputation'] <= 1 then>1<elseif $post['reputation'] >= 1 && $post['reputation'] <= 199 then>{$post['reputation']}<else /></if><if $post['reputation'] >= 199 then>199</if>
Feel free to ask your questions

{$post['reputation']} returns user reputation count so if you want to show something only for users that have reputation 15 then use this conditional.
PHP Code:
<if $post['reputation'] >= 15 then>---put here code that shows only if user reputation is 15 and more---</if>
Use this conditional or just replace $post['reputation'] with $post['postnum']
PHP Code:
<if $post['postnum'] >= 15 then>here goes code that will show only if user has 15 or more posts</if>
NO problem you're welcome if you need more help with MYBB forum script or maybe conditionals please feel free to ask

Off-topic!
Are you saying that you only want users that are in your buddy list to see or being able to access your profile
Are you saying that you only want users that are in your buddy list to see or being able to access your profile
OK this is going very of-topic!!!!
Template conditionals is great for showing or hiding stuff not for blocking!!! You need a plugin to first fetch your buddy list and then check if the user trying to access your profile is in the list.
Template conditionals is great for showing or hiding stuff not for blocking!!! You need a plugin to first fetch your buddy list and then check if the user trying to access your profile is in the list.
Similar Topics:
- My Published Posts does not show on Google
- Show Google+ posts in search results get them indexed?
- How to get show my articles on Google news?
- My Website Structure not show in Google
- Why PayPal payments show less money than the customer pays?
- Anchor link on mouse-over or on hover show a message?
- Can I show Adsense ads along with affiliate products?
- MYBB show Adsense after first post?
- Show background image or color for an empty div?
- How to show 100 search results in Bing?
User(s) browsing this thread: 1 Guest(s)