Thanks
1 2009-06-22 10:04
Re: How Do I Prevent Auto-logout??? (4 replies, posted in PunBB 1.3 troubleshooting)
2 2009-06-22 09:17
Re: How Do I Prevent Auto-logout??? (4 replies, posted in PunBB 1.3 troubleshooting)
so it's the wrong place to modify then.
If I want to postpone session timeout, what should I do?
3 2009-06-22 09:02
Re: Problems in Opera 8.54 and Internet Explorer 5.0 (10 replies, posted in PunBB 1.3 troubleshooting)
The prob with Opera is it "your" end.
The forum is made entirely of php, it's not using html <> tags as normal forums do, as a result it seems to skrew up at every occasion, when something non-standard is done... I'd kill people who don't understand the word "simplicity". And, simplicity envolves not using php whenever you can do with html. No reply necessary.
PunBB does generate HTML somewhere in the program. Just check the following files (in order) to get the basic understanding of how it's done.
header.php
include\template\main.tpl (works like Smarty but it's not Smarty; to get a general idea of how it works, please visit http://www.smarty.net/)
index.php
footer.php
Besides, it's impossible to make a forum program without using a dynamic language such as PHP ASP, or ASP.NET.
PunBB itself is optimized for modification. I was quite surprised when I tried to add an alternate row coloring functionality; only ended up finding this line under viewforum.php , line 299:
$forum_page['item_style'] = (($forum_page['item_count'] % 2 != 0) ? ' odd' : ' even').(($forum_page['item_count'] == 1) ? ' main-first-item' : '').((!empty($forum_page['item_status'])) ? ' '.implode(' ', $forum_page['item_status']) : '');
All I had to do was modifying CSS, which is also very organized, simple, and understandable. I would greatly thank PunBB developers instead of killing them (or other people).
(so...... who's gonna help with my other post???)
4 2009-06-21 19:44
Topic: How Do I Prevent Auto-logout??? (4 replies, posted in PunBB 1.3 troubleshooting)
Hello everyone:
I'm new to Punbb. I would like to ask how to prevent auto logout or at least postpone such behavior, as people may sometimes spend more time typing longer paragraphs.
I think it probably has something to do with sessions, but it doesn't look like Punbb uses php's session handling functions.
Will editing this line work?
in login.php, around line 108
$expire = ($save_pass) ? time() + 1209600 : time() + $forum_config['o_timeout_visit'];
If the above line is not the right place to apply changes, then where should I edit?
Thanks in advance