GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   TGPX Users, want more SEO friendly gallery URLS like Smart Thumbs? Look here! (https://gfy.com/showthread.php?t=940677)

Tamashi 11-27-2009 05:56 PM

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">
Great, the url's look cool, but I'm getting a 404 Not Found error? The next step is adding one line to your htaccess file, which is supposed to be in every directory that contains tgp pages:

Code:

RewriteRule ^gallery/(.*)$ http://www.yoursite.com/tgpx/click.php?%{QUERY_STRING}
BUT MY CLICK SCRIPT DOES NOT WORK!
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.
You're done :-)

CyberHustler 11-27-2009 06:00 PM

Thanks for sharing.

Tamashi 11-27-2009 06:14 PM

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
RewriteCond %{HTTP_HOST} ^porn\.com$ [NC]
RewriteRule ^(.*)$ http://www.porn.com/$1 [R=301,L]

You create a subfolder "babes" then your redirect will look like this:
Code:

# permanently redirect from non-www domain to www domain
RewriteCond %{HTTP_HOST} ^porn\.com$ [NC]
RewriteRule ^(.*)$ http://www.porn.com/babes/$1 [R=301,L]


awxm 11-27-2009 06:35 PM

Great tip, I've been meaning to look into this for a while. Thanks for posting it here.

bns666 11-27-2009 06:46 PM

nice tips, i might finally give tgpx a try these months since i am an agsql user for years :thumbsup

Tamashi 11-27-2009 07:18 PM

Quote:

Originally Posted by FruitPanda (Post 16593102)
Great tip, I've been meaning to look into this for a while. Thanks for posting it here.

Tried to figure it out for a while too. I love TGPX too much to jump to other software just for more SEO-friendly URLS. So I thought "Let's solve the problem, instead of switching"

Quote:

Originally Posted by bns666 (Post 16593112)
nice tips, i might finally give tgpx a try these months since i am an agsql user for years :thumbsup

JMB Soft is running a holiday discount promotion until december 31st. TGPX only costs $64.95 until then. If you're planning to go for it, it would be a good idea to do it before 2010 if you care about saving money.

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!

brassmonkey 11-28-2009 01:47 PM

thanx 4 the 411

HomerSimpson 11-28-2009 05:48 PM

great tips!!!
will try to apply it later on my site running TGPX...

Tamashi 12-01-2009 02:47 PM

If you crazy about valid html warnings and such, then replace "&" by "&amp;"
Code:

<a href="gallery/{$gallery.description|strtolower|treplace_special::'-'}.html?id={$gallery.gallery_id|urlencode}&amp;u={$gallery.gallery_url|urlencode}" target="_blank">

SEO Expert 12-04-2009 10:29 AM

why dont you post this tip on JMBSOFT forum so they implement it

Quotealex 12-07-2009 04:25 PM

Quote:

Originally Posted by SEO Expert (Post 16614704)
why dont you post this tip on JMBSOFT forum so they implement it

What he says:thumbsup

Max_PuZcash 12-08-2009 06:22 AM

great tip, gonna try it

CPimp 12-23-2009 02:50 AM

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.

brassmonkey 12-31-2009 09:24 AM

your sig is 2 big!

HerPimp 01-02-2010 07:38 AM

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