Removing Trackbacks (again!)

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

judebert wrote:Well, not quite that bad. Just delete the file from templates_c. If it causes any further trouble, delete everything in templates_c.

Serendipity will use the files in the default/ directory if there's no such file in the current template directory. Rather than modifying the default/entries.tpl (and maybe messing up some other template if you ever want to change), we ususally recommend copying default/entries.tpl to {your template}/entries.tpl and modifying it there.
Ok I have a couple of questions then. If I do that, how do I remove trackbacks then? I've already modified the entries.tpl file in the templates_c directory (for another customization, see here for another thread in which you helped me). Everything seems to be running fine, and I do NOT intend on changing templates anytime soon. There are a whole bunch of files in the templates_c directory right now. You're saying I should delete the entire contents of the directory? I do not see another entries.tpl file ANYWHERE other than the one in the templates_c directory.

Just to experiement I removed all the files in templates_c, and now my sticky posting text removal customization (modified entries.tpl file) is gone. I put the new entries.tpl file in the regular template directory of the template I am using (chalkboard) and it didn't change anything. :(

When you say "default", do you mean the regular "templates" directory? (not templates_c) Sorry, I've noticed a lot of posts here assume you have a certain amount of knowledge but I just need it spelled out a little better. ;) Thanks and sorry to be a pest. :oops:

jude: If you don't mind, I have a small off topic question I thought you could answer as well. Regarding mod_rewrite. I have it turned on, but I had to turn it off the other day for something and the formatting of my blog was all messed up, like the template disappeared. What is this? Is it because once you use mod_rewrite you cannot go back to the default apache error handling setting? I intend to leave it set to mod_rewrite, just wondering why it would do that.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Sorry for editing your post in first place - I did it by accident. :))
Ok I have a couple of questions then. If I do that, how do I remove trackbacks then? I've already modified the entries.tpl file in the templates_c directory (for another customization, see here for another thread in which you helped me).
As I said: NEVER EDIT FILES IN TEMPLATES_C! :-)

Delete all your files in templates_c. They are only cached files. Then copy the entries.tpl from the default/ directory to your template directory. There you edit the entries.tpl file to strip the trackback code as noted earlier in this thread.

"templates/default/entries.tpl" MUST exist for you, I'm absolutely positive - it's in the serendipity release files. :)

All the customizations you did to the entries.tpl file must take place in the templates directory, not templates_c. So you must restore your customization in that entries.tpl file of your template directory.
jude: If you don't mind, I have a small off topic question I thought you could answer as well. Regarding mod_rewrite. I have it turned on, but I had to turn it off the other day for something and the formatting of my blog was all messed up, like the template disappeared. What is this? Is it because once you use mod_rewrite you cannot go back to the default apache error handling setting? I intend to leave it set to mod_rewrite, just wondering why it would do that.
Did you disable mod_rewrite by going to the s9y admin interface and set "URL Rewriting" to "None"? This is the only way to do it. Editing your .htaccess file and removing the rewriteRules is the wrong way to do it, because s9y will still think you're having url rewriting enabled...?

Once you set URL rewriting to NONE or Apache Errodocs, your .htaccess file should no longer have the rewriteRules there, and your template should work. If it doesn't work, could you please post your .htaccess and that blog's URL here?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

garvinhicking wrote:So you must restore your customization in that entries.tpl file of your template directory.
Excellent! Got it! Thank you so much problem solved!
garvinhicking wrote:Did you disable mod_rewrite by going to the s9y admin interface and set "URL Rewriting" to "None"? This is the only way to do it. Editing your .htaccess file and removing the rewriteRules is the wrong way to do it, because s9y will still think you're having url rewriting enabled...?

Once you set URL rewriting to NONE or Apache Errodocs, your .htaccess file should no longer have the rewriteRules there, and your template should work. If it doesn't work, could you please post your .htaccess and that blog's URL here?
I had to briefly disable mod_rewrite to allow Google to view an html file for their sitemaps program. I have since turned mod_rewrite back on. I did this not by editing the htaccess file but through the administration panel. I changed it to "use apache errorhandling" in order to let google read the html file. I checked my blog (link in sig) and the template was gone and the page was not formatted and was white in color (no template). When I enabled mod_rewrite again in the admin panel everything was back to normal.

I guess my question is more academic in nature. Why did it do this when I turned mod_rewrite off?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
I guess my question is more academic in nature. Why did it do this when I turned mod_rewrite off?
Hm, the only explanation I would have is that maybe your host doesn't allow 404 ErrorDoc overwritings, and only supports mod_Rewrite?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PerfectCr
Regular
Posts: 90
Joined: Mon Nov 21, 2005 2:21 am
Contact:

Post by PerfectCr »

garvinhicking wrote:Hi!
I guess my question is more academic in nature. Why did it do this when I turned mod_rewrite off?
Hm, the only explanation I would have is that maybe your host doesn't allow 404 ErrorDoc overwritings, and only supports mod_Rewrite?

Best regards,
Garvin
I'll play around with it, if only to gain knowledge. ;)
Post Reply