Welcome to Geeklog, Anonymous Thursday, May 23 2024 @ 11:45 pm EDT

Geeklog Forums

Centerblock-Forum plug in



Anyone knows how to edit this function?? For the moment its showing the last 10 post in the forum on the frontpage, but only want it to show 5... Have been looking all over Smile Thanks,

Status: offline


Forum User
Registered: 07/16/02
Posts: 1232
In the plugins/forum/functions.inc file - you can set the post_limit and the subject_limit to trim the number of characters for the topic subject description.
Text Formatted Code

function plugin_centerblock_forum($where=1,$page=1,$topic ='') {
    global $_CONF, $_USER, $_TABLES, $LANG_GF01;
    global $LANG_GF02, $mode, $order, $PHP_SELF;

    include($_CONF['path_html'] . 'forum/include/config.php');

    $post_limit="7";        // How many posts you want displayed
    $subject_limit="30";    // The length of characters of the subject you want displayed


Geeklog components by PortalParts -- www.portalparts.com

All times are EDT. The time is now 11:45 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content