This will pull the first thumbnail from each thread in the forums you specify in the settings in the ACP.
This means that you need to be careful what picture you upload first. Options in the settings are the forums you want to get the pictures from and the number of pictures you want to show.
If you have a specific XThreads custom field containing pictures that you want to show, then let me know by replying here - give the KEY of the field.
If the templates dont update automatically add the variable {$fishhattachment_gallery} where you want it to show in your templates.
You can see the gallery on the front page of leefish - its the fresh fish attachment gallery. The BIG gallery with the ajax updates is my special one for leefish - its not really suitable to share as its all hardcoded.
NOTE: This is designed to work on portal - for proportal please see XThreads Gallery on Pro_Portal
This means that you need to be careful what picture you upload first. Options in the settings are the forums you want to get the pictures from and the number of pictures you want to show.
If you have a specific XThreads custom field containing pictures that you want to show, then let me know by replying here - give the KEY of the field.
If the templates dont update automatically add the variable {$fishhattachment_gallery} where you want it to show in your templates.
You can see the gallery on the front page of leefish - its the fresh fish attachment gallery. The BIG gallery with the ajax updates is my special one for leefish - its not really suitable to share as its all hardcoded.
NOTE: This is designed to work on portal - for proportal please see XThreads Gallery on Pro_Portal
Filesize 2.3 KB |
File Name Attachmentsgallery.rar | # of Downloads 359
Comments
#17
08-11-2012
It needs to have portal start hooks for portal announcements in it for this to work......
$plugins->run_hooks("portal_start");
It may actually work better if the gallery code is IN the php file. Send a copy of the file to me.
$plugins->run_hooks("portal_start");
It may actually work better if the gallery code is IN the php file. Send a copy of the file to me.
The site don't jive? PRESS F5
#19
09-11-2012
Yup, we found there were TWO issues:
The portal is outside the forum root, so in the custom thread field you need something like
[html]
<a href="{$mybb->settings['bburl']}/{URL}">{FILENAME}</a>
[/html]
And of course to have an image size of 160x120 in the thumbnail list.
as the plugin file has
The portal is outside the forum root, so in the custom thread field you need something like
[html]
<a href="{$mybb->settings['bburl']}/{URL}">{FILENAME}</a>
[/html]
And of course to have an image size of 160x120 in the thumbnail list.
as the plugin file has
PHP Code:
$fishhatt_att_thumb = xthreads_get_xta_url($fishhatt).'/thumb160x120';
The site don't jive? PRESS F5