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 10-05-2015, 05:33 AM   #1
Zug
So Fucking Banned
 
Industry Role:
Join Date: Jun 2004
Location: America
Posts: 109
TGPX Thumb Template Converted to Bootstrap Grid CSS

Hello. I am dumb with the {insert} and {foreach} commands when trying to get TGPX to display thumbs in 3 rows by 6 columns when using with bootstrap grid system.

Can anyone help?

This is the original TGPX code that is generated by the script:
PHP Code:
<!-- START TGPX MIXED PICTURE Gallery Codes -->
<
table align="center" cellpadding="2" border="0">
<
tr>
{* 
Load 18 galleries *}
{
galleries
var=$galleries
preview
=true
type
=any
category
=MIXED
format
=pictures
amount
=18
globaldupes
=true
getnew
=true
allowused
=true
order
=date_approved DESC
reorder
=date_approved DESC}

{* 
Display loaded galleries as thumbnails in a 6 per row format *}
{foreach 
from=$galleries var=$gallery counter=$counter}
<
td><a href="/gallery/click.php?id={$gallery.gallery_id|urlencode}&l=pic-gal-1&u={$gallery.gallery_url|urlencode}title="{$gallery.description|htmlspecialchars} Pictures" target="_blank"><img src="{$gallery.preview_url|htmlspecialchars}alt="{$gallery.description|htmlspecialchars}style="border:1px solid #0000c4;" width="160" height="210" /></a>
<
br /><span class="smallest">({$gallery.thumbnails|htmlspecialchars}) <a href="/gallery/click.php?id={$gallery.gallery_id|urlencode}&l=pic-gal-1&u={$gallery.gallery_url|urlencode}target="_blank" title="Teen Picture Gallery.. {$gallery.clicks|htmlspecialchars} Views">Pictures of {$gallery.tour_title|htmlspecialchars}</a>...<br /></span>
</
td>
{
insert location=+6 counter=$counter max=18}
</
tr><tr>
{/
insert}
{/foreach}
</
tr>
<
tr>
<
td><div style="position: absolute; left: 16px; top: 5px;" class="smallest"><a href="../galleries/" title="Newest Galleries">Galleries Home</aPosted Teen Picture Galleries <b>Page 1</b> | <a href="pictures_page2.php" title="Picture Gallery Page 2">Page 2</a> | <a href="pictures_page3.php" title="Picture Gallery Page 3">Page 3</a> | <a href="pictures_page4.php" title="Picture Gallery Page 4">Page 4</a></div></td>
<
td><br /><div style="position: absolute; right: 16px; bottom: 5px;" class="smallest"><a href="../galleries/" title="Newest Galleries">Galleries Home</aPosted Teen Picture Galleries <b>Page 1</b> | <a href="pictures_page2.php" title="Picture Gallery Page 2">Page 2</a> | <a href="pictures_page3.php" title="Picture Gallery Page 3">Page 3</a> | <a href="pictures_page4.php" title="Picture Gallery Page 4">Page 4</a></div></td>
</
tr>
</
table>
<!-- 
END TGPX MIXED PICTURE Gallery Codes END --> 
This is the code I have that almost works but shows slight indentations on each row:
PHP Code:
<!-- START TGPX MIXED PICTURE Gallery Codes -->
        
<
div class="row">

{* 
Load 18 galleries *}
{
galleries
var=$galleries
preview
=true
type
=any
category
=MIXED
format
=pictures
amount
=18
globaldupes
=true
getnew
=true
allowused
=true
order
=date_approved DESC
reorder
=date_approved DESC}

{* 
Display loaded galleries as thumbnails in a 6 per row format *}
{foreach 
from=$galleries var=$gallery counter=$counter}

<
div class="col-sm-2">
     <
a href="/gallery/click.php?id={$gallery.gallery_id|urlencode}&l=pic-gal-1&u={$gallery.gallery_url|urlencode}title="{$gallery.description|htmlspecialchars} Photos" class="thumbnail home-thumb">
         <
img src="{$gallery.preview_url|htmlspecialchars}alt="{$gallery.description|htmlspecialchars}">
     </
a>
</
div>

{
insert location=+6 counter=$counter max=18}
</
div>
<
div class="row">
{/
insert}
{/foreach}

<!-- 
END TGPX MIXED PICTURE Gallery Codes END --> 
This is the bootstrap code to show thumbs that I am trying to convert to the TGPX code:
PHP Code:
<div class="row">
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic1.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic2.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic3.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic4.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic5.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic6.jpg" alt="title">
                </
a>
            </
div>
        </
div>
        <
div class="row">
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic1.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic2.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic3.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic4.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic5.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic6.jpg" alt="title">
                </
a>
            </
div>
        </
