Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   General Business Knowledge (http://www.greenguysboard.com/board/forumdisplay.php?f=10)
-   -   TGPX Question(s) (http://www.greenguysboard.com/board/showthread.php?t=69476)

Greenguy 2018-04-19 09:50 AM

Nothing? |huh Tough crowd |couch|

pc 2018-04-19 10:18 AM

Quote:

Originally Posted by Greenguy (Post 551274)
Nothing? |huh Tough crowd |couch|

Now they all adjusting own templates :)

Greenguy 2018-04-19 10:21 AM

Quote:

Originally Posted by pc (Post 551276)
Now they all adjusting own templates :)

|haha

ArtWilliams 2018-04-19 10:50 AM

This is great. Will you be converting LOR now to TGPX?

Greenguy 2018-04-19 10:56 AM

Quote:

Originally Posted by artwilliams (Post 551279)
This is great. Will you be converting LOR now to TGPX?

Yuppers :) pc's gonna help me with it (meaning he does all the tech stuff & tries to read my mind about how I want things while I do grunt work). That's been the plan for about a week now, so this is me trying to learn how to do all the stuff I've been doing via workarounds for the last year :D

sarettah 2018-04-19 11:47 PM

Quote:

Originally Posted by Greenguy (Post 551274)
Nothing? |huh Tough crowd |couch|

I meant to tell you congrats on fleshing it all out but I got distracted and never made the post :(

Sorry for that.

Very cool that you got it all working.

Greenguy 2018-04-20 05:49 AM

I ran into an issue yesterday |couch|

Greenguy 2018-04-20 09:50 AM

Yesterday I started playing around with this on the Amateur category page of Porn Luv. There's 100 galleries on there & I wanted new galleries 1st, followed by random fillers. I got the new galleries up top, followed by galleries basically loading in the order they were added to the admin, so even though I have this in there for the fillvar galleries:
order=RAND()
reorder=RAND()}


What I think I'm getting is:
order=date_approved
reorder=date_approved}


Which, just so happens to be the default setting for order:
Quote:

order (optional, defaults to date_approved)
I even put the exact coding from the filler_galleries.txt example...same fucking thing |banghead|

I am now convinced that this does not work the way it's intended to & that, instead of using the coding that's in the filler galleries area, it ignores that, gets confused, and just fills in the rest of the galleries with the default "order" command (which, BTW, is optional) of date_approved.

It's very possible that they never noticed this because his example uses "order=date_approved" for the filler galleries, which is what they got, not because they coded it that way, but because it's the default.

OR

Am I just missing something and, as usual, I'm just dumb?

Greenguy 2018-04-20 11:09 AM

I did also try:
getnew=true
allowused=false
But that doesn't work because:
Quote:

getnew (optional, defaults to true)
true or false. Use this value to specify if new galleries should be pulled for display. When this value is set to true, galleries with Approved status will be pulled for display when a Build With New type of build is done. When this value is set to false, galleries that have previously been selected for display from Approved status will be pulled for display.
So I tried both:
age=0
minage=0
Separately & together. Still won't work |banghead| I am out of ideas :(

Toby 2018-04-20 11:42 AM

You have to do it in two sections. First for the new, then for the filler, in order to be able to specify different sort order parameters for the two. That's where the fillvar comes into play for the second section, so that it can compute the number of fill galleries needed based on how many new were found in the first section.

Visibly it will appear to be one section, but it requires two separate sections of code in the template.

Greenguy 2018-04-20 11:48 AM

Quote:

Originally Posted by Toby (Post 551329)
You have to do it in two sections. First for the new, then for the filler, in order to be able to specify different sort order parameters for the two. That's where the fillvar comes into play for the second section, so that it can compute the number of fill galleries needed based on how many new were found in the first section.

Visibly it will appear to be one section, but it requires two separate sections of code in the template.

Isn't that what this is?

Code:



{* Load 52 galleries *}
{galleries
var=$galleries
type=permanent
format=any
getnew=true
allowused=false
description=true
preview=true
amount=52
previewsize=180x180
category=Latina
sponsor=any
order=date_approved DESC
reorder=date_approved DESC}

{* Load filler galleries if 52 galleries were not available in the previous galleries section *}
{galleries
var=$fillergalleries
fillvar=$galleries
type=permanent
format=any
getnew=true
allowused=true
description=true
preview=true
amount=52
previewsize=180x180
category=Latina
sponsor=any
order=RAND()
reorder=RAND()}

{* Place the filler galleries at the end *}
{intermix var=$galleries from=$galleries,$fillergalleries location=end}

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

{insert counter=$counter location=+4 max=48}

{/insert}
{/foreach}


{$gallery.description|htmlspecialchars}


Toby 2018-04-20 12:18 PM

Quote:

Originally Posted by Greenguy (Post 551332)
Isn't that what this is?

Yeah, that matches the example given in the documentation.

All I can figure at this point is that the sort order from the new section is somehow overriding the merged order.

Greenguy 2018-04-20 12:35 PM

Unfortunately, I agree :(


All times are GMT -4. The time now is 03:19 AM.

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