![]() |
TGPX Users, want more SEO friendly gallery URLS like Smart Thumbs? Look here!
Hey Hey
If you've been using the TGPX software by JMB Soft then you know the generated gallery URL's don't always look too pretty. After investigating a couple of website who are using Smart Thumbs, I thought I'd look for a way to get Smart-Thumbs-like SEO-friendly URLS. It took some time, but got it figured together with Jemery after half-stealing the Smart Thumbs codes. This rewrite is also perfectly working with the Click.php script. Requirements: - mod_rewrite enabled on your server - possibly a text editor - 5 minutes of your time instead of watching porn So Yeah, how? First we'll start off by making a change in your TGP templates. Completely remove your old gallery URL code, and replace it by: Code:
<a href="gallery/{$gallery.description|strtolower|treplace_special::'-'}.html?id={$gallery.gallery_id|urlencode}&u={$gallery.gallery_url|urlencode}" target="_blank"> Code:
RewriteRule ^gallery/(.*)$ http://www.yoursite.com/tgpx/click.php?%{QUERY_STRING} Code:
Replace http://www.yoursite.com/tgpx/click.php in your .htaccess file with the full URL to the click.php script on your server. |
Thanks for sharing.
|
If done correctly, it will work. However, feel free to contact me on ICQ (565-013-936) if you encounter any problems and I'll happily help you out.
An additional note for the .htaccess files to work in subfolders is that you will have to edit 301 redirects to match the subfolder, or it will return you to the main page. Let's say your website is porn.com and your htaccess file looks like this: Code:
# permanently redirect from non-www domain to www domain Code:
# permanently redirect from non-www domain to www domain |
Great tip, I've been meaning to look into this for a while. Thanks for posting it here.
|
nice tips, i might finally give tgpx a try these months since i am an agsql user for years :thumbsup
|
Quote:
Quote:
The above links are referrals. Although it's absolutely not required to follow them in order to get the promotional discount, I would be grateful if you did. Good luck either way! |
thanx 4 the 411
|
great tips!!!
will try to apply it later on my site running TGPX... |
If you crazy about valid html warnings and such, then replace "&" by "&"
Code:
<a href="gallery/{$gallery.description|strtolower|treplace_special::'-'}.html?id={$gallery.gallery_id|urlencode}&u={$gallery.gallery_url|urlencode}" target="_blank"> |
why dont you post this tip on JMBSOFT forum so they implement it
|
Quote:
|
great tip, gonna try it
|
LOL damnit, I spent a half hour looking for this because I thought it was FOR smart thumbs, not tgpx... Oh well. Found it on google after many failed searches on here.
|
your sig is 2 big!
|
Thanks for the heads up.
|
All times are GMT -7. The time now is 12:36 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc