-
Posts
46 -
Joined
-
Last visited
Everything posted by Notoriouswow
-
http://pastebin.com/hmqi2RG0 ... Pretty long... im not the best coder, was made for my friend thats why it has all the "//" PS. Sorry to sound rude
-
} I dont believe line 16 is the issue...
-
I have a news code that posts news on the home page like a CMS would. How would i make it so when I post news using the code, I can use HTML within the post to change around what it looks like? Instead of just having it display the HTML like "<font color="blue">Example</font>" Regards, NW
-
Nope, now i get the same error on line 96.
-
Hello everyone, I have a script that shows the news posted on my website in a bigger format with comments ect... but it gives me the error Parse error: syntax error, unexpected '}' in /home/stormgc/public_html/sources/news_view.php on line 50 I reviewed the code, I know what the error fix would be, but I cannot find the proper place to put it. If someone could please review the script and help that would be awesome! --> <? $id = $_GET['id']; $news = mysql_query("SELECT * FROM `news` WHERE id='$id'"); if(mysql_num_rows($news) > 0){ $newz = mysql_fetch_array($news); loadHeader($newz['title']); } if($_GET['update'] == 1){ confirm('You have successfully updated this news.'); } ?> <br /> <div class="title"><? echo $newz['title']; ?><span class="options"><a href="index.php">Home</a> / <? echo $newz['title']; ?></span></div> <div class="content"> <? $username = $newz['username']; ?> <div class="category"><a href="index.php?action=news_view&id=<? echo $newz['id']; ?>"><? echo $newz['title']; ?></a> posted on <? displayTime($newz['time'], 'F jS, Y \a\t g:i a'); ?> <span class="options">By <? $accounts = mysql_query("SELECT * FROM accounts JOIN profiles ON accounts.username=profiles.username WHERE accounts.username='$username'"); if(mysql_num_rows($accounts) > 0){ $account = mysql_fetch_array($accounts); ?> <a href="index.php?action=profile&user=<? echo $account['username']; ?>">{<? } echo $account['display_name']; ?></a> <? } else { echo $username; } ?> </span></div> <div class="cell1"> <? echo parseText($newz['message']); ?> <br /><br /> <a href="index.php?action=forums">Discuss this in the forums...</a> <? if($cur_account['staff'] == "on" || $cur_admin == 1){ ?> <br /> <br /> <a href="index.php?action=news_modify&id=<? echo $newz['id']; ?>">Modify</a> | <a href="" onClick="if(confirm('Are you sure you want to delete this news?')){ location.href='index.php?action=news_delete&id=<? echo $newz['id']; ?>'; } return false;">Delete</a> <? } ?> </div> <? loadFooter(); } else { fatalError('The news article you are trying to view does not exist.'); } ?> Thanks, NW
-
Hello phpfreaks, I have a self coded forums (Yes, it is mine, it is not 3rd party) Would like to know how I would make it so that after a certain amount of characters a topic would stop and end in '...' without the quotes obviously. If you need the code, just ask. Thanks in Advance, NotoriousWoW
-
Hello everyone, I have a donation script on my website, and I would like it to automatically update their rank in my PHPBB forum. How would I go about doing this? Regards, NW
-
I did that at first, but it never really worked right.... Thanks for the criticism though, glad to know your here to help. *Cough*
-
Cory, its a good idea.... but I can't really figure out how to make it work correctly to the point were you would be screwed over if you changed it lol Any ideas for the code?
-
Hey everyone, I have a quick question.... I have a super simple footer.php that includes credits towards me.... (Running a CMS) and a lot of people have abused the fact that it is REALLY easy to change it. Is their anyway to make it so when you modify it whatsoever the whole website won't work or it displays an error or something... I have a config.php that could work with this real nicely... Thanks, NotoriousWoW
-
Thing is, the file is most definitively there theres no doubt about that, before i was told it was a php.ini file problem.
-
Warning: require(configuration/statisticshandler.inc.php) [function.require]: failed to open stream: No such file or directory in C:\Fusion Arcemu 3.2.2\Server\htdocs\notorious_armory\source\profileview.php on line 142
-
Alright, i wrote this script (This happens with all the scripts ive been writing lately) i always get function errors because they aren't defined in the php.ini file.... Which php.ini do i modify? And how would i modify it? (I have like 3 php.ini files all in different locations) If you could help me, that would be great!!
-
Please help --Bump--
-
--Bump--
-
In theory, it should but it doesn't work out to well most of the time.
-
Thank you very much, i no longer get any errors, although it doesn't complete the MYSQL query, there's nothing in the table. Is it because phpbb encrypts the password?
-
Here's Line's 30 -33 As Requested: $result = dbquery("INSERT INTO ".$db_prefix."users (user_name, user_password, user_email, user_hide_email, user_location, user_birthdate, user_aim, user_icq, user_msn, user_yahoo, user_web, user_theme, user_offset, user_avatar, user_sig, user_posts, user_joined, user_lastvisit, user_ip, user_rights, user_groups, user_level, user_status) VALUES('".$user_info['user_name']."', '".$user_info['user_password']."', '".$user_info['user_email']."', '".$user_info['user_hide_email']."', '', '0000-00-00', '', '', '', '', '', 'Default', '0', '', '', '0', '".time()."', '0', '".USER_IP."', '', '', '101', '$activation')"); $result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_code='$activate'"); //$result = dbquery("INSERT INTO ".website_forums."phpbb_users (user_id, user_type, group_id, user_permissions, user_perm_from, user_ip, user_regdate, username, username_clean, user_password, user_passchg, user_pass_convert, user_email, user_email_hash, user_birthday, user_lastvisit, user_lastmark, user_lastpost_time, user_lastpage, user_last_confirm_key, user_last_search, user_warnings, user_last_warning, user_login_attempts, user_inactive_reason, user_inactive_time, user_posts, user_lang, user_timezone, user_dst, user_dateformat, user_style, user_rank, user_colour, user_new_privmsg, user_unread_privmsg, user_last_privmsg, user_message_rules, user_full_folder, user_emailtime, user_topic_show_days, user_topic_sortby_type, user_topic_sortby_dir, user_post_show_days, user_post_sortby_type, user_post_sortby_dir, user_notify, user_notify_pm, user_notify_type, user_allow_pm, user_allow_viewonline, user_allow_viewemail, user_allow_massemail, user_options, user_avatar, user_avatar_type, //user_avatar_width,user_avatar_height, user_sig, user_sig_bbcode_uid, user_sig_bbcode_bitfield, user_from, user_icq, user_aim, user_yim, user_msnm, user_jabber, user_website, user_occ) VALUES ("mysql_insert_id()", 0, 3, '', 0,'".USER_IP."', 0, '".$user_info['user_name']."', '', '".$user_info['user_password']."', '', 0, '".$user_info['user_email']."', 0, 0, 0, 0, 'index.php', '', 0, 0 ,0, 0, 0, 0, 0, "en", "-6.0", 0, "D M d, Y g:i a", 13, 0, '', 0, 0, 0, 0, -3, 0, 0, "t", "d", 0, "t", "a", 0, 1, 0, 1, 1, 1, 1, 230271, '', 0, 64, 64, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 0)"); I quoted out the lines that gave me errors so users could still register.
-
Yes, i know exactly what you mean. A new tab is what they are called, just another open explorer document in the same window. But is this your whole code? Or just a snippet of it? Here's my login code, you may be able to get it to work. You just need to set some variables. <?php //require_once "maincore.php"; //require_once "subheader.php"; //require_once "side_left.php"; if (iMEMBER) { header("Location:index.php"); } else { opentable($locale['060']); echo "<div align='center'> <form name='loginform' method='post' action='".FUSION_SELF."'> ".$locale['061']."<br> <input type='text' name='user_name' class='textbox' style='width:100px'><br> ".$locale['062']."<br> <input type='password' name='user_pass' class='textbox' style='width:100px'><br> <input type='checkbox' name='remember_me' value='y'>".$locale['063']."<br><br> <input type='submit' name='login' value='Login' class='button'><br> </form> <br> </div>\n"; closetable(); } //require_once "side_right.php"; //require_once "footer.php"; //Leave all of the functions require_once ""; coded out, they are just style sheets for my website. ?>
-
I'm not sure if this is your problem, it could be something simple and stupid like this.... <?php if (!is_authorized($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'])) { echo "Not allowed"; echo "<a href='logout.php' target=''>Try again</a>"; } else { //all things //set target='_blank' to open it in a new window }
-
Well I have the auto_increment working, i tested it on a different script. Now i just need help finding my parse error in my script.
-
Thank you, that seemed to have worked. But now I get the Unexpected T-STRING Error on line 33 Here's line 33: user_avatar_width,user_avatar_height, user_sig, user_sig_bbcode_uid, user_sig_bbcode_bitfield, user_from, user_icq, user_aim, user_yim, user_msnm, user_jabber, user_website, user_occ) VALUES ("mysql_insert_id()", 0, 3, '', 0,'".USER_IP."', 0, '".$user_info['user_name']."', '', '".$user_info['user_password']."', '', 0, '".$user_info['user_email']."', 0, 0, 0, 0, 'index.php', '', 0, 0 ,0, 0, 0, 0, 0, "en", "-6.0", 0, "D M d, Y g:i a", 13, 0, '', 0, 0, 0, 0, -3, 0, 0, "t", "d", 0, "t", "a", 0, 1, 0, 1, 1, 1, 1, 230271, '', 0, 64, 64, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 0)"); It's just a continue of the code from like 32, would i need another character? like a ";"?
-
Yes, so when the database query's there account data, they each have there own unique ID.
-
For my new registration page, i have a SQL query needed to enter the user data into my database. Although i am unsure on how to generate the unique and specific entry ID needed. I think I would have to define how to get and create entry ID's in a different location and link back to that? I am unsure, if someone could help that would be great.