Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#136 2006-09-22 02:54:53
Re: tru_tags: A tagging plugin for textpattern
I’m not very savvy about rewrite rules, actually – I just pieced together enough to get tru_tags to work. I know that there’s issues with using them from .htaccess files, so it may be that the log levels don’t work from there. You don’t have to specify the rewrite log file, though – if you don’t, the messages just go to your normal log. You might try taking out that line and seeing what you get.
You might also try checking with the Dreamhost tech support – it may be some issue caused by a shared apache install.
I’m going to be offline for a few days. I’ll check back in next week. I hope you figure it out, though, before then!
Offline
#137 2006-09-25 23:15:42
Re: tru_tags: A tagging plugin for textpattern
I tried downloading a fresh official 4.0.3 as I figured it could be related to the latest 4.0.4 preview posted by Sencer, which I had installed, and pretty much forgotten about.
Rightfully so, now it works! I’m now the proud owner of a tag-cloud;) Now I just need a lot of content;)
Thank you for developing such a nice plugin. It fits what I need perfectly. And thanks for your help in solving my problems;-)
Offline
#138 2006-09-29 21:44:25
- whick
- Member
- Registered: 2006-07-08
- Posts: 12
Re: tru_tags: A tagging plugin for textpattern
Hey truist i love your plugin, but.. im having an 404 error when i try to put clean urls on. I’m probably making some stupid mistake because I don’t understand php really.
Textpattern version: 4.0.3 (r1188)
$path_to_site: /home/httpd/vhosts/whichway.nl/subdomains/whick/httpdocs
Path to textpattern: /home/httpd/vhosts/whichway.nl/subdomains/whick/httpdocs/textpattern
link modus: section_title
open_basedir: /home/httpd/vhosts/whichway.nl/subdomains/whick/httpdocs:/tmp
tmp dir: /home/httpd/vhosts/whichway.nl/subdomains/whick/httpdocs/textpattern/tmp
Site URL: whick.whichway.nl
PHP version: 4.3.11
Server: Apache/2.0.51 (Fedora)
Apache version: Apache/2.0.51 (Fedora)
.htaccess:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
#This path should match the relative url of your Textpattern install
RewriteBase /home/httpd/vhosts/whichway.nl/subdomains/whick/httpdocs/
#If you’re using a section other than “tag”, change the following two rules accordingly
RewriteRule ^tag/([^/]+)$ tag/$1/ [R,L]
RewriteRule ^tag/(.+)/$ ?s=tag&t=$1
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
Thats what i’ve got am i doing something wrong?
Offline
#139 2006-10-22 04:30:04
Re: tru_tags: A tagging plugin for textpattern
Hey whick – did you ever sort this out? I lost track of your question, and never answered it. The only thing that looks wrong to me depends on how you copied in your .htaccess file. If what’s showing there really does match the content of your .htaccess file, then your “RewriteBase” line needs to be something like “/” (e.g. the web-visible path on your server to your txp install) rather than the filesystem path.
Offline
#140 2006-10-22 21:33:26
- whick
- Member
- Registered: 2006-07-08
- Posts: 12
Re: tru_tags: A tagging plugin for textpattern
That’s it!
Thank you very much for your really nice plugin and help!
Offline
#141 2006-10-26 03:39:24
Re: tru_tags: A tagging plugin for textpattern
So I’ve had the plugin working for awhile now, but just decided to enable clean URLs. I’m pretty sure I did as all the directions said, but whenever try to get a tag page with the clean url I get redirected to /tag/. Here’s what my apache log says:
146.57.92.43 - - [26/Oct/2006:03:34:24 +0000] "GET /tag/language/ HTTP/1.1" 301 20 "http://station11.net/tag/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.9 (KHTML, like Gecko) Safari/419.3"
146.57.92.43 - - [26/Oct/2006:03:34:25 +0000] "GET /tag/ HTTP/1.1" 200 4155 "http://station11.net/tag/" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.9 (KHTML, like Gecko) Safari/419.3"
Here are the rewrite rules in .htaccess
# These are for the tru_tags plugin
RewriteBase /
RewriteRule ^tag/([^/]+)$ /tag/$1/ [R,L]
RewriteRule ^tag/(.+)/$ /?s=tag&t=$1
I’m just installed v1.9, am on 4.0.4 for textpattern itself.
Offline
#142 2006-10-26 14:18:21
Re: tru_tags: A tagging plugin for textpattern
DirectoryIndex index.php
RewriteBase /
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
#If you're using a section other than "tag", change the following two rules accordingly
RewriteRule ^tag/([^/]+)$ tag/$1/ [R,L]
RewriteRule ^tag/(.+)/$ ?s=tag&t=$1
RewriteRule ^(.*) index.php
</IfModule>
I see different slashes in your example.
Last edited by merz1 (2006-10-26 14:20:57)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#143 2006-10-26 14:53:25
Re: tru_tags: A tagging plugin for textpattern
Pasted in yours, still the same thing. The extra slashes in mine are redundant because there’s the RewriteBase /.
If I ad d an [R,L] onto the second line, I get redirected from /tag/wow/ to /?s=tag&t=wow, which is the right page. But it’s an http redirect, I don’t want that. Without the [R,L] shouldn’t the page just show up at the clean url?
Offline
#144 2006-10-26 15:07:55
Re: tru_tags: A tagging plugin for textpattern
Sorry misterk, I have no idea what is wrong on your server. Maybe you should run extended diagnostics and/or phpinfo?
I can only confirm hat the above .htaccess is working perfectly for me.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#145 2006-10-27 00:42:03
Re: tru_tags: A tagging plugin for textpattern
Just looking at moving some sites to 4.0.4 that include this plugin. Has any thought been put to using the new feed body callbacks to add tags in the feeds rather then using some of the more “hacky” file editing posted earlier on in the thread? Is it planned for a future update or should I start looking at doing that myself?
Last edited by placenamehere (2006-10-27 00:42:44)
Site: placenamehere.com
Microformat Plugin: pnh_mf
Offline
#146 2006-10-27 03:58:02
- shanghai
- Member
- Registered: 2006-05-09
- Posts: 20
Re: tru_tags: A tagging plugin for textpattern
When using the .htaccess below I get a Internal Server error, and when not using it I get “Documents not found, “http://domain.net/display/tag/bird”. I have changed the value form 0 to 1 in tru_tags, but still not working?
I am using this .htaccess:
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /x
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
#This path should match the relative url of your Textpattern install
RewriteBase /x
#If you’re using a section other than “tag”, change the following two rules accordingly
RewriteRule ^tag/([^/]+)$ tag/$1/ [R,L]
RewriteRule ^tag/(.+)/$ ?s=tag&t=$1
#php_value register_globals 0
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
Offline
#147 2006-10-30 12:57:47
Re: tru_tags: A tagging plugin for textpattern
Any idea why:
txp:tru_tags_handler break=” “ setsizes=“0”
In testing mode and viewing domain.com/tag/sometag/ gives those errors:
tag_error <txp:tru_tags_handler break=” “ setsizes=“0” /> -> Textpattern Notice: unknown_attribute: break on line 582
tag_error <txp:tru_tags_handler break=” “ setsizes=“0” /> -> Textpattern Notice: unknown_attribute: setsizes on line 582
In the same time this does not give errors:
txp:tru_tag_cloud break=” “ setsizes=“0”
But it does not work properly – clicking a tag does not show the list of all articles with that tag.
Of course, using Live mode, instead of Testing, sorts the problem, but anyway…
Offline
#148 2006-11-13 02:41:30
Re: tru_tags: A tagging plugin for textpattern
Sorry for the long absence – I hadn’t realized that these posts were here. For some reason I didn’t get an email about them.
misterk – can you post your whole .htaccess file? Just showing a subset of it leads me to believe that it’s a problem with whatever other stuff you have in that file. I don’t really know a lot about how rewrite rules work, but the rules I came up with are meant to work on top of txp’s default rewrite rules, so if you’ve changed those I’m not sure what might be going wrong.
placenamehere – I haven’t really had a chance to look over the 4.0.4 code, but I will, for sure! If there’s a way to get tags into the RSS feeds, I’ll build it :) If you’ve started anything, please feel free to send it my way.
shanghai – your “RewriteBase /x” has me a little nervous – does your default url really look like “http://www.mysite.com/x” ??? I’d guess that the “x” either shouldn’t be there, or that you should have a trailing slash after it (“RewriteBase /x/”).
Boby – interesting find. To make sure I’m understanding correctly – in ‘Live’ mode you’re not having any problem, but in ‘Testing’ mode you are? I’ll dig into it.
Offline
#149 2006-11-13 13:30:00
Re: tru_tags: A tagging plugin for textpattern
I just haven’t had any time.. i still have a plugin or two to finish checking on my own site… so I haven’t made any attempt to move the “hack” into your (or other plugin) but just migrated the hack to 4.0.4 like I have with a few other alterations.
Here’s where I saw the new atom_entry and rss_entry callbacks mentioned…
Last edited by placenamehere (2006-11-13 13:30:30)
Site: placenamehere.com
Microformat Plugin: pnh_mf
Offline
#150 2006-11-13 21:19:54
Re: tru_tags: A tagging plugin for textpattern
pnh: You have a typo in the signature (it’s http://placenamehere.com/TXP/pnh_mf/)
Nathan: Yes! Tags in feeds pleeeeeaaaase :)
I.e. Technorati is not fetching the tags from my site. They just take the excerpt or pure body and run … T. takes the atom feed categories as tags.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline