Solved

PHPBB Template Variables

Posted on 2009-07-16
4
1,374 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why do people dis php? 5 48
mysql update statement 3 22
comma true 6 32
How to change the link of an image using md5 in php ? 3 30
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
This article discusses how to create an extensible mechanism for linked drop downs.
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 …

786 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