vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - [WIDGET] Recent Threads (https://vborg.vbsupport.ru/showthread.php?t=236404)

Obi Wan 11-08-2013 04:17 PM

1 Attachment(s)
i can not use the Widget :(

where is the error ?

I have vb4.2.1

emits 10-13-2014 08:09 PM

It is possible to set one forum? And Is it possible to download user names with avatar?

Bubroid 10-27-2014 07:55 AM

How can I add 1'st posts text to the block?

barnsi 12-10-2015 05:43 PM

Hello World!
...how can i INCLUDE only one forum? :confused:

i found one solution in including forum "355":
PHP Code:

LEFT JOIN  " . TABLE_PREFIX . "forum AS forum ON forum.forumid thread.forumid )  
WHERE NOT ISNULL(threadid) AND forum.forumid '355'  AND visible '1' AND open!='10' 

...but how can i include all the childforums under forum 355?
PHP Code:

WHERE NOT ISNULL(threadid) AND forum.forumid IN (355,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,396,397,392,398,399,393,400,401,394,395,402,403,404,366,405,415,416,406,417,418,407,419,420,408,421,422,423,424,425,426,427,428,429,430,409,410,431,432,411,412,413,414,433,434)  AND visible '1' AND open!='10' 

...the more comfortable way to include one forum including complete childlist:
(in this example forum 355)
PHP Code:

ob_start(); 
global 
$vbulletin$db$vbphrase
//Begin Thread Counts 
$childlist 0;
if(
$fcc355 $vbulletin->forumcache[355]['childlist'])
{
    
$childlist trim(str_replace('-1'''$fcc355), ',');
}   
$toutput='';  
$recent_threads $vbulletin->db->query_read("  
SELECT thread.threadid, thread.prefixid, thread.title, thread.dateline, thread.lastpost, thread.lastposter, thread.lastposterid, thread.visible, thread.open, thread.postusername, thread.postuserid, thread.replycount, 

thread.views, forum.forumid, forum.title as forumtitle 
FROM  " 
TABLE_PREFIX "thread AS thread  
LEFT JOIN  " 
TABLE_PREFIX "forum AS forum ON ( forum.forumid = thread.forumid )  
WHERE NOT ISNULL(threadid) AND forum.forumid IN (
$childlist) AND visible = '1' AND open!='10'

ORDER BY lastpost DESC  
LIMIT 0, 20 


barnsi 03-16-2023 03:26 AM

To INCLUDE only three forums (for example) including all childforums, i found a solution:
PHP Code:

ob_start(); 
global 
$vbulletin$db$vbphrase
//Begin Thread Counts 
$childlist 0;

$fcc16 $vbulletin->forumcache[16]['childlist']; // LKW-B?nder
$fcc213 $vbulletin->forumcache[213]['childlist']; // Vormontage
$fcc256 $vbulletin->forumcache[256]['childlist']; // Bau 73
$arr $fcc16 $fcc213 $fcc256;

$childlist trim(str_replace('-1'''$arr), ',');
  
$toutput=''

To EXCLUDE only two forums (for example) including all childforums, i found this solution:
PHP Code:

ob_start(); 
global 
$vbulletin$db$vbphrase
//Begin Thread Counts  
$fcc355 $vbulletin->forumcache[355]['childlist']; // Forum Anlagenw?rter
$fcc455 $vbulletin->forumcache[455]['childlist']; // Forum Pistolenlebenslauf

$arr $fcc355 $fcc455// Foren, die ausgeblendet werden sollen
$arr trim(str_replace('-1'''$arr), ',');

$toutput='';
$recent_threads $vbulletin->db->query_read("  
SELECT thread.threadid, thread.prefixid, thread.title, thread.dateline, thread.lastpost, thread.lastposter, thread.lastposterid, thread.visible, thread.open, thread.postusername, thread.postuserid, thread.replycount, thread.views, forum.forumid, forum.title as forumtitle FROM  " 
TABLE_PREFIX "thread AS thread  
LEFT JOIN  " 
TABLE_PREFIX "forum AS forum ON ( forum.forumid = thread.forumid )
WHERE NOT ISNULL(threadid) and forum.forumid not in (
$arr) AND visible = '1' AND open!='10' ORDER BY lastpost DESC  
LIMIT 0, 50  
"
); 



All times are GMT. The time now is 11:28 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.01563 seconds
  • Memory Usage 1,759KB
  • 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
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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