Finally today i did the last changes in php files to make newbb ready to accept a functional template html files.
The first newbb full div template set name is "opacity" and is added to SVN.
Now newbb templates are fully functional and the way is open for designers to do everything they want and release new templates just by changing js and css files.
the templates structure is like below:
html files:
templates/*.html and templates/blocks/*.html
ONE CSS file style.css:
templates/css/language/YOUR_LANG/style.css
js files:
templates/css/language/YOUR_LANG/*.js
images:
templates/images
The overall priority for parsing template set is:
* Priority for path per types:
* NEWBB_ROOT - IF EXISTS XOOPS_THEME/modules/newbb, TAKE IT;
* ELSEIF EXISTS XOOPS_THEME_DEFAULT/modules/newbb, TAKE IT;
* ELSE TAKE XOOPS_ROOT/modules/newbb/templates.
the priority for language path is:
for CSS:
IF EXIST ../css/language/YOUR_LANG/ TAKE IT
ELSE TAKE ../css/language/english
for js:
IF EXIST ../js/language/YOUR_LANG/ TAKE IT
ELSE TAKE ../js/language/english
for images:
IF EXIST ../images/language/YOUR_LANG TAKE IT
ELSE TAKE ../images/language/english
As you may know There were many bugs ( I solved more than 100 bugs in the last 2 months) in newbb remained unsolved from newbb2 and cbb3 for almost 8 years.
They have been solved now in the latest irmtfan branch.
some of the major bugs that make newbb completely useless in the last versions were:
- read/unread feature
- delete/restore AND pending/approve topics/posts feature
- synchronization feature
Also some bugs that make some mal functioning in newbb were:
- since feature
- search feature
- select forum box
- list.topic.php page
- notification system
- toggles
Also many hardcodes has been removed, many queries has been reduced and some new functionality has been added.
See demo here:
http://www.jadoogaran.org/modules/newbb/index.php?easiestml_lang=en
I also add a hack in XOOPSCORE255/search.php and enhance it to redirect to MODULE/search.php file
see request feature in sf.net for more infromation
https://sourceforge.net/p/xoops/feature-requests/404/
I make a download link too because the current SVN is not easy for new users:
http://www.jadoogaran.org/test255/modules/newbb43_rev10109_irmtfan_2012_10_20.zip
IMO we need more tests in these areas:
- read/unread feature when the read_mode = 1 (cookie) if anybody use cookie option please report any bug.
- session system (still i think there is a bug when user submit a post)
- mysql count functions when the number of items are huge cause 500 Error. is there anybody encounter 500 Errors in newbb?
see this topic for more information:
https://xoops.org/modules/newbb/viewtopic.php?post_id=349736*/