MyBB Hacks

Full Version: XThreads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ohh thats sad..

Btw.. Currently making a custom page
is the globals can be acquired if a thread id is already present? Like tid or thread['tid']?

Or should  i really fetch it from db?
If thats the case... Any sample code? Lol

u might also check out mybb 1.8 so if in case it is released... Yeaahh xthreads is compatible lol
(04-04-2012 01:06 PM)jim7777 Wrote: [ -> ]Btw.. Currently making a custom page
is the globals can be acquired if a thread id is already present? Like tid or thread['tid']?

Or should  i really fetch it from db?
If thats the case... Any sample code? Lol
I don't know what your custom page is like or how it even relates to threads, so I can't give an answer.

(04-04-2012 01:06 PM)jim7777 Wrote: [ -> ]u might also check out mybb 1.8 so if in case it is released... Yeaahh xthreads is compatible lol
I thought the plan was 1.6 -> 2.0.  In either case, it's pointless to think about a potential 1.8 since there's nothing available to look at.
According to the MYBB blog there will be a 1.8 version of MYBB. The main things seem to be a better post editor and it will run on jquery front and back end.

http://blog.mybb.com/2012/04/03/mybb-1-8...http://blog.mybb.com/2012/04/03/mybb-1-8-tour-int
Fair enough.  Probably won't change much here then.
well i'm constructing a custom forumdisplay.php page
but it's just almost the same, but regarding the functions, its kinda different since it has its own tables, jscripts, templates and such..
plus a different new thread parser.. apart from the forum itself..

well i tried using forumdisplay as its plugin hook.. apparently, google seo seems to redirect me to forumdisplay.php instead of the page i want..

So that's how the main parts work so I will need the fields since most of the things i need to parse are in there...

did you get it? Oh
If you want to use your own "parser" to "parse" XThreads data, you can find it in threadfields_data table. For XThreads attachments info, you can find it in xtattachments tabe.
Personally (only my personal opinion), I prefer to use XThreads "parser".
Eh, if Google SEO is the only problem, disable it for that page?
(04-04-2012 12:44 PM)ZiNgA BuRgA Wrote: [ -> ]A multi-file input field is somewhat more difficult to implement.
It's definitely something I've considered though, as there's plenty of places where it could be useful.

Ah, okay. If there's any way I can help implement that, I'd be glad to. Which files in the code are responsible for defining the field type definitions (the textbox, textarea, etc. stuff)?
Near the top of inc/plugins/xthreads.php you'll find some constants which point to field types.  You can perform a file search on those.

PHP Code:
define('XTHREADS_INPUT_TEXT', 0);
define('XTHREADS_INPUT_TEXTAREA', 1);
define('XTHREADS_INPUT_SELECT', 2);
define('XTHREADS_INPUT_RADIO', 3);
define('XTHREADS_INPUT_CHECKBOX', 4);
define('XTHREADS_INPUT_FILE', 5);
define('XTHREADS_INPUT_FILE_URL', 6);
define('XTHREADS_INPUT_CUSTOM', 7);


But doing a multi-valued file input is a fair bit more difficult than just that - you'll not only need to change the database structure and some queries a bit, but you'll also need to consider how it maps to template variables.  If you're willing to do it though, by all means do so.

I can't stop google seo from running through the plugin hooks and it doesn't have any settings for that

perhaps i might just edit xthread's files
Reference URL's