View Full Version : Delete comment code from template
joey dee
04-06-2007, 01:55 PM
Hey Folks ;)
When I disable the comment in - GLOBAL COMMENT SETTINGS - DISABLE COMMENTS -
well the comments still show in my admin "COMMENTS" is there a way to completely delete the comment code? I tried to delete the functions_comment.php in the includes but only to realize that I need that in order for the photoblog to work :(
So what can I do to completely delete the comments on my the photoblog (im talking about the code itself) because i think these spam bots read the code on the site and nail me with bunch of spam.
my best,
-JOEY
Dennis
04-06-2007, 02:29 PM
If you have disabled comments you CAN NOT make any comment. They are not saved in the database. No matter if you have the commentform on your site or not. If people fill that in, they get a message commenting is not allowed.
What does happen is some spambot inject the variables in our script. If you really don't wanna use comments, enable the token protection but don't place the <TOKEN> tag in the form
Now all comments will get rejected for the whole site.
joey dee
04-07-2007, 03:08 PM
What does happen is some spambot inject the variables in our script. If you really don't wanna use comments, enable the token protection but don't place the <TOKEN> tag in the form
Now all comments will get rejected for the whole site.
Schon,
I enabled the Token in my Admin Spam control - and that's it? Because I do not know which file to check to see if TOKEN tag is allready set up in there for me to delete.
-JOEY
dhdesign
04-07-2007, 03:38 PM
Check in comment_template.html for the template you are using, look for the <TOKEN> tag, then delete it.
joey dee
04-08-2007, 03:00 PM
Check in comment_template.html for the template you are using, look for the <TOKEN> tag, then delete it.
My template does not have a comment_template.html
I only have, image_template, browse_template, about_template (here's the snapshot just incase)
http://img180.imageshack.us/img180/5984/untitledfc2.jpg
However in my image_template (which is the index.html) here's what I found that looks like i can delete part of it.
<div class="stretcher"><div id="form_container"><form method="post" action="index.php?x=save_comment" name="commentform" accept-charset="UTF-8">
I guess I can delete the save_comment???
hope this helps mate,
my best,
-JOEY
jaywilliams
04-08-2007, 04:24 PM
If you want to remove your comment form, you will need to remove whole "stretcher" div. (And its including tags)
And in your case, the form is located in the image_template.html file.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.