Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
CSS buttons using cp-style/headinsert Details »»
CSS buttons using cp-style/headinsert
Version: , by nagasadow nagasadow is offline
Developer Last Online: May 2004 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-17-2003 Last Update: Never Installs: 0
 
No support by the author.

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

Download Now

File Type: (21.4 KB, 22 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-18-2003, 02:48 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A great idea, I'll add my .css file later too, it is really a good solution, I think.
Reply With Quote
  #3  
Old 03-18-2003, 03:57 PM
Chris Gwynne's Avatar
Chris Gwynne Chris Gwynne is offline
 
Join Date: Jan 2003
Posts: 316
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 03-18-2003, 04:42 PM
nagasadow's Avatar
nagasadow nagasadow is offline
 
Join Date: Mar 2003
Location: France
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 03-19-2003, 01:00 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 03-19-2003, 01:34 PM
Chris Gwynne's Avatar
Chris Gwynne Chris Gwynne is offline
 
Join Date: Jan 2003
Posts: 316
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 03-19-2003, 03:13 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 04:17 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.06528 seconds
  • Memory Usage 2,286KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete