TGPX Users, want more SEO friendly gallery URLS like Smart Thumbs? Look here!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tamashi
    Confirmed User
    • Oct 2009
    • 728

    #1

    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
  • CyberHustler
    Masterbaiter
    • Feb 2006
    • 28750

    #2
    Thanks for sharing.
    “If you can convince the lowest white man he’s better than the best colored man, he won’t notice you’re picking his pocket. Hell, give him somebody to look down on, and he’ll empty his pockets for you.”

    Comment

    • Tamashi
      Confirmed User
      • Oct 2009
      • 728

      #3
      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

      Comment

      • awxm
        Confirmed User
        • Aug 2009
        • 819

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

        Comment

        • bns666
          Confirmed Fetishist
          • Mar 2005
          • 11555

          #5
          nice tips, i might finally give tgpx a try these months since i am an agsql user for years
          CAM SODASTRIPCHAT
          CHATURBATEX LOVE CAM

          Comment

          • Tamashi
            Confirmed User
            • Oct 2009
            • 728

            #6
            Originally posted by FruitPanda
            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"

            Originally posted by bns666
            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!
            Last edited by Tamashi; 11-27-2009, 05:20 PM.
            ++ SIGNATURE FOR SALE ++
            ICQ: 565-013-936

            Comment

            • brassmonkey
              Pay It Forward
              • Sep 2005
              • 77397

              #7
              thanx 4 the 411
              TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
              DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com

              Comment

              • HomerSimpson
                Too lazy to set a custom title
                • Sep 2005
                • 13826

                #8
                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:

                Comment

                • Tamashi
                  Confirmed User
                  • Oct 2009
                  • 728

                  #9
                  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

                  Comment

                  • SEO Expert
                    So Fucking Banned
                    • Oct 2009
                    • 428

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

                    Comment

                    • Quotealex
                      Confirmed User
                      • Sep 2001
                      • 6265

                      #11
                      Originally posted by SEO Expert
                      why dont you post this tip on JMBSOFT forum so they implement it
                      What he says

                      Comment

                      • Max_PuZcash
                        Confirmed User
                        • Nov 2009
                        • 575

                        #12
                        great tip, gonna try it

                        ---------------------------------------------------------
                        www.puZcash.com
                        ICQ: 575610973
                        Max

                        Comment

                        • CPimp
                          Confirmed User
                          • Aug 2009
                          • 2346

                          #13
                          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.

                          Comment

                          • brassmonkey
                            Pay It Forward
                            • Sep 2005
                            • 77397

                            #14
                            your sig is 2 big!
                            TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
                            DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com

                            Comment

                            • HerPimp
                              Confirmed User
                              • Mar 2006
                              • 1197

                              #15
                              Thanks for the heads up.

                              Comment

                              Working...