1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Split ForumHome Page into Multiple Pages

Discussion in 'Add-on Requests [Archive]' started by ankurs, Oct 6, 2010.

  1. ankurs

    ankurs Well-Known Member

    Allow you to take some forums off your Forum Home page and display them on a second instance of the forumhome page.

    We have too many forums/subforums & we have split them into page as per category; will be glad if someone can code something similar to below.

    http://www.vbulletin.org/forum/showthread.php?t=92201
     
    ToDie4 likes this.
  2. Digital Doctor

    Digital Doctor Well-Known Member

    I see the site that had Paginated Forum Listings (Paginated ForumHome) now has just a long listing. :)

    Would a Forum Home with Tabs help ?
    Have you considered Forums in Columns ?

    Don't you think xenforo.com's ForumHome would look better like this:

    [​IMG]
    (all on one page!).
     
  3. Peggy

    Peggy Well-Known Member

    This is only my opinion, mind you, but that looks awful, with part of the side bar down beneath the forums.
     
  4. ankurs

    ankurs Well-Known Member

    not really, because spliting into paging is better as i can split discussion and content forums on two seperate pages
     
  5. Digital Doctor

    Digital Doctor Well-Known Member

    Members online now, Forum statistics are very seldomly used.
    Their rarely used status does not warrant their prominent placement on ForumHome.
    I put them at the bottom of the page just to emphasize they don't have to be eliminated entirely.
    But if you insist ... eliminate them !!
    Surely someone wanting to know Online Members (a rare occurance) could easily and intuitively click the Members tab.
     
  6. Peggy

    Peggy Well-Known Member

    Yeah that's what I was thinking. If they're so seldom used, I'd just eliminate them, rather than put them at the bottom.
     
  7. Wired

    Wired Active Member

    Slap the seldom used stuff into collapsible boxes (to the side or down). That example pic is too randomly chopped up to make a decision based upon it.
     
  8. ToDie4

    ToDie4 Well-Known Member

    I was just going to post the very same request, I've spent so many hours looking through Amy's code and trying to figure out how to make it work for XenForo but I am basically clueless.
    Definitely a +1 for this if anyone can do it please.

    If you need the contents of the xml it's below (the mod was just the xml, no edits or other files).
    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    
    <product productid="amykhar_01262006" active="1">
        <title>Split Forumhome</title>
        <description>Split the forums list into multiple pages</description>
        <version>1.5</version>
        <codes>
            <code version="1.5">
                <installcode><![CDATA[$db->hide_errors();
    $db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD page tinyint(4) DEFAULT '1' NOT NULL");
    build_forum_permissions();
    $db->show_errors();]]></installcode>
                <uninstallcode><![CDATA[$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum DROP page");]]></uninstallcode>
            </code>
        </codes>
        <templates>
        </templates>
        <plugins>
            <plugin active="1">
                <title>Split Forumhome</title>
                <hookname>forumadmin_edit_form</hookname>
                <phpcode><![CDATA[print_input_row("Page", 'forum[page]', $forum['page']);]]></phpcode>
            </plugin>
            <plugin active="1">
                <title>Split Forumhome</title>
                <hookname>forumbit_display</hookname>
                <phpcode><![CDATA[if(THIS_SCRIPT == 'index')
    {
    global $page;
    if($forum['page'] != $page)
    {
        $tempext = '';
    }
    }]]></phpcode>
            </plugin>
            <plugin active="1">
                <title>Split Forum Home</title>
                <hookname>forumdata_start</hookname>
                <phpcode><![CDATA[$this->validfields['page'] = array(TYPE_UINT,REQ_NO);]]></phpcode>
            </plugin>
            <plugin active="1">
                <title>Forumhome Split</title>
                <hookname>forumhome_start</hookname>
                <phpcode><![CDATA[if (empty($_GET[page]))
    {
        // We are on Page 1.
        $_GET[page] = 1;
        $page = $_GET[page];
    }
    else
    {
        $page = $_GET[page];
    }]]></phpcode>
            </plugin>
            <plugin active="1">
                <title>Forumhome Split</title>
                <hookname>forumhome_start</hookname>
                <phpcode><![CDATA[if (empty($_GET[page]))
    {
        // We are on Page 1.
        $_GET[page] = 1;
        $page = $_GET[page];
    }
    else
    {
        $page = $_GET[page];
    }]]></phpcode>
            </plugin>
            <plugin active="1">
                <title>Forumhome Split</title>
                <hookname>forumhome_start</hookname>
                <phpcode><![CDATA[if (empty($_GET[page]))
    {
        // We are on Page 1.
        $_GET[page] = 1;
        $page = $_GET[page];
    }
    else
    {
        $page = $_GET[page];
    }]]></phpcode>
            </plugin>
            <plugin active="0">
                <title>Forumhome Split</title>
                <hookname>forumhome_start</hookname>
                <phpcode><![CDATA[if (empty($_GET[page]))
    {
        // We are on Page 1.
        $_GET[page] = 1;
        $page = $_GET[page];
    }
    else
    {
        $page = $_GET[page];
    }]]></phpcode>
            </plugin>
        </plugins>
        <phrases>
        </phrases>
        <options>
        </options>
    </product>
    
     
  9. ankurs

    ankurs Well-Known Member

    bump , anyone ?
     
  10. Farjad

    Farjad Member

Share This Page