MyBB Community Forums

Full Version: Portal show threads but not the full thread just a piece
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I hope you understand my poor english but here it goes.

I am using mybb and I enabled portal, in portal it shows the latest threads made but it shows the whole thread, I want it to show a piece of each topic, so the user has to click show more or something like that to read the entire thread.


Another quick question, how do I resize images because when I post a big picture it shows like that "big" , I want it to be resized and have the option to click on the image to see it bigger.

ty
1.
  • Make a backup of the file portal.php.
  • Open the file portal.php and search (14 line)
    define('THIS_SCRIPT', 'portal.php'); 
  • search
    $message = $parser->parse_message($announcement['message'], $parser_options);
    (538 line)
  • And add in this:
    $message = cut($message,120);
    $message .= '<div style="padding-top: 10px; text-align: right;"><a href="'.$announcement['threadlink'].'">Read more...</a></div>';
2. Plugin: http://mods.mybb.com/view/fit-on-page

Sorry, i'm polish. Big Grin
this plugin can be also tried --> http://mods.mybb.com/view/portal-announcement-cut-off (see also its reviews)