Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-02-2002, 06:55 PM
Nog
Guest
 
Posts: n/a
Default Creating new link class

Im trying to create a new link class so the I can have an alturnative link/hover color.

Ive added this to my headinclude template:

.new A:link, .new A:visited, .new A:active {
color: #FFFFFF
background-color:"#000000";
text-decoration: underline;

}

.new A:hover {
color: #FF4400
background-color: #000000;
}

This new link class is sposed to be white normally and red when you hover over it.

And for example here's a link I would like to change to my "new" class from the forumhome template:

Welcome to our newest member, <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid"><class="new" > $newusername</a></class>

It doesant work.

Can anyone see why?
Reply With Quote
  #2  
Old 08-03-2002, 02:12 PM
xdam xdam is offline
 
Join Date: Dec 2001
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try this (i haven't tested it.

Code:
<style>
a:link { text-decoration: none;
color: #FFFFFF;
background-color: #000000;
}

a:active { text-decoration: none;
color: #FFFFFF;
background-color: #000000;
}

a:visited { text-decoration: none;
color: #FFFFFF;
background-color: #000000;
}

a:hover { text-decoration: none;
color: #FF4400;
background-color: #000000;
}

</style>
Reply With Quote
  #3  
Old 08-03-2002, 03:25 PM
Nog
Guest
 
Posts: n/a
Default

Thanks xdam,

I tryed it but had to take out the style tags as it came up with an error when going to the home page.

I thought Id better put .new at the start as well so that the class referance in the link code would work. Dunno if i was right to do that.

I added this to my headinclude template:

.new a:link { text-decoration: none;
color: #FFFFFF;
background-color: #000000;
}

.new a:active { text-decoration: none;
color: #FFFFFF;
background-color: #000000;
}

.new a:visited { text-decoration: none;
color: #FFFFFF;
background-color: #000000;
}

.new a:hover { text-decoration: none;
color: #FF4400;
background-color: #000000;
}

And I used the following for one of the link's I want to be differant:

Welcome to our newest member, <class= "new"><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid"> $newusername</a></class>

It didnt work

I have tryed everything I can think of and nothing works. Ive spent hours.

If anyone can figure this out I would gladly skip around them and shower them with confetti.
Reply With Quote
  #4  
Old 08-04-2002, 09:10 PM
Nog
Guest
 
Posts: n/a
Default

^^BUMP^^

Someone must have an idea.
Im really stuck :/
Reply With Quote
  #5  
Old 08-04-2002, 10:30 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried including the class in the <a href> tag? In other words <a class="new" href="foo.com">
Reply With Quote
  #6  
Old 08-07-2002, 07:19 PM
Nog
Guest
 
Posts: n/a
Default

Thanks for the reply mashby, Just tryed it and that didnt work either.
Reply With Quote
  #7  
Old 08-07-2002, 09:52 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you send me the URL to your board? I'd like to take a peek at it for myself if I may.
Reply With Quote
  #8  
Old 08-08-2002, 02:38 PM
Nog
Guest
 
Posts: n/a
Default

Indeedy. I can't wait you you all to see it. Ive spent a lot of time on it to make it just right, and id be interested by your thoughts/suggestions, but Im not goona make it public till Ive got it completely sorted. It has to be all done before anyone join's.
Reply With Quote
  #9  
Old 08-08-2002, 05:25 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nog, please edit your website to your real website, the one you currently have entered is not only vulgar but sickening......
Reply With Quote
  #10  
Old 08-08-2002, 05:32 PM
Nog
Guest
 
Posts: n/a
Default

Quote:
Originally posted by SaintDog
Nog, please edit your website to your real website, the one you currently have entered is not only vulgar but sickening......
ROFL Ok Ive removed it.
Reply With Quote
Reply

Thread Tools
Display Modes

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 01:45 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.04605 seconds
  • Memory Usage 2,231KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_code
  • (1)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (4)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_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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete