Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

PHPBB Template Variables

Posted on 2009-07-16
4
Medium Priority
?
1,379 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses

636 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