BUG UPI2DB System


Goto page 1, 2  Next

Subject: UPI2DB System
hmm this doesn't really seem to work yet
I like it though
or at least I liked what the FAQ said about it

I've enabled the "UPI2DB System"
and I've set this "Colorize topic title if there are new posts:" to yes
but now on forum every category is stuff marked in orange :roll:
when I click it there are no new posts in the category though

Subject: Re: UPI2DB System
What template are you using? I've adapted and tested it with Aphrodite only.
I'm not sure MG implemented it in his templates already. But this is up to him.

Subject: Re: UPI2DB System
using MG winter

but it's like this on all templates :(
already tried that

Subject: Re: UPI2DB System
I'll check the whole UPI2DB soon.

Thanks for reporting.

Subject: Re: UPI2DB System
pleasure mate ;)

Subject: Re: UPI2DB System
It does work with Aphrodite.

Subject: Re: UPI2DB System
Here you can see how it should be:
packing

Subject: Re: UPI2DB System
but with aphrodite I had the same thing :mrg:
the unread color always stays ;)

dunno about the thing you posted

Subject: Re: UPI2DB System
Nizzle wrote: [View Post]
the unread color always stays ;)
That is a bug with Announcements and Sticky topics. They aren't marked as read correctly. :oops:

Subject: Re: UPI2DB System
I've found another problem with UPI2DB - If you have a secret forum for say admins and mods, any posts made there will still get counted for normal users as new/unread posts, even though they can't actually view or read them!

Profile PM  
Subject: Re: UPI2DB System
moreteavicar wrote: [View Post]
I've found another problem with UPI2DB - If you have a secret forum for say admins and mods, any posts made there will still get counted for normal users as new/unread posts, even though they can't actually view or read them!


yes i can verify this.

i saw this some days ago here on xs.eu but dont find an solution yet :(

maybe Mighty has one

Subject: Re: BUG -UPI2DB System
I downloaded UPI2DB 3.0.6, and scanned through the code (both in included fles and in instructions) there doesn't appear to be anything to check for view authorisation! I was also trying to search through the UPI2DB website, it is all in German! But despite my limited understanding, it didn't look like there was a post on this (I think...), so maybe you could raise it on there, auf Deutsch, KugeLSichA? :mrgreen:

Profile PM  
Subject: Re: UPI2DB System
im looking sometimes into that forum but the only this i read was with the recycle bin. but the problem have been fixed, i checked the code today.

maybe there is one other MOD how causes that problem.

Subject: Re: UPI2DB System
I think the problem is still that there is nothing in the code that checks for view permissions... also, going by the install notes, the only mod that can effect UPI2DB is Categories Heirarchy mod, but this only effects the topic listing (and thus any highlighting) - it has nothing to do with the tagging of new and unread posts (which is purely done by itself...)

Profile PM  
Subject: Re: UPI2DB System
My suspicion to make this work properly is in the main function files, e.g. includes/upi2db/ upi2db_orig_lite.php

e.g. function set_unread()

in particular this statement:
Code: [Download] [Hide]
  1. if(isset($unread['mark_posts']) && in_array($p, $unread['mark_posts']))  
  2. {  
  3. $sql = "UPDATE " . UPI2DB_UNREAD_POSTS_TABLE . " SET status = '" . $mark_id . "' WHERE post_id = " . $p;  
  4. }  
  5. else  
  6. {  
  7. $sql = "INSERT INTO " . UPI2DB_UNREAD_POSTS_TABLE . "  
  8. (post_id, topic_id, forum_id, user_id, status, last_update, topic_type)  
  9. VALUES ('$p', '$t', '$f', '$user_id', '$mark_id', '$time', '$tt')";  
This requires a case structure checking view permissions

Profile PM  
Goto page 1, 2  Next

Page 1 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1208s (PHP: 21% SQL: 79%)
SQL queries: 10 - Debug Off - GZIP Enabled