Welcome, Guest. Please Login or Register.
November 22, 2024, 11:09:38 AM
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 ... 6 7 [8] 9 10 ... 14 Reply Ignore Print
Author Topic: yabb.info Member Map  (Read 262749 times)
Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:yabb.info Member Map
« Reply #105 on: June 13, 2002, 07:32:34 PM »
Reply with quote

Quote from: Chris Cromer on June 13, 2002, 07:16:45 PMWell the not opening in a new window is because of the <a href=""></a> in Subs.php you need to define a target.

Current subs line is: -

// membermap
        $yymenu .= "$menusep<a href=\"$scripturl?action=membermap \"><img src=\"$imagesdir/membermapbutton.png\"</a>";
Logged
andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:yabb.info Member Map
« Reply #106 on: June 13, 2002, 07:37:15 PM »
Reply with quote

Quote from: Thunderace on June 13, 2002, 07:32:34 PM// membermap
        $yymenu .= "$menusep<a href=\"$scripturl?action=membermap \" target="_blank"><img src=\"$imagesdir/membermapbutton.png\"</a>";

add target="_blank", this will cause to open a new window.
Logged

andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

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

Quote from: Thunderace on June 13, 2002, 07:30:58 PMThanks andrea

Currently it has {$db_prefix}members, should I change this to yabbse_members?
Not sure if the variable $db_prefix is present there, maybe safer to use "yabbse_". Also check in the same file that all queries on the worldmap table have the db prefix added, i.e. use "yabbse_worldmap".
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 #108 on: June 13, 2002, 08:09:01 PM »
Reply with quote

andrea: that wasn't the problem. He just used action=membermap instead of action=worldmap

if he uses the code I posted it will allow him to use membermap instead of worldmap.
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 #109 on: June 13, 2002, 08:10:38 PM »
Reply with quote

Quote from: andrea on June 13, 2002, 07:37:15 PM
Quote from: Thunderace on June 13, 2002, 07:32:34 PM// membermap
        $yymenu .= "$menusep<a href=\"$scripturl?action=membermap \" target="_blank"><img src=\"$imagesdir/membermapbutton.png\"</a>";

add target="_blank", this will cause to open a new window.

Gives parse errors
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 #110 on: June 13, 2002, 08:14:53 PM »
Reply with quote

Hey Thunderace... I placed my pin :o lol.

But that is only because I know how to do it. ;)

If you use the code a posted a few posts back you should be able to get the pins to work.
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 #111 on: June 13, 2002, 08:19:36 PM »
Reply with quote

Also use this and see if it works:

// membermap
        $yymenu .= "$menusep<a href=\"$scripturl?action=membermap \" target=\"_blank\"><img src=\"$imagesdir/membermapbutton.png\"</a>";
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 #112 on: June 13, 2002, 08:22:10 PM »
Reply with quote

Yes, Chris is right, you have to put the \ before the " characters.
Logged

Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:yabb.info Member Map
« Reply #113 on: June 13, 2002, 08:27:28 PM »
Reply with quote

Chris I got: -

Fatal error: Call to undefined function: clicklog() in /var/www/vhosts/sportsbike.cc/httpdocs/yabbse/index.php on line 55
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 #114 on: June 13, 2002, 08:31:07 PM »
Reply with quote

with the membermap button stuff or the map itself?

well anyway I noticed something in that code I gave you... it included my directorys where the stuff was located... use this:

<?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'] == && $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.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=\"membermap\"><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

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 #115 on: June 13, 2002, 08:44:34 PM »
Reply with quote

Quote from: Chris Cromer on June 13, 2002, 08:09:01 PMandrea: that wasn't the problem. He just used action=membermap instead of action=worldmap

if he uses the code I posted it will allow him to use membermap instead of worldmap.

I had membermap in both index and subs
Logged
Thunderace
Full Member
***
Posts: 211


I'm a llama!

Re:yabb.info Member Map
« Reply #116 on: June 13, 2002, 08:46:02 PM »
Reply with quote

Also having used your suggestions Chris it opens in a new window, but as soon as I click it reverts to the forum
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 #117 on: June 13, 2002, 08:48:23 PM »
Reply with quote

yes I know. There is 2 options for you... you can use the code I just gave you... or you can go into index.php and subs.php and change membermap to worldmap.
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 #118 on: June 13, 2002, 09:26:06 PM »
Reply with quote

Quote from: Chris Cromer on June 13, 2002, 08:19:36 PMAlso use this and see if it works:

// membermap
        $yymenu .= "$menusep<a href=\"$scripturl?action=membermap \" target=\"_blank\"><img src=\"$imagesdir/membermapbutton.png\"</a>";

Deleted and set all back to WorldMap, added your script above to open new window, still no joy  ???

I'm a newbie so I must be missing the screaming obvious.

Thanks for your help BTW
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 #119 on: June 13, 2002, 09:28:30 PM »
Reply with quote

Not WorldMap... worldmap... and don't use the code for WorldMap.php I gave you when you change it, use the WorldMap.php that came in the zip(but with your url's in it)
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Pages: 1 ... 6 7 [8] 9 10 ... 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.