The Arcive of vBulletin Modifications Site. |
|
Create new thread button Details »»
|
|||||||||||||||||||||||||
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+'">    '+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+'">      '+a.title+"</a></li>")})})})},error:vBulletin.ajaxtools.logAjaxError,api_error:vBulletin.ajaxtools.logApiError})}$("#delicreatenewthread").click(function(e){e.preventDefault(),delinewthreadpopup()}); </script> HTML Code:
<button id="delicreatenewthread" class="b-button b-button--special" type="submit">Create a new Thread</button> It is just an example but ready to use. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Hmm this breaks our registration forum
|
|
#3
|
||||
|
||||
|
Please try the updated code. There was a wrong script-tag at the end of it. Iam sorry!
|
|
#4
|
|||
|
|||
|
You have a screenshot?
|
|
#6
|
|||
|
|||
|
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 ?
|
|
#7
|
||||
|
||||
|
Did you update from a previous version or is it a fresh installed vB?
|
|
#8
|
|||
|
|||
|
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. |
|
#9
|
||||
|
||||
|
I will take a look as soon I have time for it
|
|
#10
|
|||
|
|||
|
5.6.3 compatible?
|
![]() |
|
|