MyBB Hacks

Full Version: Gallery
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
This is very interesting, I may use it for my International Space School site.
Hi, this is very good plugin. I would like to know how can I add link to thread in postbit first.

That is I click on image (xthreads attachment) of the first postbit and I go directly in thread.

I tried this:

Code:
<div style="text-align: center; margin-bottom: 0.5em; margin-top: 0.5em;">
<a href="{$GLOBALS['threadfields']['gal_link']}" target="_blank"><img src="{$GLOBALS['threadfields']['gal_img']}" alt="image" width="{$GLOBALS['threadfields']['gal_img']['dims']['w']}" height="{$GLOBALS['threadfields']['gal_img']['dims']['h']}" /></a>
</div>


but if I click on image I go still to JPG image..thanks

(11-14-2012 01:18 AM)nier3 Wrote: [ -> ]how can I add link to thread in postbit first.
I don't understand you there.
Hmmm... how can I get images from posts to show up in the portal? It just displays the thread message but not the image..

EDIT: Gosh danggit.  Every single time I ask for help, I find an answer on my own. Your forums are magic, thank you. haha.
(11-17-2012 06:59 PM)ZiNgA BuRgA Wrote: [ -> ]
(11-14-2012 01:18 AM)nier3 Wrote: [ -> ]how can I add link to thread in postbit first.
I don't understand you there.


Hi, I resolved that problem, but I would have another question. Why image doesn't appear also on gal_postbit_first?

I have copied this code from gal_forumdisplay_thread:

Code:
<img src="{$threadfields['gal_img']['thumbs']['280x280']['url']}" alt=" " width="{$threadfields['gal_img']['thumbs']['280x280']['w']}" height="{$threadfields['gal_img']['thumbs']['280x280']['h']}" />


to gal_postbit_first, but there isn't image..where is the problem? I thought image was available also on other templates (in this case on gal_postbit_first). Thank you

Replace $threadfields with $GLOBALS['threadfields']
(02-05-2013 09:28 AM)ZiNgA BuRgA Wrote: [ -> ]Replace $threadfields with $GLOBALS['threadfields']

Thank you very much! Biggrin
Oh dear, I'm on stage two and upon accessing custom thread fields I get an error. I'd rather post the screenshot to ZiNgA BuRgA directly so check your inbox for the image. Thank you.
Quote:Warning [2] require(.../modules/config/threadfields.php) [function.require]: failed to open stream: No such file or directory

It tells you right there what the problem is.  You're missing files - ensure you've uploaded everything correctly.
I thought that was the problem, but I navigated via FTP earlier and found:

Code:
domainname.com/forums/admin/modules/config/threadfields.php (56,045 bytes)


Ouch

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Reference URL's