Location Mod

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

Previous topic - Next topic

TANDIONO.COM

is there any other way?

Gobalopper

If you can't see the flags then likely the images don't exist. Check the html output and see if anything is showing up there.

elfinit

There is no install option in the package manager. ???

TANDIONO.COM

Quote from: Gobalopper on September 23, 2005, 02:22:12 PM
If you can't see the flags then likely the images don't exist. Check the html output and see if anything is showing up there.

Hi! can't find any, here's the code :


<tr class="windowbg">
<td width="25" align="center"></td>
<td>
<span>Guest</span>
</td>
<td nowrap="nowrap">September 22, 2005, 11:56:40 AM</td>
<td>Viewing the board index of <a href="http://hits.fm/index.php">Hits.FM ..:: Music Community ::..</a>.</td>
</tr>
<tr class="windowbg2">
<td width="25" align="center"></td>
<td>
<span>Guest</span>
</td>


and here's whois url : http://hits.fm/index.php?action=who

Is there anyway that i shoud do? Thanks

diegolyanky

Hi all:

Is very very nice mod, but:

Anyone know how to install with 1.1rc1 ? ... Is compatible with 1.1rc1 ?

I uploaded with the packages manager and when I try to install it, say " No actions defined for this installation " ...  :-[

many thanks in advance :D
SMF ... SimpleMachines ... Simple, but complete if you want it ;)

DemonicInfluence

maybe try editing the package_info.xml file. might or might not work..

Motorhead

I all slowley getting the few extras working with SMF 1.1 RC1 (Coppermine, FlashChat) and now trying to sort membermap

I've got it so the map appears when I click the link, and it lists all the names above the map with there flag, but all the dots which should be on the map are just in a line, and the page says done with errors..

Also flags aren't appearing under user names in posts..

Where should I be looking and what needs changing

thanks


PopLife

The flags aren't appearing under the usernames because you have to add the flag code into the display.template of the theme you are using. Look in the default theme's display template and search for "flag". That should show you which code you need to put into your current theme.

1948Pal

#588
Quote from: diegolyanky on September 27, 2005, 10:39:00 AM
Hi all:

Is very very nice mod, but:

Anyone know how to install with 1.1rc1 ? ... Is compatible with 1.1rc1 ?

I uploaded with the packages manager and when I try to install it, say " No actions defined for this installation " ...  :-[

many thanks in advance :D

Hi, I think this should do the trick; download each package to your PC, unzip, open package-info.xml, locate the line that reads
<install for="1.1, 1.1 Beta 3 Public">

and change to

<install for="1.1, 1.1 Beta 3 Public, 1.1 RC1">
.
And the same for the line that read

<uninstall for="1.1, 1.1 Beta 3 Public">

and change it to

<uninstall for="1.1, 1.1 Beta 3 Public, 1.1 RC1">
.
Do this in each package, and if SMF code didn't change all that much for the files this mod touches, then it should just work. Good luck!
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

1948Pal

Quote from: giba_choo on September 27, 2005, 10:02:08 PM
The flags aren't appearing under the usernames because you have to add the flag code into the display.template of the theme you are using. Look in the default theme's display template and search for "flag". That should show you which code you need to put into your current theme.
Also the dots on the map, you just need to refresh your page.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

Motorhead

Hi All

Just tried editing the xml file as above

Uploaded to PacMan tried to apply mods

/Sources/Load.php     Test Failed

Any thoughts ???


mrandall131

Manually install the file.

Motorhead

:( oh dear this one isn't playing nice

uploaded the file manually....but when I click on the

map manager link or the map link I get

"Unable to load the 'main' template. "




mrandall131

Just had that with my themes in my test forum.  Check the file sizes on the ones just uploaded.  Bet there is one that is 0 bytes.

Motorhead

Will crying make it work :(  :'(

mrandall131

Wel, finally got it installed and this is what I got for an error when I clicked on the member map button.

Quote from: Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND )
AND (p.yPin BETWEEN AND )
AND p.ID_MEMBER = mem.ID_MEMBER
ORDER B' at line 4
File: ***************/test_forum/Sources/MemberMap.php
Line: 101

and this error in the error log:

Quote from: Error Log
8: Undefined index: 10
File: ****************/test_forum/Sources/MemberMap.php
Line: 98

Guess I'll be waiting for confirmation that this mod is compatible with 1.1 RC1.

mrandall131

Update, I didn't have the additional maps installed and I think that is what generated the errors for some unknown reason.  Once I installed the additional maps, I got no errors and everything worked fine!  (The reason I needed them is I copied my current DB to and used it for the test forum, thus all the members that put the pins on were allready in that DB).

Bottom line, it works!!!!

diegolyanky


Quote from: casper_shadowrider on January 14, 2005, 08:39:02 AM
I had been waiting for this, thank you.

I had not previously installed this mod, and the install of all 3 parts went fine, on a 1.0 install, using the package manager.

I had the cache problem, but once I cleared it, it all works great.   Top mod.


Hi:

I don't know where can I clear the cache ( javascript cache ) ...

PLease, help me !

Many thanks in advance  ;)
SMF ... SimpleMachines ... Simple, but complete if you want it ;)

