?
Solved

PHPBB Template Variables

Posted on 2009-07-16
4
Medium Priority
?
1,378 Views
Last Modified: 2013-12-13
Hi,

There is a forum image field taht allows you to assign an image against a forum. This works fine on the forum listing page but doesnt show on the main forum details page. Any idas how i can get it to show?

Also, i want to modify a template variable slightly. i,e I want to add dashes to the forum name in  template so taht instead of "FORUM NAME" it become "FORUM_NAME". I am trying to add php code to the template to do this, but cant figure out how i can assign a template variable to a php variable.
It keeps throwing an error. ( $name = {FORUM_NAME};) Any ideas how i can do this?

Thanks
0
Comment
Question by:coolispaul
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
cool12399 earned 2000 total points
ID: 24913938
From the example you just posted, you are missing a "$".

It should be "$FORUM_NAME", not "FORUM_NAME". If you are passing it in as a variable, you may need "$_REQUEST["FORUM_NAME"]. If you want the actual 'name' to be 'FORUM_NAME', then use "$name = {"FORUM_NAME"};"
0
 
LVL 10

Expert Comment

by:cool12399
ID: 25109088
Hi,

I answered his question, so please award me the points.

Thanks
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question