SimplePortal
Customization => Custom Coding => Topic started by: tnet on September 04, 2008, 10:59:04 AM
-
:pirate: Is it doable?
-
Yes, it should be 'doable'.
What exactly do you want?
A list of membergroups?
A list of members?
A list of lastest members?
-
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)
-
Isn't there a google membermap mod? http://custom.simplemachines.org/mods/index.php?mod=1010
-
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
-
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?
-
Create a new 'PHP' block, and then put the code below as the content. ;)
global $sourcedir;
require_once($sourcedir.'/GoogleMap.php');
Map();
template_map();
-
Cool Thanks!
-
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..
-
@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. ;)
-
@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 :$$:
-
does anyone have this running on a live site? I would like to see it before installing the mod
-
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...
-
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. :/
-
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.
-
Hello!
The block is displayed 2 times :D
http://www.scooter-chinois-4t.com/index.php
-
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 :
<?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.
-
not on my forum
http://www.scooter-chinois-4t.com/index.php
-
@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?
-
good evening
Google Membermap mod works well
http://www.scooter-chinois-4t.com/googlemap/
-
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.
-
Login: invite
password: 123456
-
Do you have any errors in the error log?
-
or is the error log?
-
où est = where is
In English: admin>Error Log
-
Mistakes I Have 388 total :0
Undefined elements (379)
General (7)
Users (2)
-
Please show some recent Undefined errors.
This will tell something about what is wrong
-
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
-
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.