News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Location Mod

Started by Gobalopper, November 19, 2004, 01:43:12 AM

Previous topic - Next topic

Gobalopper

Ravey76 I can't see the member map as you have the guest permission disabled.

Ravey76

@ Gobalopper:

Sorry - I forgot to allow MemberMap for guests  :-*
Now you can check my MemberMap.

Additional Questions:
- MemberMap always starts with the Africa-Map. Can I change somehow the "starting map"?


@ Roger:

Nope - cleared my cache (IE6: "Options" > "Clear Temp. Files"); doesn't work ...
How did you do this?

Thanks a lot,
Ravey

Fanta

When I click [Proceed] in the Package Manager I get the following error:

Database Error
Column count doesn't match value count at row 1
File: /home/habboh/public_html/harrypotter/Packages/temp/install.php
Line: 46 

ディン1031

#163
Quote from: Ravey76 on January 15, 2005, 04:52:34 AM
@ Gobalopper:

Sorry - I forgot to allow MemberMap for guests  :-*
Now you can check my MemberMap.

Additional Questions:
- MemberMap always starts with the Africa-Map. Can I change somehow the "starting map"?
I changed follow thing in the "source/MemperMap.php"

// if no map set use the default
if (empty($_REQUEST['mid']))
$ID_MAP = 12;
else
$ID_MAP = $_REQUEST['mid'];

Replace this with

// if no map set use the default
if (empty($_REQUEST['mid']))
$ID_MAP = 1; //Change This for the StartMap
else
$ID_MAP = $_REQUEST['mid'];

I used this to change my start map. ;)
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Ravey76

#164
@ DIN1031:

Hello DIN1031,
thanks for this idea. I tried to find this code in membermap.php, but I couldn't find it there. Are you sure this piece of code can be found in the actual version of MemberMap.php?

I found something similar


// gets the correct ID_MAP value
function getID_MAP ($row_id)
{
// check mid from request
if (!empty($_REQUEST['mid']))
return $_REQUEST['mid'];
// use the first map returned as the default

else
return $row_id;
}


I tried to integrate your solution, but doesn't matter what I try - it has no effect ... I wonder why? (I really am not a programmer) ...

Thanks a lot,
Ravey

_____________________________________________________

Addition:

I found an other solution -> I changed the MAP-ID in my database with phpmyadmin ... now it works, but the problem with the pins still remains ...

1948Pal

#165
I get a lot of errors also about country and name being undefined, also the flag shows up twice in the posts under the user name, otherwise the mod works great, I also like the admin addition that makes maps visible or not.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

Ravey76

@ 1948Pal:

You are right - I have this errors, too!

Looks like this:

8: Undefined index: country
Datei: [url] /htdocs/forum/Sources/Load.php
Zeile: 615

and:

8: Undefined index: name
Datei: [url] /htdocs/forum/Sources/Load.php
Zeile: 616

But this error doesn't appear always ... funny thing ...! Any idea what could cause this error?

Kind regards,
Ravey

babylonking

Quote from: Ravey76 on January 15, 2005, 11:49:54 AM
@ 1948Pal:

You are right - I have this errors, too!

Looks like this:

8: Undefined index: country
Datei: [url] /htdocs/forum/Sources/Load.php
Zeile: 615

and:

8: Undefined index: name
Datei: [url] /htdocs/forum/Sources/Load.php
Zeile: 616

But this error doesn't appear always ... funny thing ...! Any idea what could cause this error?

Kind regards,
Ravey

in load.php

search for:
'flag' => array(
'country' => $profile['country'],
'name' => $profile['name'],

),


replaced:
'flag' => array(
'country' => &$profile['country'],
'name' => &$profile['name'],

),

TheDel

I finally got this one installed but it looks like Im the only one who can view this- is there some kind of permission thing somewhere?

babylonking

Quote from: TheDel on January 15, 2005, 01:38:33 PM
I finally got this one installed but it looks like Im the only one who can view this- is there some kind of permission thing somewhere?

Yes Edit Permissions  8)

ディン1031

Quote from: Ravey76 on January 15, 2005, 09:40:33 AM
@ DIN1031:

Hello DIN1031,
thanks for this idea. I tried to find this code in membermap.php, but I couldn't find it there. Are you sure this piece of code can be found in the actual version of MemberMap.php?
Hmmm i used the Versoin from the 14. January ;). And i used it to change my first Map. Hmmm it can be that you use a older version? Because i found it in the MemberMap.php...
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Ravey76

@ babylonking:

