Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
razor
New Member
New Member



Joined: Oct 14, 2005
Posts: 22

PostPosted: Fri Nov 10, 2006 3:33 am Reply with quote

Ok this is a little hard to explain, but here goes lol...
When someone submits a comment with a url in it to download something, it shows the download as a link but it shows the link to where the download is coming from in brackets (example - Download [razor-custom.com])... So what i want to know is how to keep it from showing the (example - [razor-custom.com]) part in the comment, so that it just shows "Download" as a link with no "[ ]" after it... Thanks for any replies in advance!
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Fri Nov 10, 2006 8:55 am Reply with quote

Its a feature for the news, so that people don't try and post fake links

You can disable it in modules/News/comments.php
Just delete the function format_url and replace with

Code:


function format_url($comment) {
    return $comment;
}

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
razor







PostPosted: Fri Nov 10, 2006 9:19 pm Reply with quote

Thanks for the help!
 
razor







PostPosted: Fri Nov 10, 2006 9:38 pm Reply with quote

worked like a charm Very Happy
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sat Nov 11, 2006 4:48 am Reply with quote

Just note what changes you make, you might want to change it back when you start getting comment spam.
 
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©