Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 11-27-2009, 05:56 PM   #1
Tamashi
Confirmed User
 
Tamashi's Avatar
 
Join Date: Oct 2009
Location: 565-013-936
Posts: 728
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 :-)
__________________
++ SIGNATURE FOR SALE ++
ICQ: 565-013-936
Tamashi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-27-2009, 06:00 PM   #2
CyberHustler
So Fucking Banned
 
Industry Role:
Join Date: Feb 2006
Posts: 25,214
Thanks for sharing.
CyberHustler is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-27-2009, 06:14 PM   #3
Tamashi
Confirmed User
 
Tamashi's Avatar
 
Join Date: Oct 2009
Location: 565-013-936
Posts: 728
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]
__________________
++ SIGNATURE FOR SALE ++
ICQ: 565-013-936
Tamashi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-27-2009, 06:35 PM   #4
awxm
Confirmed User
 
Industry Role:
Join Date: Aug 2009
Posts: 819
Great tip, I've been meaning to look into this for a while. Thanks for posting it here.
__________________
.
awxm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-27-2009, 06:46 PM   #5
bns666
Confirmed Fetishist
 
bns666's Avatar
 
Industry Role:
Join Date: Mar 2005
Location: Fetishland
Posts: 11,521
nice tips, i might finally give tgpx a try these months since i am an agsql user for years
__________________
CAM SODASTRIPCHAT
CHATURBATEX LOVE CAM
bns666 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-27-2009, 07:18 PM   #6
Tamashi
Confirmed User
 
Tamashi's Avatar
 
Join Date: Oct 2009
Location: 565-013-936
Posts: 728
Quote:
Originally Posted by FruitPanda View Post
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 View Post
nice tips, i might finally give tgpx a try these months since i am an agsql user for years
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!
__________________
++ SIGNATURE FOR SALE ++
ICQ: 565-013-936

Last edited by Tamashi; 11-27-2009 at 07:20 PM..
Tamashi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-28-2009, 01:47 PM   #7
brassmonkey
Pay It Forward
 
brassmonkey's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 76,946
thanx 4 the 411
__________________
TRUMP 2025 KEKAW!!! - Support The Laken Riley Act!!!
END DACA - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com
brassmonkey is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 11-28-2009, 05:48 PM   #8
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
great tips!!!
will try to apply it later on my site running TGPX...
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 12-01-2009, 02:47 PM   #9
Tamashi
Confirmed User
 
Tamashi's Avatar
 
Join Date: Oct 2009
Location: 565-013-936
Posts: 728
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">
__________________
++ SIGNATURE FOR SALE ++
ICQ: 565-013-936
Tamashi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 12-04-2009, 10:29 AM   #10
SEO Expert
So Fucking Banned
 
Join Date: Oct 2009
Posts: 428
why dont you post this tip on JMBSOFT forum so they implement it
SEO Expert is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 12-07-2009, 04:25 PM   #11
Quotealex
Confirmed User
 
Quotealex's Avatar
 
Join Date: Sep 2001
Location: The Global Digerati Village
Posts: 6,265
Quote:
Originally Posted by SEO Expert View Post
why dont you post this tip on JMBSOFT forum so they implement it
What he says
Quotealex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 12-08-2009, 06:22 AM   #12
Max_PuZcash
Confirmed User
 
Max_PuZcash's Avatar
 
Join Date: Nov 2009
Posts: 575
great tip, gonna try it
__________________

---------------------------------------------------------
www.puZcash.com
ICQ: 575610973
Max
Max_PuZcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 12-23-2009, 02:50 AM   #13
CPimp
Confirmed User
 
CPimp's Avatar
 
Industry Role:
Join Date: Aug 2009
Posts: 2,346
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.
__________________
three 997 three 55 three 1 ← That's my ICQ. Contact me there. Thanks.
CPimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 12-31-2009, 09:24 AM   #14
brassmonkey
Pay It Forward
 
brassmonkey's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 76,946
your sig is 2 big!
__________________
TRUMP 2025 KEKAW!!! - Support The Laken Riley Act!!!
END DACA - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com
brassmonkey is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 01-02-2010, 07:38 AM   #15
HerPimp
Confirmed User
 
HerPimp's Avatar
 
Industry Role:
Join Date: Mar 2006
Location: Earth
Posts: 1,197
Thanks for the heads up.
__________________
HerPimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.