Jump to content
MakeWebGames

Recommended Posts

Posted

hi, ive convented the following files into 1 file...

propose.php

decision.php

acceptpro.php

declinepro.php

so if you this mod on your game, you can use this file instead of them 4 files (save disk space)

this file should be secured too.

call it "marriage.php"

You're unable to view this code.

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

 

put this link on explore

You're unable to view this code.

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

 

link should work perfectly.

hope you like it. lol.

NOTE: i modified it on my pc without testing it as i had to change some

".staffcolor($r['userid']." into ".htmlentities($r['username'])."

and

{$r['userid']} into ".abs(intval($r['userid']))."

and so on... shouldnt of made it error, but if you do have any problems please contact me :)

Posted

I see quite a few of you people doing the same thing using

You're unable to view this code.

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

It's pritty useless, if your using switch() because you all have a default one, so if it isn't found, it would just use the default switch, function.

Posted

I do like the way you've gone with this, however could off made it shorter but using isset()

 

I've slighty edited you're code and removed all the die(""); as it's alot cleaner when it show's the endpage function :P

 

You're unable to view this code.

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

 

I'll release a new martial system once I've finished the updates :)

Posted

thanks for the update :)

im starting to learn how to do functions and etc, so i might be making alot of stupid mods lol.

also would this new marriage system include shared housing?

as im after a shared housing mod.

  • 8 months later...
  • 1 year later...
Posted

Alright, so I'm trying to use this, converted to V1. The problem is, the forum added so many "target=_blank"'s, that I'm completely lost. I've tried to fix them, but I obviously am not correcting it in the right way. I'm wondering if anyone can help me.

I'm getting this error:

You're unable to view this code.

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

 

Here's the code as I have it after "attempting" to fix it:

You're unable to view this code.

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

Posted (edited)
Alright, so I'm trying to use this, converted to V1. The problem is, the forum added so many "target=_blank"'s, that I'm completely lost. I've tried to fix them, but I obviously am not correcting it in the right way. I'm wondering if anyone can help me.

I'm getting this error:

You're unable to view this code.

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

 

Here's the code as I have it after "attempting" to fix it:

You're unable to view this code.

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

ovewrite lines 141 - 143 with this

You're unable to view this code.

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

Edited by mixmaster
Posted
ovewrite lines 141 - 143 with this

You're unable to view this code.

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

Okay, now I get Parse error: syntax error, unexpected T_STRING in /home/district/public_html/marriage.php on line 141

Posted

You're unable to view this code.

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

 

 

Have made both of the changes, and still getting this:

You're unable to view this code.

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

 

Definitely appreciate the help. Starting to think this is just more trouble than it's worth, though.

Posted (edited)

Not really hard take a look at your statement...

<font color="#666666">or</font>

<font color="#666666"><a href='marriage.php?action=decline&pro=".abs(intval($pro['userid']))." '><font color=red>Decline</font></a></td></tr></table>";</font>

If your statement ends in "; then your <font color="#666666"> should be: <font color='#666666'>

Edit: Also you have "; then </font>

You do not need two font closing tags, and also if you did need that closing tag it should be put into the print or echo statement not out of it like you have:</table>";</font> should be:</font></table>";

Edited by lucky3809
Posted (edited)
Not really hard take a look at your statement...

<font color="#666666">or</font>

<font color="#666666"><a href='marriage.php?action=decline&pro=".abs(intval($pro['userid']))." '><font color=red>Decline</font></a></td></tr></table>";</font>

If your statement ends in "; then your <font color="#666666"> should be: <font color='#666666'>

Edit: Also you have "; then </font>

You do not need two font closing tags, and also if you did need that closing tag it should be put into the print or echo statement not out of it like you have:</table>";</font> should be:</font></table>";

Still the same error.

You're unable to view this code.

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

 

Here are lines 140-145:

You're unable to view this code.

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

 

Again, thanks for trying to help, though. Still figuring this all out.

Edited by Seker
Posted

It's none of those lines anymore they are fixed, it may be lines above, those that had same thing... You will have errors where there is double quotes like the ones I fixed. because if you put this line in a different page you will get no error

print"

<td>Decision:

<a href='marriage.php?action=accept&pro=".abs(intval( $pro['userid']))."'><font color='#666666'>Accept</font></a>

<font color='#666666'>or</font>

<a href='marriage.php?action=decline&pro=".abs(intval ($pro['userid']))." '><font color='#666666'>Decline</font></a></td></tr></table>";

So that is not your error now.

Posted
Okay, here's the whole code as I have it right now:

 

You're unable to view this code.

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

Try this

 

You're unable to view this code.

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

Posted
To start:

Line 140:

You're unable to view this code.

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

to

You're unable to view this code.

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

Done and no go. Now I get this:

You're unable to view this code.

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

Posted
Try this

 

You're unable to view this code.

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

Now I get this:

You're unable to view this code.

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

 

@SRB - I don't blame you at all. Thanks for trying.

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