My Topic Tag Mod Problem

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
Post Reply
Pierce_MVP
New member
New member
Posts: 2
Joined: 03 Jul 2010, 23:50

My Topic Tag Mod Problem

Post by Pierce_MVP »

My codes in viewtopic.php

Code: Select all

    $tag_word = censor_text($topic_data['topic_title']);
    $cut_tag = explode(' ' , $tag_word);
    for($i=0; $i<count($cut_tag); $i++){
    $new_tag = $cut_tag[$i];
    $topic_tag = $new_tag . ' ,';
    }

    $template->assign_vars(array(
       'S_TOPIC_TAG' => $topic_tag ,
       'L_TAGS'         => $user->lang['TAGS'],


Look at the image:

[img]http://img202.imageshack.us/img202/1061/catsjwb.jpg[/img]

I want the tag(s) is display to "with echo"

What is the problem?I can't understand. :? P
imkingdavid
Supporter
Supporter
Posts: 32
Joined: 12 Aug 2009, 16:16
Real name: David
Contact:

Re: My Topic Tag Mod Problem

Post by imkingdavid »

You cannot use "echo()" to display anything inside phpBB and have it show where you want it to due to how phpBB is coded. You can use $template->assign_vars(); with the template system to display whatever you want wherever you want it.
phpBB.com Development Team Member | View My MODs | View My Website
Please do NOT contact for support via PM or email.
Pierce_MVP
New member
New member
Posts: 2
Joined: 03 Jul 2010, 23:50

Re: My Topic Tag Mod Problem

Post by Pierce_MVP »

I know template system.I just showed when I used echo its display and when ı used assign variable.Echo is example for mod.I want when I use assign variables it should be display "with echo"(don't understand use echo.Just display with echo in assign variable.).
Post Reply