We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] No post count in spam
Topic Started: Oct 25 2011, 06:06 AM (725 Views)
Umbrae_Cruxis
Member
[ * ]
Board Address: http://s4.zetaboards.com/Fluttershys_Cottage/index/
Board Software: ZetaBoards
Description: I wanted to ask if there was a possible code to make posts in the spam thread NOT count toward post total?
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
Not possible with a code, but you can turn off posts counting towards the post count in any forum.
Offline Profile Goto Top
 
Geoffrey
Member Avatar
bury hatchets, keep maps
[ *  *  *  *  * ]
To add on to what Quozzo said, go into the Manage Forum Setting page and click Edit Forum next to your spam forum. Change "Posts increase post count" to No and posts will not increase a user's post count in that forum. :)

No script necessary at all. Enjoy. :)
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Here's a technique that uses AJAX to transfer the topic from a different forum that has post count turned off and the topic link data will transfer to the topic in the forum it was put in so post count won't be counted. The topic will always appear as the first topic in the forum.

Here's what you do:

Admin CP Posted Image Forum Sections Posted Image Create Sections Posted Image Normal Forum

This new forum will be for the spam topic.

Place it where you like, make the forum name whatever you'd like. Change the options to whatever you like, but make 'Posts count towards a user's personal count:' be set to No. Set the Forum Permissions to the Forum Permissions used for the forum that the spam topic is in now. Don't tick View permissions, however, so users won't see the forum from view; you may need to tick View permissions for the group you're in (if only temporarily) so you can find the forum ID. Click 'Create Forum' once you are done.

Move the spam topic to the new forum you created.

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
function addData(current_forum, new_forum, topic_id) {
if (location.href.indexOf('/forum/' + current_forum + '') !== -1) {
$.get(main_url + 'forum/' + new_forum + '', function (data) {
$('td.c_cat-title:has(a[href*="/topic/' + topic_id + '"])', data).parent().insertAfter('table.posts:not(#announcement_list) tbody tr:eq(0)');
});
}
}

addData('CURRENT_FORUM_ID', 'NEW_FORUM_ID', 'TOPIC_ID');
</script>
Change each capitalized text above the ending script tag, the IDs can be retrieved from the URL in the address bar for the specific edits you need to make.

Here's an example: http://s1.zetaboards.com/Cory/forum/1488698/

The Spam Topic is in a different forum that has post count turned off.

If you wanted to use additional JavaScript to make all the data in the topic act as it it's in the old forum, the navigation bar for example, that is certainly possible too.
Offline Profile Goto Top
 
Brendan
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic