Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Cant Disable Thumbnails on Treads
#1
hi!

i want to show entire images in threads not that thumbnails, so i changed the option for showing thumbnails on treadhs but it doesnt works, they are still thumbnails, how can i change this?
#2
Yea I'm having the same problem here.

I went through the get_post_attachments() function in functions_post.php, and apparently it displays the thumbnail link only basing on if its too small or not. In other words, it doesn't take the setting "attachthumbnails" into consideration.
[Image: rss.png]
#3
does anyone can help me??
#4
Yea I have a temporary fix. This is no way official.

replace your old functions_post.php in your /inc/ folder with this one.

.php   functions_post.php (Size: 18.07 KB / Downloads: 348)

For reference: The line changed are 499~503 and 521~525
[Image: rss.png]
#5
what did u changed... ican replace cuz i have another theme tahat use some special functions, and thats why i can change that file, just tell me what did u chnge and i will replace it in my function.php
#6
Oh ok.

FIND THE FIRST
if($attachment['thumbnail'] != "SMALL" && $attachment['thumbnail'] != "")

REPLACE WITH
if($mybb->settings['attachthumbnails'] == "no")
					{
						eval("\$attbit = \"".$templates->get("postbit_attachments_images_image")."\";");
					}
					elseif($attachment['thumbnail'] != "SMALL" && $attachment['thumbnail'] != "")


FIND THE SECOND
if($attachment['thumbnail'] != "SMALL" && $attachment['thumbnail'] != "")

REPLACE WITH
if($mybb->settings['attachthumbnails'] == "no")
					{
						eval("\$post['imagelist'] .= \"".$templates->get("postbit_attachments_images_image")."\";");
					}
					elseif($attachment['thumbnail'] != "SMALL" && $attachment['thumbnail'] != "")



If you would like, I can help you edit it.
[Image: rss.png]
#7
i gonna try it, tanks dude!
#8
well, it is working, tanks a lot!!

Blessings!
#9
If you make a new image attachment, does a thumbnail get generated? I think that's what the setting controls, the generation of the thumbnails, not the showing of the thumbnails...
Dennis Tsang
Former MyBB Team Member
Web: http://dennistt.net
#10
yes thats right for example, when i attach a zip or rar file, i just begin downloading when i enter in the page, i doesnt show a link or something , i du no how to just not showing thumbnail but just for images only, not for other file types,


someone can help me??


Forum Jump:


Users browsing this thread: 1 Guest(s)