vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Real "read/not read" threads and "new messages in forum" highlighting v1.2 (https://vborg.vbsupport.ru/showthread.php?t=62748)

mzenner 04-17-2004 12:07 PM

Quote:

Originally Posted by codemonkey
ohh now it works fine. there is only one problem: The "mark all forums as read" function doenst work.

same problem here :(
can you make if they click on make all forums read that all is marked as read (even if it has to check all database ;)


new users have to read everything to mark as read?

can you solve this last so that new users don't get everything marked as to be read ?

JohnWoo 04-17-2004 12:19 PM

sorry, but is still can't understand why it is problem and what for you need to mark everything ? :)
When user click "mark all forums read" all forums become not highlighted ("no new messages in forum" icon), and i can't see why you need to lose all read-not read information for all threads in all forums? In any way each user may set highliting time to for example to 1 hour in his user CP and all threads older then 1 hour will have "read" highlight :)

mzenner 04-17-2004 02:22 PM

for me it is ok now :-)

i set default to 48h se new members when they activate they see post from last 48h mark to be read

GoHa 05-19-2004 08:32 AM

Tried.
Mark all readed, and mark thread readed is not working. It is a problem

Debugged:

in this function, when it will be called from MARK ALL READED action, input parameter $threadid is zero, but $forumcache["$forumid"]['lastthreadid'] is not working:

function mark_thread_read($threadid,$forumid=0,$unique=0) {
global $DB_site,$forumcache,$bbuserinfo;
$m_thread = intval($threadid);
if ($m_thread == 0 && $forumid > 0) {
$m_thread = intval($forumcache["$forumid"]['lastthreadid']);
}
echo("$m_thread $forumid.<br>");

$m_thread is always zero. As a result follows (next lines in listed function) SQL query will never works.

Can you advise please?

P.S. I am using 3.0.1

Cyberhouse 06-08-2004 06:33 PM

Hi and thanks for a great hack!

I have one problem thou ;) The problem is that if there is a new post in one of my subforums it doesn?t indicates as new posts in the main forum. But if I enter that main forum and see all the sub forums it indicates there that there are new posts. Any idea how this can be fixed?

Cyberhouse 06-17-2004 05:47 AM

Quote:

Originally Posted by Cyberhouse
Hi and thanks for a great hack!

I have one problem thou ;) The problem is that if there is a new post in one of my subforums it doesn?t indicates as new posts in the main forum. But if I enter that main forum and see all the sub forums it indicates there that there are new posts. Any idea how this can be fixed?


anyone?

Berethorn 07-08-2004 12:28 AM

What happened to this? It had so much promise! I'm going to try my luck with it, and see what happens. I'm desperate for this hack to work. :)

EDIT: It seems to work great, except for the inability to mark forums read, which is really an important flaw. I'll see if there's a cure.

Berethorn 07-08-2004 01:44 AM

Ok, I can't figure it out - I don't know PHP. It must be something easy though, because there is only so much code changed for this hack. If one of the people who are knowledgable in such things could take a look at it, that would be appreciated. Thanks. :)

pie 07-19-2004 03:52 PM

When i hit MARK FORUMS AS READ it doesnt work. I have edited the code to see the relevant bits are parsing and they are.

JohnWoo 07-20-2004 09:34 AM

Hello!
It is little server sensitive solution, but try to say
cache_ordered_forums(1, 1);
before each call of
mark_thread_read(0,$forumid);
function :)


All times are GMT. The time now is 10:43 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.01148 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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