Jump to content
MakeWebGames

Recommended Posts

Posted
I get this error at the top of viewuser.php

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/murder/public_html/viewuser.php:23) in /home/murder/public_html/globals.php on line 28

And I also get:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/murder/public_html/viewuser.php:23) in /home/murder/public_html/globals.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /home/murder/public_html/viewuser.php:23) in /home/murder/public_html/lib/basic_error_handler.php on line 39

************ - Critical Error

A critical error has occurred, and this page cannot be displayed. Please try again later.

When I delete a comment, add a comment (even though the comment does display), not to forget when I rate someone. If this could be fixed, it would be a nice module.

I added the SQL, overwrite the viewuser and added the cron. So I did follow the necessary steps.

Another solution to this error:

Add start of the script

You're unable to view this code.

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

and at the end

You're unable to view this code.

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

Posted (edited)
Another solution to this error:

Add start of the script

You're unable to view this code.

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

and at the end

You're unable to view this code.

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

 

You can also do this

You're unable to view this code.

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

then add the other part of the code to it.

you get the error because the html and head was already set by the header.php which globals.php pulls from that page, so its unnecessary to have it when it's already there.

Edited by lucky3809
Posted (edited)
Am I reading this right? Do players only get to rate once a day?

Yes, you can easily change that by changing the limit in the DB.

Edited by Script47
  • 5 months later...
Posted

In the code for rating up it has a line that says this:

You're unable to view this code.

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

 

Change that to say this:

You're unable to view this code.

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

Posted
In the code for rating up it has a line that says this:

You're unable to view this code.

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

 

Change that to say this:

You're unable to view this code.

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

Thank you! :)

Posted
In the code for rating up it has a line that says this:

You're unable to view this code.

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

 

Change that to say this:

You're unable to view this code.

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

That will remove the limit a player can rate people but it also removes the limit on how many time a player can rate the same player ;)

Posted (edited)

Look in the original code. The rate down is written like I posted for the rate up.

Not to say that it's not wrong. I just adjusted for how it was written in the code.

Edited by Veramis
Posted
Look in the original code. The rate down is written like I posted for the rate up.

Not to say that it's not wrong. I just adjusted for how it was written in the code.

No, your not wrong but what it now does is allows someone to constantly rate a player up or down all day long nonstop. That's all I meant by my post

Posted

After you rate a player up have it insert into a db $thisuser rated up $thatuser and then call to that table, if there is an entry for you rating up that user echo "You have rated this person today" and then die($h->endpage()); then truncate the table with your day cron/day timestamps.

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...