vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Creating new link class (https://vborg.vbsupport.ru/showthread.php?t=84060)

Nog 08-02-2002 06:55 PM

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.https://vborg.vbsupport.ru/

Can anyone see why?

xdam 08-03-2002 02:12 PM

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>


Nog 08-03-2002 03:25 PM

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.

Nog 08-04-2002 09:10 PM

^^BUMP^^

Someone must have an idea.
Im really stuck :/

mashby 08-04-2002 10:30 PM

Have you tried including the class in the <a href> tag? In other words <a class="new" href="foo.com">

Nog 08-07-2002 07:19 PM

Thanks for the reply mashby, Just tryed it and that didnt work either. http://www.btinternet.com/~ian_sharman/bigcry.gif

mashby 08-07-2002 09:52 PM

Can you send me the URL to your board? I'd like to take a peek at it for myself if I may.

Nog 08-08-2002 02:38 PM

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.:)

SaintDog 08-08-2002 05:25 PM

Nog, please edit your website to your real website, the one you currently have entered is not only vulgar but sickening......

Nog 08-08-2002 05:32 PM

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.:D


All times are GMT. The time now is 12:32 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.01028 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete