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
You made an edit somewhere you shouldn't have. I suggest re-uploading the original index.php and retrying the mod.
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
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.
Jecht, if you learn PHP, you are much better off in the computer programming world/career than if you didnt........
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?