MyBB Hacks

Full Version: Quick Thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Note than in MyBB 1.8 a prefix may be required by forum but this plugin doesn't build the prefix selecion at all.
Frown

I'm looking for a code in the Quick Thread php file where I can add/edit the condition about custom fields required/not required..some input? Angel

Where did you add the code for only custom fields required? Erf
(06-29-2015 03:42 PM)Sama34 Wrote: [ -> ]Note than in MyBB 1.8 a prefix may be required by forum but this plugin doesn't build the prefix selecion at all.
Thanks for the note.  Updated to 1.4, which adds in the prefix selector.

(07-14-2015 08:42 AM)nier3 Wrote: [ -> ]I'm looking for a code in the Quick Thread php file where I can add/edit the condition about custom fields required/not required..some input? Angel

Where did you add the code for only custom fields required? Erf
inc/xthreads/xt_forumdhooks.php

PHP Code:
	// filter out non required fields (don't need to filter out un-editable fields as editable by all implies this)
	foreach($edit_fields as $k => &$v) {
		if(!empty($v['editable_gids']) || $v['editable'] != XTHREADS_EDITABLE_REQ)
			unset($edit_fields[$k]);
	}

Thank youuuu!

in inc/xthreads/xt_forumdhooks.php edited:

PHP Code:
if(!empty($v['editable_gids']))


and in forumdisplay_quick_thread template used {$GLOBALS['tfinput']['test']} to show custom fields (with Hide input field on New/edit thread checked).

Now it seems to work with all: required, not required, hide input field etc.

Thank you Love

Hi, how can I add editor in quickthread? :x

(don't kill me Biggrin )
Add this:

PHP Code:
$codebuttons = build_mycode_inserter('message',$foruminfo['allowsmilies']);

before:

PHP Code:
eval('$GLOBALS[\'quickthread\'] = "'.$templates->get('forumdisplay_quick_thread').'";');


Add codebuttons to the templatelist:

PHP Code:
if(isset($templatelist)) $templatelist .= ',forumdisplay_quick_thread,post_prefixselect_prefix,post_prefixselect_single,codebuttons';


Add {$codebuttons} after the textarea tags inside the forumdisplay_quick_thread template.

Thank you very much RateU! It work perfectly Biggrin Biggrin Thank you
is there anyway to place this quick new thread in INDEX page?
You could probably do it but you'd need to think of which forum it should map to.
If you want the forum to be selectable, you'd likely need some other custom plugin though.
Pages: 1 2 3 4 5
Reference URL's