Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Digital Point Better CSS Details »»
Digital Point Better CSS
Version: 1.02, by digitalpoint digitalpoint is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Category: Board Optimization - Version: 4.x.x Rating:
Released: 05-09-2011 Last Update: 05-11-2011 Installs: 74
Uses Plugins
Additional Files  
No support by the author.

About
This is something we use on digitalpoint.com to make the CSS better and more efficient.

Installation
  • Upload the contents of the upload folder to your installation
  • Install the product-digitalpoint_css.xml product under AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product
You can see a live version in action here (on any page really): http://forums.digitalpoint.com/

Details
Rounded Corners
vBulletin 4 only supports rounded corners for Firefox, Chrome and Safari. This plug-in makes rounded corners also work in Opera and Internet Explorer.

Gradients
It appends some CSS markup to your primary CSS file that makes use of CSS3 gradients (gradients defined right in the CSS file itself). vBulletin uses 5-7 gradient images per page view normally, and this eliminates the need for the browser to download those images. CSS3 gradients are supported in Safari, Firefox, Opera and Chrome. For browsers that don't support CSS3 gradients, they will simply fall back to the normal image-based CSS gradients that vBulletin uses by default.

Notes
This plug-in is useful for sites that use vBulletin 4 default styles, or at least styles that utilize the same classes and methods for doing things within the CSS files.

This plug-in does NOT add any extra CSS files, nor does it edit your existing ones. Instead it appends some new info to the end of your main CSS file that comes from it's own template. It also adds an attribution link.

You can find more info here: http://products.digitalpoint.com/vbulletin-css.php

