vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   javascript change #color to table variable name (https://vborg.vbsupport.ru/showthread.php?t=201465)

Wordplay 01-12-2009 03:03 AM

javascript change #color to table variable name
 
1 Attachment(s)
i have found a javascript that will put round corners on my tables. which i need to use for my memberinfo pages, so users who customize their profile colors can still cutomize their entire profile. rather than using images to make the corners/edges on tables round, in which case user's couldn't customize it completely.

here is a link
http://www.ruzee.com/blog/ruzeeborders

my predicament is that the code i found makes you choose fixed colors for the tables or make them transparent, which would make using this pointless. the only way to fix this would be to have other alternative tables set in there rather than fixed colors.

meaning i'd need this code:

HTML Code:

myborder: {
  border: 2px solid red;
  background: blue;
  padding: 10px;
}

to change into this type of code:

Code:

myborder: {
  border: BORDER SET IN VBULLETIN CSS VARIABLES;
  background: ALTERNATIVE TABLE 1;
  padding: 10px;
}

but since i don't have any java knowledge, i don't know how to do this. is this even possible? if so, somebody please tell me how.


the attachment shows what tables...

Dismounted 01-12-2009 03:26 AM

Add the CSS to each style's CSS declarations in the Admin CP.

Wordplay 01-12-2009 03:34 AM

sorry but i absolutely didn't understand what you just said. what css am i supposed to add to... what are css declarations?

Dismounted 01-12-2009 03:38 AM

From the look of the Javascript, alkl it does is add an extra CSS declaration. You can add extra CSS declarations in the style manager.

http://www.vbulletin.com/docs/html/s...css_additional

Wordplay 01-12-2009 03:50 AM

yeah but that's not going to help me with this problem.

i want certain tables on memberpages to be a certain shape, which is what the css does, the variables with the colors decide the colors of the inside and outside of the shape created, i want the outside to be transparent, and the inside to be the same color as alternative table 2.

how would i use the declarations to accomplish this?

Bellardia 01-12-2009 04:05 AM

We can't see the function for your javascript, so it's hard to tell you how to fix it.
Take the color for the alt2 directly from the css options in the style manager. Leaving the other color blank ("") should make it transparent but I'm not sure.

Dismounted 01-12-2009 04:38 AM

Quote:

Originally Posted by Wordplay (Post 1709272)
yeah but that's not going to help me with this problem.

i want certain tables on memberpages to be a certain shape, which is what the css does, the variables with the colors decide the colors of the inside and outside of the shape created, i want the outside to be transparent, and the inside to be the same color as alternative table 2.

how would i use the declarations to accomplish this?

As I said before, all that Javascript does (from the look of it), is seem to add some extra CSS to a few tables. That CSS can be placed into the style's CSS directly.

Wordplay 01-12-2009 01:06 PM

no that's not what it is for, sorry for not making it clear.

it makes the tables edges/corners round.

it's a modified version of this:

http://webdesign.html.it/articoli/le...fty-corners/1/

Bellardia, i can't just take the color i want and put it in there. because the point of me having a script that uses table-edges without images is so i can have rounded tables on the memberinfo tables, and still have the members be able to customize their profile colors.

whereby this script would be pointless if i had fixed colors in it. so the only way to make it work would be if i could change the 2 color variables to 1 bg color and 2 an alternative table color.

Bellardia 01-12-2009 01:19 PM

I don't have experience with customizing memberinfo templates by users.

Members can add their own CSS to their profiles? If so can tell me where the styles they select are stored?

If in doubt post the source of a page with a styled member profile...

If you can't style your profile then the alt colors are the same site wide and using a static color would be the same.

Wordplay 01-12-2009 01:43 PM

i know, but i do want my users to be able to style their profile. wasn't the customizable user profile function already a default in 3.7?

i'm not sure where the stylesheets are stored, but here are the examples of customized user profiles i could find on vb.org:
http://www.teenforum.net/members/skina/
http://www.copytechnet.com/forums/members/baphomet.html
http://www.teenforum.net/members/cynnie/

i guess i am still not making myself clear enough as to what i need, maybe my english isn't as good as i believe it to be. i hope somebody gets it, because i don't know how else to put it.


All times are GMT. The time now is 08:27 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.01042 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete