vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Collapsable First Post using AJAX (or Last Post!) (https://vborg.vbsupport.ru/showthread.php?t=145187)

exportforce 03-06-2008 04:04 PM

Quote:

Originally Posted by magnus (Post 1456051)
.. as in? Everything works.

Quote:

Originally Posted by exportforce (Post 1435567)
Nope not all at a time, only post by post.
A button "Next post" and "previous post" so I can go through one by one :)

like that ? =)

magnus 03-06-2008 07:25 PM

Quote:

Originally Posted by exportforce (Post 1458577)
like that ? =)

I'll be honest, I still haven't grasped exactly what you're asking for.

marquisite 03-07-2008 03:22 AM

Hello there, this mod is great! I have a request however...

Is it possible to specify a maximum line/character count for the thread preview? Some posts on a forum this modification was installed on are huge, and for preview purposes the first couple of lines, first paragraph, or first 100 or so characters would be more than sufficient.

Is this easily implementable into this modification? Thank you :D

magnus 03-07-2008 12:20 PM

Quote:

Originally Posted by marquisite (Post 1459025)
Hello there, this mod is great! I have a request however...

Is it possible to specify a maximum line/character count for the thread preview? Some posts on a forum this modification was installed on are huge, and for preview purposes the first couple of lines, first paragraph, or first 100 or so characters would be more than sufficient.

Is this easily implementable into this modification? Thank you :D

While I can't see myself adding this as a standard option in future releases, you can achieve this yourself via a quick edit to /forum/vbpost_ajax.php.

FIND:
PHP Code:

//if ($_SERVER['REQUEST_METHOD'] == 'POST' AND 

ABOVE THAT, ADD:
PHP Code:

$post['message'] = fetch_trimmed_title($post['message'], 100true); 

Obviously, change 100 to however many characters you would like displayed. Also, changing true to false will remove the trailing ellipses (...) if desired.

jedrus 03-07-2008 03:45 PM

Hi,
i've got a problem with this modification. Everything looks ok but after I click the [+] icon it's loading and loading and loading.... ;) and nothing happens :(
you can see this situation here:
http://forum.vw-passat.pl/forumdisplay.php?f=19

What can be a reason? I've edited templates manually...

Sayrex 03-07-2008 04:45 PM

me too ...

marquisite 03-07-2008 07:11 PM

Quote:

Originally Posted by magnus (Post 1459258)
While I can't see myself adding this as a standard option in future releases, you can achieve this yourself via a quick edit to /forum/vbpost_ajax.php.

FIND:
PHP Code:

//if ($_SERVER['REQUEST_METHOD'] == 'POST' AND 

ABOVE THAT, ADD:
PHP Code:

$post['message'] = fetch_trimmed_title($post['message'], 100true); 

Obviously, change 100 to however many characters you would like displayed. Also, changing true to false will remove the trailing ellipses (...) if desired.

Works great, now no longer are posts of up to 2000 or 3000 characters showing in full via this preview method. :)

ksitguy 03-07-2008 08:01 PM

Quote:

Originally Posted by jedrus (Post 1459439)
Hi,
i've got a problem with this modification. Everything looks ok but after I click the [+] icon it's loading and loading and loading.... ;) and nothing happens :(
you can see this situation here:
http://forum.vw-passat.pl/forumdisplay.php?f=19

What can be a reason? I've edited templates manually...

I had the same problem and traced it to the mod "Chief First Post", if you have that installed that's probably the reason. Once I disabled it this mod worked fine.

jedrus 03-08-2008 10:20 AM

hmm.... i don't have mod "Chief First Post" installed... is there any other reason?

magnus 03-08-2008 12:26 PM

Quote:

Originally Posted by jedrus (Post 1459439)
Hi,
i've got a problem with this modification. Everything looks ok but after I click the [+] icon it's loading and loading and loading.... ;) and nothing happens :(
you can see this situation here:
http://forum.vw-passat.pl/forumdisplay.php?f=19

What can be a reason? I've edited templates manually...

You've not placed vpost_ajax.php into your forum's root directory.


All times are GMT. The time now is 06:02 PM.

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.01407 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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