Version: 1.00, by Adult SEO
Developer Last Online: Nov 2013
Category: Forum Display Enhancements -
Version: 3.6.3
Rating:
Released: 11-10-2006
Last Update: 11-10-2006
Installs: 23
DB Changes Uses Plugins Template Edits
No support by the author.
Hi!
I am developping a new forum on http://www.papegaaienforum.com/ (meaning: parrotforum.com in dutch) and I needed to be able to change the header for each specific parrot via CSS and might also need to change other CSS for each specific forum so I wrote this small mod wich is optimized (fast, using variables already made available by vbulletin so no extra queries) and enables to configure CSS via the vBulletin admin as if it's available by default.
It contains 1 phrase ("CSS") and requires 1 template mod to insert the new styles just below the <body> tag via the "header" template. It might be better to place the styles just above the </head> tag on each seperate forum and threadview template but this requires more work so I provide instructions for the most easy and simple way.
Upload css_install.php to your forum root (e.g. / or /forum/)
Run the script, it will return an confirmation message that the instalation is completed. It will add one field to the forum table ("css"/TEXT).
Import the included product (product-custom_forum_css.xml)
Edit the "header" template and put the folowing code on very top of the template:
<style type="text/css">
$forum_css_code
</style>
Now you will be able to aply CSS code per forum via the Forum Adminpanel, there is a new CSS textarea input on the bottom of the edit and add forum forms.
Btw, if you use subforums without CSS specified on a parrent that does have CSS specified it will use the CSS of the parrent (unlimited, so also if you have 100 levels of subforums).
I am developping more mods btw, PM or contact me for more information.
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1219) : eval()'d code on line 5
MySQL database updated, added field "css" to the forum table.
The error you received is from a difrent mod wich is probably trigered by "global_start" as the install script uses the global.php file to obtain a MySQL connection.
It might be that this error occurs on all pages of your forum but that it isn't visible.
As the result also stated "MySQL database updated, added field "css" to the forum table. " it means the CSS mod MySQL updated has been succesfull since you would otherwise receive a message stating it didn't work.
What you could do to test wich product is causing the error is commenting the folowing line in the install script:
PHP Code:
$result = mysql_query(".......") or die(mysql_error();
To become:
PHP Code:
#$result = mysql_query(".......") or die(mysql_error();
exit;
Then the script will not try to update the database anymore and you will receive the error only.
You then simply enable/disable each product to see wich product is causing the error.
Looks quite interesting. Would you be able to post a few screenshots of what the Forum Adminpanel looks like with this modification? Also, in your top post you don't have checked what gets changed with this mod.
Quote:
Now you will be able to aply CSS code per forum via the Forum Adminpanel, there is a new CSS textarea input on the bottom of the edit and add forum forms.