Same forum DB, different URL/Skins possible?

Discussion in 'PC Hardware, Software and Displays' started by Berek, Sep 26, 2010.

  1. Berek

    Regular

    Joined:
    Oct 17, 2004
    Messages:
    271
    Likes Received:
    4
    Location:
    Houston, TX
    I was hoping someone here might know how to establish separate IPB URL/forum skin websites but keep the overall DB/login system the same. We're adding multiple game sites to our studio's network and I don't want to split the community, yet I want each site to have it's own skin that matches the website itself.

    Is this even realistically possible? I've been searching the Internet from top to bottom focusing on IPB and even vBulletin as a reference on how it can be accomplished. As far as I can tell, it's possible, if you hack the system on your own. You risk running into several issues that way though if it's not done right I'd imagine.
     
  2. Davros

    Legend

    Joined:
    Jun 7, 2004
    Messages:
    14,889
    Likes Received:
    2,304
    Since this is a company funded thing hire someone
     
  3. digitalwanderer

    digitalwanderer Dangerously Mirthful
    Legend

    Joined:
    Feb 19, 2002
    Messages:
    17,261
    Likes Received:
    1,777
    Location:
    Winfield, IN USA
    Yup, hire a good web master. They're honestly worth their weight in gold. :yep2:
     
  4. Berek

    Regular

    Joined:
    Oct 17, 2004
    Messages:
    271
    Likes Received:
    4
    Location:
    Houston, TX
    We may do that at some point, but it would be nice to know if this is possible or generally how it can/is done before we do so. Currently I'm the web master.
     
  5. Zaphod

    Zaphod Remember
    Veteran

    Joined:
    Aug 26, 2003
    Messages:
    2,204
    Likes Received:
    103
    Yes, you can do this. At least there is code to handle such things in IPB. Googling some function names I vaguely remember pointed at publicOutput.php. You'll probably have to mess with it a bit so as to have it work properly without annoying your users with unexpected skin overrides or whatnot.
     
  6. Berek

    Regular

    Joined:
    Oct 17, 2004
    Messages:
    271
    Likes Received:
    4
    Location:
    Houston, TX
    Thanks! I did a search for that though and it didn't seem to come up with anything useful :(.

    I did, however, discover a forum skin option for per-category use in IPB. So if I link to that category, it'll use whatever skin I chose. The problem, clicking on your profile, gallery, or anything else that would take you out of that category, also reverts the skin.

    Another interesting option, SOE somehow got forums into actual categories in the file system: http://forums.station.sony.com/strategygames/forums/list.m?category_id=23

    If I could lock the skin once you enter that forum... though that presents its own problems. SOE seemed to overcome that though.
     
    #6 Berek, Sep 27, 2010
    Last edited by a moderator: Sep 27, 2010
  7. Davros

    Legend

    Joined:
    Jun 7, 2004
    Messages:
    14,889
    Likes Received:
    2,304
    well this forum has different skins when the user selects a different skin find out what function its calling and you could add the function to each page

    seems to be this


    <form action="index.php" method="get" style="clear:left">

    <table cellpadding="5" cellspacing="0" border="0" width="100%" class="page" align="center">
    <tr>

    <td class="tfoot">
    <select name="styleid" onchange="switch_id(this, 'style')">
    <optgroup label="Quick Style Chooser">
    <option value="10" class="" >-- vB3D</option>
    <option value="1" class="" selected="selected">-- vBulletin Default Style</option>

    </optgroup>
    </select>
    </td>
     
  8. Malo

    Malo Yak Mechanicum
    Legend Veteran Subscriber

    Joined:
    Feb 9, 2002
    Messages:
    7,028
    Likes Received:
    3,101
    Location:
    Pennsylvania
    Sounds fairly simple to do kinda what Davros is suggesting. Just detect the URL requested and override the users skin.
     
  9. Zaphod

    Zaphod Remember
    Veteran

    Joined:
    Aug 26, 2003
    Messages:
    2,204
    Likes Received:
    103
    Sorry for being vague. Its been a while.

    I think a somewhat modified version of this functionality (with retention of user selected skins) is what I've seen implemented along with virtual hosts and server side URI rewriting to get forum.mysite1.com and forum.mysite2.com to map to differently skinned subsections of the same forum.

    Here's a header snippet from the file I mentioned when googling:
    PHP:
    /**
    * Fetch a skin based on user's incoming data (user-agent, URL) or via other params
    *
    * The priority chain goes like this:
    * Incoming Gateway file (index.php / xml.php / rss.php, etc) filters out some skins, then:
    * - User Agent
    * - URL Remap
    * - App Specific
    * - Member specific
    * - Default skin
    */
    protected function _fetchUserSkin() ...
    Having a look at that code might nudge you further in the right direction.
     
  10. Berek

    Regular

    Joined:
    Oct 17, 2004
    Messages:
    271
    Likes Received:
    4
    Location:
    Houston, TX
    I sent this to our technical director to look into further. Not sure yet, but I think this might do the trick. The URL mapping feature I just noticed in the IPB admin menu as well.
     
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...