Topic: Help remove few tags of PunBB

Is opportunity to remove some tags from PunBB?

I want to remove "1", "2", "3" and part "4". ("2" - when user are not logged in)


http://img417.imageshack.us/img417/7594/punbb1qt.jpg

Re: Help remove few tags of PunBB

That's
1) <pun_title>, <pun_desc> in main.tpl
2) <pun_status> in main.tpl
3) somewhere in footer.php
4) somewhere in footer.php

Re: Help remove few tags of PunBB

Thans,

I successfuly removed "1", "2", "4" tags. But cant find where i can find and remove "3" tag?
I guess it is in "<pun_main>", but where exactly?

Re: Help remove few tags of PunBB

Oh yeah, it's in index.php smile

Re: Help remove few tags of PunBB

This will be easier in 1.3 where all the sections you mentioned will have their own tag in the templates.

http://dev.punbb.org/file/branches/punb … e/main.tpl

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Help remove few tags of PunBB

Can i remove those things for users that are not online? I dont want it to effect the users that are loged on.

7

Re: Help remove few tags of PunBB

Anything you remove from main.tpl is removed for everyone. The same is true of removing items from the php files, generally if you want a board element output to members but not to guests you will have to modify code and not just delete stuff.

Re: Help remove few tags of PunBB

Just put any code you don't want visible for guests in this if statement:

if(!$pun_user['is_guest']) { /* It goes here */ }