For those that would prefer the full sized image to show up in the article display (ie: post display) instead of the thumbnail when using the ATTACH bbcode do the following:
In file: includes/class_bbcode.php
Around line: 1867
Find:
Code:
if ($attachment['thumbnail_filesize'] == $attachment['filesize'] AND ($this->registry->options['viewattachedimages'] OR $this->registry->options['attachthumbs']))
{
$attachment['hasthumbnail'] = false;
$forceimage = true;
}
Change it to:
Code:
//if ($attachment['thumbnail_filesize'] == $attachment['filesize'] AND ($this->registry->options['viewattachedimages'] OR $this->registry->options['attachthumbs']))
//{
$attachment['hasthumbnail'] = false;
$forceimage = true;
//}
This should only affect the ATTACH bbcode display and it will affect it on all forum posts.
Not really sure how to integrate this or make a plugin out of it, feel free to enhance it.
For those that would prefer the full sized image to show up in the article display (ie: post display) instead of the thumbnail when using the ATTACH bbcode do the following:
In file: includes/class_bbcode.php
Around line: 1867
This should only affect the ATTACH bbcode display and it will affect it on all forum posts.
Not really sure how to integrate this or make a plugin out of it, feel free to enhance it.
I've managed to achieve this using plugins for article posts only, it will be included in next release
I have a quick question. Will your Mod work on VB 3.7.4 patch level 1? I didn't want to upgrade just yet, but I'd like to install this mod if it works.
For example I use a custom BBcode to re-arrange the article image in top left or right corner inside text. The BBcode is used at the beginning before text in the article. So in the articles page you see the link inside the BBcode tags and not the image. I assume it is the same if you use other bbcodes (youtube) for example as a part of the text.
I don't know if its possible to be fixed. It would be best not to show BBcodes in the articles page at all.
On articles.php the preview text is got by using a vbulletin function.
On showthread.php I tested Table BB Code and it worked fine.
I've managed to achieve this using plugins for article posts only, it will be included in next release
Sweet dude!
I got another problem. On the article.php page, for some reason when the thumbnail is displayed it also shows the attachment id next to it. This ONLY happens if I use the paper clip to add an attachment inline. If I add just normal attachments it grabs the first one and displays the thumbnail fine. Does that make sense? For the life of me I can't figure out why it's doing it.
Hey I got an enhancement for you Banana... Would it be possible to move the similar articles listing so it's underneath the Author bio? Maybe this can already be done and I just missed it...
I got another problem. On the article.php page, for some reason when the thumbnail is displayed it also shows the attachment id next to it. This ONLY happens if I use the paper clip to add an attachment inline. If I add just normal attachments it grabs the first one and displays the thumbnail fine. Does that make sense? For the life of me I can't figure out why it's doing it.
I've reverted those templates, reupped the articles.php file and VB files, it's still doing it. When I look at the contents of the $thread array $thread[preview] looks like this:
Code:
[preview] => [ ATTACH ]840[ /ATTACH ] Body of the text is here
It appears that when $thread[preview] is display the attach bbcode are being removed but not the contents between them. I'm thinking it's probably something in the core VB code and not necessarily articles.php but for the life of me I can't figure it out.