Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Cyb - Check If Already Posted Details »»
Cyb - Check If Already Posted
Version: 1.5, by Valter Valter is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.8 Rating:
Released: 08-03-2006 Last Update: 01-23-2007 Installs: 309
Uses Plugins Template Edits
 
No support by the author.

vB 3.7 VERSION HERE:
https://vborg.vbsupport.ru/showthread.php?t=177936


=======

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.


Click INSTALL if you like this hack.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 12-21-2006, 05:00 PM
Dennis B's Avatar
Dennis B Dennis B is offline
 
Join Date: Jul 2002
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cyb,

Thanks for the hack. A question:

It seems to me that when you do the search you take the string entered for the title and throw it in the search here: &query='+document.vbform.subject.value+'.

If I understood this right, and from the hack's behavior in my forums, it's looking for a complete, closed string, not for individual words. It's searching for ALL words. What I'm seeing happening is lots of topics with similar titles not being found because of this, when IMHO it should be looking for ANY of the words in the topic title.

Please let me know if I understood this wrong. Thanks!
Reply With Quote
  #43  
Old 12-27-2006, 04:07 PM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just INSTALLED Cyb ... great job!
Reply With Quote
  #44  
Old 12-27-2006, 04:31 PM
soulface's Avatar
soulface soulface is offline
 
Join Date: Sep 2005
Location: Dhaka, BD
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on my test forum. getting this database error on the popup window when pressing the check button...

Code:
Database error in vBulletin 3.6.4:

Invalid SQL:

					SELECT * FROM search AS search
					WHERE searchhash = '988d44f247e6410275625fa424f5f84d'
						AND userid = 1
						AND completed = 1;

MySQL Error  : Unknown column 'completed' in 'where clause'
Error Number : 1054
Date         : Thursday, December 28th 2006 @ 12:30:08 AM
Script       : http://127.0.0.1/search.php?do=process&titleonly=1&query=testing
Referrer     : 
IP Address   : 127.0.0.1
Username     : Eros
Classname    : vb_database
Reply With Quote
  #45  
Old 12-27-2006, 08:05 PM
The dman The dman is offline
 
Join Date: Nov 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another good one:up: installed

Thanks
Reply With Quote
  #46  
Old 01-23-2007, 06:03 PM
Silviu's Avatar
Silviu Silviu is offline
 
Join Date: Oct 2001
Location: Bucharest, Romania
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cybernetec View Post
Hi InTeNsE-HuMoR,

This option is to exclude "Check If Already Posted" function in selected forums, not to exclude forums from searching. This can be done via standard forum options.
Great hack Cybernetec :up:, but unfortunately I don't know how to exclude certain forums (like the Publicity ones) from the hack's search. Is there any template editing involved or is there an option in the ACP that I'm missing?
Reply With Quote
  #47  
Old 01-24-2007, 10:17 AM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Upgrade info: Import XML, allow overwrite.

Check new screenshots...
Reply With Quote
  #48  
Old 01-24-2007, 10:20 AM
Terminatoronly's Avatar
Terminatoronly Terminatoronly is offline
 
Join Date: Mar 2006
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

really cool nice updates mate i like it much nominated
Reply With Quote
  #49  
Old 01-24-2007, 10:20 AM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Silviu View Post
Great hack Cybernetec :up:, but unfortunately I don't know how to exclude certain forums (like the Publicity ones) from the hack's search. Is there any template editing involved or is there an option in the ACP that I'm missing?
All permissions set for regular searching are applied to this too.
Quote:
Originally Posted by Dennis B View Post
If I understood this right, and from the hack's behavior in my forums, it's looking for a complete, closed string, not for individual words.
It does exactly the same as regular search. I have improved codes a bit in the latest version. Please upgrade and check if problem is gone.
Reply With Quote
  #50  
Old 01-24-2007, 10:25 AM
Terminatoronly's Avatar
Terminatoronly Terminatoronly is offline
 
Join Date: Mar 2006
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi cyb i love all of ur hacks but can u do this thing add ajax thing when u put title of the thread it will automaticly search for the thread if its already posted?
Reply With Quote
  #51  
Old 01-24-2007, 10:38 AM
Mecho's Avatar
Mecho Mecho is offline
 
Join Date: Aug 2006
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated ...

Nice and thanks again
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05611 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete