vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Links Automatically bolded with a specific color. (https://vborg.vbsupport.ru/showthread.php?t=61270)

Loyalty4Life 02-07-2004 07:14 AM

Links Automatically bolded with a specific color.
 
Please look at this link for an example:

http://www.basketballboards.net/foru...656&forumid=14

Do you see how the link in the first post is in bold with a dark blue color? Can this be done with vB3? Could someone show us how to do it? I'd really love to have this on my site!

Any help is appreciated. Thanks. :)

Xenon 02-07-2004 10:29 PM

open file functions_bbcodeparse.php

find function handle_bbcode_url

there find

PHP Code:

    if ($type == 'url')
    {
        
// standard URL hyperlink
        
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
    } 

and there you can change everything :)

Loyalty4Life 02-07-2004 11:33 PM

So...

if I wanted to have the exact same thing on bbb.net, only have the color be #006600, can you show me what to edit and what to add? I'd really appreciate it! :)

sabret00the 02-08-2004 12:04 AM

not sure if i understood you properly but going off of xenon's instructions, open up the
file functions_bbcodeparse.php with notepad or whatever and then in there do a find (control and f) function handle_bbcode_url, there you should be able to follow the below quite comfortably :)

PHP Code:

    if ($type == 'url'
    { 
        
// standard URL hyperlink 
        
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>"
    } 

and replace with
PHP Code:

    if ($type == 'url'
    { 
        
// standard URL hyperlink 
        
return "<a href=\"$rightlink\" target=\"_blank\"><font color="#006600">$text</font></a>"; 
    


don't forget to back up your files pre-hacking

Xenon 02-08-2004 12:31 AM

sabre, you have to escape (\) your quotes within the string ;)

Loyalty4Life 02-08-2004 12:37 AM

After many trial and error periods, I was able to get it to work by taking out the quotation marks.

Thanks fellas for the help!

Loyalty4Life 02-08-2004 01:16 AM

Hmmm... I have a question. It now works, but I'd like it to be slightly modified. I'd like there to be no underline when not hovered, but have an underline when hovered. Can anyone tell me how to do it?

Loyalty4Life 02-08-2004 05:57 PM

Xenon? :(

NTLDR 02-08-2004 06:10 PM

There is no need to bump posts untill at least 24 hours have past. Thank you.

Loyalty4Life 02-15-2004 07:09 AM

Alright, I think I've waited more than 24 hours. ;) Any help with how to remove the underline from the links? Thanks.


All times are GMT. The time now is 08:11 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.01507 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_php_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