Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 03-12-2015, 04:44 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HM666 View Post
ok but I searched for both element.style & the actual code that Firebug shows it to be neither is showing.
I'm up late working on two modifications one for a clients site so I won't call you a silly rabbit for your oversight (I'm exhibiting that now on these mods lol) I will however laugh with you not at you and say "well of course you can't find element.style, here's why" https://www.drupal.org/node/229348#comment-754511 and no worries we all learn something new everyday .

https://getfirebug.com/wiki/index.php/Style_Side_Panel

So do as John Lester mentioned and check out Lynne's info.
Reply With Quote
  #12  
Old 03-12-2015, 11:21 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, as has been pointed out a few times now, you're looking at template tag_edit_ajax_popup. I guess the part that's confusing you is that the outer div is marked as class class="ajax_tag_edit_container", but that doesn't exist in any of the CSS templates (which I admit seems strange - I'm guessing someone didn't quite finish the style). The CSS has been put in the style attribute of that tag, so it looks like this:
HTML Code:
<div class="ajax_tag_edit_container" style="background-color:white;color:black;padding:10px;padding-top:0px;border:2px solid black;">

OK, since you're making your own style anyway, edit that template and take out the style attribute, so that it looks like this:
HTML Code:
<div class="ajax_tag_edit_container">

Then make it in to CSS and put it in one of the existing CSS templates:
Code:
.ajax_tag_edit_container {
	background-color:blue;
	color:black;
	padding:10px;
	padding-top:0px;
	border:2px solid black;
}

I really don't know much about making custom skins, so I don't know where you'd want to put it. I guess not in additional.css since that's for user changes. Maybe in blog.css if that's the only place it's used. The tag editing code seems to be common to forum threads, but I don't see any way to get that popup in the forum.

Anyway, now you can change it.
Reply With Quote
  #13  
Old 03-12-2015, 11:35 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by John Lester View Post
EDIT:

Found it!

Template = tag_edit_ajax_popup
I have already edited that as said in the first couple of posts. Editing that template does NOT change anything regardless of what everyone seems to think.

Quote:
Originally Posted by TheLastSuperman View Post
I'm up late working on two modifications one for a clients site so I won't call you a silly rabbit for your oversight (I'm exhibiting that now on these mods lol) I will however laugh with you not at you and say "well of course you can't find element.style, here's why" https://www.drupal.org/node/229348#comment-754511 and no worries we all learn something new everyday .

https://getfirebug.com/wiki/index.php/Style_Side_Panel

So do as John Lester mentioned and check out Lynne's info.
I've never run into element.style before in all the years I've done this. Never had that come up.

Quote:
Originally Posted by kh99 View Post
Well, as has been pointed out a few times now, you're looking at template tag_edit_ajax_popup. I guess the part that's confusing you is that the outer div is marked as class class="ajax_tag_edit_container", but that doesn't exist in any of the CSS templates (which I admit seems strange - I'm guessing someone didn't quite finish the style). The CSS has been put in the style attribute of that tag, so it looks like this:
HTML Code:
<div class="ajax_tag_edit_container" style="background-color:white;color:black;padding:10px;padding-top:0px;border:2px solid black;">

OK, since you're making your own style anyway, edit that template and take out the style attribute, so that it looks like this:
HTML Code:
<div class="ajax_tag_edit_container">

Then make it in to CSS and put it in one of the existing CSS templates:
Code:
.ajax_tag_edit_container {
	background-color:blue;
	color:black;
	padding:10px;
	padding-top:0px;
	border:2px solid black;
}

I really don't know much about making custom skins, so I don't know where you'd want to put it. I guess not in additional.css since that's for user changes. Maybe in blog.css if that's the only place it's used. The tag editing code seems to be common to forum threads, but I don't see any way to get that popup in the forum.

Anyway, now you can change it.
The extra code added is mine. I always add it into the template first to make sure it works, its a process that I go through. once I'm sure everything works I then place it into the additional.css template. That being said that does NOT change the white part that I wanted to change no matter where you put it.

UPDATE: Another member on a different site found where this code is at. Its in the clientscript/vbulletin_ajax_tageditor.js file. I could edit the file and it works but this would mean that I cannot overwrite the js file in the future or lose the edit and it also means that this will show no matter what skin I have on the site, which if in the future I decide to add a light colored skin this will present a problem. Does anyone know the css that I can use from this js code?

Code:
else{if(!this.divobj){this.divobj=document.createElement("div");this.divobj.id=this.divname;this.divobj.style.display="none";this.divobj.style.width="300px";this.divobj.style.background="#ffffff";this.divobj.style.border="1px solid #000000";this.divobj.style.padding="10px";document.body.appendChild(this.divobj);
I need to know the div name to use for placing this in my additional.css instead of editing a core js file. I've tried the following:

Code:
.divobj, #divobj, .divobj.style, & #divobj.style
None of those work.
Reply With Quote
  #14  
Old 03-12-2015, 11:39 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HM666 View Post
I have already edited that as said in the first couple of posts. Editing that template does NOT change anything regardless of what everyone seems to think.
OK, sorry. I tried what I posted before posting and it does actually work for me. But I guess you're getting a popup generated by js for some reason?

Edit: No, I'm sorry, I'm just catching up with what you were asking: you want the white border of the popup to be transparent. And it's obvious from the picture that you already have managed to change the color of the rest of the popup background. So yeah, that part seems to be in that .js file. Sorry it took me so long to understand. So what I said above is wrong, I *didn't* get it to work, I misunderstood what you were asking.
Reply With Quote
  #15  
Old 03-12-2015, 12:17 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, as I mentioned in the edit above, I'm sorry I didn't understand this sooner. I think we all misunderstood what you were asking. But I think there is a way to do it (obviously the 'color:blue' is just a test):
Code:
div[id^="blogtagmenu_"] {
	color:blue !important;
}

But apparently this is CSS 3, so I don't know what that means as far as browsers that support it.
Reply With Quote
  #16  
Old 03-12-2015, 05:04 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HM666 View Post
I have already edited that as said in the first couple of posts. Editing that template does NOT change anything regardless of what everyone seems to think.
I don't THINK that it works, I tested it on a vanilla skin on a live site and KNOW that it works. I edited the code below (shown with the border removed) and was able to change colors, remove it completely (another edit to the code will affect the outside small black border), and I don't know how to make it transparent but if I can remove it then I could do so if I knew how

Code:
<div class="ajax_tag_edit_container" style="background-color:white;color:black;padding:0px;padding-top:0px;border:0px solid black;">
Quote:
Originally Posted by HM666;2540231
[B
UPDATE:[/b] Another member on a different site found where this code is at. Its in the clientscript/vbulletin_ajax_tageditor.js file. I could edit the file and it works but this would mean that I cannot overwrite the js file in the future or lose the edit and it also means that this will show no matter what skin I have on the site, which if in the future I decide to add a light colored skin this will present a problem. Does anyone know the css that I can use from this js code?
If you ever figure this out that would be awesome, because the editor's css can't be overwritten via additional.css so hopefully if you find what works it will work on that as well.
Attached Images
File Type: jpg tag_edit_popup.jpg (35.2 KB, 0 views)
Reply With Quote
  #17  
Old 03-13-2015, 01:14 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try adding this to additional.css template in your custom style:

Code:
#blogtagmenu_1_menu, .ajax_tag_edit_container {
background:#000000 !important;
color:#ffffff !important;
}
Change #00000 from black to your bg color for that area and change #ffffff to whatever font-color you want.

Worked for me on 4.2.1 but let us know .
Reply With Quote
  #18  
Old 03-13-2015, 07:59 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
OK, sorry. I tried what I posted before posting and it does actually work for me. But I guess you're getting a popup generated by js for some reason?

Edit: No, I'm sorry, I'm just catching up with what you were asking: you want the white border of the popup to be transparent. And it's obvious from the picture that you already have managed to change the color of the rest of the popup background. So yeah, that part seems to be in that .js file. Sorry it took me so long to understand. So what I said above is wrong, I *didn't* get it to work, I misunderstood what you were asking.
No problem.

Quote:
Originally Posted by John Lester View Post
I don't THINK that it works, I tested it on a vanilla skin on a live site and KNOW that it works. I edited the code below (shown with the border removed) and was able to change colors, remove it completely (another edit to the code will affect the outside small black border), and I don't know how to make it transparent but if I can remove it then I could do so if I knew how

Code:
<div class="ajax_tag_edit_container" style="background-color:white;color:black;padding:0px;padding-top:0px;border:0px solid black;">

If you ever figure this out that would be awesome, because the editor's css can't be overwritten via additional.css so hopefully if you find what works it will work on that as well.
This has been solved with some js added at the end of a couple of templates dealing with the blog. Its answered in this thread: http://ozzmodz.com/showthread.php/72...h-blog-styling

Quote:
Originally Posted by TheLastSuperman View Post
Try adding this to additional.css template in your custom style:

Code:
#blogtagmenu_1_menu, .ajax_tag_edit_container {
background:#000000 !important;
color:#ffffff !important;
}
Change #00000 from black to your bg color for that area and change #ffffff to whatever font-color you want.

Worked for me on 4.2.1 but let us know .
Again as I said before that does not work. Like Kevin said I'm trying to change the white NOT the inner. I have the inner part changed already. I wanted the white dark, but its been solved at the link above. Thanks for the help guys.
Reply With Quote
2 благодарности(ей) от:
John Lester, ozzy47
  #19  
Old 03-13-2015, 10:29 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you got it figured out. For future reference, if someone wants to do it with CSS, it can be done like this:
Code:
div[id^="blogtagmenu_"] {
	background-color:transparent !important;
	border-width: 0px !important;
}
Reply With Quote
2 благодарности(ей) от:
John Lester, ozzy47
  #20  
Old 03-13-2015, 03:48 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm happy it's been resolved Good job ozzy Also wanted to thank Kevin for the css as it's given me an idea about editing the editor without editing a core file
Reply With Quote
Благодарность от:
ozzy47
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 08:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07814 seconds
  • Memory Usage 2,325KB
  • Queries Executed 14 (?)
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
  • (10)bbcode_code
  • (4)bbcode_html
  • (10)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (5)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete