Yo dawg p2kewl here for ya! P2king back to help those in need. Been awhile since I posted so I might be a little rusty but I think I understand what you want to do.
You'll need to modify postings.cgi and ubb_library2.pl for what you want to accomplish.
I'm not sure what the variable is in the Stars Hack for the amount of stars based on your post count so for code sake, I'm going to use the $starnum variable. You'll want to change this to reflect what it is in your code. A simple grep replace should do the trick yo sup dawg! Here we goski alamodeski!
### Open POSTINGS.CGI ###
[/code]After the last line add the following:
It can go anywhere after that.
</pre></div></div>First off, what we are doing is giving each forum you have on your message board a variable. You'll want to change "General Discussions", "Latest Movies", and "Monthly Schedules" to the names of your specific forums. Continue to add elsif for more forums if you want to add more than three. The spacing and spelling MUST BE EXACT. p2kewl4u. Let's continue!<br><br>### Open UBB_LIBRARY2.PL ###<br><br>Now we're going to check for each variable set in postings.cgi and tell it what to do based on your mod and the forum you want/do not want them to have stars displayed. p2kewl4u isn't it! Who-ha!<br><br>You want to add this code at the very end of your stars hack code so whatever the last line for you looks like. Example:<br><br><div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
This is what you want to add:
You have to set a line of code for EACH MOD you WANT them to have stars displayed for and for each FORUM.
The $special_forum eq "GD" line is for the General Discussion forum variable we set in postings.cgi Change that to reflect the variables you set in postings.cgi. Also, you need to change the $thisline eq "Name_of_Moderator" to the name of your moderator. So with the code provided, the star image should only show up when your Mod posts in the General Discussion forum and no where else...hopefully
I don't have the stars hack so I can't comment but the $starnum variable I used should be the same variable the stars hack uses.
This code is not tested but it should work. Fingers crossed. Hope that pointed you in the right direction.