Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2002
Posts: 34
User
User
Offline
Joined: Apr 2002
Posts: 34
Ok, got the graemlins working in the shoutbox, what do I need to do to make it so people can post a link?
Right now if you post a link and hit the submit button, you get this error:

"No message after formatting."

I would really like to be able to post links in my shoutbox!
Can anyone help?

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Looks like in /pals/shoutaddal.php there is this code to remove links:

Code
<br />		$Body = preg_replace("/\[url\]ftp:\/\/([^\[]*?)\[\/url\]/i","",$Body);<br />		$Body = preg_replace("/\[url\]http:\/\/([^\[]*?)\[\/url\]/i","",$Body);<br />		$Body = preg_replace("/\[url\]https:\/\/([^\[]*?)\[\/url\]/i","",$Body);<br />		$Body = preg_replace("/\[url\]([^\[]*?)\[\/url\]/i","",$Body);<br />		$Body = preg_replace("/\[url=http:\/\/(.*?)\]([^\[]*?)\[\/url\]/i","",$Body);<br />		$Body = preg_replace("/\[url=https:\/\/(.*?)\]([^\[]*?)\[\/url\]/i","",$Body);<br />		$Body = preg_replace("/\[url=(.*?)\]([^\[]*?)\[\/url\]/i","",$Body);<br /><br />


As a link in the shoutbox would most likely cause scrolling for sure. You could try commenting out this bit of code.

Joined: Apr 2002
Posts: 34
User
User
Offline
Joined: Apr 2002
Posts: 34
Thanks Josh! That did it - Got it working.
I am not worrying about it causing scrolling, I am kinda hacking this thing and creating a whole chat system.
I got the two hardest things done, the graemlins and links.

I had tested out the RaiderSoft Chat but for my users it was too hard to keep explaining things. I need to keep it as simple as possible and this is going to work perfect!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)