Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   TGP Discussions (http://www.greenguysboard.com/board/forumdisplay.php?f=14)
-   -   Autogallery Pro Help (http://www.greenguysboard.com/board/showthread.php?t=37878)

rachelo 2007-01-30 08:50 AM

Autogallery Pro Help
 
How do you get a text listing on two columns from your permanent galleries? For some reason I have a hard time with this.

I want to create some archive pages and have a text list of galleries on two columns (not thumbnails).|banghead|

Any help is much appreciated.

Toby 2007-01-30 09:30 AM

First, why are you using permanent galleries to build archives, rather than the archived galleries in your database?

Baxter 2007-01-30 10:13 AM

you mean like this?

PHP Code:

<table align="center">
<
tr>
<
td>
<%
PERMANENT
TYPE Text
CATEGORY Mixed
AMOUNT 50
HTML Text
%>
</
td>
<
td width="100"></td>
<
td>
<%
PERMANENT
TYPE Text
CATEGORY Mixed
AMOUNT 50
HTML Text
%>
</
td>
</
tr>
</
table


Baxter 2007-01-30 10:14 AM

Quote:

Originally Posted by Toby (Post 328370)
First, why are you using permanent galleries to build archives, rather than the archived galleries in your database?

he might be just starting his tgp and needs to fillit with stuff so its not empty...i do it like that as well much faster :)

rachelo 2007-01-30 12:47 PM

Quote:

Originally Posted by Toby (Post 328370)
First, why are you using permanent galleries to build archives, rather than the archived galleries in your database?

Well, my TGP is not really live right now and all the galleries are mine, or sponsor galleries so I was thinking to keep them aroud.

Is that a bad idea?

rachelo 2007-01-30 12:56 PM

Baxter, for some reason every link is a column now.
I just did a copy paste from the code you posted.

Toby 2007-01-30 01:12 PM

Quote:

Originally Posted by rachelo (Post 328465)
Well, my TGP is not really live right now and all the galleries are mine, or sponsor galleries so I was thinking to keep them aroud.

Is that a bad idea?

It's just more difficult to work with, since some of the template functions don't work with permanent galleries. Baxter's solution is the only one I can think of for two columns of permanent galleries.

Your archived galleries won't go away, so I don't see any real advantage to using permanent unless as Baxter suggests you don't have enough galleries to fill both your main pages and the archives.

Here's the AGP code that I use to get two columns on my archives. It fills both columns at the same time, so if you run out of galleries in a category both columns come out the same length if even number of galleries, or left column 1 longer if an odd number.
Code:

<%TEMPLATE
NAME Text
HTML ##Description## (##Thumbnails##)
%>

and within the page
Code:


 
<%GALLERIES
TYPE Text
CATEGORY {insert category name}
AMOUNT 200
HTML Text

INSERT
{
    LOCATION +1
    HTML
}

INSERT
{
    LOCATION +2
    HTML
}
INSERT
{
    LOCATION +2
    HTML
}

INSERT
{
    LOCATION +1
    HTML

}
%>
 


Toby 2007-01-30 01:17 PM

Quote:

Originally Posted by rachelo (Post 328467)
Baxter, for some reason every link is a column now.
I just did a copy paste from the code you posted.

Your TEMPLATE for Text probably contains TD tags

rachelo 2007-01-30 01:50 PM

Thanks for all the help.
Toby: I did a copy paste and I get nothing. I replaced {insert category name} with Mixed.
Baxter: It looks like that code works now.

I just made a clean tgp.html with nothing but the codes you posted here.

I guess I will just keep playing with it.

Toby 2007-01-30 01:58 PM

Quote:

Originally Posted by rachelo (Post 328481)
Thanks for all the help.
Toby: I did a copy paste and I get nothing. I replaced {insert category name} with Mixed

The code I posted would need to be used with an archive page per your AGP setup, such as {cat_name}.html.

rachelo 2007-01-30 02:04 PM

OK , thanks Toby

I think I got it now. Maybe I should spend some time learning php and pearl:)

Toby 2007-01-30 02:20 PM

PHP is useful, but not necessary for using AGP. I tried to teach myself Perl, ended up doing alot of swearing.

rachelo 2007-01-31 07:16 AM

I am so screwed up, I totally messed up my tgp.tpl,|banghead| any one knows where to get the original one. I think I need a copy and I have to start over.|badidea|

Also all my galleries are Archived even new ones I just imported today.
Any ideas?

Thanks|bow|

Toby 2007-01-31 08:00 AM

There's a template validator in the JMB Owners Lounge. That will help you find the errors in your template.

When the main tgp template failed to build any galleries it archived all the approved galleries. You'll have to manually set them back to approved before you do your next rebuild after you fix your tgp.tpl


%>
Code:

<%GALLERIES
TYPE Thumb
CATEGORY Mixed
AMOUNT 28
HTML Thumb

INSERT
{
    LOCATION +7
    HTML

}
%>

If not any suggestions?

Thank You all.
rachelo 2007-01-31 09:23 AM

Thanks Toby, the template validator did it, my page is back|bow|

Is this ok to get a table of thumbnails:

Code:

<%TEMPLATE
NAME Thumb
HTML

Toby 2007-01-31 10:10 AM

That should give you 4 rows of 7 thumbs.


All times are GMT -4. The time now is 07:32 PM.

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