I've disabled UBB's "Directory" and haven't looked at the file/codes so I wouldn't be much help there right now.
As for adding more forums to the "Posts Don't Count Hack" that is possible.
This will be long since I'm explaining. I've done it but will have to do it on the top of my head.
In both the "ubb_new_reply.cgi" and "ubb_new_topic.cgi" files you had to add this:
[/code]Notice "posts_count" and "posts_count2"...Take one of the codes such as:
</pre></div></div>then change it to:<br><br> <div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
then add to the original hack such as:
</pre></div></div>Basically you can keep adding "posts_count" but just remember to add consecutive numbers as I did with "3"...And so the next would be "4".<br><br>--------------<br><br>Now in the "cp_modaddon.cgi" file where the hack is located you'll find this:<br><br> <div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
Now you need to add forum #3. Take this code:
</pre></div></div>then add it to the original like so:<br><br> <div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
notice "posts_count3" which will target #3 forum. Almost done. :tipsy:
Now to add the text area in CP take this code:
</pre></div></div>and add it to the original code so it looks like this:<br><br> [code]
This is important. Notice the comma after the orginal code from "RegField" for forum #2? The original "]" did not have the comma. Unless it's the last code bit you will need the comma so it looks like "],". I've already done that for this example.
Hope this works for you.
PT,
Thanks so much for taking the effort to code this for me.
Unfortunately, when I try to apply it to my test area, it keeps giving me an Internal Error Message (500).
So I don't know if I'm not putting something in place correctly or if my server is buggy or what.
For now, I'll stick with the two forum deal--and just make sure they are forums I can live with!
Again, thanks for your help.
My apologies ADWOFF. This is why it's better to test scripts instead of assuming it will work.
I forgot to insert another "}" in 2 of the codes. In the text link below I made the adjustment.
For you ADWOFF, all you need to do is rehack ubb_new_reply.cgi and ubb_new_topic.cgi files.
Click Here For 3 Forums My understanding is that BassTeq will work on a different version of this code which will make selecting forums easier...If I'm correct.
If you want to continue with this version let me know how many forums you want to have the No Post Count feature.
Ok All, here's my version, Ive tested it and it works correctly. Any problems just let me know.
Prime maybe you can update the text file on your server with my version as I dont have anywhere to host it at the moment.
Cheers
[code][/code]
COOL BassTeQ! If I'm reading your code correctly in this version you'll have the option of disabling post counts in any selected forum.
I'll upload it an test it for myself.
Thats right, you just enter a list of forum numbers delimited by the pipe character,
eg to block post counts in forums 1,3 and 5 you would enter 1|3|5
Alright...Updated.
HACK NAME: No Post Count Hack Unlimited
DESCRIPTION: This hack allows you to select the forums that you do not want post counts to increase.
BY: BassTeQ (Made changes to allow easier selection for multiple forums)
REQUIREMENTS: full license, UBB 6.4 (possibly for 6.2+ versions and up)
Additional REQUIREMENTS: Please install Mod CP Addon hack prior to install
Click Here For Text File ##Back up files before editing!##
Umm...Hey BassTeQ? Is this an entirely new hack? I seem to have listed everyone who were involved (except for the porting to 6.4).
Looks very promising, I can't wait to have it applied to my 6.5 test board (once I get calendar issues ironed out) thanks guys
.
quote:
Originally posted by PrimeTime:
Umm...Hey BassTeQ? Is this an entirely new hack? I seem to have listed everyone who were involved (except for the porting to 6.4). Well I made some drastic changes, so I dont know if you'd call it new ?? Doesnt matter, just leave the doco as it is.
Since your version differs a lot I updated the text which shows you as the author for this version. The "No Count Hack" with the 2 forums was also left intact and credited to Sub Zero. Basically two different hacks.
Hey Bass...I found something interesting. If you leave the text area blank in the CP the forums will not update the user's post count. If you insert the word "blank" or any other word (but not a number) then the forums will generate a post count.
For now I updated the text to read:
Please use a pipe delimited list, Example: 1|4|6, or you can type the word 'blank' if you want to disable this feature", "$vars_modifications{posts_count}"
Whops my bad, I put a line of code in the wrong area
I've modified my post on the 1st page of this thread to reflect my fix.
just need to re-mod new-reply and new-topic cgi files.
Cheers
I'll update the text and post it in the Mods 6.4/6.5 forum.
hehe, head to head mods to do the same thing! Amazing hehe
... Kinda like "Total Cell Rollovers" and "HyperCells"
...
Wow! You guys have been busy!
Cool beans on figuring it all out--I'll give it a shot ... um, probably not until the weekend.
I start a second job tonight, so my hours are going to be cut back drastically from playing on the 'net and with my board!