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)

JimmDaBimm 04-23-2007 01:24 AM

Ajax ftw->installed

Thank you ^^

magnus 04-24-2007 11:32 AM

To anyone experiencing the conditional errors when evaluating the templates, please try the following.

In your AdminCP > vBulletin Options > Collapsable First Post using AJAX Options:

Set the Forum Exclusion List to 0 (zero).

Now, resubmit the template modifications and see if you still receive the error. I'm trying to track down what would be causing this error for some of you, but I can't seem to replicate it on my development forum unfortunately.

This is what's holding up the next release, as I'd like to have this resolved before I put another version out there.

Thanks!

magnus 04-24-2007 04:10 PM

Update:
1.2.1 BETA : PRIVATE BETA. NOT RELEASED.
  • Will no longer show expand icon next to thread redirects.
  • Added ability to display first unread post.
  • Completely revamped the automatic template editing system. Should now be able to make template edits to even the most modified templates as well.
  • Fixed a couple non-breaking typos.
  • Included JavaScript in USERCP_SHELL to allow expand/collapse of subscribed threads.
  • Added a hover title to the expand icon to inform the user what they can expect when clicking it.
THIS VERSION IS NOT AVAILABLE FOR PUBLIC DOWNLOAD!
[hr]-[/hr]
I NEED TESTERS!

While this isn't a major revision, it hopefully addresses the few sporatic issues a few users have been reporting. I'm hoping the alleviate the need to manually edit templates with my revamped automatic template editing system. I will not be releasing any new features until these problems are resolved!

The pre-requisites for testers are as follows:
  • Previous automatic template edits did not work for you.
  • (optional) You receive a conditional error when applying template edits manually.

If you meet any of the above criteria and wish to lend a hand, let me know. Thanks!

THIS VERSION IS NOT AVAILABLE FOR PUBLIC DOWNLOAD!

Tralala 04-24-2007 04:14 PM

Just installed this... working great. (Tested on Safari.)

Awesome work... thanks, magnus!

A few issues/suggestions:

I see the expand/collapse button appears next to Subscribed Threads in the User CP. But the button doesn't work. If at all possible, could it be made to work? And if not, is there a way to remove the button from appearing next to those threads in the User CP? Since the button doesn't work, after all.

I'd love to see some more options in AdminCP, like the ability to turn off avatars in the expanded post. That'd be a lot easier than manually going in and editing vbpost_postbit.

I'd also like to see an option for the button to only appear next to new/unread threads, and not others. And when the button is clicked, that the status (of the very first post, at least, or whatever post is being displayed) gets marked as "read."

magnus 04-24-2007 04:25 PM

Quote:

Originally Posted by Tralala (Post 1234767)
I see the expand/collapse button appears next to Subscribed Threads in the User CP. But the button doesn't work. If at all possible, could it be made to work? And if not, is there a way to remove the button from appearing next to those threads in the User CP? Since the button doesn't work, after all.

Good catch, easy fix. Thanks!

Quote:

Originally Posted by Tralala (Post 1234767)
I'd love to see some more options in AdminCP, like the ability to turn off avatars in the expanded post. That'd be a lot easier than manually going in and editing vbpost_postbit.

Hrm. Personally, I feel this is unneeded because editing the template is so simple. However, it seems the majority of people here want specific template modifications (ie. quote, reply, edit) so this may be a way to please everyone.

I'll see what I can do.

Quote:

Originally Posted by Tralala (Post 1234767)
I'd also like to see an option for the button to only appear next to new/unread threads, and not others. And when the button is clicked, that the status (of the very first post, at least, or whatever post is being displayed) gets marked as "read."

This is similar to something that was brought up previously that I've been working on. vBulletin provides the following functions:

mark_thread_read();
mark_forum_read();

There's no specific way to mark a POST as read, so unless you want the entire THREAD marked as read, I don't really see a way to do this without basically adding an new post database table to tracking the read status of each post.

What I have done, though, is added the ability to select "First Unread Post" to be displayed. So, when clicked the user will see the first unread post since their last visit. There's also an option in the AdminCP now to Mark Thread as Read when this post is viewed. So, it's configurable to that extent.

Tralala 04-24-2007 04:34 PM

That sounds great, magnus. Thanks so much for your reply and consideration! Looking forward to your updates.

In the meantime I have gone in and tweaked vbpost_postbit to my liking. Mainly just simplifying it, removing the extras I didn't think this needed (location, post count, user title, etc.) Looking great.

Another minor request. When hovering over the button, right now I am seeing the default/standard thread preview popup. (Same as if I'd hover over the thread title itself.) I think it would make more sense if the popup said this instead:

"Click here to see the _x_ post"

(where x = "first," or "last," or "first unread," depending on the Admin CP or User CP settings for this hack.)

So users can better understand what's going on with this new feature.

magnus 04-24-2007 04:56 PM

Quote:

Originally Posted by Tralala (Post 1234782)
Another minor request. When hovering over the button, right now I am seeing the default/standard thread preview popup. (Same as if I'd hover over the thread title itself.) I think it would make more sense if the popup said this instead:

"Click here to see the _x_ post"

(where x = "first," or "last," or "first unread," depending on the Admin CP or User CP settings for this hack.)

So users can better understand what's going on with this new feature.

Good idea. Just added that real quick. :up:

ragtek 04-24-2007 04:57 PM

hrhr
waiting vor update*g*

rjmjr69 04-24-2007 10:43 PM

Quote:

Originally Posted by magnus (Post 1234585)
To anyone experiencing the conditional errors when evaluating the templates, please try the following.

In your AdminCP > vBulletin Options > Collapsable First Post using AJAX Options:

Set the Forum Exclusion List to 0 (zero).

Now, resubmit the template modifications and see if you still receive the error. I'm trying to track down what would be causing this error for some of you, but I can't seem to replicate it on my development forum unfortunately.

This is what's holding up the next release, as I'd like to have this resolved before I put another version out there.

Thanks!

Still getting these errors when setting forum to 0

The following error occurred when attempting to evaluate this template:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/adminfunctions_template.php(3596) : eval()'d code on line 1

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/adminfunctions_template.php(3596) : eval()'d code on line 15

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


I would be willing to do your beta for you seeing how I am one of the people having this issue

magnus 04-25-2007 01:17 PM

Quote:

Originally Posted by rjmjr69 (Post 1234977)
Still getting these errors when setting forum to 0

The following error occurred when attempting to evaluate this template:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/adminfunctions_template.php(3596) : eval()'d code on line 1

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/adminfunctions_template.php(3596) : eval()'d code on line 15

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


I would be willing to do your beta for you seeing how I am one of the people having this issue

Great! I'll send you a copy via PM. Also, before installing the beta -- try the attached threadbit. See if that resolves the errors.


All times are GMT. The time now is 07:40 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.01610 seconds
  • Memory Usage 1,759KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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