MyBB Community Forums

Full Version: Replace raw url text to title
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Oh, allright then Smile
Is there anyway to add the function that if it does not find a title
"::Link (no title found)::" it just gives the original http://blablalink?
(2009-08-17, 08:43 PM)gavpedz Wrote: [ -> ]Is there anyway to add the function that if it does not find a title
"::Link (no title found)::" it just gives the original http://blablalink?

hmm.. just find :

return "<a href='$url'>::Link (no title found)::</a>";

and replace it with

return "<a href='$url'>$url</a>";

Thats it..

and POST ANY MORE REQUIREMENTS IF ANY, FOR THIS MOD/EDIT.
Great thanks
Doesn't working on my forum. Every link is "broken" or I'm doing something wrong with class_parser.php edits.
(2009-09-20, 10:20 PM)DamYan Wrote: [ -> ]Doesn't working on my forum. Every link is "broken" or I'm doing something wrong with class_parser.php edits.

can you please give all the contents of that parser php file so that i can check it out ?
in me forum was an error in this line
$name = urltitlefind($url); 
Don Workme This

(2009-08-19, 12:25 PM)sushruth Wrote: [ -> ]
(2009-08-17, 08:43 PM)gavpedz Wrote: [ -> ]Is there anyway to add the function that if it does not find a title
"::Link (no title found)::" it just gives the original http://blablalink?

hmm.. just find :

return "<a href='$url'>::Link (no title found)::</a>";

and replace it with

return "<a href='$url'>$url</a>";

Thats it..

and POST ANY MORE REQUIREMENTS IF ANY, FOR THIS MOD/EDIT.
Is it an idea that you make a second codechange/mod what does this:

Change all URL's to de main domain name, like this:
(all examples)
http://community.mybboard.net/thread-42123.html
to
mybboard.net
or
http://thepiratebay.org/s/?q=&category=0&page=0&orderby=99
to
thepiratebay.org

I think that it's a quite easy solution, but i'm not a PHP programmer.
Pages: 1 2 3 4 5