Info:
User can check if the same/similar thread already exist when posting new one. Button is shown right after the thread title field in newthread form. When button is clicked then javascript code opens popup window with search results. Entered thread title is used as search query. Additionaly you can choose to search thread titles only or entire posts, to show results as threads or posts, to search current forum only or all. You can also exclude forums in ACP, set default pop-up window dimensions,...
All search permissions (by usergroups, forums) will be applied here too.
Installation:
1. Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
2. OPTIONAL (for very customized styles - if button not shown):
In newthread template find: <td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
Below it add: $cybcheckifposted
To set options go to: AdminCP > vBulletin Options > Cyb - Check If Already Posted
Versions: v1.0 - May 18. 2006.
-Initial Release v1.1 - Aug 04. 2006.
-Release of this hack for vB v3.6 v1.2 - Aug 05. 2006.
-Uncached template bug fixed v1.3 - Sep 20. 2006.
-Added option to exclude forums
-Added Product Version Checking
-Compatibility with different styles improved
-Few other improvements in code (new hook location, removed 1 template,...)
-Few other improvements in code (new hook location, removed 1 template,...) v1.4 - Oct 08. 2006.
-Fixed bug (button not automatically added to the newthread form on vB 3.6.2)
-Fixed some validation issues (mentioned by ForumDog) v1.5 - Jan 24. 2007.
-Added menu with search options which automatically expands when you mouse-over button.
-Search options in ACP changed. Now you just set default values for options shown to user.
v1.4 - Oct 08. 2006.
-Fixed bug (button not automatically added to the newthread form on vB 3.6.2)
-Fixed some validation issues (mentioned by ForumDog)
This option is to exclude "CheckIfAlreadyPosted" function in selected forums, not to exclude forums from searching. This can be done via standard forum options.
this hack is great but I imported the xml and the button didn't show up so I manually added $cybcheckifposted to newthread template but still nothing, this used to work with 3.6.1 but now it doesn't, using 3.6.3, any idea?
btw hack is enabled.
never mind, got version 1.4 and problem solved, thanx again for this great hack
Is it possible to do this Query directly on the database ? If found a modification for the WoltLab Burning Board and need this as posted, but that it works for the VB
PHP Code:
$istopic = $db -> query_first ("SELECT * FROM bb".$n."_threads WHERE topic='".addslashes($topic)."'");
if ($istopic['topic'] == $topic) $error .= '<li>Topic is alreadyposted...</li>';
I would like to have this feature because not everybody who posts a new thread will check via this button.
So this feature if the thread is really alreadyposted the user will not able to submit this topic until he changes his threadtitle