div>
        <
div class="row">
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic1.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic2.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic3.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic4.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="#" class="thumbnail home-thumb">
                    <
img src="images/pic5.jpg" alt="title">
                </
a>
            </
div>
            <
div class="col-sm-2">
                <
a href="info_new.php" class="thumbnail home-thumb">
                    <
img src="images/pic6.jpg" alt="title">
                </
a>
            </
div>
        </
div
A BIG thank you to anyone that can get the code to work. ANY help is appreciated.
Zug is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 10-05-2015, 06:06 AM   #2
Zug
So Fucking Banned
 
Industry Role:
Join Date: Jun 2004
Location: America
Posts: 109

Ha.. I fingered it out. THat was interesting. Thanks anyway.
Zug is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 10-05-2015, 06:24 AM   #3
bns666
Confirmed Fetishist
 
bns666's Avatar
 
Industry Role:
Join Date: Mar 2005
Location: Fetishland
Posts: 11,473
got a working sample online?
__________________
CAM SODASTRIPCHAT
CHATURBATESKYPE SEX CAMS
bns666 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 10-06-2015, 03:52 AM   #4
Zug
So Fucking Banned
 
Industry Role:
Join Date: Jun 2004
Location: America
Posts: 109
Not a live version yet.. Soon though.
Zug is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 10-06-2015, 05:52 AM   #5
Denny
Too lazy to set a custom title
 
Denny's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 17,074
Quote:
Originally Posted by bns666 View Post
got a working sample online?
I would like to see it as well
__________________
Denny is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 10-07-2015, 01:17 AM   #6
Zug
So Fucking Banned
 
Industry Role:
Join Date: Jun 2004
Location: America
Posts: 109
Quote:
Originally Posted by bns666 View Post
got a working sample online?
Nothing special .. pretty simple .. shown here.

But does anybody know how to break a TGPX thumb list into two or more parts on the same page? SO like for example have a section of 1-20 thumbs and then break it to another template showing thumbs 21-40 and so on? I know that it has something to do with pagedupes= and globaldupes= or the pagination .. But not sure what the special trick is. If someone could explain it in an understandable way it would be a great thing! ahaha heh .. Thank you.
Zug is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 10-21-2015, 07:23 PM   #7
Focus
Last of a dying breed.
 
Focus's Avatar
 
Industry Role:
Join Date: Jun 2004
Location: Canada
Posts: 620
Good work mate and good luck with this! I rly love what you did
Focus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 10-22-2015, 04:13 AM   #8
bns666
Confirmed Fetishist
 
bns666's Avatar
 
Industry Role:
Join Date: Mar 2005
Location: Fetishland
Posts: 11,473
Quote:
Originally Posted by Zug View Post
Nothing special .. pretty simple .. shown here.

But does anybody know how to break a TGPX thumb list into two or more parts on the same page? SO like for example have a section of 1-20 thumbs and then break it to another template showing thumbs 21-40 and so on? I know that it has something to do with pagedupes= and globaldupes= or the pagination .. But not sure what the special trick is. If someone could explain it in an understandable way it would be a great thing! ahaha heh .. Thank you.
looks better than most tgps
__________________
CAM SODASTRIPCHAT
CHATURBATESKYPE SEX CAMS
bns666 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 10-22-2015, 04:27 AM   #9
j3rkules
VIP
 
j3rkules's Avatar
 
Industry Role:
Join Date: Jul 2013
Posts: 22,104
Quote:
Originally Posted by Zug View Post
Nothing special .. pretty simple .. shown here.

But does anybody know how to break a TGPX thumb list into two or more parts on the same page? SO like for example have a section of 1-20 thumbs and then break it to another template showing thumbs 21-40 and so on? I know that it has something to do with pagedupes= and globaldupes= or the pagination .. But not sure what the special trick is. If someone could explain it in an understandable way it would be a great thing! ahaha heh .. Thank you.
Very nicely done.
j3rkules is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 10-24-2015, 04:21 AM   #10
Zug
So Fucking Banned
 
Industry Role:
Join Date: Jun 2004
Location: America
Posts: 109

Quote:
Originally Posted by Focus View Post
Good work mate and good luck with this! I rly love what you did
Quote:
Originally Posted by bns666 View Post
looks better than most tgps
Quote:
Originally Posted by jerkules View Post
Very nicely done.
Thank you for the positive feedback. Feel free to sign up for trade to the TGP or the Toplist
Zug 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

Tags
galleries, page, code, tgpx, desc, counter=$counter, display, row, insert, bootstrap, foreach, reorder=date_approved, picture, order=date_approved, allowused=true, format=pictures, globaldupes=true, getnew=true, teen, category=mixed, /foreach, var=$gallery, /insert, location=+6, from=$galleries



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.