Motorhead

All sorted :) it was a case of some of the files not installing with the pacman, using my FTP prog could see which files were showing a size of 0 bytes and replaced manually

thanks for the help..now to start from fresh and make sure getting my 3 mods / add ons working on my test forum wasn't a fluke :)


edi67

Quote from: Gobalopper on September 06, 2005, 09:22:44 PM
Quote from: beemer on September 04, 2005, 04:53:29 PMSMF 1.1 public beta 3 MKP 1.0 Helios Multi 11

Not sure whats changed but member map still works and shows flags but clicking on "users online" from the forum front page gives me this error

" Not unique table/alias: 'ip2c'
File: /homepages/35/d129670262/htdocs/forum/Sources/Who.php
Line: 106"

Line 106

WHERE IFNULL(mem.showOnline, 1) = 1" : ''), __FILE__, __LINE__);


AnyBody Help Please?

I'm thinking that MySQL query has lines duplicated. Can you cut and paste the entire thing?

this is entire thing:
// Get the total amount of members online.
$request = db_query("
SELECT COUNT(lo.ID_MEMBER)
FROM {$db_prefix}log_online AS lo
LEFT JOIN {$db_prefix}members AS mem ON (lo.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_ip2country AS ip2c ON (ip2c.ip_from <= lo.ip AND ip2c.ip_to >= lo.ip)
LEFT JOIN {$db_prefix}location_country AS lc ON (lc.c2code = ip2c.c2code)
LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = lo.ID_MEMBER)" . (!allowedTo('moderate_forum') ? "
WHERE IFNULL(mem.showOnline, 1) = 1" : ''), __FILE__, __LINE__);
list ($totalMembers) = mysql_fetch_row($request);
mysql_free_result($request);

// Prepare some page index variables.
$context['page_index'] = constructPageIndex($scripturl . '?action=who;sort=' . $context['sort_by'] . (isset($_REQUEST['asc']) ? ';asc' : ''), $_REQUEST['start'], $totalMembers, $modSettings['defaultMaxMembers']);
$context['start'] = $_REQUEST['start'];

// Look for people online, provided they don't mind if you see they are.
$request = db_query("
SELECT
(UNIX_TIMESTAMP(lo.logTime) - UNIX_TIMESTAMP() + " . time() . ") AS logTime,
lo.ID_MEMBER, lo.url, INET_NTOA(lo.ip) AS ip, mem.realName, lo.session,
mg.onlineColor, IFNULL(mem.showOnline, 1) AS showOnline, ip2c.c2code, lc.name, pin.country
FROM {$db_prefix}log_online AS lo
LEFT JOIN {$db_prefix}members AS mem ON (lo.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}location_ip2country AS ip2c ON (ip2c.ip_from <= lo.ip AND ip2c.ip_to >= lo.ip)
LEFT JOIN {$db_prefix}location_country AS lc ON (lc.c2code = ip2c.c2code)
LEFT JOIN {$db_prefix}mm_pins AS pin ON (pin.ID_MEMBER = lo.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))" . (!allowedTo('moderate_forum') ? "
WHERE IFNULL(mem.showOnline, 1) = 1" : '') . "
ORDER BY $_REQUEST[sort] " . (isset($_REQUEST['asc']) ? 'ASC' : 'DESC') . "
LIMIT $context[start], $modSettings[defaultMaxMembers]", __FILE__, __LINE__);
$context['members'] = array();


i have same error you can understand and fix it?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Advertisement: