Ipb Help Topic

Discussion in 'Gaming' started by Andrew, Jun 6, 2005.

  1. Flamerman/M4S

    Flamerman/M4S Active Member

    Posts:
    33
    Likes Received:
    0
    Joined:
    Jul 7, 2006
    I just became admin of a site so this will me alot thanks
     
  2. GR.Konvict

    GR.Konvict Well-Known Member

    Age:
    18
    Posts:
    3,823
    Likes Received:
    0
    Joined:
    Jul 30, 2004
    Location:
    :o
    Cool, flamerman
     
  3. T-Baum

    T-Baum Well-Known Member

    Posts:
    118
    Likes Received:
    0
    Joined:
    Apr 24, 2006
    Bravo Bravo encore encore :D
     
  4. REDCELL1

    REDCELL1 Well-Known Member

    Posts:
    1,269
    Likes Received:
    0
    Joined:
    Jan 6, 2006
    Location:
    The OC. California
    noob help lol

    alright guys i was installing a mod when all of a sudden this happened

    http://mafiarecordz.net/forum/index.php?act=idx

    the mod is

    Members Online Today
    This is a Member Online today thing. Sports a quick Hide and Show option without reloading the page. If you want the list to be hidden by default, move the style='default: none;' to the other span in the template bit.
    --------------
    Add Template to Board Index -> `online_today`
    Variables: $data
    Template Bit:
    CODE<tr>
    <td class='formsubtitle' colspan='2'>{ipb.lang['ot_title']}</td>
    </tr>
    <tr'>
    <td class='row1' width='1%'><{F_ACTIVE}></td>
    <td class='row2'>
    {$data['memstats']}
    {$data['members']}

    Hide List
    {$data['memstats']}
    Show List
    </td>
    </tr>

    Add to lang_boards.php
    CODE'ot_title' => "Members Online Today",
    'ot_data' => "%s Members Online For %s",

    LIB/FUNC_BOARDSTATS.PHP -->>

    Find
    CODEreturn $this->ipsclass->compiled_templates['skin_boards']->ActiveUsers($active, $this->ipsclass->vars['au_cutoff']);
    Replace With
    CODE$this->ipsclass->time_options['ONLINE_SHOW'] = "g:i A";
    $data = array('memnum' => 0, 'members' => '');
    $today = $this->ipsclass->get_time(time(), 'j-n-Y');
    $this->ipsclass->DB->simple_construct(array('select' => '*', 'from' => 'members', 'where' => "id>0 AND last_activity>".time()-172800, 'order' => 'members_display_name ASC'));
    $this->ipsclass->DB->simple_exec();
    while ($row = $this->ipsclass->DB->fetch_row())
    {
    $time = $this->ipsclass->get_time($row['last_activity'], 'j-n-Y');
    if ($time == $today)
    {
    $data['members'][$row['id']] = "ipsclass->get_date($row['last_activity'], 'ONLINE_SHOW', 1)."'>{$this->ipsclass->cache['group_cache'][$row['mgroup']]['prefix']}{$row['members_display_name']}{$this->ipsclass->cache['group_cache'][$row['mgroup']]['suffix']}";
    $data['memnum']++;
    }
    }
    if (is_array($data['members']))
    {
    $data['members'] = implode(', ', $data['members']);
    }
    $this->ipsclass->time_options['ONLINE'] = $this->ipsclass->vars['ot_date'];
    $data['memstats'] = sprintf($this->ipsclass->lang['ot_data'], $data['memnum'], $this->ipsclass->get_date(time(), 'ONLINE', 1));
    $online_today = $this->ipsclass->compiled_templates['skin_boards']->online_today($data);

    return $this->ipsclass->compiled_templates['skin_boards']->ActiveUsers($active, $this->ipsclass->vars['au_cutoff']).$online_today;

    Add Settings to Date & Formats

    Setting title: "Member Online Today" date format
    Setting description:
    QUOTE
    Same configuration as PHP Date

    Setting key: ot_date
    Setting Curent AND Default Value: F j Y
    Done!

    so if any 1 can help me that would be great thanks
     
  5. Zer0.

    Zer0. Well-Known Member

    Posts:
    273
    Likes Received:
    0
    Joined:
    Jul 11, 2006
    You made an edit somewhere you shouldn't have. I suggest re-uploading the original index.php and retrying the mod.
     
  6. REDCELL1

    REDCELL1 Well-Known Member

    Posts:
    1,269
    Likes Received:
    0
    Joined:
    Jan 6, 2006
    Location:
    The OC. California
    ALRIGHT THANKS

    any other suggestions ?
     
  7. jberlinsky

    jberlinsky Well-Known Member

    Posts:
    398
    Likes Received:
    0
    Joined:
    Apr 6, 2006
    lol...try making sure that everything in the file is surrounded in the <? and ?> tags where it applies...it seems that you prematurely terminated the PHP code with a ?> tag in the wrong place...maybe a typo, maybe you pasted code in the wrong place.

    Heres what I do

    I completely remove all modifications to the files, then start from scratch. Do 1 file, check to make sure all is well. Continue like this. If you hit an error, stop and try doing that file again. Reread the directions, make sure the code is in the right place.

    Any problems beyond that, and you seriously made a mistake somewhere :P
     
  8. Jecht0089

    Jecht0089 Well-Known Member

    Posts:
    84
    Likes Received:
    0
    Joined:
    Aug 6, 2006
    Simple as this, Don't screw with PHP coding, if it's a pre made code, leave it as is, if you don't know php fully don't mess with it.

    linsky is right though, you don't want to put ONE wrong letter number space or anything in it.
     
  9. jberlinsky

    jberlinsky Well-Known Member

    Posts:
    398
    Likes Received:
    0
    Joined:
    Apr 6, 2006
    Jecht, if you learn PHP, you are much better off in the computer programming world/career than if you didnt........
     
  10. :.xHiBiTiOn.:

    :.xHiBiTiOn.: Well-Known Member

    Posts:
    71
    Likes Received:
    0
    Joined:
    Aug 7, 2006
    Wow this is a great and helpful list. It helped me a ton with my site.
     
  11. //FissionPoint

    //FissionPoint Well-Known Member

    Posts:
    50
    Likes Received:
    0
    Joined:
    Aug 16, 2006
    Warning: db_main::require_once(../sources/sql/mysql_admin_queries.php) [function.db-main-require-once]: failed to open stream: No such file or directory in /home/fissionp/public_html/forums/ips_kernel/class_db.php on line 944

    does anyone know what that error means?
     
  12. HydrogeN

    HydrogeN Well-Known Member

    Posts:
    2,532
    Likes Received:
    0
    Joined:
    Sep 7, 2004
    What were you doing before this error happened?
     
  13. //FissionPoint

    //FissionPoint Well-Known Member

    Posts:
    50
    Likes Received:
    0
    Joined:
    Aug 16, 2006
    installing ipb, it came up after i installed it. like after i deleted index.php
     
  14. HydrogeN

    HydrogeN Well-Known Member

    Posts:
    2,532
    Likes Received:
    0
    Joined:
    Sep 7, 2004
    Why would you delete index.php?
     
  15. //FissionPoint

    //FissionPoint Well-Known Member

    Posts:
    50
    Likes Received:
    0
    Joined:
    Aug 16, 2006
    its the install file, /forums/install/index.php
     

Share This Page