15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

alternate background shading of forum index page and recent topics

Author trc4949
Registered
#1 | Posted: 18 May 2016 00:51 
Does anyone know how to implement alternate background color shading of forum topics on index page and also the recent topics ?

see example:

bbplugins

Author tom322
Active Member
#2 | Posted: 18 May 2016 04:51 
You can try to add to <tr> in the template files the following: class="{$bg}" so that it looks like:

<tr class="{$bg}">

(and make sure .tbCel1 and .tbCel2 classes in bb_default_style.css file have a different background color set).

Author Paul
Lead Developer
#3 | Posted: 18 May 2016 20:17 
Just for being more precise - you have to edit these templates:

main_forums_cell.html
main_last_discuss_cell.html
main_topics_cell.html

Have you take a look at the Basic skin theme for miniBB?
I suppose, this is what you need, and you could start/gain many ideas from it... you could also get templates and CSS of this theme from miniBB demo (right mouse click -> Save File As):

main_forums_cell.html
main_last_discuss_cell.html
main_topics_cell.html
bb_old_style.css

The other templates could be saved from the same URL, they all are named like default miniBB's templates.

Save all these files to your forum folder or templates folder, and then set in setup_options.php:

$skin='old';
$startPageModern=FALSE;


Author trc4949
Registered
#4 | Posted: 19 May 2016 03:19 | Edited by: trc4949 
Thank you. So other than the bboldstyle.css file, these are the only template files I need replace ? : (41 of them)


from
go.html
main_access_denied.html
main_footer.html

down to

user_logged_in.html
user_login_form.html
user_login_only_form.html


There are 41 of them.

what about the admin template files ?

Author Paul
Lead Developer
#5 | Posted: 19 May 2016 22:01 
You may also check for

main_posts.html
main_posts_cell.html.

They provide the older-type look of messages (threads).

As about other templates, they all mostly are generic and do not change the layout type dramatically.

The same about admin templates. They are very basic and look the same in any CSS style. I suppose, you should only take care about public version of the forum :) Admin interface belongs to an internal one and could be quite simple.

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / alternate background shading of forum index page and recent topics Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB