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)

Blindchild02 07-25-2006 03:49 AM

any way to put this in header/footer so it shows on all pages

punk23 07-30-2006 09:49 AM

Hi all - I don't know if this is still supported but I wonder if someone could please help me change the look of my "Latest Threads" box from this:

http://img89.imageshack.us/img89/9767/beforeiw4.th.gif

To this:

http://img100.imageshack.us/img100/7454/afterbj4.th.gif

Thanks!!

:D

Edog 08-09-2006 01:32 AM

Im guessing this is good for 3.6?

Coach_Guru 08-09-2006 08:58 PM

How to display in an external page(vbtemplates)?

Thanks a lot.

criscokid 08-13-2006 08:18 PM

What edits do I need to make so that clicking on a username opens up that user's profile in a new browser window?

aveon 08-22-2006 10:52 PM

hey chris how can we make this seen on all pages not only on forum home??

wrang 08-23-2006 05:44 AM

Is it possible to make so when i click on a thread link came to the last page if it has more than one page. Now you came to the first page and not the last page

Nick0r 08-27-2006 09:10 AM

There is definitely a permissions issue with this hack, it seems to totally ignore any permissions given - guests/regular members can see restricted forums.

Onkel_Tom 08-27-2006 07:05 PM

Quote:

Originally Posted by Nick0r
There is definitely a permissions issue with this hack, it seems to totally ignore any permissions given - guests/regular members can see restricted forums.

As I use the original hack from NTLDR for my vb 3.0.x, I ported it today to the new 3.6.0 version on my own because of many changes and additions.

For the permission issue please try to change the following lines in the .xml file to their original syntax an try if the issue is gone. For me it works fine with this lines!

find in product-chrism_latestthreads.xml
PHP Code:

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

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


Replace it with
PHP Code:

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

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


If you want to exclude some Usergroups from viewing the latest threads:
search for:
PHP Code:

if ($threads) {
    
$show['latestthreads'] = true;


Add after:
PHP Code:

$grouparray = array ( 1,3,4,8); 
if (
in_array($vbulletin->userinfo['usergroupid'],$grouparray) OR $vbulletin->userinfo['userid'] == )
    {
    
$show['latestthreads'] = false;
  } 

@ dodjer42
If you want to change the thread title truncation edit the number 22 at the end of this line:
PHP Code:

$thread['title'] = fetch_censored_text(fetch_trimmed_title(unhtmlspecialchars($thread['title']), 22)); 

e.g. to 50 to truncate at 50 characters.

Don't forget to upload/install the changed file!

aveon 08-28-2006 01:10 PM

is there any way to show it on all pages instead of only on forum home??


All times are GMT. The time now is 10: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.01524 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
  • (5)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
  • (2)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