Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Disable NEWS BOX and KEY STATS

Aloittaja prodevp, joulukuu 15, 2004, 05:29:11 AP

« edellinen - seuraava »

prodevp

Hi,

I am new here. I have just downloaded and installed SMF 1.0 RC2 .

I have a phpbb forum, i am testing if SMF is better.

My phpbb is a private forum .  I am just wonding, is there a way to disable non-registered guests viewing NEWS BOX and KEY STATS , so I can keep every private and secured for registered members only?

Thank you very much.

prodevp

Hi,

I found that part of code in index.template.php . I added a
if ($context['user']['is_logged'])
for that part of code and it is working (although there is an empty space in the index page).

Just to confirm , in case i missed it, there are no such settings in the Admin Control Panel, right ?    ;)

Thanks.

A.M.A

Yes, that will do.
you can disable news in Admin CP.
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

prodevp

Lainaus käyttäjältä: A.M.A - joulukuu 15, 2004, 06:44:59 AP
Yes, that will do.
you can disable news in Admin CP.
Finally....after much search... I found where to set 'Enable News' .
Thanks.

TarantinoArchives

what abouy the key stats box, am i blind or is there no checkbox in the admin panel to enable/disable it?

weekend camper

key stats is probably a template thing.



TarantinoArchives

Lainaus käyttäjältä: weekend camper - helmikuu 08, 2005, 07:46:25 IP
key stats is probably a template thing.




yeah i just commented those lines out of the template. i think that's one of the downsides of SMF, instead of just some module-oriented template system like Mambo, its all about changing the template. i think it should be more like you set up a Spot A and B in your template and then in the admin section you seleft IF something is displayed in Spot A or B or not at all. thus just changing WHAT is displayed in the template but you dont change the template.
in mambo, if you have a position LEFT and you have nothing displayed in LEFT, nothing is displayed, but nothing is changed in the template. If you select for example a menu displayed in LEFT, its displayed in LEFT, but the template is not changed.....

Advertisement: