MyBB Hacks

Full Version: xthread- thread image not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
post edited : thread image is working now but is there any option to make firtst attachment to thread image???? and one more thing if all the pics is arranged in proper manner like in last pic then that will be great
hi everyone!!

i want to implement Thread images to my forum but i am not successful can anyone tell me what is the problem???

all the information also shared by pics on attachments and 2nd last pic of my forum after adding this thread field.

my forum: http://studentsuvidha.com/forum/index.php

i am telling what i did:

Title : Thread Image
Key : timg
Description: Max file size: 10 KB. Max image size: 200x200. Min Image Size: 75x75. Image allowed: GIF, JPEG, PNG.
Modify it as our needs. Depends on some settings bellow.
Applicable Forums : Select forum(s) where this will be applied
Input Field Type : File
Valid File Extensions : gif|png|jpeg|jpg
Maximum File Size : 0

Editable by Usergroups : everyone required

Only Accept Image Files : Yes
Minimum Image Dimensions : 75x75
Maximum Image Dimensions : 200x200
Image Thumbnail Generation : 75x75

Display Format :

PHP Code:
<a href="{URL}" target="_blank"><img src="{URL}/thumb75x75" alt="{FILENAME}" title="Click to view this thread image in full size - {$GLOBALS['threadfields']['timg']['dims']['w']} x {$GLOBALS['threadfields']['timg']['dims']['h']}" style="margin: 3px; float: left;" /></a>


after that i added

Quote:{$GLOBALS['threadfields']['timg']['value']}
in front of

PHP Code:
<span>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>

(01-16-2014 12:57 AM)rkrusty26 Wrote: [ -> ]is there any option to make firtst attachment to thread image????
There is only one attachment in the Thread Image example.
Quote:There is only one attachment in the Thread Image example.

i mean to say if i upload 6-7 pics in attachments then first pic will be thread image or if only 1 pic uploaded in attachment then that will be thread image.

no need to upload thread image seprately

in short: pic in attachment will be thread image
(01-17-2014 12:50 AM)rkrusty26 Wrote: [ -> ]i mean to say if i upload 6-7 pics in attachments then first pic will be thread image or if only 1 pic uploaded in attachment then that will be thread image.

no need to upload thread image seprately

in short: pic in attachment will be thread image
If you're referring to MyBB post attachments, then they are unsupported by XThreads.
(01-17-2014 09:46 AM)ZiNgA BuRgA Wrote: [ -> ]
(01-17-2014 12:50 AM)rkrusty26 Wrote: [ -> ]i mean to say if i upload 6-7 pics in attachments then first pic will be thread image or if only 1 pic uploaded in attachment then that will be thread image.

no need to upload thread image seprately

in short: pic in attachment will be thread image
If you're referring to MyBB post attachments, then they are unsupported by XThreads.

oh thats my bad luck... is there any another plugin which can do that?? please tell me if you JapJapJap
Reference URL's