![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
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> } %> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
bumpity bump
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2003
Posts: 140
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: May 2003
Posts: 140
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: May 2003
Posts: 140
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |