View Full Version : Autogallery Pro Help
rachelo
2007-01-30, 09:50 AM
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.
First, why are you using permanent galleries to build archives, rather than the archived galleries in your database?
Baxter
2007-01-30, 11:13 AM
you mean like this?
<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, 11:14 AM
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, 01:47 PM
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, 01:56 PM
Baxter, for some reason every link is a column now.
I just did a copy paste from the code you posted.
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.
<%TEMPLATE
NAME Text
HTML <a href="##Gallery_URL##" onMouseOver="window.status='##Description##'; return true"; onMouseOut="window.status=''; return true";>##Description##</a> (##Thumbnails##)<br>
%>
and within the page
<TABLE>
<TR>
<%GALLERIES
TYPE Text
CATEGORY {insert category name}
AMOUNT 200
HTML Text
INSERT
{
LOCATION +1
HTML </td>
}
INSERT
{
LOCATION +2
HTML </tr>
}
INSERT
{
LOCATION +2
HTML <tr>
}
INSERT
{
LOCATION +1
HTML <td>
}
%>
</TR>
</TABLE>
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, 02: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.
Thanks for all the help.
Toby: I did a copy paste and I get nothing. I replaced {insert category name} with MixedThe 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, 03:04 PM
OK , thanks Toby
I think I got it now. Maybe I should spend some time learning php and pearl:)
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, 08: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|
There's a template validator (http://www.jmbsoft.com/owners/agp/manuals/3.1.x/template.cgi) in the JMB Owners Lounge (http://www.jmbsoft.com/owners/). 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
rachelo
2007-01-31, 10:23 AM
Thanks Toby, the template validator did it, my page is back|bow|
Is this ok to get a table of thumbnails:
<%TEMPLATE
NAME Thumb
HTML <td><a href="##Gallery_URL##" target="_blank"><img src="##Thumbnail_URL##" border="0" class="thumb"></a></td>
%>
<%GALLERIES
TYPE Thumb
CATEGORY Mixed
AMOUNT 28
HTML Thumb
INSERT
{
LOCATION +7
HTML </tr><tr>
}
%>
If not any suggestions?
Thank You all.
That should give you 4 rows of 7 thumbs.
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.