Thanks for that piece of code. But it seems I am blind today  ;)  - whats the difference between those two pieces of code? Looks the same to me ...


@ din1031:

I knew you would have asked me that question ...  ;D
*no*, I used the original file I just downloaded from this website. I un-stuffed the file, had a look with my "Norton Commander" (yes, its an *really* old tool!) and - nothing! I couldn't find this piece of code ... I am sorry - as I mentioned to Babylonking - I am blind today  8)

Kind regards,
Ravey

Slack

QuoteDatabase Error
Column count doesn't match value count at row 1
File: /home/habboh/public_html/harrypotter/Packages/temp/install.php
Line: 46

I received this error also.  Tried the Alter Query, but the table already had the colmun.  The mod makes the changes to the source files, but does not show as installed.  I went ahead and installed the addtional maps but when trying to place a pin I get this error:

Unknown column 'c.ID_MAP' in 'field list'
File: /www/w/weenie/htdocs/yabbse/Sources/MemberMap.php
Line: 180

I don't have any pins in the database - what is the best way to fix this?

Thanks,
slack




babylonking

Quote@ babylonking:

Thanks for that piece of code. But it seems I am blind today  Wink  - whats the difference between those two pieces of code? Looks the same to me ...

Magic code  ;D , keep looking  8)

Ravey76

@ babylonking :

Gee - I found the difference  ;D
After a nap of sleep I can see it - you added some "&", right?    :D

Ravey76

@ Baylonking:

Hello Babylonking,
thanks again - since I made this modification you told me, the error-message doesn't appear anymore.

Maybe you can help me one more time:

- there are still some error-messages left over. I don't think they have something to do with the location-mod ...

1)
8: Undefined index: date
Datei: [url]/htdocs/forum/Themes/mytheme/Search.template.php (eval?)
Zeile: 202

2)
8: Undefined index: sort_by
Datei: [url]/htdocs/forum/Themes/mytheme/Search.template.php (eval?)
Zeile: 166

3)
8: Undefined index: ID_FIRST_MSG
Datei: [url]/htdocs/forum/Sources/Search.php
Zeile: 560

4)
8: Undefined index: simpleSearch
Datei: [url]/htdocs/forum/Themes/mytheme/Search.template.php (eval?)
Zeile: 30

Those four kinds of error-messages repeat always; since yesterday it filled up over 6 pages of error-messages ...
It seems its a problem of the search-function; funny - I didn't change anything to the search-function ...

Any Idea what causes this errors?

Thanks a lot in advance,
Ravey

babylonking

Quote from: Ravey76 on January 16, 2005, 11:54:53 AM
@ Baylonking:

Hello Babylonking,
thanks again - since I made this modification you told me, the error-message doesn't appear anymore.

Maybe you can help me one more time:

- there are still some error-messages left over. I don't think they have something to do with the location-mod ...

1)
8: Undefined index: date
Datei: [url]/htdocs/forum/Themes/mytheme/Search.template.php (eval?)
Zeile: 202

2)
8: Undefined index: sort_by
Datei: [url]/htdocs/forum/Themes/mytheme/Search.template.php (eval?)
Zeile: 166

3)
8: Undefined index: ID_FIRST_MSG
Datei: [url]/htdocs/forum/Sources/Search.php
Zeile: 560

4)
8: Undefined index: simpleSearch
Datei: [url]/htdocs/forum/Themes/mytheme/Search.template.php (eval?)
Zeile: 30

Those four kinds of error-messages repeat always; since yesterday it filled up over 6 pages of error-messages ...
It seems its a problem of the search-function; funny - I didn't change anything to the search-function ...

Any Idea what causes this errors?

Thanks a lot in advance,
Ravey

Try copying search.template.php into the theme you are using.

edi67

#177
your mod work perfectly:

only not correctly visualitation some solution for adjust?




some solution gobalopper?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

ディン1031

Search this in the who.template.php of you theme or in the default directory


<td width="25" align="center">', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td>


For somthing like this example:

Replace the code with this :)

<td width="25" align="center">', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '</td><td>
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Ravey76

@ BabylonKing:

I wrote my problem in another thread; I think I know why those error message appear:

- my Host doesn't allow a "Create temporary tables"-permission for me; this leads to problems with the actual SMS1.0.1-search-function ... so it really hasn't something to do with this mod; the problem just appeared at the same time.


@ Gobalopper:

Please do not misundestand me - I don't want to bother you ... but do you have any idea, why location- pins are "in a row"? Everything else seems to work perfectly ...  ???

Kind regards,
Ravey

Advertisement: