[ Pobierz całość w formacie PDF ]
.tpl<!--url--> : This prints the url ofgallery.forexample this template: <!--date--> -<!--catname--> - <!--images--> thumbs of<a href="<!--url-->"<!--desc--></a><BR>will show like this:12 Sep 2002 - MENS - 15 thumbs of cool mensCategory TemplatesThere are two default files:default.tpl and categories.tpl-default.tpl - This file is used for the main "overall" categorythis will always be used for the main index page-categories.tpl - This file is the default templatefor all categories- Separate Category Files- You can make a separate template file for each category.Thetemplate files will be named according to the category names they must be inall lower and can only contain letters & numbers.So if you had a categorycalled Mens the template file you wouldcreate would be called mens.tpl.In both of the above cases you have the ability to use thefollowing tags in the templates.These tags will be replaced with theappropriate content when the html is generated.Remember when placingthese tags that they are all lower case.You can use these TemplateTags :<!--join--> : This place alink directly to the submission form.<!--terms--> : This place a link to theterms and condition form.<!--navbox--> : This generates a dropdown nav box to every category.<!--link--> : This printsthe one link to submited gallery.<!--list--> : This outputs the list of Ngalleries, where N setup in settings.<!--list|CATNAME|NUMPOST|--> : ONLYFOR default.tpl !!!Show NUMPOST postings from category CATNAME on main page of your TGP.<!--catname--> : ONLYFOR categories.tpl or separatecategory files!!! This prints the category of curent TGP page.Terms TemplateThis template isvery simple, it is a standard HTML file calledterms.tpl with terms and condition of yourTGP You can use these TemplateTags : <!--join--> : This place alink to the submission form.New Gallery SubmissionTemplateThe new.tpl file controls the layout ofthe gallery submission form.You can use these Template Tags:<!--start--> : This tag isrequired and starts the submission form.<!--email--> : This tag places a box for theuses to input his email.<!--cats--> : This tag places a dropdown box of available categories.<!--pics--> : This allows the user toselect the number of pics in his gallery.<!--url--> : This tag places abox for the users gallery URL.<!--desc--> : This tag places a box forthe users gallery description.<!--mlist--> : This tag places a check boxthat allows the user to be added to your mailing list.<!--finish--> : This isrequired & finishes the submission html formPost templateThe post.tpl filecontrols the page that is shown to the webmaster after completing the sign upprocess.You can use these Template Tags :<!--email--> : This tag show user submited email.<!--cats--> : This tag show user submitedcategory.<!--pics--> : This show the number ofpics in his gallery.<!--url--> : Thistag show the submited gallery URL.<!--desc--> : This tag show the submited gallery description.<!--link--> : Curently not inuseMail templatesThe mailwelcome.tpl ,mailout.tpl andmaildelete.tpl files is the email messagesthat are sent to the user after they submit there gallery, afterthere gallery was rotated out and after there gallery was notapproved.You can use these Template Tags :<!--email--> : This tag show user submited email.<!--catname-->: This tag show user submited category.<!--pics--> : This show the number of pics in hisgallery.<!--url--> : This tag show thesubmited gallery URL.<!--desc--> : This tagshow the submited gallery description.<!--tgpname--> : This tag show the nameof your TGP.<!--link--> : Curently not inuse
[ Pobierz całość w formacie PDF ]