Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Confirm Correct Forum Before New Thread (AJAX) Details »»
Confirm Correct Forum Before New Thread (AJAX)
Version: 1.00, by ChurchMedia ChurchMedia is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-01-2006 Last Update: Never Installs: 16
Uses Plugins Template Edits
 
No support by the author.

There is a better version here:
https://vborg.vbsupport.ru/showthrea...hreadid=114388

NOTE: To use this mod you have to disable the WYSIWYG editor option. Go to vBulletin Options > Message Posting Interface Options and set Full Editor to "Enable Standard Controls".

This product will ask the user if they are sure that they are in the correct forum before posting a new thread. If they click "Yes" then the New Thread box will appear immediately (via AJAX).

If they are not in the correct forum, they will be able to choose a different forum from a drop-down box (similar to forum jump). When they choose a different forum it automatically takes them to a new thread in that forum, where they are asked to confirm again.

This should save a lot of headaches with people posting in the wrong forums. It reduces thread-moves.


1) Install the product

2)Find in newthread:
PHP Code:
$navbar 
BELOW Add:
PHP Code:
<div id='thread_confirm' align="center"><br /> 
<
table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" style="border-width: 1px"
<
tr class="tcat"><td><div align="left">&nbsp<img id="pi_4" title="Exclamation" onclick="rb_iconid_4.click()" alt="Exclamation" src="images/icons/icon4.gif"><b>&nbsp Confirm Forum</b></div></td></tr
<
tr

    <
td class="alt1"
<
div align="center"><br />You are about to post a new thread in the <u><b>$foruminfo[title]</b></u>  
forum.<br /> 
<
i><b>Please make sure this is the correct forum for your topic.</b></i
<
br /><br /> 
<
input type='button' class='button' value='YES, $foruminfo[title] is the correct forum!' onclick='cm_NewThread(this)' /><hr
NoI need to post in a different forum:<br
$forumjump2 
<br /> 
    </
td

    </
tr
</
table
</
div

<
script type='text/javascript'
<!-- 

function 
cm_NewThread(cButton

document.getElementById('new_thread').style.display 'block'
document.getElementById('thread_confirm').style.display 'none' 


--> 
</
script
3) Find (still in newthread):
PHP Code:
<form action="newthread.php" method="post" name="vbform"<if condition="!is_browser('webtv')"onsubmit="return vB_Editor['$editorid'].prepare_submit(this.subject.value, $vboptions[postminchars])"</if>> 
Add ABOVE:
PHP Code:
<div id='new_thread' style='display:none'
4) Find (still in newthread):
PHP Code:
$footer 
Add ABOVE:
PHP Code:
</div

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 04-03-2006, 01:51 PM
mat64's Avatar
mat64 mat64 is offline
 
Join Date: Dec 2005
Location: York, England
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work
Reply With Quote
  #13  
Old 04-03-2006, 02:43 PM
treasureman treasureman is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This still does not work in the lastest Mozilla browser 1.7.12. I don't know about Firebox but I think it is supposed to share the workings of Mozilla.

When you click on 'yes' to post to the forum the box for the message is "grayed out" and does not allow you to put your curser in it and post anything.

I just downloaded and installed the latest xml file and made the template changes as per above. Had to uninstall it.
Reply With Quote
  #14  
Old 04-03-2006, 09:06 PM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by treasureman
This still does not work in the lastest Mozilla browser 1.7.12. I don't know about Firebox but I think it is supposed to share the workings of Mozilla.

When you click on 'yes' to post to the forum the box for the message is "grayed out" and does not allow you to put your curser in it and post anything.

I just downloaded and installed the latest xml file and made the template changes as per above. Had to uninstall it.
I just downloaded Mozilla and the hack works fine. Double-check all of your code.
Reply With Quote
  #15  
Old 04-03-2006, 09:25 PM
treasureman treasureman is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChurchMedia
I just downloaded Mozilla and the hack works fine. Double-check all of your code.

Okay I will install it for the 3rd time and let you know.

I installed it yesterday, and it didn't work. I noticed later that you stated that it didn't work in Firefox. So I uninstalled.

Today I noticed that you said the Firefox problems had been fixed. So I re-downloaded the XML file and installed the product as well as re-edited the templates. Didn't work, that's when I posted my message.

So I will try it all again and let you know later how it comes out. Perhaps the XML file I downloaded had not been updated?
Reply With Quote
  #16  
Old 04-03-2006, 10:12 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The issue regarding Firefox is both valid and invalid. At least for Firefox, if the editor interface is "basic" or "standard" the script will work. However, if the interface is "Enhanced" it won't work. This issue seems to be quite common as I noticed other hacks have had the problem.

I'm looking into the "vbulletin_textedit.js" file for the Frame and ID bits...
Reply With Quote
  #17  
Old 04-03-2006, 10:28 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Tim

Install
Reply With Quote
  #18  
Old 04-03-2006, 11:09 PM
treasureman treasureman is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Freesteyelz
The issue regarding Firefox is both valid and invalid. At least for Firefox, if the editor interface is "basic" or "standard" the script will work. However, if the interface is "Enhanced" it won't work. This issue seems to be quite common as I noticed other hacks have had the problem.

I'm looking into the "vbulletin_textedit.js" file for the Frame and ID bits...
Aha, that explains it. I always use the "advanced" posting window so I will have the advanced editing tools available.

Guess I will wait until this issue gets fixed before I try installing this again.
Reply With Quote
  #19  
Old 04-04-2006, 12:45 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Freesteyelz
The issue regarding Firefox is both valid and invalid. At least for Firefox, if the editor interface is "basic" or "standard" the script will work. However, if the interface is "Enhanced" it won't work. This issue seems to be quite common as I noticed other hacks have had the problem.

I'm looking into the "vbulletin_textedit.js" file for the Frame and ID bits...
Arrrr... You're right. The advanced editor doesn't work in Firefox with this hack. It works in IE. I have no idea what the problem is. On my board, I just disabled the WYSIWYG editor -- but that's not the best solution, obviously.
Reply With Quote
Reply

Thread Tools

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 04:11 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05022 seconds
  • Memory Usage 2,314KB
  • Queries Executed 26 (?)
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
  • (6)bbcode_php
  • (4)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
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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