Navigation
Last Seen Users
BRETLEE0035Online
HunorR< 5 mins
wepo< 5 mins
veselinvankov00:13:46
OGuZHaN00:34:26
SeCoNdDaRk01:26:38
m1rfLU4XFJ02:09:26
Wanda Boscow02:54:34
rebreb4703:42:34
Aokiji03:44:34

Members: 27,610
Newest: veselinvankov
Downloads v7
Downloads v6
One-click Translation
Translate This Site

Member Poll
Which version of PHP-Fusion are you using?

6.xx.xx
6.xx.xx
4% [19 Votes]

7.00.xx
7.00.xx
8% [38 Votes]

7.01.xx
7.01.xx
8% [40 Votes]

7.02.xx
7.02.xx
81% [404 Votes]

Votes: 501
You must login to vote.
Started: 26/03/2012 11:58

Polls Archive
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Connect via Facebook
Connect via Facebook
Our Coders
Shoutbox
You must login to post a message.

24-05-2013 04:24
Hi, I do think this is a great site. I stumbledupon it Wink I may revisit yet again since i have saved as a favorite it. <a href="http://review
sonraspberryketone
.tripod.co.uk">Raspb
erry

24-05-2013 01:10
mainkan disini games Permainan Memasak secara online

24-05-2013 00:42

23-05-2013 18:23

23-05-2013 01:18
swarovski schmuckswarovski schmuck swarovski schmuck günstigswarovski schmuck günstig

23-05-2013 01:17
monster beatsmonster beats beats by drebeats by dre

23-05-2013 01:16
ugg pas cherugg pas cher bottes uggbottes ugg

23-05-2013 01:14
ugg pas cherugg pas cher

23-05-2013 01:12
<a href="http://www.bo
ttesuggpaschersold
e.com/">ugg pas cher</a>ugg pas cher

22-05-2013 05:14

Shoutbox Archive
In memoriam

Nick Jones
1973-2011

Sponsors
View Thread
Who is here? 1 guest(s)
 Print Thread
Link in Shoutbox
afoster
How do you add a link in the shoutbox? Is it possible?
 
Smokeman
Yes - just use the URL-bbcode - like here on this site.
 
Web
afoster
Thanks. Got it working to where if you click on it you will be taken to the web page, but can't figure out where to put the name so that instead of seeing the code, you see the name.
 
MarcusG
Download source  Code
[url=YOUR_LINK ]YOUR TEXT[/url]




without the space after YOUR_LINK
Edited by MarcusG on 25-09-2010 23:16
phpfusion.marcusg.de/signaturen/marcusg_1.png
 
afoster
Thank you MarcusG, that is what I was looking for. Is it possible to change the font color of the link? I used the html code for it, but it did not work.
 
Smokeman
Yes it is possible.

Open up the file /includes/bbcodes/url_bbcode_include.php and overwrite the code with this code:
Download source  Code
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2009 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: url_bbcode_include.php
| Author: Wooya
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

//Url BBCode with auto triming long links
$linkcolor = "000000"; // Define the linkcolor
$text = preg_replace('#\[url\]([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\"]*?)([\r\n]*)\[/url\]#sie', "'<a href=\'\\2\\3\' target=\'_blank\' title=\'\\2\\3\'><font color=\'#".$linkcolor."\'>'.trimlink('\\2\\3', 20).(strlen('\\2\\3')>30?substr('\\2\\3', strlen('\\2\\3')-10, strlen('\\2\\3')):'').'</font></a>'", $text);
$text = preg_replace('#\[url\]([\r\n]*)([^\s\'\"]*?)([\r\n]*)\[/url\]#sie', "'<a href=\'http://\\2\' target=\'_blank\' title=\'\\2\'><font color=\'#".$linkcolor."\'>'.trimlink('\\2', 20).(strlen('\\2')>30?substr('\\2', strlen('\\2')-10, strlen('\\2')):'').'</a></font>'", $text);
$text = preg_replace('#\[url=([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\"]*?)\](.*?)([\r\n]*)\[/url\]#si', '<a href=\'\2\3\' target=\'_blank\' title=\'\2\3\'><font color=\'linkcolor\'>\4</font></a>', $text);
$text = preg_replace('#\[url=([\r\n]*)([^\s\'\"]*?)\](.*?)([\r\n]*)\[/url\]#si', '<a href=\'http://\2\' target=\'_blank\' title=\'\2\'><font color=\'#".$linkcolor."\'>\3</font></a>', $text);
?>




Take a look at this line where you define what color the link should have:
Download source  Code
$linkcolor = "000000"; // Define the linkcolor



 
Web
afoster
Thanks Smokeman but it did not work. I am using theme Gillette1 if that makes any difference.
 
Smokeman
Then just use the inbuilt function:
Download source  Code
[*url=http://www.google.com][*color=#ff0000]Colored link[*/color][*/url]



- without the *
 
Web
afoster
Was never able to get this to work, but am not sure that it isn't because of the character limitation of the shoutbox (200 characters). The link is very long and when i add the code you suggested, there was no change to the link color. Thanks anyway for your help.
 
Smokeman
well, then try with a normal link that's not so long - like ex. http://www.google... - then it should work..
 
Web
- Tony -
If the problem is very long links, use http://tinyurl.com or another shorten link service before posting in shoutbox





www.lemviginfo.dk/platuglerne_ikon2.gif www.lemviginfo.dk/images/lemviginfo_dk.gif www.lemviginfo.dk/images/lemvig_info.gif www.lemviginfo.dk/images/test_site.gif www.lemviginfo.dk/images/test7.gif
 
Web
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Link to Avatar Studio/Gallery on user_info_panel.php? Coding Support 5 05-03-2013 03:14
[Resolved] Shoutbox Mod/Infusion Modification Request 6 05-03-2013 02:01
Shoutbox Tweeks Coding Support 27 05-03-2013 01:42
avatar with download and Link with profil > UPLOAD,DOWNLOAD,CHATBOX Mod/Infusion Modification Request 1 20-11-2012 12:49
scrolling shoutbox Mod/Infusion Modification Request 4 29-08-2012 15:03