Url Already Submited
#19
Many thanks,

That's a great idee !!!!!!

This little plug could be something very great for mybb......

And a must be for the future.

As said Labrocca the board could be very slow if there is a search request for all new post with url.

How about a mybb_database [link, #post, member, date] ?

I don't how it works exactly but i think, search request for this plug could be fast in big forums.

Many mods could be usefull with a database only for links in post.....


Create a badlist of links, forbid external link etc...
[/hr]


This plug is very interesting because we have a lot of edk link on my board.


ed2k://|file|Carte%20Seveso%20France%202003%20-%20Netcha%C3%AFev.gif|158493|6F5AAA292760418D4975
FA401083A434|h=UZ6IFKLL4F6QOTZ7RHOBSE2BX7S5XXHT
|/

The bolded part is the most important to check, because this kind of files can have many names for the same file or hash.
Carte%20Seveso%20France%202003%20-%20Netcha%C3%AFev.gif
The red parts never change.


I think the change could be done there :
//Search
$query=$db->simple_select(TABLE_PREFIX."posts", "message", "message LIKE '%{$url}%'");
$result = $db->fetch_field($query, "message");

Is it possible ?

Because for now the search is in all the post of the board, it could be interesting to choose the category where to search.

Maybee there :
global $mybb,$db;
$post=$mybb->input['message'];
$start=strpos($post,"=");
$url=substr($post,$start+1);
$end=strpos($url,"]");
$url=substr($url,0,$end);

I would like a search only in forums : fid=8 , fid=13 for exemple.
And only in the first post of the thread.

Are these possible ?


And to finish : In case the search found the link already exist then submit the error with "link already existe in this post : [link to this post]

I thinks that's all Wink

Thanks Smile
Reply


Messages In This Thread
Url Already Submited - by simonc - 2008-04-12, 08:13 PM
RE: Url Already Submited - by User 2877 - 2008-04-12, 11:18 PM
RE: Url Already Submited - by simonc - 2008-04-12, 11:45 PM
RE: Url Already Submited - by ari_aaron - 2008-04-16, 04:15 PM
RE: Url Already Submited - by simonc - 2008-04-16, 04:23 PM
RE: Url Already Submited - by ari_aaron - 2008-04-16, 04:29 PM
RE: Url Already Submited - by simonc - 2008-04-16, 04:41 PM
RE: Url Already Submited - by ari_aaron - 2008-04-16, 04:41 PM
RE: Url Already Submited - by simonc - 2008-04-16, 04:42 PM
RE: Url Already Submited - by ari_aaron - 2008-04-16, 04:45 PM
RE: Url Already Submited - by simonc - 2008-04-16, 04:54 PM
RE: Url Already Submited - by ari_aaron - 2008-04-16, 05:02 PM
RE: Url Already Submited - by simonc - 2008-04-16, 05:03 PM
RE: Url Already Submited - by simonc - 2008-04-16, 05:17 PM
RE: Url Already Submited - by ari_aaron - 2008-04-16, 05:41 PM
RE: Url Already Submited - by simonc - 2008-04-16, 06:08 PM
RE: Url Already Submited - by ari_aaron - 2008-04-16, 06:13 PM
RE: Url Already Submited - by simonc - 2008-04-16, 06:20 PM
RE: Url Already Submited - by darkside - 2008-05-11, 03:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)