Solved

PHPBB Template Variables

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

758 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

22 Experts available now in Live!

Get 1:1 Help Now