PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Donovan
Client


Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Tue Dec 30, 2008 11:41 am Reply with quote Back to top

How do I get a custom menu to use the bgcolor1 and bgcolor2 of the loaded theme?

If the javascript menu has a file such as c_config.js that I place in the included folder and inside it has CSS classes? How do I "import" the default theme colors?

Example:

Here is part of the c_config.js file.
Code:

/******************************************************
   (2) MENU STYLES (CSS CLASSES)
*******************************************************/

// You can define different style classes here and then assign them globally to the menu tree(s)
// in section 3 below or set them to any UL element from your menu tree(s) in the page source


c_imagesPath=""; // path to the directory containing the menu images


c_styles['MM']=[ // MainMenu (the shorter the class name the better)
[
// MENU BOX STYLE
0,      // BorderWidth
'solid',   // BorderStyle (CSS valid values except 'none')
'#8F90C4',   // BorderColor ('color')
0,      // Padding
'#3A3A3A',   // Background ('color','transparent','[image_source]')
'',      // IEfilter (only transition filters work well - not static filters)
''      // Custom additional CSS for the menu box (valid CSS)
],[
// MENU ITEMS STYLE
1,      // BorderWidth
'solid',   // BorderStyle (CSS valid values except 'none')
'solid',   // OVER BorderStyle
'#FFF5C6',   // BorderColor ('color')
'#4d4c76',   // OVER BorderColor
4,      // Padding
'#FFF5C6',   // Background ('color','transparent','[image_source]')
'#CBCBEF',   // OVER Background
'#252455',   // Color
'#000000',   // OVER Color
'12px',      // FontSize (values in CSS valid units - %,em,ex,px,pt)
'verdana,arial,helvetica,sans-serif',   // FontFamily


This is from the
Only registered users can see links on this board!
Get registered or login to the forums!
site and is one of several I could use. I just need it to be able to use whatever theme colors are on the site.

You open up any theme.php and it has its own...

$bgcolor1 = "#0B0D08";
$bgcolor2 = "3A3A3A";

How do I use these instead of what is coded in the classes?
View user's profile Send private message Visit poster's website ICQ Number
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Tue Dec 30, 2008 12:26 pm Reply with quote Back to top

You could try instead of
Code:
'#FFF5C6',

Code:
<?php echo $bgcolor; ?>

Might not work though unless you are 'including' the JS file into a php file.
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum