For those using
MyPaymentPal I updated this so that it will display an image as well as a link to mypaymentpal.
This is setup for my personal stuff but you can change it to suite your needs.
Here is the orignial code for showflat.php
<br /> // Figure out what to display based on their groups<br /> if (preg_match("/-5-/",$postergroup)) { // adjust this group number if needed<br /> $postrow[$i]['GroupName'] = "Bronze Level";<br /> }<br /> if (preg_match("/-6-/",$postergroup)) { // adjust this group number if needed<br /> $postrow[$i]['GroupName'] = "Silver Level";<br /> }<br /> if (preg_match("/-7-/",$postergroup)) { // adjust this group number if needed<br /> $postrow[$i]['GroupName'] = "Gold Level";<br /> }<br />
Here is what I changed it to.
<br /> // Figure out what to display based on their groups<br /> if (preg_match("/-16-/",$postergroup)) { // adjust this group number if needed<br /> $postrow[$i]['GroupName'] = "<a href=\"{$config['phpurl']}/mypaymentpal/mypaymentpal.php\">Platinum Member<img src=\"{$config['images']}/platinum.gif\" border=\"0\" alt=\"Platinum Membership Info\" /></a>";<br /> }<br /> if (preg_match("/-14-/",$postergroup)) { // adjust this group number if needed<br /> $postrow[$i]['GroupName'] = "<a href=\"{$config['phpurl']}/mypaymentpal/mypaymentpal.php\">Gold Member<img src=\"{$config['images']}/gold.gif\" border=\"0\" alt=\"Gold Membership Info\" /></a>";<br /> }<br /> if (preg_match("/-11-/",$postergroup)) { // adjust this group number if needed<br /> $postrow[$i]['GroupName'] = "<a href=\"{$config['phpurl']}/mypaymentpal/mypaymentpal.php\">Silver Member<img src=\"{$config['images']}/silver.gif\" border=\"0\" alt=\"Silver Membership Info\" /></a>";<br /> }<br />
Same code applies to showthreaded.php as well.
Now just change the images to whatever you want and place it your threadsdir/images directory (also don't forget your own group numbers)
