vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - Article Forums (https://vborg.vbsupport.ru/showthread.php?t=211638)

RustedBucket 05-08-2009 12:55 PM

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.

bananalive 05-09-2009 06:49 PM

Quote:

Originally Posted by crazy4bass (Post 1806936)
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

bananalive 05-09-2009 06:50 PM

Quote:

Originally Posted by mmurtha (Post 1806710)
Hi,

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.

Anybody know if it works on version 3.7.4?

Thanks ...


Mary

It is not compatible with vbulletin v3.7.x

bananalive 05-09-2009 06:56 PM

Quote:

Originally Posted by Mihalis (Post 1806821)
Great thanx!



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.

mmurtha 05-09-2009 06:58 PM

Quote:

Originally Posted by bananalive (Post 1807612)
It is not compatible with vbulletin v3.7.x

Oh okay Bananaalive,

Thanks! Looks like I'll be upgrading after all. ;)

RustedBucket 05-09-2009 07:50 PM

Quote:

Originally Posted by bananalive (Post 1807611)
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.

RustedBucket 05-09-2009 07:56 PM

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...

bananalive 05-10-2009 05:08 PM

Quote:

Originally Posted by crazy4bass (Post 1807654)
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.

Have you altered the template af_articlebit?

RustedBucket 05-11-2009 12:16 AM

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.

DobieGillis? 05-11-2009 12:46 AM

I love this mod! Little issue with IE8, but a gem!


All times are GMT. The time now is 12:19 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01399 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete