MyBB Hacks

Full Version: XThreads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
is it still possible to update xthread to 1.8 cause im not sure if it should work now!
Hi, I would like ask you for a small advise:
I use this type of custom field:
- input field type: file
- editable/required by: everyone
- valid file expression: gif|png|jpg|jpeg
- maximum file size: 2097152
- image thumbnail generator: 90x135|320x240

I need to set into the field: Blank replacement Value - show a default image (myboard.com/defaultimage.png) automatically if there is no image added by user. How to do that, thank you!
(08-11-2017 10:28 PM)eldenroot Wrote: [ -> ]Hi, I would like ask you for a small advise:
I use this type of custom field:
- input field type: file
- editable/required by: everyone
- valid file expression: gif|png|jpg|jpeg
- maximum file size: 2097152
- image thumbnail generator: 90x135|320x240

I need to set into the field: Blank replacement Value - show a default image (myboard.com/defaultimage.png) automatically if there is no image added by user. How to do that, thank you!

If you haven't found any solution yet, you can try using something like this in your Blank Replacement Value

HTML Code
<img src="images/logo.png" alt="" />

I use a similar thing:

Code:
<if !$GLOBALS['threadfields']['your field name for image']['url'] then>
	<img src="if there isn't an image uploaded in Custom Thread Field I add here directly image of default" />
<elseif $GLOBALS['threadfields']['your field name for image']['url'] then>
	<img src="{$GLOBALS['threadfields']['your field name for image']['url']}/thumb400x400" alt="{$thread['subject']}" />
</if>

(08-15-2017 08:53 AM)RateU Wrote: [ -> ]
(08-11-2017 10:28 PM)eldenroot Wrote: [ -> ]Hi, I would like ask you for a small advise:
I use this type of custom field:
- input field type: file
- editable/required by: everyone
- valid file expression: gif|png|jpg|jpeg
- maximum file size: 2097152
- image thumbnail generator: 90x135|320x240

I need to set into the field: Blank replacement Value - show a default image (myboard.com/defaultimage.png) automatically if there is no image added by user. How to do that, thank you!

If you haven't found any solution yet, you can try using something like this in your Blank Replacement Value

HTML Code
<img src="images/logo.png" alt="" />


Thank you!
Hello!

In editpost template, how can I specify the first post only? #1
Guys, is possible to show pinned threads in a row? For example 3 on the same row. I cannot find proper template to do that. Thank you very much!
I am trying to add a watermark to my images uploaded via XThreads. I found this in your documentation:

Scale down to 200x200 (or smaller) and add a watermark in the bottom-left corner (loaded from forum_root/images/logo.gif) - the watermark will be slightly transparent when blended (if PHP 5.2.5 or newer)
scale_max(200,200)->copy(newXTImg()->loadimage('images/logo.gif')->scale(50,50)->colorize(0,0,0,48),2,-2)

Anyway it seems to be not working (php 7.1 and MyBB 1.8.12). Is there any way how to create a thumbnail with watermark but without scaling (now I use 160x120). Thank you!
Hi guys!  I just upgraded xThreads to the latest version on my 1.8.14 board and there was no upgrade notice in my ACP to run...is this correct or is something wrong?  I just uploaded he files via FTP as instructed and went to the ACP...but no upgrader??
Hi
I have a question regarding the inc\xthreads\xt_updatehooks.php script. What are these two lines responsible for? (lines #1255, 1256)

PHP Code:
	$templates->cache['postbit'] = $js.$templates->cache['postbit'];
$templates->cache['postbit_classic'] = $js.$templates->cache['postbit_classic'];


is it safe to //comment the first one? As I found that it collides with my forum modifications when sending a quickreply post from Internet Explorer.

-edit ok, nevermind, it was the <!-- //--> comments tags at lines #1249, #1252 that was causing the script to hang up on Internet Explorer.

Reference URL's