Skip to content
WJunction - Webmaster Forum

Variable in phpBB

Status
Not open for further replies.
Hello,

How to make working variables in php?

Then I do like this:
<!-- PHP --> echo "{TOPIC_TITLE}; <!-- ENDPHP -->

It prints me: {TOPIC_TITLE}, but it must print topic title..?
How to make it showing topic title (PHP in templates TURNED ON)

Thanks in advance.
 

11 comments

Yes that would work..
But I have script and it's just a part of it so it MUST be in php and a question is how to get this function in php.. : )
 
I need for example:
if my thread title: Autodesk Revit MEP Suite 2010 - 32-Bits
everywhere where I added in my script {TOPIC_TITLE}
In that page it should be printed: Autodesk Revit MEP Suite 2010 - 32-Bits
 
for phpbb3 forum:

in viewtopic.php.. is already the topic title variable..
Code:
page_header($user->lang['VIEW_TOPIC'] .' - ' . $topic_data['topic_title']);
you can define a new variable and assign
Code:
$topic_data['topic_title']
to it and make it work like the way you want.
 
Status
Not open for further replies.

About the author

S
Active Member · Joined
79
Messages
0
Reactions
6
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom