Thread Rating:
  • 9 Vote(s) - 4.11 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Smethead's Mod/Plugins list [2 new plugins and 3 updated plugins]
xiaozhu Wrote:
Smethead Wrote:Guess who's back? Back again...
Here's a new plugin. But I doubt much of you will download it.
http://mods.mybboard.com/view.php?did=348
It's called Classic Reputation System.
and it has these features:
Quote:• The classic reputation system from MyBB 1.1.x and below.
• The reputations are shown in little images. A green one for positive reputation, a red one for negative reputation and a grey one for balanced reputation.
• Multilangual compatible.
• Available in English and Dutch.
• Backup feature (makes a backup of the posts ID for each reputation)

Can you include more features?
Like, Minimum Posts before you can post and also "Reporting" for abuse of the system" etc etc.

I'm not full-time into coding, so you'll have to wait for those things. I just made this because I had spare time and I couldn't play on my guitar (I love to play it). The minimum post count might get added. But the report for abuse system is a whole lot larger. I'm not sure if I should add it.

I have to study now to pass my driver's license exam.
Reply
Ahhh a musician Cool I'll PM you my website for kicks. See if you recognize any Artists Wink
Reply
Thank you SO much, Smethead.  I LOVE the old rep system Smile

I am curious though. Refer to this thread about 2 changes I made to the old rep system. How would I make those changes within your mod?
Reply
hellow is there any updation for the google ads inbetween post
Reply
Galen Wrote:Thank you SO much, Smethead. I LOVE the old rep system Smile

I am curious though. Refer to this thread about 2 changes I made to the old rep system. How would I make those changes within your mod?

Just as I wrote in one of the replies of that thread. Only with different templates and files.
Smethead Wrote:
Galen Wrote:2nd, I'd like for the UserCP to show who gave rep.
The MyBB rep system already has a feature that records the user who gave the reputation. It stores the user's ID under the adduid field in the reputation table. So basically, the thing you have to do to show the user in your UserCP is this:

Go to AdminCP >> Templates >> Modify / Delete >> Global Templates >> Expand >>
crs_latestreputations
Find:
<td class="tcat" align="center"><span class="smalltext"><strong>$lang->post</strong></span></td>
And under it, add
<td class="tcat" align="center"><span class="smalltext"><strong>Given by:</strong></span></td>
Find:
<td class="thead" colspan="4">
And replace with:
<td class="thead" colspan="5">
After that, save the template.
You can change Given By to whatever you want in another language

crs_latestreputations_bit
Find:
<td class="$bgclass">$postlink</td>
And under it, add
<td class="$bgclass">$adduser</td>
After that, save the template.

Then, open the file called inc/plugins/crs.php and find the code:
eval("\$reputationbits .= \"".$templates->get("crs_latestreputations_bit")."\";");
Above it, add this:
			$adduid_query = $db->fetch_array($db->query("SELECT username, usergroup, displaygroup FROM ".TABLE_PREFIX."users WHERE uid='".$reputation['adduid']."'"));
			$adduser = "<a href=\"member.php?action=profile&uid=".$reputation['adduid']."\">".format_name($adduid_query['username'], $adduid_query['usergroup'], $adduid_query['displaygroup'])."</a>";
That's all Smile
Look out! The function is now called format_name instead of formatname!

To show things in numbers, you can edit the file inc/plugins/crs.php and replace crs_get_reputation( with get_reputation( on lines 322 and 334.

Maybe I'll make that an option to set in a next version Wink

tamilparks Wrote:hellow is there any updation for the google ads inbetween post
That's not one of my plugins so I can't help you with that.
Reply
Very nice, Smethead. The numbers still don't seem to show, not sure why. I might need to deactivate it and reactivate it, but when I tried that, I got an error that "mybb_fws_backup" doesn't exist. Hehe, don't ya hate when that happens? Smile

Regardless of that minor bug, this plugin is still great. I figured I'd be waiting months before someone decided to make it, if anyone ever did. You rock, Smethead Smile
Reply
Galen Wrote:I might need to deactivate it and reactivate it, but when I tried that, I got an error that "mybb_fws_backup" doesn't exist. Hehe, don't ya hate when that happens? Smile
lol..
that problem is solved in the new download now Toungue

Where do the numbers not show?
Reply
Yeah, the numbers weren't showing in the postbit. I figured it out, though. For anyone who wants to know, go to the global templates and edit crs_postbit_reputation. Find {$post[userreputation]} and replace with {$post[reputation]}

Thanks for the updated download! Not that I'll be wanting to deactivate this plugin anyway Smile

There's one more thing I noticed that you might want to fix if you release another version. I can just change it manually and it's not anything major, but thought you'd like to know. In the AdminCP's Group permissions, the section where you set how many points a certain group gives or takes, the new rep system's drop-down menu is still there, which only allows you to assign up to 3 points. With the old system, it was a text box with no limit. Like I said, I'll just change that myself, no biggie Smile
Reply
Galen Wrote:Yeah, the numbers weren't showing in the postbit. I figured it out, though. For anyone who wants to know, go to the global templates and edit crs_postbit_reputation. Find {$post[userreputation]} and replace with {$post[reputation]}

Thanks for the updated download! Not that I'll be wanting to deactivate this plugin anyway Smile

There's one more thing I noticed that you might want to fix if you release another version. I can just change it manually and it's not anything major, but thought you'd like to know. In the AdminCP's Group permissions, the section where you set how many points a certain group gives or takes, the new rep system's drop-down menu is still there, which only allows you to assign up to 3 points. With the old system, it was a text box with no limit. Like I said, I'll just change that myself, no biggie Smile
Yeah, I might have forgotten about that.
It's on the to-do list for a next release Wink
Reply
The advanced stats shows hidden forum topic posts. Of course regular users can't view the posts but how can I remove those posts from the newest replies? Thank You
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)