SimplePortal

Customization => Custom Coding => Topic started by: tnet on September 04, 2008, 10:59:04 AM

Title: membermap block?
Post by: tnet on September 04, 2008, 10:59:04 AM
 :pirate:  Is it doable?

Title: Re: membermap block?
Post by: Nathaniel on September 04, 2008, 05:25:49 PM
Yes, it should be 'doable'.

What exactly do you want?
A list of membergroups?
A list of members?
A list of lastest members?
Title: Re: membermap block?
Post by: tnet on September 05, 2008, 12:28:20 AM
I was actually thinking about the google membermap.....  with the pins...  but then realized my portal is already server intensive, so nevermind! (it would be a cool addition though....  for other sites)
Title: Re: membermap block?
Post by: Eliana Tamerin on September 05, 2008, 12:38:54 AM
Isn't there a google membermap mod? http://custom.simplemachines.org/mods/index.php?mod=1010
Title: Re: membermap block?
Post by: Nathaniel on September 05, 2008, 01:57:42 AM
It would be a very nice addition.

Maybe someone can make a custom block based off that mod when we work out the adding of custom functions?

Anyway, the idea seems good. :D
Title: Re: membermap block?
Post by: tnet on September 05, 2008, 03:04:35 AM
Isn't there a google membermap mod? http://custom.simplemachines.org/mods/index.php?mod=1010

Yes, so how would we add it as a block?

Title: Re: membermap block?
Post by: Nathaniel on September 05, 2008, 03:26:34 AM
Create a new 'PHP' block, and then put the code below as the content. ;)

Code: [Select]
global $sourcedir;
require_once($sourcedir.'/GoogleMap.php');
Map();
template_map();
Title: Re: membermap block?
Post by: tnet on September 08, 2008, 10:28:52 PM
Cool Thanks!
Title: Re: membermap block?
Post by: Aw06 on September 09, 2008, 12:23:08 AM
post a link to your site id like to see how it looks in a block..

On that note, i think SP sould have a preview feature, so we can preview things before hand..
Title: Re: membermap block?
Post by: Nathaniel on September 09, 2008, 01:48:30 AM
@Aw06,
SimplePortal 2.04 has a permissions system for each block, so you should be able to create a block and then only give admin permissions for it. That will allow you to 'preview' it, without anyone else seeing it. ;)
Title: Re: membermap block?
Post by: Aw06 on September 09, 2008, 02:35:11 AM
@Aw06,
SimplePortal 2.04 has a permissions system for each block, so you should be able to create a block and then only give admin permissions for it. That will allow you to 'preview' it, without anyone else seeing it. ;)

o kool ,, thanks :$$:
Title: Re: membermap block?
Post by: hot rides on December 05, 2008, 12:07:11 PM
does anyone have this running on a live site? I would like to see it before installing the mod
Title: Re: membermap block?
Post by: willerby on April 29, 2009, 11:35:23 AM
This topic is one of the most viewed despite only having a few replies.

I suspect we're all waiting for someone to show this working...
Title: Re: membermap block?
Post by: Nathaniel on April 29, 2009, 07:55:39 PM
If the code I posted above still works, then I don't see why that should be the case. Testing this should take about 5 min, including installing the Google Member Map mod, and then putting that code into a PHP block which only admin can see. :/
Title: Re: membermap block?
Post by: Old Fossil on May 01, 2009, 11:39:07 AM
I may of done something wrong but it didn't work.

I tried php, html and bbc blocks.

Not sure what I was doing wrong.

Tried to install the googlemap before but had several errors.
Title: Re: membermap block?
Post by: Bruno36 on May 18, 2010, 01:33:46 PM
Hello!
The block is displayed 2 times  :D
http://www.scooter-chinois-4t.com/index.php
Title: Re: membermap block?
Post by: TW1ST3D on May 21, 2010, 10:50:22 PM
Code works perfectly..............I tested it in a large center block and a side block.

Here is the code with the start and end tags in place :

Code: [Select]
<?php
global $sourcedir;require_once($sourcedir.'/GoogleMap.php');Map();template_map();
?>


I think the reason that people could not get it to work is that they didn't start / end the code.
Title: Re: membermap block?
Post by: Bruno36 on May 22, 2010, 03:17:36 AM
not on my forum
http://www.scooter-chinois-4t.com/index.php
Title: Re: membermap block?
Post by: AngelinaBelle on May 24, 2010, 12:36:06 PM
@TWIST3D -- It is not necessary to use the <?php and ?> in a custom php block. SimplePortal already knows to evaluate that code as php.
 
@Bruno36 -- I see you have nothing in the "Carte des membres" block! How frustrating.
 