Changes
1.0.2
  • CSS3 Gradient support for IE10 (early, I know... but it's there)
  • Handles gradients in vB Suite Blog and CMS
  • Works properly for CSS stored as files

Uninstallation: Automatic uninstallation is a bit of a catch 22... you need to compile templates to uninstall it, but vBulletin has no function built in to compile a group of templates. So uninstalling it removes the code needed to uninstall before the uninstall code is executed. So in order to uninstall this, disable just the one plug-in that is part of this product at the template_compile location, and then run Compile CSS Templates option under AdminCP -> Maintenance -> Update Counters. Once you do that, you can uninstall the whole product without any problems.

Download Now

File Type: zip digitalpoint_css.zip (5.4 KB, 673 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Abhik, TheLastSuperman

Comments
  #22  
Old 05-10-2011, 03:17 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChemicalKicks View Post
His tone is completely wrong but don't be so quick to jump to conclusions, maybe like me he has paid to remove the copyright. The last thing you'd want to do is add something to the footer again.
I find these little self-righteous explosions ("How DARE you include a footer link!") to be very tedious. The solution is easy and obvious:

Don't want the footer?

(1) Contact the author and see if you can make an arrangement to remove it, perhaps for a fee as you do with an unbranded vBulletin license.

(2) Uninstall the add-on.

What NOT to do?

(3) Post some self-righteous rant in the coder's thread making an utter fool of yourself by telling everyone how outraged you are.
Reply With Quote
  #23  
Old 05-10-2011, 03:58 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
I can see the effect at DigitalPoint with IE9.

But on my forum, using styles with limited departure from the default, no rounded corners. I don't even get them in the vBulletin default style.

Any known conflicts?
Solution:

Admin CP >> Settings >> Options >> Cookies and HTTP Header Options

Set Disable IE8 Compatibility Mode = No

Then rounded corners work. Partially. On the home page but not on all pages.

See attachments.
Attached Images
File Type: jpg rounded1.jpg (58.0 KB, 0 views)
File Type: jpg rounded2.jpg (33.3 KB, 0 views)
File Type: jpg rounded3.jpg (7.5 KB, 0 views)
Reply With Quote
  #24  
Old 05-10-2011, 04:16 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Error on uninstall:

Quote:
Compiling CSS templates...

Warning: mysql_query(): 7 is not a valid MySQL-Link resource in [path]/includes/class_core.php on line 414

Warning: mysql_error(): 7 is not a valid MySQL-Link resource in [path]/includes/class_core.php on line 1025

Warning: mysql_errno(): 7 is not a valid MySQL-Link resource in [path]/includes/class_core.php on line 1043

Warning: mysql_query(): 7 is not a valid MySQL-Link resource in [path]/includes/class_core.php on line 414

Warning: mysql_error(): 7 is not a valid MySQL-Link resource in [path]/includes/class_core.php on line 1025

Warning: mysql_errno(): 7 is not a valid MySQL-Link resource in [path]/includes/class_core.php on line 1043
Quote:
Database error in vBulletin 4.1.3:

Invalid SQL:

UPDATE vbadminutil SET
text = UNIX_TIMESTAMP()
WHERE title = 'datastorelock' AND text < UNIX_TIMESTAMP() - 15;
Reply With Quote
  #25  
Old 05-10-2011, 04:45 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
Solution:

Admin CP >> Settings >> Options >> Cookies and HTTP Header Options

Then rounded corners work. Partially. On the home page but not on all pages.

See attachments.
Actually, on checking further I see the same thing on the DigitalPoint forum: Only partially rounding corners.
Reply With Quote
  #26  
Old 05-10-2011, 05:22 PM
CK CK is offline
 
Join Date: Dec 2007
Location: http://xenforo.com/
Posts: 241
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
I find these little self-righteous explosions ("How DARE you include a footer link!") to be very tedious. The solution is easy and obvious:

Don't want the footer?

(1) Contact the author and see if you can make an arrangement to remove it, perhaps for a fee as you do with an unbranded vBulletin license.

(2) Uninstall the add-on.

What NOT to do?

(3) Post some self-righteous rant in the coder's thread making an utter fool of yourself by telling everyone how outraged you are.
I fully agree with you, you'll notice just above his post what I asked
Reply With Quote
  #27  
Old 05-10-2011, 06:13 PM
billstelling's Avatar
billstelling billstelling is offline
 
Join Date: Apr 2011
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if your going to add a footer link in a mod then it should be included in the product details. It gets old in a hurry when they get snuck in like that. And they serve no purpose to the forum members at all. Just a way to try and make money by forcing us to pay to get rid of them. If its good i will donate all on my own and don't need some lame ass link in the footer to get me to do it.
oh and it was IE9 to the question above.
Reply With Quote
  #28  
Old 05-10-2011, 06:23 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Regarding the rounding corners... it doesn't round every corner, only corners that vBulletin rounds normally in Firefox, Safari and Chrome.

For the install issues... had to do some obnoxiously roundabout things to get it to be able to (properly) compile templates on installation/uninstallation. But I think I'm going to change it so there is a separate process to do it that the install gets redirected to. It should solve the installation screwiness for some people.

For the attribution link... we don't have a paid/attribution free version (too much work to set up something like that), but people are of course free to not use it of course. The add-on description was changed to mention it.
Reply With Quote
  #29  
Old 05-10-2011, 06:45 PM
billstelling's Avatar
billstelling billstelling is offline
 
Join Date: Apr 2011
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do hope you get this one working as it will be a good add on. What is the deal with IE that it doesn't support rounded corners or shadowing?
Reply With Quote
  #30  
Old 05-10-2011, 07:58 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by billstelling View Post
I do hope you get this one working as it will be a good add on. What is the deal with IE that it doesn't support rounded corners or shadowing?
IE9 does support that. But current versions of vBulletin do workarounds with the CSS for IE because earlier versions did not. vBulletin has not yet caught up with IE9.
Reply With Quote
  #31  
Old 05-10-2011, 09:05 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those having issues installing or uninstalling... I simplified it and instead of trying to get "tricky" and making the whole process automatic (which was causing problems for some people), I instead made a function to compile CSS functions that will show up under the "Update Counters" area of the AdminCP. When you install, the system will automatically redirect you there and do it automatically.

Uninstallation is a bit obnoxious though since when you uninstall, you also lose the Compile CSS Templates option, so you can't really automate it. See update in original post for a note on how to (properly) uninstall manually.

Doing it this way should eliminate the SQL errors some people were getting as well as PHP memory limits and execution time (since it will process 25 at a time and then start a new batch of 25... resetting PHP execution time and memory in the process).
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 10:20 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.17269 seconds
  • Memory Usage 2,351KB
  • Queries Executed 26 (?)
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
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete