Location Mod

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

Previous topic - Next topic

Surferbird

#1060
Do you use another language than english, if...you have to edit Modifications.xxxxxx.php  8)

If you try english lang with default theme it should be there?
.:: Always something to ask - always grateful for assistance ::.

char39

No it is in english.  I guess the problem is because I am using the 7dana theme.  I was so looking forward to using this mod.

Inflame

Heya,

I've got an little error at this mod,

this is the total file:

Code (/Themes/default/who.template.php) Select

<?php
// Version: 1.1 RC3; Who

// The only template in the file.
function template_main()
{
global $context, $settings, $options, $scripturl, $txt;

// Display the table header and linktree.
echo '
<div style="padding: 3px;">'
, theme_linktree(), '</div>
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">
<tr class="titlebg">
<td width="30%" colspan="2"><a href="'
. $scripturl . '?action=who;start=', $context['start'], ';sort=user', $context['sort_direction'] == 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
<td style="width: 14ex;"><a href="'
. $scripturl . '?action=who;start=', $context['start'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
<td>'
, $txt['who_action'], '</td>
</tr>'
;

// This is used to alternate the color of the background.
$alternate = true;

// For every member display their name, time and action (and more for admin).
foreach ($context['members'] as $member)
{
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<tr class="windowbg'
, $alternate ? '2' : '', '">
<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>'
;

// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.
if (!$member['is_guest'])
{
echo '
<div style="float: right; width: 14ex;">
'
, $context['can_send_pm'] ? '<a href="' . $member['online']['href'] . '" title="' . $member['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $member['online']['image_href'] . '" alt="' . $member['online']['text'] . '" align="middle" />' : $member['online']['text'], $context['can_send_pm'] ? '</a>' : '', '
'
, $member['icq']['link'], ' ', $member['msn']['link'], ' ', $member['yim']['link'], ' ', $member['aim']['link'], '
</div>'
;
}

echo '
<span'
, $member['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . $txt[92] . ' ' . $member['name'] . '"' . (empty($member['color']) ? '' : ' style="color: ' . $member['color'] . '"') . '>' . $member['name'] . '</a>', '</span>';

if (!empty($member['ip']))
echo '
(<a href="'
. $scripturl . '?action=trackip;searchip=' . $member['ip'] . '" target="_blank">' . $member['ip'] . '</a>)';

echo '
</td>
<td nowrap="nowrap">'
, $member['time'], '</td>
<td>'
, $member['action'], '</td>
</tr>'
;

// Switch alternate to whatever it wasn't this time. (true -> false -> true -> false, etc.)
$alternate = !$alternate;
}

echo '
<tr class="titlebg">
<td colspan="4"><b>'
, $txt[139], ':</b> ', $context['page_index'], '</td>
</tr>
</table>'
;
}

?>


I'm not good in PHP so is someone able to find out the error?

Only mod maybe involved:
Google bots&spiders

Thanks for helping

DemonicInfluence

Umm.. What do you mean?

Inflame

Oh sorry, me was doing to many things at the same time.

The error I get is that people out of South-Africa don't get a normal flag at the Who's Online list.

I already found the flag, so thats not the problem,

And my package manager says there is a bug in this file, but don't know where


Hope this is a better error report, sorry again

PsychoWolf

Hi all,
I installed the Location Mod on SMF 1.1 RC3 and everything is fine, only nobody can place a pin because no maps will be shown after click on the link "Place your Pin" ! Why ?


greets PW
No Support over E-Mail, ICQ or PM for MKPortal !
Visit for English Support mkportal.it

Kein Support über E-Mail, ICQ oder PN für das MKPortal !
Besucht für deutschen Support mkportal-support.de


Inflame

(lol same avatar)

I also had that problem, might work if you de-install it and install it again,

think I fixed it like that

PsychoWolf

#1067
No didn't work here :(

[EDIT]
But reinstall of the mappack did help on this :D

So Problem is solved ;)
[/EDIT]
No Support over E-Mail, ICQ or PM for MKPortal !
Visit for English Support mkportal.it

Kein Support über E-Mail, ICQ oder PN für das MKPortal !
Besucht für deutschen Support mkportal-support.de


Rop

Can't make this work. Despite several install/uninstall/install tries. The mod says it installed correctly and the extra menu item shows up. When clicking 'member map' I get the following error message:

Table 'greenpowertalk.smf_mm_maps' doesn't exist
File: C:\WWW\Solacity\GPT\Sources\MemberMap.php
Line: 281


Checking the database shows that the table is indeed missing. SMF has CREATE access on the schemata, so that's not it. This is on RC3.

-Rob-

nokonium

#1069
I've been searching this thread but I haven't found what I would like to do, how can I add countries and their flags? I'd like to add England, Scotland & Wales

[edit]I worked it out, and used modified install.php file[/edit]



Irakli

#1070
have two questions regarding this mod. for some reason it says there are more pins that are actually on the map. (+1) If you have 200 pins on the map for example, in the drop down box it will say 201. How can I correct this?

also, I'm using the alienation theme, and wondering how I can add the member map button to that theme. I assume that I would have to modify the display.template.php? but when I have tried doing that for other mods, It never really quiet worked out for me. I hope someone can help :)




Irakli

ah well everything is fine but the place your pin link doesn't appear in my theme, only appears in the default theme...really weird. And it works with firefox, which it didn't before...

Kindred

hmmmm....

this worked fine on RC3, but on 1.1, the who-flags pack gives me the following error:

Unknown column 'ip2c.c2code' in 'field list'
File: /... .../Sources/Who.php
Line: 123

This is the line that is causing the error (117)
mg.onlineColor, IFNULL(mem.showOnline, 1) AS showOnline, ip2c.c2code, lc.name, pin.country

Сл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."

JediAaron

#1073
Wow there are 72 pages? Here's my issue, maybe someone can help me find it faster:

This Mod is great. Works great in default, but I want it to work in a TP theme. Which files do I need to tweak or what code to where?

Any help is VERY welcome.

Thanks,
Aaron

------
I found it! The modifications.english file :) Thanks !

JediAaron

Quote from: Kindred on December 05, 2006, 04:21:37 PM
hmmmm....

this worked fine on RC3, but on 1.1, the who-flags pack gives me the following error:

Unknown column 'ip2c.c2code' in 'field list'
File: /... .../Sources/Who.php
Line: 123

I'm having the same error now. Any suggestions?

Thanks

vipmoney


When this will be available to the new SMF 1.1 ?

thanks ;)
VipMoney

rockinaway

Same question, I need it updated to use it :(
Have I helped you? Then please join AdminFuel - The forum for forum administrators.

If you need help managing your forum, or maybe launching it, then visit us and view the quality articles, downloads and posts.

Kindred

it works for me in 1.1 final
Сл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."

mrselnombre

#1078
Quote from: JediAaron on December 11, 2006, 03:09:45 PM
Quote from: Kindred on December 05, 2006, 04:21:37 PM
hmmmm....

this worked fine on RC3, but on 1.1, the who-flags pack gives me the following error:

Unknown column 'ip2c.c2code' in 'field list'
File: /... .../Sources/Who.php
Line: 123

I'm having the same error now. Any suggestions?

Thanks
me to, tried manually running the install.php and got an error.
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

mrselnombre

#1079
I've read every page of this thread now ( i think) and i can't find anything to help.
I've even tried updating the database manually using the info in install.php but i am getting nowhere.
uninstalled reinstalled in various different orders.
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

Advertisement: