New Template Variables

The latest happenings on Smack Jeeves
Forum rules
Please stay on-topic when responding to news posts.

New Template Variables

Postby Admin » February 21st, 2013, 1:18 pm

A few new template variables have been added.

Global:

Code: Select all
{BEGIN_LATEST_CHAPTER_URL} - URL of the first comic in the latest chapter
{USER_ID} - The user ID of the person visiting the site (0 is logged out)


All comments loops:

Code: Select all
{loop_name.USER_ID} - The user ID of the commenter


These variables were specifically asked for, and most authors on the site won't need to make any use of them. {BEGIN_LATEST_CHAPTER_URL} is the one that is most practical, and some authors may choose to incorporate this one into their layouts. Enjoy!
User avatar
Admin
Site Admin
 
Posts: 1035
Joined: August 17th, 2005, 11:10 pm

Re: New Template Variables

Postby eishiya » February 21st, 2013, 1:38 pm

Thank you, thank you, thank you! I am going to make use of both of these in the future, definitely.
Busy, busy.
User avatar
eishiya
 
Posts: 7226
Joined: December 5th, 2009, 11:17 am

Re: New Template Variables

Postby Alexis_Royce » February 21st, 2013, 2:18 pm

Thank you so much; setting straight to work with these.
Image
Image
Image
User avatar
Alexis_Royce
 
Posts: 312
Joined: October 25th, 2008, 9:12 am
Location: Lineage Haven

Re: New Template Variables

Postby Pedes » February 27th, 2013, 8:07 am

Ooh, the last chapter variable looks like something that might be really useful for some :D
User avatar
Pedes
 
Posts: 12
Joined: July 31st, 2006, 10:48 am

Re: New Template Variables

Postby Manga-Ka » March 2nd, 2013, 2:36 am

Last chapter thingie sounds really good :'>
User avatar
Manga-Ka
 
Posts: 14
Joined: June 18th, 2007, 11:27 am


Return to News

Who is online

Users browsing this forum: No registered users and 1 guest