First step -- Did you first install the Google Membermap mod and make sure it is working? http://custom.simplemachines.org/mods/index.php?mod=1010 (http://custom.simplemachines.org/mods/index.php?mod=1010)
 
Second step -- Did you check your SMF error log to see if that block is giving you any errors?
 
 
Title: Re: membermap block?
Post by: Bruno36 on May 24, 2010, 02:15:35 PM
good evening

Google Membermap mod works well
http://www.scooter-chinois-4t.com/googlemap/
Title: Re: membermap block?
Post by: AngelinaBelle on May 24, 2010, 04:30:09 PM
I am not authorized to view it, so I'll take your word for it.
 
On to step 2 -- are you getting any errors in your Error Log when members view that block? That can give you some pretty big clues.
 
Title: Re: membermap block?
Post by: Bruno36 on May 25, 2010, 02:51:55 AM
Login: invite
password: 123456
Title: Re: membermap block?
Post by: AngelinaBelle on May 25, 2010, 08:03:58 AM
Do you have any errors in the error log?
Title: Re: membermap block?
Post by: Bruno36 on May 25, 2010, 09:02:23 AM
or is the error log?
Title: Re: membermap block?
Post by: AngelinaBelle on May 25, 2010, 10:07:24 AM
où est = where is
 
In English: admin>Error Log
 
 
 
Title: Re: membermap block?
Post by: Bruno36 on May 25, 2010, 01:19:34 PM
Mistakes I Have 388 total  :0
Undefined elements (379)
General (7)
Users (2)
Title: Re: membermap block?
Post by: AngelinaBelle on May 25, 2010, 02:22:14 PM
Please show some recent Undefined errors.
This will tell something about what is wrong
Title: Re: membermap block?
Post by: Bruno36 on May 25, 2010, 03:40:37 PM
Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8: Undefined index: is_guestFichier: /home/www/sospc/www/phpbb/Sources/Subs-Portal.php
Ligne: 257 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8: Undefined index: is_guestFichier: /home/www/sospc/www/phpbb/Sources/Subs-Portal.php
Ligne: 352 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8: Undefined index: session_idFichier: /home/www/sospc/www/phpbb/Sources/Subs-Portal.php
Ligne: 203 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8: Undefined index: is_guestFichier: /home/www/sospc/www/phpbb/Sources/Subs-Portal.php
Ligne: 201 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8: Undefined index: session_varFichier: /home/www/sospc/www/phpbb/Sources/Subs-Portal.php
Ligne: 187 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8: Undefined index: session_idFichier: /home/www/sospc/www/phpbb/Sources/Subs-Portal.php
Ligne: 187 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8: Undefined index: is_guestFichier: /home/www/sospc/www/phpbb/Sources/Subs-Portal.php
Ligne: 182 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8: Undefined index: right_to_leftFichier: /home/www/sospc/www/phpbb/Sources/Subs-Portal.php
Ligne: 105 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8: Undefined index: html_headersFichier: /home/www/sospc/www/phpbb/Sources/Load.php
Ligne: 2004 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8: Undefined index: html_headersFichier: /home/www/sospc/www/phpbb/Sources/Load.php
Ligne: 1998 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8: Undefined index: is_adminFichier: /home/www/sospc/www/phpbb/Themes/default/languages/SPortal.french-utf8.php
Ligne: 120 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8: Undefined index: languageFichier: /home/www/sospc/www/phpbb/Themes/default/languages/Modifications.french-utf8.php
Ligne: 413 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1437;image8: Undefined index: is_guestFichier: /home/www/sospc/www/phpbb/Sources/Subs-Portal.php
Ligne: 257 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1437;image8: Undefined index: is_guestFichier: /home/www/sospc/www/phpbb/Sources/Subs-Portal.php
Ligne: 352 
   Invité
 86.221.16.147   
    Aujourd'hui à 21:16:45
 3667be7ac57338aecdb775addd74ca07
 Type d'erreur: Éléments indéfinis 
http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1437;image8: Undefined index: session_idFichier: /home/www/sospc/www/phpbb/Sources/Subs-Portal.php
Ligne: 203 
Title: Re: membermap block?
Post by: AngelinaBelle on May 25, 2010, 07:41:11 PM
I think the errors from http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8 (http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8) are not related to your membermap problem.
This is a different problem you may have to fix.  You could ask for help on the simplemachines.org support boards.
 
Do you have any errors that are not from http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8 (http://www.scooter-chinois-4t.com/index.php?action=dlattach;topic=2667.0;attach=1439;image8) ?
 
I think that there is something else necessary to make the mod work in the block. If we cannot sort it out quickly, the mod author will surely know what would be required to make it work in a custom portal block.
SimplePortal 2.3.8 © 2008-2024, SimplePortal