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 Home Enhancements - [AJAX] Top X - ALP Pro (https://vborg.vbsupport.ru/showthread.php?t=150766)

Lea Verou 11-15-2007 03:43 AM

Quote:

Originally Posted by Michelle (Post 1382357)
Btw I noticed another bug with this: If in a forum a user can only view own threads and not others' threads, the permission doesn't get applied to the new posts: He can view others' threads from that forum as well.

Here's how to fix this :D

In plugins Alp Ajax Start and Alp Load find:
PHP Code:

$excludedforums ''

add below:
PHP Code:

$ownthreadsforums ''

Find:
PHP Code:

    if (!($forumpermissions[$forum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums'])  {
        
$excludedforums $excludedforums ',' $forum['forumid'];
    } 

Add below:
PHP Code:

    else if(!($forumpermissions[$forum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND !$vbulletin->options['showprivateforums'])
    {
        
//can can't view others' threads here
        
$ownthreadsforums .= ',' $forum['forumid'];
    } 

Find:
PHP Code:

// get rid of initial comma
$excludedforums substr($excludedforums1); 

Add below:
PHP Code:

$ownthreadsforums substr($ownthreadsforums1); 

Find:
PHP Code:

if ($excludedforums != "") {
    
$excludedforums "AND thread.forumid NOT IN ($excludedforums)";


Add below:
PHP Code:

if($ownthreadsforums != '')
{
    
$ownthreadsforums "AND (thread.forumid NOT IN ($ownthreadsforums) OR thread.postuserid = " $vbulletin->userinfo['userid'] . ')';


Find (this is in the query):
PHP Code:

            NOT ISNULL(thread.threadid)
            
$excludedforums 

add below:
PHP Code:

$ownthreadsforums 


Quantnet 11-16-2007 01:56 AM

Michelle,
It's about time somebody fixes this !!!!!!

Thanks a bunch

Did you find a fix for the problem of garbage screen if we leave it for a long time ? I got a screenshot a few page back

UPDATEd: After doing the changes, the plugin just squeeze my forum width. And it does not appear so i have to disable it

Lea Verou 11-16-2007 03:31 AM

Quote:

Originally Posted by Quantnet.org (Post 1383484)
Michelle,
It's about time somebody fixes this !!!!!!

Thanks a bunch

Did you find a fix for the problem of garbage screen if we leave it for a long time ? I got a screenshot a few page back

UPDATEd: After doing the changes, the plugin just squeeze my forum width. And it does not appear so i have to disable it

After doing the first or the second changes?

Zixxy 11-16-2007 03:15 PM

Links not working for me? :O

007 12-05-2007 01:50 PM

Couldn't this be made to only show latest posts from forums that the current user has access to view? That would be better than manually disallowing several forums by looking up their id's.

mpoorrajab 12-09-2007 12:29 PM

perfect ...

marked as installed ...

RvG2 01-27-2008 06:41 PM

Hi! been using this for long time but now I wanted to show also the "prefix" in the thread display. Help? :)

paulomt1 01-31-2008 04:29 PM

new/old post icon doesn't work. Any fix for this?

MissKalunji 03-05-2008 04:12 PM

*never mind i got my answer*

MissKalunji 03-06-2008 03:54 PM

what would be good is if you could press a "more" link and choose an amount of stats)

Example 30-40-50 and u could view the latest 50 post..popular etc etc by


All times are GMT. The time now is 11:17 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.01316 seconds
  • Memory Usage 1,757KB
  • 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
  • (10)bbcode_php_printable
  • (2)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