2006-05-02, 11:34 PM
My friend hooked me up with some very good code modifications to the latest MyBB. I've used the mods on my own forum located at http://ep2.nl and they work perfect.
Mod 1: Image shrinker and viewer
This modification reduces too large images posted in topics, and makes them clickable wich onclick opens a pop-up with the full-sized image. If the pop-up is opened, a click on the full-size image closes it again.
A great mod, wich keeps the topic nice and clean.
Preview: Link
Download: Link
-------------------------------------
Mod 2: Sub and Sup tekst
This modification creates the tags [sub] and [sup] in your BB code so that you can use subtekst and suptekst.
Remember to close them with [/sub] and [/sup]!
Preview: Link
Download: Link
-------------------------------------
Mod 3: Advanced Reputation System
This modification is an addition to the reputation system in MyBB. It has multiple functionalities:
1. Members can give -3 to +3 rep.points at once
2. The reputation image (green or red) gets wider when the reputation
increases, to a max of 10 images.
Download:
3. Reputationpoints can be seen in the controlpanel, next to the comments (opmerkingen).
A preview is not possible unless you actually register at my forums, so here's the code for the Advanced Reputation System:
1) Go to Templates in Admin panel and edit the reputation_add template. this is how my template looks:
When clicked on '-' in a post, -1 point will be automaticlly selected, the same happens when clicked on '+'
2) In Templates -> User Controlpanel Templates -> usercp_latestreputations_bit
Overwrite any code with this
3) Go to your FTP and download reputation.php. Open it and find the next lines (around line 80):
CHANGE TO
Save it ofcourse!!!
This modification to MyBB 1.1.1 has been coded by Aries-Belgium
I hope you like the modifications!
Mod 1: Image shrinker and viewer
This modification reduces too large images posted in topics, and makes them clickable wich onclick opens a pop-up with the full-sized image. If the pop-up is opened, a click on the full-size image closes it again.
A great mod, wich keeps the topic nice and clean.
Preview: Link
Download: Link
-------------------------------------
Mod 2: Sub and Sup tekst
This modification creates the tags [sub] and [sup] in your BB code so that you can use subtekst and suptekst.
Remember to close them with [/sub] and [/sup]!
Preview: Link
Download: Link
-------------------------------------
Mod 3: Advanced Reputation System
This modification is an addition to the reputation system in MyBB. It has multiple functionalities:
1. Members can give -3 to +3 rep.points at once
2. The reputation image (green or red) gets wider when the reputation
increases, to a max of 10 images.
Download:
3. Reputationpoints can be seen in the controlpanel, next to the comments (opmerkingen).
A preview is not possible unless you actually register at my forums, so here's the code for the Advanced Reputation System:
1) Go to Templates in Admin panel and edit the reputation_add template. this is how my template looks:
<strong>$lang->add_reputation</strong>
<form action="reputation.php" method="post">
<input type="hidden" name="action" value="do_add">
<input type="hidden" name="pid" value="$pid">
<blockquote><input type="radio" name="add" value="-3"> -3
<input type="radio" name="add" value="-2">-2
<input type="radio" name="add" value="-1" $negcheck>-1
<input type="radio" name="add" value="1" $poscheck>+1
<input type="radio" name="add" value="2">+2
<input type="radio" name="add" value="3">+3
</blockquote>
<br />
<br />
<span class="smalltext">$lang->post_comments</span>
<br />
<input type="text" name="comments" size="40" maxlength="250">
<br />
<br />
<center><input type="submit" class="submit" value="$lang->add_to_reputation"></center>
</form>
When clicked on '-' in a post, -1 point will be automaticlly selected, the same happens when clicked on '+'
2) In Templates -> User Controlpanel Templates -> usercp_latestreputations_bit
Overwrite any code with this
<tr>
<td class="$bgclass" align="center"><img src="$theme[imgdir]/$posnegimg"></td>
<td class="$bgclass">$postlink</td>
<td class="$bgclass">$repdate $reptime</td>
<td class="$bgclass">$reputation[comments] ($reputation[reputation])</td>
</tr>
3) Go to your FTP and download reputation.php. Open it and find the next lines (around line 80):
$rep = $mybb->usergroup['reputationpower'];
if($mybb->input['add'] == "neg")
{
$rep = "-".$rep;
}
CHANGE TO
$rep = $mybb->input['add'];
if(abs($rep) > 3){
$rep = 0;
}
/*
$rep = $mybb->usergroup['reputationpower'];
if($mybb->input['add'] == "neg")
{
$rep = "-".$rep;
}
*/
Save it ofcourse!!!
This modification to MyBB 1.1.1 has been coded by Aries-Belgium
I hope you like the modifications!