Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Flash UserMap add-on Details »»
Flash UserMap add-on
Version: 1.00, by traekwon traekwon is offline
Developer Last Online: Apr 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-16-2003 Last Update: Never Installs: 26
 
No support by the author.

Flash UserMap for Vbulletin 2.x.x - version 2.0
Author: PineappleClock (pineappleclock@clockcrew.cc)
-------------------------------------

Overview
The Flash Usermap is a SWF (Shockwave Flash) program that will work with Vbulletin
to display a zoomable world map, with 'pins' representing the location of your users - so users can find other users local to them and organize meets, etc.
Each user can place his or her pin at their desire. The map is searchable.

Synopsis
This hack consists of a Flash 6 SWF file (your users will require flash player 6 to view this map)
which loads and sends data through a file maphandler.php, which in turn sets and retrieves information
from a custom profile field in Vbulletin. To see a demonstration of this software, go here:

http://www.clockcrew.cc/clockmap.html

Note: The clockmap running on clockcrew.cc is a specialized version of the Flash UserMap.


file Listing
install.txt -- the installation howto
maphandler.php -- the file that the SWF recieves and transmits data to.
usermap.swf -- the flash 6 user map application.
(not included) usermap.fla -- the source code for usermap.swf
Note: see install.txt for downloading instrunctions, the file is too big to include in the zip (1.4mb)
usermap.html -- a HTML file for displaying usermap.swf


Requirements
------------
Macromedia Flash MX - optional, for altering the source file 'usermap.fla'
Macromedia Flash player 6 - required for each user, a free plugin available at www.macromedia.com
vbulletin 2.x.x - required

Notes
This is a slightly generalized version of the usermap thats running on my site - it's been running for a while with no problems, but there will always be bugs. Please post if you find any, hope you find this useful

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 04-23-2003, 12:38 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's very cool. Anyone able to edit the .FLA file to remove the word stalker and post the .SWF? Sorry, I don't have a Flash editor...
Reply With Quote
  #43  
Old 04-23-2003, 06:01 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 01:38 PM Erwin said this in Post #41
It's very cool. Anyone able to edit the .FLA file to remove the word stalker and post the .SWF? Sorry, I don't have a Flash editor...

which word do you want instead? write down the whole paragraph, I'll replace the text for you.
Reply With Quote
  #44  
Old 04-24-2003, 02:31 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just end the sentence early and take out "and become a stalker."



That "stalker" word will stop many from using it, and has legal implications, as stalking is a crime.
Reply With Quote
  #45  
Old 04-24-2003, 03:15 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin, try this one and see if it works for you.

remember to rename it, I named it usermap1.swf
Reply With Quote
  #46  
Old 04-24-2003, 10:54 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's awesome!

Okay, I'll show you guys how to integrate this into your forums easily with a PHP file.

1) Make a new template called "usermap" with the following contents:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html>
<head>
<title>$bbtitle - User Map</title>
$headinclude </head> 
<body> 
$header 
<!-- breadcrumb -->
<table border="0" width="100%" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="100%"><br>
    <normalfont><b><a href="index.php">$bbtitle</a> 
      &gt; <a href="usermap.php">User Map</a></b></normalfont></td>
  </tr>
</table>
<!-- /breadcrumb -->
<br>
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#000000"  width="95%" align="center">
  <tr>
    <td> <table cellpadding="4" cellspacing="1" border="0"  width="100%">
        <tr> 
          <td bgcolor="#F1F1F1" align="left" valign="top"><normalfont> 
<br>
</div>
            <center>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 WIDTH="550" HEIGHT="450" id="usermapzoom2" ALIGN="">
 <PARAM NAME=movie VALUE="usermap.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="usermap.swf" quality=high bgcolor=#FFFFFF  WIDTH="550" HEIGHT="450" NAME="usermapzoom2" ALIGN=""
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
            </center>
</td>
        </tr>
      </table></td>
  </tr>
</table>
$footer 
</body>
</html>
2) To save 1 query in "maphandler.php" - find out the custom user profile id you are using.

Find this:

PHP Code:
$rowd $DB_site->query_first("SELECT profilefieldid FROM profilefield WHERE title='usermapdata'"); 
And delete it.

Then, find this:

PHP Code:
".$fieldnum." 
This occurs THREE times - replace ALL THREE with your profile id number.

Done! 1 less query (not that it really matters)

Save and upload "maphandler.php" to your forums directory.

3) Upload "usermap.php" attached below to your forums directory.

Just link to "usermap.php" and the UserMap will be integrated into your forums. The "usermap.php" will prevent guests from viewing the UserMap - why waste bandwidth on guests?
Reply With Quote
  #47  
Old 04-24-2003, 10:57 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By the way, if you're using mtha's usermap1.swf that is modified to have the word stalker removed, keep the name of the file as usermap1.swf and change the code in the "usermap" template from usermap.swf to usermap1.swf (this occurs TWICE) or it won't work for some reason.
Reply With Quote
  #48  
Old 04-24-2003, 11:00 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another thing - how do you make the pin smaller???
Reply With Quote
  #49  
Old 04-24-2003, 02:59 PM
Okiewan's Avatar
Okiewan Okiewan is offline
 
Join Date: Dec 2001
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just opened the .fla (with Flash MX) file and scaled the "pin" library item down. (ctrl-L openers library items). Then "publish" it.

What I'd really like is to remove the usernames, so they only show up with a mouse over... but have NO clue how to do it.

Here's the map with 131 users in the USA map. I'd guess by the end of the week there will be as many as 500, obviously all major metropolitan areas are going to be bad. Dallas for example is already messed-up.

http://dirtrider.net/forums3/usermap.html
Reply With Quote
  #50  
Old 04-25-2003, 06:02 AM
starnet starnet is offline
 
Join Date: Dec 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is any way to make it on PHP only? like here -> http://pub31.bravenet.com/guestmap/s...rd=&lightmap=1 flash is crap
Reply With Quote
  #51  
Old 04-29-2003, 02:50 AM
dstruct2k's Avatar
dstruct2k dstruct2k is offline
 
Join Date: Dec 2002
Location: Winnipeg
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep. Very simple, I've done it. All it took was some simple PHP knowlidge (which was my level about 3 weeks ago, now I've read the entire PHP manual and remember 90% of it...)

I'll attach a ZIP file with my php's and templates.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:19 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04612 seconds
  • Memory Usage 2,320KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete