Go Back   vb.org Archive > vBulletin Modifications > vBulletin 5.x Modifications > vBulletin 5.x Products & Extensions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Create new thread button Details »»
Create new thread button
Version: 1.00, by delicjous delicjous is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 5.4.2 Rating:
Released: 08-25-2019 Last Update: Never Installs: 4
Re-useable Code  
No support by the author.

I made a mod for this in the past, but I decide to make it compatible with cloud.

Installinstructions:

Just create a template and hook it to footer_before_body_end.

-Create a template: /admincp/template.php?do=modify& -> choose action dropdown -> Add new template.

Hook it to footer_before_body_end: /admincp/hook.php? Create new hook at the bottom, choose the mentioned hook and put the name of the template into "Template Name".

Fill the template with the following code:
HTML Code:
<style>
.deli-crneto li {
	font-size:15px;
	margin-bottom:5px;
	line-height:16px;
}
.deli-crneto #btnConfirmDialogYes {
	display:none;
}
.deli-crneto .delicnt_cat {
	background-color:lightgray;
}
</style>
<script>
function delinewthreadpopup(){var a=openConfirmDialog({title:vBulletin.phrase.get("create_new_topic"),message:vBulletin.phrase.get("loading")+"...",width:500,dialogClass:"deli-crneto loading",buttonLabel:{noLabel:vBulletin.phrase.get("cancel")}});vBulletin.AJAX({call:"/ajax/api/node/fetchChannelNodeTree",data:{parentid:2,depth:5,pagenum:1,perpage:150},success:function(e){$(".deli-crneto").removeClass("loading"),$(".dialog-content .message",a).html('<ul class="crneto_list"></ul>'),$.each(e.channels,function(e,a){var t=pageData.baseurl+"/new-content/"+e;1==a.category?$(".crneto_list").append('<li class="depth_'+a.depth+' delicnt_cat">'+a.title+"</li>"):$(".crneto_list").append('<li class="depth_'+a.depth+'"><a href="'+t+'">   '+a.title+"</a></li>"),void 0!==a.subchannels&&$.each(a.subchannels,function(e,a){var t=pageData.baseurl+"/new-content/"+e;$(".crneto_list").append('<li class="depth_'+a.depth+'"><a href="'+t+'">  &nbsp&nbsp '+a.title+"</a></li>"),void 0!==a.subchannels&&$.each(a.subchannels,function(e,a){var t=pageData.baseurl+"/new-content/"+e;$(".crneto_list").append('<li class="depth_'+a.depth+'"><a href="'+t+'">  &nbsp&nbsp&nbsp&nbsp   '+a.title+"</a></li>")})})})},error:vBulletin.ajaxtools.logAjaxError,api_error:vBulletin.ajaxtools.logApiError})}$("#delicreatenewthread").click(function(e){e.preventDefault(),delinewthreadpopup()});
</script>
Now you could place a button everywhere you want like that:
HTML Code:
<button id="delicreatenewthread" class="b-button b-button--special" type="submit">Create a new Thread</button>
You could also use every other html-tags. Just put the id on it: id="delicreatenewthread"

It is just an example but ready to use.

Show Your Support

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

Comments
  #2  
Old 08-26-2019, 06:51 PM
Kinkshaven Kinkshaven is offline
 
Join Date: Aug 2019
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm this breaks our registration forum
Reply With Quote
  #3  
Old 08-27-2019, 01:39 AM
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kinkshaven View Post
Hmm this breaks our registration forum
Please try the updated code. There was a wrong script-tag at the end of it. Iam sorry!
Reply With Quote
  #4  
Old 08-27-2019, 10:14 AM
migratoria migratoria is offline
 
Join Date: Oct 2011
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have a screenshot?
Reply With Quote
  #5  
Old 08-27-2019, 11:21 AM
Kinkshaven Kinkshaven is offline
 
Join Date: Aug 2019
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by migratoria View Post
You have a screenshot?
Here you go I attached some (please ignore the black out it's just we run a NSFW forum)
Attached Images
File Type: jpg IMG_20190827_0001.jpg (32.0 KB, 0 views)
File Type: jpg IMG_20190827_0002.jpg (35.8 KB, 0 views)
Reply With Quote
Благодарность от:
delicjous
  #6  
Old 05-07-2020, 01:05 PM
alphega alphega is offline
 
Join Date: Jan 2012
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, thanks for this mod.

But for me it works not on VB 5.6.0, a blank Windows appears, load few instants and display nothing. Any idea please ?

Reply With Quote
  #7  
Old 05-07-2020, 01:48 PM
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you update from a previous version or is it a fresh installed vB?
Reply With Quote
  #8  
Old 05-08-2020, 11:49 AM
alphega alphega is offline
 
Join Date: Jan 2012
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your reply

It's a fresh update from VB4. I tried to set it in module, notices and templates but got the same result.
Reply With Quote
  #9  
Old 05-08-2020, 03:51 PM
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will take a look as soon I have time for it
Reply With Quote
  #10  
Old 09-11-2020, 03:27 AM
ywwz ywwz is offline
 
Join Date: Jul 2009
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

5.6.3 compatible?
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 11:21 AM.


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.04482 seconds
  • Memory Usage 2,316KB
  • 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
  • (2)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete