Jump to content

iamz3r0

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Contact Methods

  • AIM
    iamzero15
  • Website URL
    http://westwind.exofire.net
  • Yahoo
    iamzero13

Profile Information

  • Gender
    Male
  • Location
    Virginia Beach

iamz3r0's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Okay, I'm going to build the site up using PHP. It seems you can customize it better.
  2. Okay, so if I wanted to add something like a 'Welcome [username]' php code, then I'd have to use the php version of the include code? EDIT: Well, the code worked when I was using Dreamweaver, but when it's uploaded (sidebar.html and the page it's included on) it doesn't show up.
  3. I created a new file, with the sidebar information, and using HTML, I added... <!--#include FILE="sidebar.html" --> ...where the sidebar would go. It works perfectly as I can see. Any problems with HTML that I should know about when it comes to including files?
  4. Okay, I'm trying to figure out how I can create a "sidebar" that can be edited on the homepage (or as a separate file and using the "include" function) and be reflected on the entire site. This sidebar contains site information, such as the status of the forums, etc. and it would be difficult to update every page of my site just to change the status.
  5. I deleted the break and the bracket, and it gave me an error. So I added the bracket back in there, and it works.
  6. Oops. I'm a lil new at it, so it still gets me confused. I added the bracket, and all is well. I just have to run through the forum to make sure its all working.
  7. Okay, I removed the extra bracket and the break. The code looks like: // Start Ultimate Points $sql = 'SELECT points_received, poster_id FROM ' . POSTS_TABLE . ' WHERE post_id = ' . $data['post_id']; $result = $db->sql_query_limit($sql, 1); $row = $db->sql_fetchrow($result); $db->sql_freeresult($result); if ( $config['points_enable'] && $user->data['user_id'] == $row['poster_id'] ) { $sql = "UPDATE " . USERS_TABLE . " SET user_points = user_points - " . $row['points_received'] . " WHERE user_id = '" . $row['poster_id'] . "'"; $db->sql_query($sql); $sql = "UPDATE " . POSTS_TABLE . " SET points_received = points_received - " . $row['points_received'] . " WHERE post_id = '" . $data['post_id'] . "'"; $db->sql_query($sql); $ultimate_points->new_post_ch($data['forum_id'], $data['post_id'], $ultimate_points->strip_text($data['message'])); } // End Ultimate Points $sql_data[postS_TABLE]['sql']['post_text'] = $data['message']; } $post_approved = $sql_data[postS_TABLE]['sql']['post_approved']; $topic_row = array(); But now I get:
  8. I recieve this: The code around line 1789 is: // Start Ultimate Points $sql = 'SELECT points_received, poster_id FROM ' . POSTS_TABLE . ' WHERE post_id = ' . $data['post_id']; $result = $db->sql_query_limit($sql, 1); $row = $db->sql_fetchrow($result); $db->sql_freeresult($result); if ( $config['points_enable'] && $user->data['user_id'] == $row['poster_id'] ) { $sql = "UPDATE " . USERS_TABLE . " SET user_points = user_points - " . $row['points_received'] . " WHERE user_id = '" . $row['poster_id'] . "'"; $db->sql_query($sql); $sql = "UPDATE " . POSTS_TABLE . " SET points_received = points_received - " . $row['points_received'] . " WHERE post_id = '" . $data['post_id'] . "'"; $db->sql_query($sql); $ultimate_points->new_post_ch($data['forum_id'], $data['post_id'], $ultimate_points->strip_text($data['message'])); } // End Ultimate Points $sql_data[postS_TABLE]['sql']['post_text'] = $data['message']; } break; } $post_approved = $sql_data[postS_TABLE]['sql']['post_approved']; $topic_row = array();
  9. If I remove the break, I'm not able to edit my posts in phpBB.
  10. Weeeellppp, nevermind. It was a random "break;" in there. Oops.
  11. Haha. Well I might have to post more . I'm getting this error now: Why can't this be easy...? Well, to me at least.
  12. Thanks for the help and the quick response guys!
  13. Okay, after I put in your edit, I cleaned up some of the unexpected "curly" brackets and its working so far without any errors.
  14. On line 2514 it has: foreach ($sql_data as $table => $update_ary)
  15. Alright, good news... and bad news. That edit worked, I can load up the page, but I'm getting the infamous "headers already sent by" errors.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.