MyBB Community Forums

Full Version: Recent Threads On Index [Updated 02-09-21]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
(2016-01-03, 12:44 PM)damian0507 Wrote: [ -> ]Hello.
I would like to fetch the prefixes of the subjects if he were \

Could someone help?

{$thread[\'prefix\']}
Displays only numbers

look back a few pages, prefixes fix was posted
(2016-01-03, 01:29 PM)expat Wrote: [ -> ]
(2016-01-03, 12:44 PM)damian0507 Wrote: [ -> ]Hello.
I would like to fetch the prefixes of the subjects if he were \

Could someone help?

{$thread[\'prefix\']}
Displays only numbers

look back a few pages, prefixes fix was posted

No, I mean the effect prefix[Image: uplY3hV.jpg]
It would be super awesome if this could be updated to work on all pages instead of just the index page! Smile
Hi all, anyway for the forum names to be clickable so you can click to that forum?
My latest threads shows as
[Image: 0b2f13c44056c06fefdb931e4d866dff.png]
And i want the thread to be in
[Image: 9723074c234ac508d0c38d3bfda31c81.png]

p.s : ignore the style used
(2015-10-08, 03:30 PM)ecirbaf Wrote: [ -> ]Is it possible for this plugin to show the threads with unread posts in bold text like most of the thread listings do by default?

I can edit the php just fine, but is that a variable that's already in the SQL query somewhere?

Why not use linked forums instead of plain text forum names in the third column?

Line ~296
    $thread['forum']  = '<a href="'.get_forum_link($thread['fid']).'">'.($forums[$thread['fid']]['name']).'</a>';

It seems the plugin doesn't take in account the forum permissions.

It checks for "unsearchable forums" and "unviewable forums" but it doesn't seem to consider the user's group and forum permissions. This is a problem if you have, say, a "moderator only" subforum that only mods should be able to see.

The following seems to work, to hide threads from forums that user can not view:

  $onlyusfids        = array();
$onlycanview = array(); //ADD THIS

  (...)

  foreach ($group_permissions as $fid => $forum_permissions)
  {
    if ($forum_permissions['canonlyviewownthreads'] == 1)
    {
      $onlyusfids[] = $fid;
    }
    // ADD THESE
    if ($forum_permissions['canview'] == 0)
    {
      $onlycanview[] = $fid;
    }
  }

  if (!empty($onlyusfids))
  {
    $where .= "AND ((t.fid IN(" . implode(',', $onlyusfids) . ") AND t.uid='{$mybb->user['uid']}') OR t.fid NOT IN(" . implode(',', $onlyusfids) . "))";
  }

// ADD THIS
if (!empty($onlycanview)) {
  $where .= "AND (t.fid NOT IN(" . implode(',', $onlycanview) . "))";
}

Dragonexpert - could you elaborate please? Maybe this is the issue which I reported 1 years ago. Also how to show formated prefixes?
is there a way to create a custom page using this plugin so we can set it as a 2nd portal..
(2016-03-29, 09:28 AM)My BB Wrote: [ -> ]My latest threads shows as
[Image: 0b2f13c44056c06fefdb931e4d866dff.png]
And i want the thread to be in
[Image: 9723074c234ac508d0c38d3bfda31c81.png]

p.s : ignore the style used


This^ is there anyway to have something like this appear in the sidebar instead of the bottom of the forums ?
(2016-05-16, 11:18 PM)LukeBrink Wrote: [ -> ]
(2016-03-29, 09:28 AM)My BB Wrote: [ -> ]My latest threads shows as
[Image: 0b2f13c44056c06fefdb931e4d866dff.png]
And i want the thread to be in
[Image: 9723074c234ac508d0c38d3bfda31c81.png]

p.s : ignore the style used


This^ is there anyway to have something like this appear in the sidebar instead of the bottom of the forums ?

I also would like to see settings to put at the sidebar where it will use something like wildcard's
Need some help setting this up on my forum. If you have skype, feel free to PM me.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42