Topic: Quick jump drop list
This is really minor. When posting a new topic/reply, the 1st option is selected in the quick jump drop list. If possible, select the current forum instead.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.3 troubleshooting → Quick jump drop list
This is really minor. When posting a new topic/reply, the 1st option is selected in the quick jump drop list. If possible, select the current forum instead.
Can't be done, since we cache the quickjump HTML.
But cache_quickjump_*.php files allow the selected option to be changed at include-time. I just tried this by adding "$forum_id = $fid;" before "require PUN_ROOT.'footer.php';" in post.php, and it seemed to work fine. Any reason why that wouldn't work?
That's what I get for not bothering to look at the code
Added
Rev: 1563 - Getting the following for viewforum.php and viewtopic.php:
Notice: Undefined variable: fid in C:\xampp\htdocs\punbb13\cache\cache_quickjump_2.php on line 5
Should be fixed
To make 'Post reply' behave the same way, the following was added to post.php:
$forum_id = $cur_posting['id'];
Is this safe to add?
Thanks.
Actually, that's a much better idea then what I was trying to do.
Changed
Isn't that pretty much what I suggested in the first place?
by adding "$forum_id = $fid;" before "require PUN_ROOT.'footer.php';" in post.php
Yeah. I guess I misread it.
Please consider doing the same to edit.php, and delete.php. Thanks.
Done
edit.php - Missing a semicolon to the latest change.
Coding with a headache is annoying
Fixed
5 changesets just to do one thing?!
PunBB Forums → PunBB 1.3 troubleshooting → Quick jump drop list
Powered by PunBB, supported by Informer Technologies, Inc.