vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Unread Posts and Reputation Comments (welcome box) (https://vborg.vbsupport.ru/showthread.php?t=123886)

droid101 01-24-2008 03:49 AM

Quote:

Originally Posted by Paul M (Post 1427168)
Thats correct, only the original 3.0 version had that no reputation message.

Argh... any tips for me to edit the code to get it back in there?

I'm having trouble finding where to make additions.

katie hunter 01-24-2008 09:39 PM

Hi Paull does this modification use any queries ?

Paul M 01-25-2008 11:44 AM

Of course. It would be a bit hard to get the data otherwise. :D

Canis Firebrand 01-29-2008 09:43 PM

Was this ever tested? If so, where would that edit be made? The code below doesn't seem to be in the add-on. Is it one of the core vB files?


Quote:

Originally Posted by Antivirus (Post 1301989)
This is very nice Paul, thanks! It's untested, but regarding counting posts in forums where a member has doesn't have permission to "Can View Other's Threads"...

i think all that needs to be done is adding a conditional to the query which checks $xfperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']

Like following:
PHP Code:

if (!($xfperms $vbulletin->bf_ugp_forumpermissions['canviewothers']))
{
    
$xpostuserid_list "AND thread.postuserid = " $vbulletin->userinfo['userid'] . " AND " $vbulletin->userinfo['userid'] . " <> 0";
}
else
{
    
$xpostuserid_list '';


and adding $xpostuserid_list as a variable conditional for within the WHERE clause of the query


Paul M 01-29-2008 09:57 PM

It was never tested by me. This does not check that specific permission.

Canis Firebrand 01-30-2008 02:01 PM

Quote:

Originally Posted by Paul M (Post 1432068)
It was never tested by me. This does not check that specific permission.

Thanks. I found that post earlier in the thread, around page 22 I think.

I was hoping that someone might have tested it or found a way to remedy the issue.

I have a couple areas where my users can post threads and see the forum, but they cannot see threads others create.
Thus, their unread post count is incorrect at times when others make posts in that area.

I've had a number of them say "my unread post count shows 3 posts, but when I click on the link it says there are none."

I don't know enough about vB or your add-on to see if I can resolve it myself.

It isn't a huge issue, but one that has been brought to my attention more then once. My users think they are missing posts or that the forum is somehow messed up.

Anyways... thanks for all the great add-ons you have coded. They really do add nice touches to a forum.

Paul M 01-30-2008 04:16 PM

Hmm, I dont have any such forums, so its never been an issue.

Off the top of my head, I dont see any reason not to add a check for that permission. I'll look into it.

elbais 01-30-2008 07:36 PM

very nice :)

midlandi 03-16-2008 07:55 PM

Can you help me please. I have this installed and is working great. I need to omit from the unread posts certain forums, I cannot find where to do this. I am aware of the code i need to amend, but fail to find where?? I have tried in the navbar template but cannot find, I search for do=getnew so I can edit but it only finds the other nav bar link for that.
Help!!

Paul M 03-17-2008 10:47 AM

There is no facility in this to exclude certain forums.


All times are GMT. The time now is 10:50 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.01595 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_php_printable
  • (3)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