vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   CSS buttons using cp-style/headinsert (https://vborg.vbsupport.ru/showthread.php?t=50352)

nagasadow 03-17-2003 06:15 PM

CSS buttons using cp-style/headinsert
 
1 Attachment(s)
Here is my head insert, wich will allow you to replace every button by a CSS style.

You'll just have to place this code in the cells containing several links :

PHP Code:

<td class="nono"> or <td class="menu"><a href="your link></a> 

Or this code if you need just one link :

PHP Code:

<span class="nono"><a href="your link"></a></span> or <span class="menu"><a href="your link"></a></span

No matter for the class name, you can change it and there are other possibilities, you just have to customize ;)

You can use it for every link, even to put the page numbers in blocks if you want.

look at my forumtest to see the effect : http://www.yamakasis.com/forumtest/index.php?s=

Naga ;)

gmarik 03-18-2003 02:48 PM

A great idea, I'll add my .css file later too, it is really a good solution, I think.

Chris Gwynne 03-18-2003 03:57 PM

I was going to use do an idea exactly like this the other week, but dropped it because it's too tedious to go through and replace every button and part with the CSS prefixes instead.

Also, older browsers probably won't support it. :)

nagasadow 03-18-2003 04:42 PM

to complete this, you can also specify a gif for the css A:link, .nono A:visited, .nono A:active and another gif for the css .nono A:hover {

This looks like a script hover isn't it ?

See on my official forum what it looks like ---> http://www.yamakasis.com/forum/index.php?s=

You just have now to put css value for the fonts as it is specified here ---> http://www.vbulletin.com/forum/showt...threadid=17943

So that when you modify the fontsize in IE nothing in your page will change in size ;)

The results ? when your host work with hits/page, your browser won't load too much gif ;)

naga

gmarik 03-19-2003 01:00 PM

Who cares about older browsers? Nobody does, a-drive. 90% of users have at least version 4.0 browsers and CSS is the best solution for all problems.

Chris Gwynne 03-19-2003 01:34 PM

Quote:

Today at 03:00 PM gmarik said this in Post #5
Who cares about older browsers? Nobody does, a-drive. 90% of users have at least version 4.0 browsers and CSS is the best solution for all problems.
Dude, relax! I'm not bashing his way, I even said that I'd thought of doing it myself.
But I'm giving a flaw to it, like there's always a flaw to a hack or anything else released to vBulletin. People use old browsers, that's the truth. The forum wouldn't function properly for them, so obviously they'd care about it.

Dean C 03-19-2003 03:13 PM

gmarik - everyone cares about old browsers, its business etiquette to provide a site that will function the same in all browsers :)

That's why i don't use fancy css scrollbars and such (unless the client requests it of course :))

- miSt


All times are GMT. The time now is 12:15 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
  • Page Generation 0.01101 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete