![]() |
^ cool. I didnt get back on Vb.com for your response, thanks for the tip. However, when i go unter the main CSS, it says "This CSS file is obsolete and is available here for reference purposes only."
|
1 Attachment(s)
Lynne, I would love to make changes to my images like increase the text padding around images. Please see attached images.
I'm assuming that I can use this plugin to do that? Could you be so kind and give an example of a code how to do that. I'm not good in modifying php. Attachment 122742 Attachment 122743 Thanks a million! Margaret |
Just add something like:
HTML Code:
.postbit .content img, .postbitlegacy .content img, .postbitdeleted .content img, .postbitignored .content img, .eventbit .content img { |
That worked perfectly! I cannot thank you enough! :)
Blessings to you! Margaret |
thanks!
if I store css as files what should I change the css path to? |
gracias
excelente aplicaciòn.. pienso usarla en otro sistema pero de verdad que es muy practica... |
Thanks Lynne for this mod.
I believe there is an issue shows up when activating store css as file... is there a way how to import the additional file to every page from the vb root instead of the database?? Thanks |
Additional_css.css -Lynne's mod is now part of vbulletin4.
There are some small oddities, but for the most part store css as files works fine for most people. You can just add another css link in your headinclude template to an external CSS file. If you want an example let me know. |
As tbworld explained, this mod is really not needed anymore as there has now been an additional.css template added to the software which is called on every page.
|
Quote:
I decided then to take a copy of additional.css template and make a file outside the vb board and send it to the headinclude, but still not working. The code works fine, but vb doesn't take it in consideration... I used this property to link the external css file: PHP Code:
please explain a little more. Thanks |
Quote:
explain more please, Thanks Update: do you mean this code: PHP Code:
|
I have not tested it and I wrote the code pretty verbose so you get the concept. When I get a chance I will rewrite it. I am trying to help quite a few people right now so excuse my brevity.
By your request this is suppose to store a unique "additionalcss(id).css to your main bbs url. Different styles can require different additionalcss files. if you do not need that then all you really need to do is append a new file to the bottom of your <head> code. Code:
// Header Hook: parse_templates |
Quote:
|
Quote:
I used it as new plugin using parse_templates, but didn't work... possibly there is something missing!!! I did it like this: PHP Code:
I changed Code:
$template_hook['headinclude_bottom_css'] Code:
$template_hook['headinclude_css'] also, the whole external link on page html doesn't show... any idea?? Thanks, |
Quote:
I will spend a bit of time and see if you are right about it "additional.css" pulling from the database. Hey, anything is possible. Bugs can creep back in... I have used similar code to overwrite members.css giving each user an extended control panel over their user area, because we have 30,000 users we use our own caching file system to handle this. Because of the amount of data storing this in the database was not feasible. |
Quote:
something is not correct here. |
ok, look like I have no other way than waiting your code :) . I will keep trying anyways.
Thanks a lot. |
Okay the code worked as it was. But I added a filename base so that it was easier to understand.
Code:
// Header Hook : parse_templates additionalcss_00005.css Code:
body { This code is a learning example it is very verbose, you do want to rewrite it for a production environment. |
Thanks,
I will try it out and see how things go. :) by the way, can I place my .css file inside vb folders ?? how about outside vb forum root?? |
Quote:
I am not sure what link you are refering to using css.php. Pass me a link to your board and I can check it out. |
Quote:
I was showing you a method, I don't really understand why you need to do any of this? If I understood your need here better I might be able to point you to another method or discourage you from going down a path that is not needed. Like I said before, there is nothing unique or gifted about this code. |
Quote:
Forex Mega Cash Back it is not open now, but still can see the code in the browser :) Thanks |
All times are GMT. The time now is 03:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|