Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2010, 04:09 PM
SorentoUltimate's Avatar
SorentoUltimate SorentoUltimate is offline
 
Join Date: Jul 2009
Location: Moschato, Athens, Greece
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Retrieve STYLE CSS Info

Hello,

i want to retrieve some info from active style into a php file.

Example : I want to take the :
Normal Links CSS Color
Normal Links CSS Font
Hover Links CSS Color
Hover Links CSS Font

from Popup Menu Option Row (vbmenu_option)

Any way to do that?

Thanks
SorentoUltimate
Reply With Quote
  #2  
Old 07-26-2010, 04:53 PM
Michael.A's Avatar
Michael.A Michael.A is offline
 
Join Date: Dec 2008
Location: L.A
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you want to add this in a php file or you want a php file to use it?

key words of the day { firebug }
Reply With Quote
  #3  
Old 07-26-2010, 05:50 PM
SorentoUltimate's Avatar
SorentoUltimate SorentoUltimate is offline
 
Join Date: Jul 2009
Location: Moschato, Athens, Greece
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MAD--DOG View Post
you want to add this in a php file or you want a php file to use it?

key words of the day { firebug }
i want in a php file to make a variable = Normal Links CSS Color etc.

Example :

$linkcolor = ......;
$linkfont = ......;
$linkhovercolor = ......;
$linkhoverfont = ......;

what i have to put??
Reply With Quote
  #4  
Old 07-26-2010, 08:03 PM
Michael.A's Avatar
Michael.A Michael.A is offline
 
Join Date: Dec 2008
Location: L.A
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

look man this is what i know you can have your php file connect to style.css file but to have a css code in a php file i never see it before...

use the vbseo for an Example...
Reply With Quote
  #5  
Old 07-26-2010, 08:45 PM
SorentoUltimate's Avatar
SorentoUltimate SorentoUltimate is offline
 
Join Date: Jul 2009
Location: Moschato, Athens, Greece
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MAD--DOG View Post
look man this is what i know you can have your php file connect to style.css file but to have a css code in a php file i never see it before...

use the vbseo for an Example...
i making a hack with tabbar for vbulletin 3.8.x and i want to use colors etc from style css
Reply With Quote
  #6  
Old 07-26-2010, 08:48 PM
Michael.A's Avatar
Michael.A Michael.A is offline
 
Join Date: Dec 2008
Location: L.A
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

am going to need to see the code that you playing with to help you man....
Reply With Quote
  #7  
Old 07-26-2010, 08:54 PM
SorentoUltimate's Avatar
SorentoUltimate SorentoUltimate is offline
 
Join Date: Jul 2009
Location: Moschato, Athens, Greece
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MAD--DOG View Post
am going to need to see the code that you playing with to help you man....
i start with that Addon https://vborg.vbsupport.ru/showthread.php?t=175890

in Global Start Plugin put in some variables (Used in Javascript) colors defined at Settings.

I want to put to that variables values from css (depent on style, because i have 8 styles)

Code:
    $invtedfonsiz     = $vbulletin->options['tabbar_with_dropdown_fonsiz'];
    $invtednohovddlk  = $vbulletin->options['tabbar_with_dropdown_nohovddlk'];
    $invtedhovddlk    = $vbulletin->options['tabbar_with_dropdown_hovddlk'];

    $invtedcssimglft  = $vbulletin->options['tabbar_with_dropdown_cssimglft'];
    $invtedcssimgrht  = $vbulletin->options['tabbar_with_dropdown_cssimgrht'];
    $invtednohovlkcol = $vbulletin->options['tabbar_with_dropdown_nohovlk'];
    $invtedhovlkcol   = $vbulletin->options['tabbar_with_dropdown_hovlk'];
    $invtedjshowme    = $vbulletin->options['tabbar_with_dropdown_jspath'];
    $invtedbkgrd      = $vbulletin->options['tabbar_with_dropdown_bkgrd'];
    $invtedpddg       = $vbulletin->options['tabbar_with_dropdown_pddg'];
Reply With Quote
  #8  
Old 07-26-2010, 10:49 PM
Michael.A's Avatar
Michael.A Michael.A is offline
 
Join Date: Dec 2008
Location: L.A
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try adding

Code:
class="alt1"
&
Code:
class="alt2"
Reply With Quote
  #9  
Old 07-28-2010, 11:37 AM
SorentoUltimate's Avatar
SorentoUltimate SorentoUltimate is offline
 
Join Date: Jul 2009
Location: Moschato, Athens, Greece
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all,

i found the solution to my problem.

Here the solution :

$vbmenu_option_template = fetch_template('.vbmenu_option', 0, false);
$vbmenu_option_css = unserialize( $vbmenu_option_template );

$dropdown_back_color = $vbmenu_option_css['background'];
$dropdown_font_color = $vbmenu_option_css['color'];
$dropdown_font_size = $vbmenu_option_css['font']['size'];
$dropdown_font_style = $vbmenu_option_css['font']['style'];
$dropdown_font_family = $vbmenu_option_css['font']['family'];
$dropdown_extra = $vbmenu_option_css['EXTRA'];
$dropdown_link_normal = $vbmenu_option_css['LINK_N']['color'];
$dropdown_link_hover = $vbmenu_option_css['LINK_M']['color'];
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04022 seconds
  • Memory Usage 2,241KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete