Welcome, Guest. Please Login or Register.
April 20, 2024, 12:01:51 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  YaBB SE Info  |  News From the YaBB SE Team  |  yabb.info Member Map « previous next »
Pages: 1 ... 5 6 [7] 8 9 ... 14 Reply Ignore Print
Author Topic: yabb.info Member Map  (Read 256342 times)
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:yabb.info Member Map
« Reply #90 on: May 07, 2002, 11:45:14 PM »
Reply with quote

6.0.2600.0000IS
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:yabb.info Member Map
« Reply #91 on: May 08, 2002, 12:05:47 AM »
Reply with quote

Quote from: AGISCI on May 07, 2002, 11:45:14 PM6.0.2600.0000IS
Does this Version number indicate that the "Cumulative Patch for Internet Explorer (Q316059)" is applied?
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q316059
Did you apply this patch on your win 98 installation? Maybe the win98 png problem is related to this patch?
« Last Edit: May 08, 2002, 12:12:59 AM by andrea » Logged

Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:yabb.info Member Map
« Reply #92 on: May 08, 2002, 12:15:03 AM »
Reply with quote

I have not downloaded or installed ANY patches in my IE6.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:yabb.info Member Map
« Reply #93 on: May 19, 2002, 06:25:39 AM »
Reply with quote

Hah, lol. I am in outer space. :P ;)
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
sharmy
Noobie
*
Posts: 4


I'm a llama!

sharmy_wang@hotmail.com
Re:yabb.info Member Map
« Reply #94 on: May 28, 2002, 12:23:06 AM »
Reply with quote

can not find chinese user :o ;D!?
Logged
Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:yabb.info Member Map
« Reply #95 on: June 11, 2002, 08:25:50 AM »
Reply with quote

Great mod, I need this. However I'm having problems.

If I go to worldmap_image.php the map comes up stating 0 pins but with no ability to add pins.

If I go to WorldMap.php I get a blank screen.

Do I need to adjust just worldmap_image.php and the mysql script or is there work to be done on WorldMap.php.

Also someone commented earlier on the need to add the prefix to members, is this necessary and if so what needs changing.

Thanks
Logged
Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:yabb.info Member Map
« Reply #96 on: June 13, 2002, 06:51:51 PM »
Reply with quote

OK I've got it working to a point.

I put worldmap_image.php in main folder and WorldMap.php in sources.

I modified index.php to add a button to the menu and subs.php for the "include" function.

The map comes up it reads the db and shows 0 pins, it recognises admin, guests and users.

What it doesn't do is: -

1) Open in a new window
2) Place any pins

I'm thinking that problem 1) is leading to problem 2) perhaps, any help gratefully received.
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:yabb.info Member Map
« Reply #97 on: June 13, 2002, 06:54:29 PM »
Reply with quote

I just put it up last night.
http://www.agigames.com/board/?action=worldmap
Works like a charm!

Also could you give me a url so I can see what is happening?
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:yabb.info Member Map
« Reply #98 on: June 13, 2002, 06:58:53 PM »
Reply with quote

http://www.sportsbike.cc

Thanks m8, it's apreciated  ;)
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:yabb.info Member Map
« Reply #99 on: June 13, 2002, 07:00:16 PM »
Reply with quote

Hmm, I have the same version number, except for the IS at the end...
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:yabb.info Member Map
« Reply #100 on: June 13, 2002, 07:16:45 PM »
Reply with quote

Well the not opening in a new window is because of the <a href=""></a> in Subs.php you need to define a target.

As for problem number 2 I think you have the wrong location set in WoldMap.php

Could you post your WorldMap.php file here so I can see it?
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:yabb.info Member Map
« Reply #101 on: June 13, 2002, 07:19:16 PM »
Reply with quote

<?php


/**
 * Short description.
 *
 * Detail description
 * @param      none
 * @global     none
 * @since      1.0
 * @access     private
 * @return     void
 * @update     date time
*/
function WorldMap()
{
   global $imagesdir,$ID_MEMBER,$db_prefix,$HTTP_GET_VARS,$settings;
   if ($HTTP_GET_VARS['t'] == 2 && $settings[7] != 'Administrator')
      $HTTP_GET_VARS['t'] = 0;

   if ($HTTP_GET_VARS['t'] == 1 && $ID_MEMBER==-1)
      $HTTP_GET_VARS['t'] = 0;

   if ($HTTP_GET_VARS['t'] == 0)
   {
      if (isset ($HTTP_GET_VARS['submitted']) && $HTTP_GET_VARS['submitted'] && $ID_MEMBER != -1)
      {
         $request = mysql_query ("SELECT * FROM {$db_prefix}world_map WHERE ID_MEMBER=$ID_MEMBER");
         if (mysql_num_rows($request) > 0)
            $request = mysql_query ("UPDATE {$db_prefix}world_map SET xPos=$HTTP_GET_VARS[map_x], yPos=$HTTP_GET_VARS[map_y] WHERE ID_MEMBER=$ID_MEMBER");
         else
            $request = mysql_query ("INSERT INTO {$db_prefix}world_map (ID_MEMBER,xPos,yPos) VALUES($ID_MEMBER, $HTTP_GET_VARS[map_x], $HTTP_GET_VARS[map_y])");
      }       
   }

   if ($ID_MEMBER == -1)
   {
      print "<font face=verdana,size=1><center><img src=\"http://www.sportsbike.cc/yabbse/worldmap_image.php\"></center>";    
   }
   else
   {
      if ($settings[7] == 'Administrator')
      {
         $adminTxt = " &nbsp;&nbsp;&nbsp; <input type=radio name=t value=2>Delete Pin";
          
      }
      print "<font face=verdana,size=1><form action=\"$scripturl\" method=get><input type=hidden name=action value=\"worldmap\"><center><input type=image src=\"http://www.sportsbike.cc/yabbse/worldmap_image.php?me=$ID_MEMBER&t=$HTTP_GET_VARS[t]&x=$HTTP_GET_VARS[map_x]&y=$HTTP_GET_VARS[map_y]\" name=map onclick=\"submit()\" style=\"cursor:crosshair\"><br> <input type=radio name=t value=1 checked>Who is this? &nbsp;&nbsp;&nbsp; <input type=radio name=t value=0>Place My Pin$adminTxt</center><input type=hidden name=submitted value=1></form>";    
   }

   print <<<EOT
      The most recent pin addition is hilighted by a blue circle, and your location is indicated by a blue pin.  The above image is a PNG, if you can't see it, your browser may not support the PNG file type. The yabb.info member map is a map of all the members who are registered on yabb.info and who have indicated their position on the world map.  If you haven't yet placed yourself, click on the map above to place your pin.  You can move your pin around at any time.  Also, you can only place a pin if you are a registered member and are logged in.<p align=right><a href="javascript:window.close()">Close Window</a>
      </font>
EOT;
   obExit();
}//end func
?>
Logged
andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:yabb.info Member Map
« Reply #102 on: June 13, 2002, 07:27:35 PM »
Reply with quote

You should also check the db-prefixes in the "worldmap_image.php" file.

As far I remember one had to add the db prefix (e.g. "yabbse_") in the queries of the "members" table (i.e. replace "members" by "yabbse_members").
« Last Edit: June 13, 2002, 07:28:35 PM by andrea » Logged

Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:yabb.info Member Map
« Reply #103 on: June 13, 2002, 07:30:58 PM »
Reply with quote

Thanks andrea

Currently it has {$db_prefix}members, should I change this to yabbse_members?
Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:yabb.info Member Map
« Reply #104 on: June 13, 2002, 07:31:40 PM »
Reply with quote

Here use this and tell me if it works:

<?php

/**
 * Short description. 
 *
 * Detail description
 * @param      none
 * @global     none
 * @since      1.0
 * @access     private
 * @return     void
 * @update     date time
*/

function WorldMap()
{
print <<<EOT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Chris's AGI Web Site</TITLE>
<META http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
</HEAD>
<body background="http://www.agigames.com/bg.jpg" bgcolor="#000000" text="#000000" link="#8B0000" vlink="#8B0000" alink="#8B0000">
<table border=0 cellspacing=0 cellpadding=0 width="90%" align=center>
 <tr>
  <td width=14><img src="YaBBImages/box_tl.gif"></td>
  <td background="YaBBImages/box_tc.gif" align=center class=nav2 valign=top><img src="YaBBImages/blank.gif" height=6><br></td>
  <td width=13><img src="YaBBImages/box_tr.gif"></td>
 </tr>
 <tr>
  <td width=14 background="YaBBImages/box_ml.gif"><img src="YaBBImages/blank.gif" width=14></td>
  <td background="YaBBImages/box_mc.gif"><div class=small>
EOT;
   global 
$imagesdir$ID_MEMBER$db_prefix,$HTTP_GET_VARS$settings;
   if (
$HTTP_GET_VARS['t'] == && $settings[7] != 'Administrator')
      
$HTTP_GET_VARS['t'] = 0;

   if (
$HTTP_GET_VARS['t'] == && $ID_MEMBER==-1)
      
$HTTP_GET_VARS['t'] = 0;

   if (
$HTTP_GET_VARS['t'] == 0)
   {
      if (isset (
$HTTP_GET_VARS['submitted']) && $HTTP_GET_VARS['submitted'] && $ID_MEMBER != -1)
      {
         
$request mysql_query ("SELECT * FROM {$db_prefix}world_map WHERE ID_MEMBER=$ID_MEMBER");
         if (
mysql_num_rows($request) > 0)
            
$request mysql_query ("UPDATE {$db_prefix}world_map SET xPos=$HTTP_GET_VARS[map_x], yPos=$HTTP_GET_VARS[map_y] WHERE ID_MEMBER=$ID_MEMBER");
         else
            
$request mysql_query ("INSERT INTO {$db_prefix}world_map (ID_MEMBER,xPos,yPos) VALUES($ID_MEMBER$HTTP_GET_VARS[map_x]$HTTP_GET_VARS[map_y])");
      }       
   }

   if (
$ID_MEMBER == -1)
   {
      print 
"<font face=verdana,size=1><center><img src=\"http://www.agigames.com/board/worldmap_image.php\"></center>";
   }
   else
   {
      if (
$settings[7] == 'Administrator')
      {
         
$adminTxt " &nbsp;&nbsp;&nbsp; <input type=radio name=t value=2>Delete Pin";
          
      }
      print 
"<font face=verdana,size=1><form action=\"$scripturl\" method=get><input type=hidden name=action value=\"membermap\"><center><input type=image src=\"http://www.agigames.com/board/worldmap_image.php?me=$ID_MEMBER&t=$HTTP_GET_VARS[t]&x=$HTTP_GET_VARS[map_x]&y=$HTTP_GET_VARS[map_y]\" name=map onclick=\"submit()\" style=\"cursor:crosshair\"><br> <input type=radio name=t value=1 checked>Who is this? &nbsp;&nbsp;&nbsp; <input type=radio name=t value=0>Place My Pin$adminTxt</center><input type=hidden name=submitted value=1></form>";
   }

   print <<<EOT
      The most recent pin addition is hilighted by a blue circle, and your location is indicated by a blue pin.  The above image is a PNG, if you can't see it, your browser may not support the PNG file type. The member map is a map of all the members who are registered and who have indicated their position on the world map.  If you haven't yet placed yourself, click on the map above to place your pin.  You can move your pin around at any time.  Also, you can only place a pin if you are a registered member and are logged in.<p align=right><a href="javascript:window.close()">Close Window</a>
      </font>
EOT;
        print <<<EOT
  </td>
  <td width=13 background="YaBBImages/box_mr.gif"><img src="YaBBImages/blank.gif" width=13></td>
 </tr>
 <tr>
  <td width=14><img src="YaBBImages/box_bl.gif"></td>
  <td background="YaBBImages/box_bc.gif" align=center class=nav2><img src="YaBBImages/blank.gif"></td>
  <td width=13><img src="YaBBImages/box_br.gif"></td>
 </tr>
</table>
</body>
</html>
EOT;
   
obExit();
}
//end func
?>

You used membermap as the action instead of worldmap... this will fix it(hopefully).
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Pages: 1 ... 5 6 [7] 8 9 ... 14 Reply Ignore Print 
YaBB SE Community  |  YaBB SE Info  |  News From the YaBB SE Team  |  yabb.info Member Map « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.034 seconds with 20 queries.