Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Newbie Questions (http://www.greenguysboard.com/board/forumdisplay.php?f=5)
-   -   Help me figure out TGPX? (http://www.greenguysboard.com/board/showthread.php?t=51705)

th3g4me 2009-02-28 07:50 PM

Help me figure out TGPX?
 
I want TGPX to rotate my text links to galleries. This is what I have.

Quote:

{* PULL THE SUBMITTED GALLERIES FROM THE DATABASE *}
{galleries
var=$galleries
type=submitted
format=movies
getnew=true
allowused=true
description=true
preview=false
amount=30
category=MIXED
sponsor=any
order=RAND()
reorder=date_displayed DESC}
{* DISPLAY ALL OF THE GALLERIES *}
{foreach var=$gallery from=$galleries counter=$counter}
{$gallery.date|tdate} {$gallery.description|htmlspecialchars} {$gallery.category|htmlspecialchars}

{/foreach}
As for my galleries.

Permanent 650
Approved 650

The Permanent Holding Period is: 7

To me it seems like im doing it right?

Should I change Type=Submitted to Type=Permanent?

I got this program to rotate my galleries and I cant even get it setup to rotate them properly.. lol

th3g4me 2009-02-28 07:58 PM

Oh no I just did something and made all my galleries go away.. lol

Nymph 2009-02-28 08:02 PM

When you add in your sponsor galleries, put them all into permanent.

The code you are using looks right, except change the submitted to permanent, then run a build with new through the admin.

th3g4me 2009-02-28 08:35 PM

Thanks so much!! I got it to work, now I just need to work on the dates submiitted so they all dont change at once. lol

I was trying to figure this out 3 months ago and got mad and didnt mess with it anymore, but all it took was one little question to get it fixed. :D

Nymph 2009-03-01 12:10 AM

are you just using that one block of code on your page, or are there more?

I have mine set up with numerous blocks, and use the age function so the galleries move from one block to the next daily.

th3g4me 2009-03-01 05:05 AM

I have more than just one, but they all look like what was in my first post. What should I change in what I have on my first post to make it do that?

Nymph 2009-03-01 08:51 AM

there are 2 age variable you can use,

the spanning age variable which gives you a certain number of days for each block:
minage=
maxage=

or you can use the absolute variable for each block
age=

I use the absolute so first block is age=0 for the new galleries, and then age=1 for the next block, and so on down the page.

I don't actually show the date on each individual gallery, rather I date the block itself...I just don't see the need for a lot of useless coding, or text on a page.

th3g4me 2009-03-01 05:22 PM

Hey thanks a lot! Jeremy kept telling me to read the TGPX Documentation but I still couldnt figure it out. At least he sent me a reply I guess.

Thanks again!


All times are GMT -4. The time now is 02:26 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc