Greenguy's Board


Go Back   Greenguy's Board > Newbie Questions
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2009-02-28, 07:50 PM   #1
th3g4me
Trying is the first step towards failure
 
th3g4me's Avatar
 
Join Date: Feb 2004
Posts: 121
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} <a href="{$gallery.gallery_url|htmlspecialchars}" target="_blank">{$gallery.description|htmlspecialchars}</a>&nbsp;{$gallery.category|htmlspecialchars}<br />
{/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
__________________
I am not important enough to have a signature.
-Me
th3g4me is offline   Reply With Quote
Old 2009-02-28, 07:58 PM   #2
th3g4me
Trying is the first step towards failure
 
th3g4me's Avatar
 
Join Date: Feb 2004
Posts: 121
Oh no I just did something and made all my galleries go away.. lol
th3g4me is offline   Reply With Quote
Old 2009-02-28, 08:02 PM   #3
Nymph
Get me!
 
Nymph's Avatar
 
Join Date: Jan 2009
Location: Lower Alabama-The Redneck Riviera
Posts: 677
Send a message via ICQ to Nymph Send a message via Yahoo to Nymph
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.
Nymph is offline   Reply With Quote
Old 2009-02-28, 08:35 PM   #4
th3g4me
Trying is the first step towards failure
 
th3g4me's Avatar
 
Join Date: Feb 2004
Posts: 121
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.
th3g4me is offline   Reply With Quote
Old 2009-03-01, 12:10 AM   #5
Nymph
Get me!
 
Nymph's Avatar
 
Join Date: Jan 2009
Location: Lower Alabama-The Redneck Riviera
Posts: 677
Send a message via ICQ to Nymph Send a message via Yahoo to Nymph
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.
Nymph is offline   Reply With Quote
Old 2009-03-01, 05:05 AM   #6
th3g4me
Trying is the first step towards failure
 
th3g4me's Avatar
 
Join Date: Feb 2004
Posts: 121
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?
th3g4me is offline   Reply With Quote
Old 2009-03-01, 08:51 AM   #7
Nymph
Get me!
 
Nymph's Avatar
 
Join Date: Jan 2009
Location: Lower Alabama-The Redneck Riviera
Posts: 677
Send a message via ICQ to Nymph Send a message via Yahoo to Nymph
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.
Nymph is offline   Reply With Quote
Old 2009-03-01, 05:22 PM   #8
th3g4me
Trying is the first step towards failure
 
th3g4me's Avatar
 
Join Date: Feb 2004
Posts: 121
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!
th3g4me is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:52 AM.


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