vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Latest Threads On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=83230)

Wayne Luke 07-14-2005 06:06 PM

Any screenshots of how people have this implemented?

southernlady 07-14-2005 06:17 PM

Yeah, I can post one. Liz

Chris M 07-14-2005 06:39 PM

I have added a image in the first table, but it's essentially the same ;)

Satan

southernlady 07-14-2005 06:43 PM

Your's is a better shot but mine proves it works! Liz

Wayne Luke 07-14-2005 06:53 PM

Ahh thanks.. I was looking for something more on the lines of SitePoint's Index page.

http://www.sitepoint.com/forums/index.php

albarq 07-14-2005 07:08 PM

hi ...

i've updated my forum to Beta 4 .. and its work fine ... but its appear the topics for hidden forums :(



PHP Code:

// #################### PROCESS LATEST THREADS #######################
// fetch the permissions for each forum
global $vbulletin;

$forumperms = array();
foreach(
$vbulletin->forumcache AS $forum) {

    
$forumperms["$forum[forumid]"] = fetch_permissions($forum['forumid']);

    
// ## HIDE FORUMS WITHOUT THE CANVIEW PERMISSION ##
    
if (!$forumperms["$forum[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canview']) {
        
$limitfids .= ','.$forum['forumid'];
    }
}
unset(
$forum); 




so when i checked for the value of $limitfids it was empty ... :)


have i messed something?? i upgread also this hack :s

guied me please


thank you

Chris M 07-14-2005 07:14 PM

Quote:

Originally Posted by albarq
hi ...

i've updated my forum to Beta 4 .. and its work fine ... but its appear the topics for hidden forums :(



PHP Code:

// #################### PROCESS LATEST THREADS #######################
// fetch the permissions for each forum
global $vbulletin;

$forumperms = array();
foreach(
$vbulletin->forumcache AS $forum) {

    
$forumperms["$forum[forumid]"] = fetch_permissions($forum['forumid']);

    
// ## HIDE FORUMS WITHOUT THE CANVIEW PERMISSION ##
    
if (!$forumperms["$forum[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canview']) {
        
$limitfids .= ','.$forum['forumid'];
    }
}
unset(
$forum); 




so when i checked for the value of $limitfids it was empty ... :)

so any help?

thank you

I will recheck the limitfids section of this :)

Satan

Chris M 07-14-2005 08:57 PM

[high]Update[/high]
Version 1.1.2: Simple update to fix the permissions bug again - It keeps cropping up lol :)

I've also altered the fetch_userinfo location of the template cache plugin to cache_templates so that it is cached for guests as well :)

To upgrade, simply delete the previous plugins and upload the new .xml file :)

Satan

albarq 07-14-2005 09:09 PM

thanks you


its work now :)

Chris M 07-14-2005 09:12 PM

Your welcome :)

I hadn't noticed it had become incorrect because I formatted my board, and forgot to add back my registered "testuser" ;)

Satan


All times are GMT. The time now is 03:15 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.01451 seconds
  • Memory Usage 1,748KB
  • 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_php_printable
  • (1)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