vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Flash UserMap add-on (https://vborg.vbsupport.ru/showthread.php?t=51731)

mfarmerhi 07-30-2005 10:05 AM

First, a huge thanks for this hack and getting it to work on 3.0.x I'm using it on a 3.0.7 board.

Works like a charm.

I'm stuck, however, on the PHP conversion (the usermap.php, discussed above). I added the template "usermap" by hand, but am getting this error:
Code:

Fatal error: Call to undefined function: gettemplate() in /home/totalli/public_html/forum/usermap.php on line 12
Any ideas why?

mfarmerhi 07-30-2005 10:27 AM

Ah... okay: Changes from 2.x to 3.x -- gettemplate is replaced by fetch_template and dooutput is replaced by print_output

--- addition ---

One more change:
show_nopermission() was replced by print_no_permission()

--- end addition ---

So, either of the 2 php files offered work, you just have to replace gettemplate, dooutput and show_nopermission...

Got it -- works like a charm!

~ Mark

caliman 07-30-2005 04:17 PM

Good going Mark. Were those the only changes it took to get this to work on 3.07? If it's not too much hassle, maybe you can zip your changes? Do you have a URL for your map you can share?

Excited about this mod. Thanks in advance.

mfarmerhi 07-30-2005 08:35 PM

Hey Caliman! Yea, I'm hyped about it too. Ever since I saw it, I've wanted this hack -- and what, with all the people talking about it in other threads, figured this one just didn't work for 3.0.7 It was when I saw bitg's post that I realized it still might work.

Here's how I got it working on my 3.0.7 board:

1) Download the original hack and all it's files. All of it's still good, still works, HOWEVER

2) In the zip install instructions, where it tell you to make a new user profile field, use bitg's instuctions for 3.0.x here: https://vborg.vbsupport.ru/showpost....7&postcount=56

3) It will work, as is. However, I also wanted the php page (which includes headers and footers, to maintain a consistent look with my site). To do that, I used Erwin's instructions here, BUT ONLY FOR THE TEMPLATE: https://vborg.vbsupport.ru/showpost....4&postcount=45

4) For the actual usermap.php file, you'll have to tweak the one suggested by Erwin. When vB changed to 3.0.7 they changed some of the phrases. usermap.php should now read:
Code:

<?php
error_reporting(7);

require('./global.php');
if (!$bbuserinfo[userid]) {
  print_no_permission();
 }
        eval("print_output(\"".fetch_template("usermap")."\");");
?>

Save that as "usermap.php" and upload it to the forum's root folder (e.g. "http://mysite.com/forum/" )

Bingo! Should work like a charm.

A couple of notes: the usermap.php file I indicate above, prevents un-registered Members from viewing the map. To allow them, delete
Code:

if (!$bbuserinfo[userid]) {
  print_no_permission();
 }

from usermap.php above, before uploading it to your forum's root folder.

The hack saves Member's names, creating a hyperlink from their pin to their user profile.

Very cool.

Oh... unregistered visitors can't see my Map (I've used the unchanged one I presented above), but you should be able to see the .html version. It doesn't include the headers and footers that my php version will include.

I'll leave it up for a few days for those who'd like to see this on a 3.0.7 board: http://totallifesuccess.com/forum/usermap.html

caliman 07-31-2005 02:05 AM

Sweet!
Thanks a million Mark.
I'll try to find some time tomorrow to install this.
:cool:

Hoffi 08-03-2005 07:00 AM

Just works at 3.07

Is it possible to change the Text in the Flash into German?

Edit: Just found the source... thx.

paulmjno 08-24-2005 11:26 AM

Does anyone have a working example of this hack? I wanna see it. Thanks.

mfarmerhi 08-27-2005 02:57 AM

Quote:

Originally Posted by paulmjno
Does anyone have a working example of this hack? I wanna see it. Thanks.

Errrr....
Quote:

Originally Posted by mfarmerhi
I'll leave it up for a few days for those who'd like to see this on a 3.0.7 board: http://totallifesuccess.com/forum/usermap.html


Loki12 01-01-2006 03:28 PM

Is there any possibility of porting this for vB 3.5.x? I have tried on 3.5.2, but doesn't save the data that is input.


All times are GMT. The time now is 06:54 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.01290 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete