Url Already Submited
#11
oo soz http://www.google.com
Reply
#12
Ok, this plugin will take the message, and if that message is already contained in any other message, it will show an error.


Attached Files
.php   submitted.php (Size: 1.18 KB / Downloads: 112)
Reply
#13
wowww thanks just what i need
Reply
#14
most of my forum members use word to link like this

test

could you make it so it searches that url not the word

thanks
Reply
#15
How's this?


EDIT: added version for new topics, too


Attached Files
.php   submitted.php (Size: 1.41 KB / Downloads: 107)
Reply
#16
it seems not to be working on myn i activated the plugin tried testing it with google and allowed it
Reply
#17
You tried posting 2 links to google? It works for me.
Reply
#18
ok it worked for post but i dont want that i want people to post the same words over and over again in the threads but only urls i want it to do in 2 forums can you come on http://xat.com/chat/room/27354484/ to help me please live chat
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)