Location Mod

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

Previous topic - Next topic

!Hachi!

in package member there is no option for uninstallation.just [ List Files ]  [ Delete ]
               i want to reinstall it help please.
Happy Ramadan

DemonicInfluence

Quote from: beemer on November 28, 2005, 07:58:28 AM
Just had a look  :o

Do you have a matching country entry in

smf_location_country  to correspond with your new IP range

Yes, u have to go to a site. View the contents of the package and see the install.xml or one of those files. Go to the site listed and download the latest cvs file. Unpack the location mod. Replace the old .cvs file with the new one. Make sure they have same name. Then upload and install...

Quote from: hassan on November 28, 2005, 08:42:37 AM
in package member there is no option for uninstallation.just [ List Files ]  [ Delete ]
               i want to reinstall it help please.

Reupload? U must have a newer version uploaded or something.

destalk

Quote from: beemer on November 28, 2005, 04:27:37 AM
Quote from: destalk on November 27, 2005, 11:36:12 PM
QuoteIt will work with blocs theme the install just updates the default theme you will need to read the install.xml to find which files to manually edit

Thanks for that. Unfortunately, I have just spent half an hour looking at install.xml and it makes little sense to me. I can see that it is indicating various files. And I think that I get the gist that it is searching and replacing stuff in those files.

But I can't for the life of me work out where to start copying and pasting this manually. What should I be looking for?

Have you still got the mod installed ?
and it works using the default theme?
Do you have any other mods installed?

Hi

Yep, mod is still installed and works with the default theme. The only other mod installed is the G+S Sticky mod.

!Hachi!

yea i did
                     how i can uninstall it now?
Happy Ramadan

beemer

Quote from: destalk on November 28, 2005, 07:58:42 PM

Hi

Yep, mod is still installed and works with the default theme. The only other mod installed is the G+S Sticky mod.

In your themes neptune folder
Backup display.template.php 
then find



                                                                ', $message['member']['group_stars'], '<br />';

echo '


And add the following below

'/flags/', $message['member']['flag']['country'], '.png" alt="', $message['member']['flag']['name'], '" title="', $message['member']['flag']['name'], '" /><br />';


Not sure if you will need to add a button by editing index.template.php in the same folder (try the above first)

Backup index.template.php
Then find

<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];

And add below
// The [member map]
echo '
<a href="', $scripturl, '?action=mm">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/mm.gif" alt="' . $txt['mm_mm'] . '" style="margin: 2px 0;" border="0" />' : $txt['mm_mm']), '</a>', $context['menu_separator'];
http://www.bmw7resource.co.uk
SMF 1.1 RC1
MKP 1.1 RC1
Helios Multi RC1
-------------------------------------------------------
http://www.thefishsheadnhorsesarse.co.uk
SMF 1.1 RC2
TinyPortal 0.8.6

destalk

QuoteIn your themes neptune folder
Backup display.template.php 
then find

Hi.

Thanks, but there is no display.template.php in the Neptune them folder. Did you mean to do this for the display.template.php in the Default folder?

beemer

Copy it from your default to the neptune folder (no need to edit  :D)
http://www.bmw7resource.co.uk
SMF 1.1 RC1
MKP 1.1 RC1
Helios Multi RC1
-------------------------------------------------------
http://www.thefishsheadnhorsesarse.co.uk
SMF 1.1 RC2
TinyPortal 0.8.6

destalk

Thanks beemer, but that doesn't do anything (nor does editing the index.template.php file as above).

I have also tried going directly to index.php?action=mm but it just relaods the home page.

Bigguy

#708
I have this mod installed now but is there a fix here somewhere for the pins not showing up or showing up off the map when you use firefox ??? I saw it here I think but I cant find it.

EDIT: got the pins to show up now all I need is a way to get the button to show up. Anyone got any ideas.

beemer

Which button?
got a link?
is guest access enabled for the map ?
http://www.bmw7resource.co.uk
SMF 1.1 RC1
MKP 1.1 RC1
Helios Multi RC1
-------------------------------------------------------
http://www.thefishsheadnhorsesarse.co.uk
SMF 1.1 RC2
TinyPortal 0.8.6

ArkServer

Does this work with 1.1rc1? if not how can i fix it?

Bigguy

The menu buttons on top of the forum index, you know the "profile", "help", "Logout", "Calender" etc. i`m using the coolmetal theme and instead of a button a text link shows up. I have made a button for the theme and named it mm.gif and put it in my /themes/coolmetal/images/english/ folder and it is chmodded right. But for some reason all that shows is a text link instead of a button. here is a link

Quote from: beemer on December 02, 2005, 01:18:32 PM
Which button?
got a link?
is guest access enabled for the map ?

DemonicInfluence


beemer

Quote from: Bigguy on December 02, 2005, 03:30:30 PM
The menu buttons on top of the forum index, you know the "profile", "help", "Logout", "Calender" etc. i`m using the coolmetal theme and instead of a button a text link shows up. I have made a button for the theme and named it mm.gif and put it in my /themes/coolmetal/images/english/ folder and it is chmodded right. But for some reason all that shows is a text link instead of a button. here is a link


Backup index.template.php
Then find

<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];


And add below

// The [member map]
echo '
<a href="', $scripturl, '?action=mm">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/mm.gif" alt="' . $txt['mm_mm'] . '" style="margin: 2px 0;" border="0" />' : $txt['mm_mm']), '</a>', $context['menu_separator'];



http://www.bmw7resource.co.uk
SMF 1.1 RC1
MKP 1.1 RC1
Helios Multi RC1
-------------------------------------------------------
http://www.thefishsheadnhorsesarse.co.uk
SMF 1.1 RC2
TinyPortal 0.8.6

Bigguy

#714
I have already added that to the index template file.Here is the template I`m using, or rather the last half of it.

Quote//HELP Button

echo '

   <a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];





//How about the [forum] button?

   $txt['forum'] = 'Forum';

echo '

          <a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt['forum'] . '" style="margin: 2px 0;" border="0" />' : $txt['forum']), '</a>', $context['menu_separator'];





// How about the [search] button?

   if ($context['allow_search'])

echo '

            <a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 2px 0;" border="0" />' : $txt[182]), '</a>', $context['menu_separator'];




// Is the user allowed to administrate at all? ([admin])

   if ($context['allow_admin'])

echo '

            <a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 2px 0;" border="0" />' : $txt[2]), '</a>', $context['menu_separator'];



// The [member map]
   echo '
            <a href="', $scripturl, '?action=mm">', ($settings['
use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/mm.gif" alt="'
. $txt['mm_mm'] . '" style="margin: 2px 0;" border="0" />' : $txt['mm_mm']), '</a>', $context['menu_separator'];
            
            
// Edit Profile... [profile]

   if ($context['allow_edit_profile'])

echo '
            <a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];



// The [calendar]!

   if ($context['allow_calendar'])

echo '

            <a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];



// The [ARCADE]!

echo '

            <a href="', $scripturl, '?action=arcade"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/games.gif" alt="' . "Arcade" . '" style="margin: 2px 0;" border="0" /></a>', $context['menu_separator'];



    //BEGIN Shop MOD 0.2 Code

    echo "<a href='{$scripturl}?action=shop'>", ($settings['use_image_buttons'] ? "<img src='{$settings['images_url']}/{$context['user']['language']}/shop.gif' alt='{$txt['shop']}' style='margin: 2px 0;' border='0' />" : $txt['shop']), "</a>{$context['menu_separator']}";

    //END SHOP MOD



   // If the user is a guest, show [login] and [register] buttons.

   if ($context['user']['is_guest'])

   {

      echo '

            <a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 2px 0;" border="0" />' : $txt[34]), '</a>', $context['menu_separator'], '

            <a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 2px 0;" border="0" />' : $txt[97]), '</a>';

   }

   // Otherwise, they might want to [logout]...

   else

      echo '

            <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" style="margin: 2px 0;" border="0" />' : $txt[108]), '</a>';

}



?>

Bigguy

That doesn`t sound silly at all, the image is already there, lol. It still wont show up.

beemer

Strange bigguy i cant view source on your forum page?
http://www.bmw7resource.co.uk
SMF 1.1 RC1
MKP 1.1 RC1
Helios Multi RC1
-------------------------------------------------------
http://www.thefishsheadnhorsesarse.co.uk
SMF 1.1 RC2
TinyPortal 0.8.6

Bigguy

#717
I can view it in Fire fox with the native editor.

EDIT: When I right click on the buttons and got to properties I get different info for the forum button and the map button. I right xlixked on both of them and brought up the properties. Does this give anyone a clue as to whats going on:

This is the properties for the map button.


This is the properties for the forum button.



beemer

Dunno

you could try changing this bit in your template above to the full image path

<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/mm.gif"


<img src="'http://www.mywworld.com/smf/Themes/cold/images/english/mm.gif"
http://www.bmw7resource.co.uk
SMF 1.1 RC1
MKP 1.1 RC1
Helios Multi RC1
-------------------------------------------------------
http://www.thefishsheadnhorsesarse.co.uk
SMF 1.1 RC2
TinyPortal 0.8.6

Bigguy

#719
I tried that but it didnt work, anymore ideas ???

EDIT: If I took out the part of the code that says to use the text alternately if it cant find the image would that work ??? Wouldnt that force it to use the image ??? The image is where its supposed to be, I just dont understand it. I have made the modification to the index.template.php file in both the coolmetal theme and the default theme, in both it shows up as a text link not a button.

Advertisement: