Jump to content
MakeWebGames

Recommended Posts

Posted

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Oh. Well you "echoed" the error message outside of the staff function. I changed the close-curly-bracket thing above to show you what I mean :)

Posted
Oh. Well you "echoed" the error message outside of the staff function. I changed the close-curly-bracket thing above to show you what I mean :)

That worked for users who are not id1 but now id can see it? No one should see it unless they are trying to delete messages and are not id1.

Posted (edited)

Right, go back to the one I posted first....the reason why you are always seeing this is because you are saying:

When user_level > 1 (staff member), do one of:

*delete comment

OR

*display error message.

There's an easy way around this, but my head is fried from another task right now and everything just looks wrong to me :(

EDIT: Actually give this a shot, it might or might not work, I dunno...replace the PHP section with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Edited by bineye
Added code
Posted
Right, go back to the one I posted first....the reason why you are always seeing this is because you are saying:

When user_level > 1 (staff member), do one of:

*delete comment

OR

*display error message.

There's an easy way around this, but my head is fried from another task right now and everything just looks wrong to me :(

EDIT: Actually give this a shot, it might or might not work, I dunno...replace the PHP section with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Thank you for trying to help me. I do appreciate it but that didn't work either. It does not show anything now.... Dayo made this so I am hoping he will answer this post and help me figure this out. Thanks again bineye.

Posted

"abs(intval($_GET['id'])))"

Thats not really necessary, (even though i dont do this you can because its logical)

If your receiving a GET or POST from the user and you intend for this to only be numbers, simple use math to make sure its a number.

$var=($_GET['id'] * 1);

Thanks to php this will return a blank string if its not numbers. The only down fall is this will turn negative numbers positive (how the hell is that a downfall) lol

  • 6 months later...
Posted (edited)

Can someone help me. I want in this chat, when a user writes something, next to his name to be an "attact" link, so if someone clicks to it he can attack this player.

Can anyone help me with the code?

Thanks in advance

Edit: I managed to make it, by adding an extra row in the 'chat' table. Then i defined the variable that has to do with the userid in send.php and finally in the receive.php i added the dynamic link. If someone is interested to make something like that i can give more info.

Edited by astralreb
  • 2 weeks later...
Posted

Looks like a fantastic mod, thanks in advance.

Perhaps I'm missing something, but I think I need a pointer.

Most mods SQLs I run work perfectly fine, but there's a couple that are having issues.

In the instructions, there is a file called "sql to add.txt"

When I run that on my database, I get the message: #1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key

Can anyone shed some light on this?

Thanks again!! You guys are awesome.

Posted
Looks like a fantastic mod, thanks in advance.

Perhaps I'm missing something, but I think I need a pointer.

Most mods SQLs I run work perfectly fine, but there's a couple that are having issues.

In the instructions, there is a file called "sql to add.txt"

When I run that on my database, I get the message: #1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key

Can anyone shed some light on this?

Thanks again!! You guys are awesome.

Unknown whether this mod has been updated since it's original release but this should be a working SQL for you.

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

^Taken from page two/with the removal of the second AUTO_INCREMENT.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...