Solved

PHPBB Template Variables

Posted on 2009-07-16
4
1,372 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
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
cool12399 earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
The viewer will learn how to count occurrences of each item in an array.
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 …

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now