Topic: cant call out <?php echo pun_htmlspecialchars($cur_forum['cat_name'])

ok im trying to edit my index i put that sumwhere else and it doesnt show

im hella newb to php how do i put that this: <?php echo pun_htmlspecialchars($cur_forum['cat_name']) ?>

and make it show the category name.

Thanks

Re: cant call out <?php echo pun_htmlspecialchars($cur_forum['cat_name'])

Are you putting it inside the loop in index.php?

Re: cant call out <?php echo pun_htmlspecialchars($cur_forum['cat_name'])

nah i was just messing up on some text, i figuried it out

now i need to know were to edit this at

// START SUBST - <pun_navlinks>
$tpl_main = str_replace('<pun_navlinks>',''."\n\t\t\t". generate_navlinks()."\n\t\t".'', $tpl_main);
// END SUBST - <pun_navlinks>


I need to edit the main file of pun_navlinks i looked in main.tpl but it just shows <pun_navlinks> i need like the variables n stuff for that, smile

plz thx

Re: cant call out <?php echo pun_htmlspecialchars($cur_forum['cat_name'])

ROFL I FOUND IT!! IT"S IN FUNCTIONS.PHP

HAHAA NICE!!! smile

YAY!!  srry lol

My newb years of php start today, atleast i got a start eh? big_smile

Re: cant call out <?php echo pun_htmlspecialchars($cur_forum['cat_name'])

So how did you solve it - what code went into which PunBB php file?

It might be handy for others if you share your solution smile

Re: cant call out <?php echo pun_htmlspecialchars($cur_forum['cat_name'])

well I just looked inside functions.php and found the pun_status thing and removed the div tag's thatmake it LIST THE options and made it normal