PDA

View Full Version : Rename newthread.php


Dj Smuggla
10-13-2011, 08:16 PM
If i was to rename the newthread.php file to something else, will i only have to edit the 'New Thread' button in the forumdisplay template?

Will everything still work, or is there another template i need to edit?

Simon Lloyd
10-13-2011, 09:00 PM
Naturally you would have to edit EVERYTHING that calls or uses newthread.php, a lot of work!, whats your thinking behind doing that?

Dj Smuggla
10-13-2011, 09:09 PM
It's to stop spam bots from posting, i dont want to add captcha.

I can only think of the 'New Thread' button in the forumdisplay template, any other edits i need to do.

kh99
10-13-2011, 09:18 PM
I guess you've searched all phrases and templates, right? Searching the php code, it looks like the only place "newthread.php" appears is in includes/function_online.php, and I think that's only for the message that says what a user is doing, so you may or may not care about that. I can't guarantee that there isn't somewhere that the name is put together by pasting ".php" on the end of a variable or something like that. But I think, like you said, as long as the button works you're probably OK.

Simon Lloyd
10-13-2011, 10:11 PM
It's to stop spam bots from posting, i dont want to add captcha.

I can only think of the 'New Thread' button in the forumdisplay template, any other edits i need to do.
Haven't you implemented any anti-bot measures? are guests allowed to post? what amkes you think that the link for the button won't be crawled sooner or later and posting begins again? if your sites insecure posts can be made via a script which would use datamanager and doesn't use that file.

It would be best for you to actually use some sort of guarding, maybe even make new registrations only able to post in one forum where all posts are moderated, then use the promotion system for all users who have 1 post or more to get moved to the next usergroup who can post anywhere (with permissions you set), that way when they post in the one moderated forum their post count will remain zero until admin or mods moderate the post and accept it, then their post count is one and when the permissions cron runs they'll be promoted and can post :)

That way you haven't added any mods, not added captcha or human verification (which IMHO you should use) and are still protecting your forums :)

Dj Smuggla
10-14-2011, 01:24 PM
Thanks guys for your replys.

@ Simon, I have done this: 'make new registrations only able to post in one forum' & added stopforumspam mod, that stops all the viagra spam :)

Theres also a lot of members that use a multi poster to post their threads to a lot of sites with one click, so im trying to block them aswell. Im pritty shore they've been coded to use newthread.php to post, so thats why i want to rename the file name.