phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

variable list?

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.

variable list?

Postby mjd76384 » Sun Jan 07, 2007 7:11 pm

I know I've seen this somewhere before, but now I can't relocate it. I'm looking for a list of variables that are being used in 3.0. I'm talking about variables such as {SITENAME} AND {SITE_DESCRIPTION}.

Thanks in advance.
My wife is married to a rock star!
mjd76384
Registered User
 
Posts: 6
Joined: Sun Jan 07, 2007 5:31 pm

Re: variable list?

Postby Highway of Life » Sun Jan 07, 2007 7:21 pm

Look at the page_header() template assign vars in the functions file.
That will have probably the largest list for you.
Image
User avatar
Highway of Life
Registered User
 
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code

Re: variable list?

Postby mjd76384 » Sun Jan 07, 2007 7:24 pm

I have no idea what you're talking about. I only started using phpBB about a month or so ago, so excuse my misunderstanding.
My wife is married to a rock star!
mjd76384
Registered User
 
Posts: 6
Joined: Sun Jan 07, 2007 5:31 pm

Re: variable list?

Postby Nicholas the Italian » Sun Jan 07, 2007 8:51 pm

I guess he's referring to "/includes/functions.php" file. Look for page_header() function, it contains a list of variables. In beta4 it is almost at the end of the file, around line 3320.
User avatar
Nicholas the Italian
Registered User
 
Posts: 659
Joined: Mon Nov 20, 2006 11:19 pm
Location: 46°8' N, 12°13' E

Re: variable list?

Postby DoubleJ » Sun Jan 07, 2007 9:06 pm

mjd76384 wrote:I know I've seen this somewhere before, but now I can't relocate it. I'm looking for a list of variables that are being used in 3.0. I'm talking about variables such as {SITENAME} AND {SITE_DESCRIPTION}.

Thanks in advance.

http://www.phpbb.com/styles/listvars.php
THis file contains the list of all variables of phpBB2, for each file.
This document does not yet exist for phpBB3 Olympus, but from what I've heard, it will be available when it comes out...
DoubleJ - Blah
User avatar
DoubleJ
Registered User
 
Posts: 105
Joined: Thu Jan 13, 2005 4:19 pm
Location: The Netherlands

Re: variable list?

Postby mjd76384 » Sun Jan 07, 2007 10:56 pm

Yep, that's the one I saw. Not sure why I thought it was for phpBB 3, but that functions.php file gave me the answer I was looking for. Thanks for your responses.
My wife is married to a rock star!
mjd76384
Registered User
 
Posts: 6
Joined: Sun Jan 07, 2007 5:31 pm

Re: variable list?

Postby Highway of Life » Mon Jan 08, 2007 5:03 pm

Sorry for the lack of detail in my response...

Many times I assume if someone is over here on area51, they know code pretty well... or at least the file structure well enough to locate the file. Wink

The functions file does not give you everything, but until a chart is created for phpBB3, that is your best bet.
It's similar to phpBB2, but I don't think you want to go by the phpBB2 chart, since there are many differences.
Image
User avatar
Highway of Life
Registered User
 
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code

Re: variable list?

Postby mjd76384 » Mon Jan 08, 2007 6:42 pm

I guess I'm just the "odd duck". I came over here to get tips and read other people's thoughts on different things. I didn't even know phpBB existed until about 2 months or so ago and ever since I found it, I've been trying my best to learn all I can about it. The software is just awesome, and it's free? Amazing!! I'll try not to ask many more "ignorant" questions, but if I can't find the answer myself, obviously the next best thing to do is ask for help.
My wife is married to a rock star!
mjd76384
Registered User
 
Posts: 6
Joined: Sun Jan 07, 2007 5:31 pm

Re: variable list?

Postby Highway of Life » Mon Jan 08, 2007 7:19 pm

No, I don't think the question was ignorant, I'm just saying I wasn't that helpful in the first post.
Image
User avatar
Highway of Life
Registered User
 
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code

Re: variable list?

Postby tritrek » Sat Nov 06, 2010 2:48 pm

OK, I have another question. I am modding the email sent out to notify about new posts (/language/xx/email/topic_notify.txt) and I'm wondering if there's a variable for the poster, just like there is for the name of the topic or the forum. I would like to include it in the email... Thanks!
tritrek
Registered User
 
Posts: 1
Joined: Sat Nov 06, 2010 2:44 pm

Next

Return to [3.0/Olympus] Styling

Who is online

Users browsing this forum: No registered users and 6 guests