GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Autogallery template question, php (https://gfy.com/showthread.php?t=503428)

mkx 08-14-2005 09:34 AM

Autogallery template question, php
 
The <?echo $category;?> is working everywhere in the template except for here. Is there another way to write it in autogallery?

<%GALLERIES
TYPE Thumb
CATEGORY <?echo $category;?>
AMOUNT 30
SORT Display_Date DESC, Display_Stamp DESC
HTML Thumb

INSERT
{
LOCATION +6
HTML </tr><tr>
}
%>

mkx 08-14-2005 11:49 AM

bumpity bump

Gothbox 08-14-2005 12:19 PM

you don't need to put $echo category there. you put the name of the category you want displayed there. example: if you have a category named milf and that is what you wanted displayed then you would put milf there instead of $echo category. All that variable does is tell the script which category to pull galleries from and display it.

Hope that helps

Gothbox 08-14-2005 12:33 PM

If you are looking to display the category name alongside the gallery link or thumbnail you will need to add ##Category## in the link template that you set above your html code. Using ##Category## on any part of your template should make the current category name be displayed after being built, except in the directive like you have above.

mkx 08-14-2005 12:34 PM

Thanks Gothbox but I have over 50 categories and am trying to make things easier to mass edit so each category template has to be identical.

Gothbox 08-14-2005 12:49 PM

I see what you are saying, however there probably is not going to be an easier way. Just use the same template for all of your categories and go in and change the name of the category on the directive to suit your needs. It is only 50 categories, it would probably take about 3 minutes to type the different categories into each template. You could also use search and replace and would not have to type out each one.

Good luck

mkx 08-14-2005 12:54 PM

I see what your saying but I set the template up in a way that all of them are identical except for this little part. It displays the correct title, correct archive links, meta tags, etc. I guess I could manually edit them as a temporary solution but if anyone knows how to add the php tag, that would make things easier.


All times are GMT -7. The time now is 05:37 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123