Jump to content

Notoriouswow

Members
  • Posts

    46
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Notoriouswow's Achievements

Member

Member (2/5)

0

Reputation

  1. 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
  2. } I dont believe line 16 is the issue...
  3. 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
  4. Nope, now i get the same error on line 96.
  5. 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
  6. 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
  7. 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
  8. I did that at first, but it never really worked right.... Thanks for the criticism though, glad to know your here to help. *Cough*
  9. 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?
  10. 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
  11. Thing is, the file is most definitively there theres no doubt about that, before i was told it was a php.ini file problem.
  12. 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
  13. 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!!
×
×
  • 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.