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.
variable list?
variable list?
My wife is married to a rock star!
- 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
- Contact:
Re: variable list?
Look at the page_header() template assign vars in the functions file.
That will have probably the largest list for you.
That will have probably the largest list for you.
Re: variable list?
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!
- Nicholas the Italian
- Registered User
- Posts: 659
- Joined: Mon Nov 20, 2006 11:19 pm
- Location: 46°8' N, 12°13' E
- Contact:
Re: variable list?
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.
- DoubleJ
- Registered User
- Posts: 105
- Joined: Thu Jan 13, 2005 4:19 pm
- Location: The Netherlands
- Contact:
Re: variable list?
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
Re: variable list?
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!
- 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
- Contact:
Re: variable list?
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.
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.
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.
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.
Re: variable list?
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!
- 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
- Contact:
Re: variable list?
No, I don't think the question was ignorant, I'm just saying I wasn't that helpful in the first post.
Re: variable list?
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!