Jump to content
MakeWebGames

Seacrhing Area Script Final Mod for MCCV2


Uridium

Recommended Posts

Due to a recent discussion on another thread, I just have to suggest using SMALLINT( 4 ) instead. :P

Well it's dependent on the game owner, due to being able to change the 'default' amount of searches a user gets;

You're unable to view this code.

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

Link to comment
Share on other sites

  • 3 weeks later...
Fatal error: Call to undefined function mkglobal() in /home/content/46/8879046/html/addsareas.php on line 34

does anyone know how to fix this

 

Re-read the error...Call to undefined function mkglobal() meaning a function name mkglobal() is in your script being used, but there is no such function.

example such as echo mkglobal($r[username']);

and in your function script there is no function made of mkglobal() look into your global_func.php and make sure you have that function in there. You may have forgot to add it.

Link to comment
Share on other sites

dd this to the globals file mentioned in the folder

function mkglobal($vars) {

if (!is_array($vars))

$vars = explode(":", $vars);

foreach ($vars as $v) {

if (isset($_GET[$v]))

$GLOBALS[$v] = unesc($_GET[$v]);

elseif (isset($_POST[$v]))

$GLOBALS[$v] = unesc($_POST[$v]);

else

return 0;

}

return 1;

}

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

the script work very well but when i try to create a search area after clic add...

its show:

Column count doesn't match value count at row 1

so im stuck with the firstcontact. :)

and by the way very nice mod. i like it.

i find the solution

in addareas.php

find:

implode(",", array_map("sqlesc", array($url, $display, $level, $display_name, $description, $Locked))). ")") or die(mysql_error());

and change by:

implode(",", array_map("sqlesc", array($url, $display, $level, $display_name, $description, $Locked, $member))). ")") or die(mysql_error());

 

was missing the $member

:)

Edited by sixsens
Link to comment
Share on other sites

  • 8 years later...

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