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)

Chris M 06-21-2005 08:45 AM

Quote:

Originally Posted by dreck
O.. ic, I will try that. I guess their will be a fix for this in the next beta.

Thanks!

Apparently according to the Devs this has already been fixed, but evidently it has not... :ermm:

I guess the fix that Freddie gave for Beta 1 is no longer the problem...

Apparently however they "fixed" it it broke somewhere else...

About the table width - You might have to alter the HTML code a bit - It is almost a direct copy of the "forumhome events" HTML so there shouldn't be a problem...

Satan

Chris M 06-21-2005 10:00 AM

[high]Update[/high]
Version 1.1.1: Simple update to fix a permissions bug - Wasn't showing on my board because I had already fixed it and forgot about it lol :) - To upgrade, simply replace the plugin with the one attached in the first post ;)

Satan

bing11 06-22-2005 03:12 AM

Quote:

Originally Posted by hellsatan
[high]Update[/high]
Version 1.1.1: Simple update to fix a permissions bug - Wasn't showing on my board because I had already fixed it and forgot about it lol :) - To upgrade, simply replace the plugin with the one attached in the first post ;)

Satan

very good

thank you

bing11 06-22-2005 07:57 AM

How can hide some forums?

Chris M 06-22-2005 10:54 AM

Not tested, but should work ;)

In the plugin code, add:
PHP Code:

$limitfids = ,x,y,z

before:
PHP Code:

foreach($vbulletin->forumcache AS $forum) { 

Replace [high]x,y,z[/high] with the forumids you wish to exclude :)

Satan

bing11 06-23-2005 03:06 AM

Quote:

Originally Posted by hellsatan
Not tested, but should work ;)

In the plugin code, add:
PHP Code:

$limitfids = ,x,y,z

before:
PHP Code:

foreach($vbulletin->forumcache AS $forum) { 

Replace [high]x,y,z[/high] with the forumids you wish to exclude :)

Satan

thank you so much

How about just want to show 1 or 2 forms?

Chris M 06-23-2005 10:59 AM

Hrm...

You will need to alter the query this time :p

Again, not tested, but in the plugin code, find:
PHP Code:

AND forumid NOT IN (0$limitfids

add above:
PHP Code:

AND forumid IN ($showfids

Now find:
PHP Code:

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

add below:
PHP Code:

$showfids x,y,z

Replace [high]x,y,z[/high] with the forumids you want users to be able to view :)

Satan

albarq 06-23-2005 11:46 AM

hellsatan, thank you for this plug-in

what about if i want these last topics appear in all my forum pages? not just in the form home?

thank you

Chris M 06-23-2005 11:52 AM

Hrm...

I suppose in theory you could change the "forumhome_complete" hook location to a "global_complete" location, and then edit something like the footer template to include the table and $threadbits variable...

Satan

albarq 06-23-2005 12:00 PM

i did something like this but i edit the navbit template ... that works just in form home...

then i tried to change from forumhome_complete to ... global_complete but i got an error :

Fatal error: Call to a member function on a non-object in /home/users/public_html/board/includes/functions.php(4118) : eval()'d code on line 22


All times are GMT. The time now is 05: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.01468 seconds
  • Memory Usage 1,753KB
  • 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
  • (8)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