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 2013-07-11, 07:04 AM   #1
Pagan
Perverted Empress
 
Pagan's Avatar
 
Join Date: Feb 2005
Location: Finland
Posts: 4,668
Question TGPx Question

I've been searching for this for a while now, and really getting no where but confused. I run all of my link lists using TGPx. I've been wanting to add an "Updated" or "New" icon on the main pages next to the categories that have been updated. It would also be cool to have that "New" show on the actual listing as well. Any hints or clues?

Thanks much for the help!
__________________
So, who sprinkled all that Bitchy dust?
Pagan is offline   Reply With Quote
Old 2013-07-11, 08:20 AM   #2
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,779
Send a message via ICQ to Greenguy
I've wondered if there was a way to do this on Sunshine's Lesbians Network, so I hope someone has the answer as well
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Old 2013-07-11, 09:07 AM   #3
pc
Shift Out / X-On
 
pc's Avatar
 
Join Date: Jul 2007
Location: unknown
Posts: 2,298
Send a message via ICQ to pc
There is way. Im away from my laptop but tonight ill give you an update unless someone beat me to it.
pc is offline   Reply With Quote
Old 2013-07-11, 04:19 PM   #4
pc
Shift Out / X-On
 
pc's Avatar
 
Join Date: Jul 2007
Location: unknown
Posts: 2,298
Send a message via ICQ to pc
So inside {foreach} statement for listings like this
Code:
{foreach from=$galleries var=$gallery counter=$counter} ...
on category pages or any other pages just paste this:
Code:
{if $gallery.date_added > time() - 604800} New {/if}
where:
$gallery.date_added The date and time that the gallery was added to the database
$gallery.date_approved The date and time that the gallery was approved
$gallery.date_displayed The date and time that the gallery was selected for display

and for the index page I'm not sure if this will work but try to play with something like this:

pull all categories from db:

Code:
{categories var=$categories order=name}

{assign var=$startswith value='ZZ'}
{foreach var=$c from=$categories counter=$counter}
{if $c.name[0] != $startswith}
{assign var=$startswith value=$c.name[0]}
<b>{$c.name[0]|htmlspecialchars}</b>

{/if}
<a href="{$c.page_url|htmlspecialchars}">{$c.name|htmlspecialchars}</a>

now insert here foreach code for pulling galleries from one category that you have on your category pages and instead of url , keywords and description just add this inside foreach 
{if $gallery.date_added > time() - 604800} New {/if}

{/foreach}
I dont have my tgpx installed but from what I remember it was something like this.
pc is offline   Reply With Quote
Old 2013-07-12, 04:42 AM   #5
Jeremy82
You can now put whatever you want in this space :)
 
Jeremy82's Avatar
 
Join Date: Oct 2010
Posts: 988
__________________
FeetSexVids.com
Jeremy82 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 03:42 AM.


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