Location Mod

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

Previous topic - Next topic

James Woodcock

Aye babylonking that would be the one, simple but so effective :)

IP country in whos online is nice, but not 100% accurate and sloooow.

LostProphecy

#221
i'm getting this error when i try to install...

An Error Has Occurred!
2: copy(/home/kodee/public_html/forums/Themes/default/images/flags/ad.png): failed to open stream: Permission denied
File: /home/kodee/public_html/forums/Sources/Subs-Package.php
Line: 961 

after getting that msg, i went back to see if i could attempt an install again... this time i'm getting a failure at line 8: sources/load.php
Angelus Ex Quo Nox

redone

I am having the same issues with the subs-package.php. Anyone have any ideas?

:)

Amacythe

QuoteAmacythe   Today at 09:53:27 AM 
x.xxx.xxx.xxx     28b5373ef2f36bfe0e1c8a8b805d7ef8 
http://testboard/forum/index.php?action=profile 
8: Undefined index: country
File: /testboard/forum/Sources/Load.php
Line: 616

   Amacythe   Today at 09:53:27 AM 
x.xxx.xxx.xxx     28b5373ef2f36bfe0e1c8a8b805d7ef8 
http://testboard/forum/index.php?action=profile 
8: Undefined index: name
File: /testboard/forum/Sources/Load.php
Line: 617

I'm getting the above errors for each time someone clicks a profile regardless of whether the member has placed a pin or not.


Slack

I have members that have problems using Macs with the Safari browser.  The pins are located way off the map limits.

Does this Mod work with Macs and Safari?

Thanks!

redone

 2: copy(/home/britport/public_html/Sources/Who.php~): failed to open stream: Permission denied
File: /home/britport/public_html/Sources/Subs-Package.php
Line: 1219

Notice: Undefined index: don_title in /home/britport/public_html/Sources/Load.php(1096) : eval()'d code on line 482

I have these errors and I have no clue what to do!

:(

[Unknown]

Make sure /home/britport/public_html/Sources is 777 to avoid the first error.

-[Unknown]

guider

Looks like a real nice mod. However it's currently not working over here. Here's what I did:
- Uploaded and Installed file through Package manager
- Now, all files are OK but one says 'failed'. That's index.php.
- Since the page asked for FTP password to solve it, I entered it.
- Then a stream of errors came up. The Forum is fine but the mod won't work.

Question: Can index.php, since it's the only problemfile, be manually editted and if so, what needs to change?

Kindred

Guider...

You're running SMF under Mambo...

There are issues installing packages (especially those that modify index.php) in SMF under Mambo.
(specifically, the edits to index.php fail)

Yes, you can manually edit index.php.
However, unless you are using [unknown]'s ob version of the bridge, that will not do anything for you. You'll have to apply the edits (as called for to index.php) to mambo/components/com_smf/smf.php

(I currently have it working under mambo, myself)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

guider

I used v2.2 of the Bridge. So if I get it right, leave index.php like it is and tamper with mambo/components/com_smf/smf.php. Right? So, what do I need to mod in that file?

Kindred

Guider,

Look at the .mod file in the mod package...   that will list all the changes it makes to all files. Find where it calls for
<edit file>
index.php


make any changes listed there to smf.php AND index.php.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

guider

* guider going crazy or aint there a .mod file in the package?

Gobalopper

install.xml is the file you would want to look at.

guider

For reference, we're talking about this code:
Quote
<file name="index.php">
   <operation>
      <search position="before"><![CDATA[
   'mlist' => array('Memberlist.php', 'Memberlist'),]]></search>
      <add><![CDATA[
   'mm' => array('MemberMap.php', 'MemberMap'),]]></add>
   </operation>
</file>

- In the base directory of SMF I added the bold line to index.php. As stated, *before* 'mlist' => array('Memberlist.php', 'Memberlist').
- In mambo/components/com_smf/smf.php the line was already there, but it was switched. The 'wrong' one was on top. For the record, I corrected that so all is in mint condition.

However, my board shows nothing. No trace of a map or admin settings of any kind. What goes wrong?


Kindred

well, first of all, you have to CALL the function.

somewhere, you either need a mambo menu item or a SMF button directing you to
http://www.guider.atwebhosting.com/mambo/index.php?option=com_smf&Itemid=124&?action=mm

However, it looks to me as if you have NOT actually installed the mod!

no flags are showing up in the who's online portion either.
and calling for the mm action tells me that MemberMap.php does not exist.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

guider

Yeah I see, but I got all OK's except for index.php. On the server Memberlist.php is missing however. How did you get this thing going and what would you recommend?

Jeff B

Does anyone have a suggestion what to do about a formatting problem when users are using something other then the default medium text size?  If you set text size larger, the world map will appear o.k., but the U.S.A. map for example all the pins will be to high, or if a smaller text is called, the pins will be all be to low

ms_ukyankee

#237
I installed this mod once before on my testboard before upgrading to SMF 1.0.1 today. (I upgraded with the full upgrade, not the update, so reinstalled all other mods no problem.) I've just uploaded this package and applied it, reported successes, and clicked Proceed. Got this error:

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

Any idea what could cause this or how to fix it?

Edit: Sorry, found the answer here http://www.simplemachines.org/community/index.php?topic=20168.msg192808#msg192808  :-X
SMF since 2004 <3

Amacythe

Quote from: Amacythe on January 30, 2005, 09:59:18 AM
QuoteAmacythe Today at 09:53:27 AM
x.xxx.xxx.xxx 28b5373ef2f36bfe0e1c8a8b805d7ef8
http://testboard/forum/index.php?action=profile
8: Undefined index: country
File: /testboard/forum/Sources/Load.php
Line: 616

Amacythe Today at 09:53:27 AM
x.xxx.xxx.xxx 28b5373ef2f36bfe0e1c8a8b805d7ef8
http://testboard/forum/index.php?action=profile
8: Undefined index: name
File: /testboard/forum/Sources/Load.php
Line: 617

I'm getting the above errors for each time someone clicks a profile regardless of whether the member has placed a pin or not.

Is anyone else getting these errors when viewing a profile?

babylonking

Quote from: Amacythe on February 02, 2005, 01:22:49 AM
Quote from: Amacythe on January 30, 2005, 09:59:18 AM
QuoteAmacythe Today at 09:53:27 AM
x.xxx.xxx.xxx 28b5373ef2f36bfe0e1c8a8b805d7ef8
http://testboard/forum/index.php?action=profile
8: Undefined index: country
File: /testboard/forum/Sources/Load.php
Line: 616

Amacythe Today at 09:53:27 AM
x.xxx.xxx.xxx 28b5373ef2f36bfe0e1c8a8b805d7ef8
http://testboard/forum/index.php?action=profile
8: Undefined index: name
File: /testboard/forum/Sources/Load.php
Line: 617

I'm getting the above errors for each time someone clicks a profile regardless of whether the member has placed a pin or not.

Is anyone else getting these errors when viewing a profile?

in load.php

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

),


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

),

Advertisement: