News:

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

Main Menu

Location repeated twice in profile view and missing country

Started by Ninja ZX-10RR, June 28, 2014, 10:41:13 AM

Previous topic - Next topic

Ninja ZX-10RR

Hi everyone I have a problem with my profile view window, as you can see from the attachment it shows the location twice and ignoring the country completely.
I would like the country to be shown and of course one of the 2 location tabs to go away. Also is it possible to change the order of those tabs? Like having the country before the exact location?
If I need to attach any files tell me and I will.
Thanks in advance. :D
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

mashby

How about attaching Themes/default/Profile.template.php?

You could look in there as well. Looks like you have duplicate lines, eh? :)
Always be a little kinder than necessary.
- James M. Barrie

Ninja ZX-10RR

Of course when I installed some profile mods I was still very much a noob and I screwed up something 100% xD

I think I found that the problem is around strings 190-200 but i still don't know how to add the country correctly >.<

And as always thank you for your reply mashby :D
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

mashby

Lines 199 through 202 were the duplicates, depending on where you wanted to see Location, I've removed those in the attached. Is that betterer? Wondering if this guy did something funny on installation?
Next Post Level Mod
Maybe not though. :)
Always be a little kinder than necessary.
- James M. Barrie

Ninja ZX-10RR

Cool I would have done the same but asking doesn't hurt :)

First problem completely fixed, now up to the second one... How can I add the country to be shown in the summary view above the location tab?
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

mashby

Is that the result of a Mod or a custom profile field?
Always be a little kinder than necessary.
- James M. Barrie

Ninja ZX-10RR

Yes it's from "Country flags" mod, I was just updating it but nothing changed actually.
And well it's not pretty much active as a mod support topic... So lol if you actually know how to do that please tell me so I can do it and you could add it yourself to that topic as a new feature. Many people asked how to do this and that but the only answer has been "you need to edit this" but without providing any other informations about it...
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

mashby

If you go to the page where you downloaded the mod from, there's a nice Parse option. That shows you all of the edits that would be made upon successful installation. Download your site files and have a look file by file. Also, if the edits weren't made when you installed the mod, notifications on what wasn't edited should have occurred. Do you remember that happening? And where is the Country Flags mod not working?
Always be a little kinder than necessary.
- James M. Barrie

Ninja ZX-10RR

It was all successfull when I installed it, it's just not a default function of the mod AFAIK... But I think that's stupid. Why would I want to add a country field if nobody could see it in the profile view? =_=
IMHO it should be working in the profile summary as that page is the one everybody can see when clicking on an user's profile. It already works in posts so...
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

mashby

Always be a little kinder than necessary.
- James M. Barrie

Ninja ZX-10RR

I might be dumb for being too tired sometimes but now it's 6 p.m. so yes I did it :P I enabled it on the profile view from admin, miscellaneous, etc...
It works perfectly except for that annoying detail :(
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

mashby

The code from the mod is in the file you attached (and I subsequently edited). The mod was last updated June 18th so the support topic should be the place to ask. :)
Always be a little kinder than necessary.
- James M. Barrie

Lou69

Quote from: Flavio93Zena on June 28, 2014, 11:45:56 AM
It was all successfull when I installed it, it's just not a default function of the mod AFAIK... But I think that's stupid. Why would I want to add a country field if nobody could see it in the profile view? =_=
IMHO it should be working in the profile summary as that page is the one everybody can see when clicking on an user's profile. It already works in posts so...

If you are talking about the Country Flags from SMFHacks then they clearly state that the flag is shown on the members post. You can ask in their support page for assistance in placing the flag on the profile.

http://www.simplemachines.org/community/index.php?topic=106060.0


Ninja ZX-10RR

I'll try but I highly doubt I would be given an answer. Similar problems have been answered with "you need to edit X file" without any details and as I'm not a coder I wouldn't be able to do it lol
I'll try anyway but I can't really mark this as solved as it's not. If I can manage to do this I will be posting the necessary file edits to get it working and mark as solved after that.
Thanks for your help I appreciate it very much :D

EDIT
Quote from: Lou69 on June 28, 2014, 12:22:39 PM
Quote from: Flavio93Zena on June 28, 2014, 11:45:56 AM
It was all successfull when I installed it, it's just not a default function of the mod AFAIK... But I think that's stupid. Why would I want to add a country field if nobody could see it in the profile view? =_=
IMHO it should be working in the profile summary as that page is the one everybody can see when clicking on an user's profile. It already works in posts so...

If you are talking about the Country Flags from SMFHacks then they clearly state that the flag is shown on the members post. You can ask in their support page for assistance in placing the flag on the profile.

http://www.simplemachines.org/community/index.php?topic=106060.0
Of course I am talking about that, if you read the whole post you can find many sentences clearly pointing to it.
Quote from: Flavio93Zena on June 28, 2014, 11:34:26 AM
Yes it's from "Country flags" mod, I was just updating it but nothing changed actually.
Thanks for your reply, anyway.
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

mashby

Aha, yeah, now that I see what the mod is doing, the Modify Profile function is what's visible, but not the results of that in the summary view. Wondering what this would do? I don't have the mod installed so I'm doing an educated edit. If it fails, the attachment above is your failsafe (backup).
Always be a little kinder than necessary.
- James M. Barrie

Lou69

Quote from: Flavio93Zena on June 28, 2014, 12:26:09 PM
I'll try but I highly doubt I would be given an answer. Similar problems have been answered with "you need to edit X file" without any details and as I'm not a coder I wouldn't be able to do it lol
I'll try anyway but I can't really mark this as solved as it's not. If I can manage to do this I will be posting the necessary file edits to get it working and mark as solved after that.
Thanks for your help I appreciate it very much :D

EDIT
Quote from: Lou69 on June 28, 2014, 12:22:39 PM
Quote from: Flavio93Zena on June 28, 2014, 11:45:56 AM
It was all successfull when I installed it, it's just not a default function of the mod AFAIK... But I think that's stupid. Why would I want to add a country field if nobody could see it in the profile view? =_=
IMHO it should be working in the profile summary as that page is the one everybody can see when clicking on an user's profile. It already works in posts so...

If you are talking about the Country Flags from SMFHacks then they clearly state that the flag is shown on the members post. You can ask in their support page for assistance in placing the flag on the profile.

http://www.simplemachines.org/community/index.php?topic=106060.0
Of course I am talking about that, if you read the whole post you can find many sentences clearly pointing to it.
Quote from: Flavio93Zena on June 28, 2014, 11:34:26 AM
Yes it's from "Country flags" mod, I was just updating it but nothing changed actually.
Thanks for your reply, anyway.

I did read the entire thead and I did not find 'many sentences' refering to the mod. There are two country mods that are found when searching by 'country flags'. You failed to add a link or the mod authors name. I am not a mind reader. You also failed to understand that the mod only adds the flag to the posters post profile. The design is not 'stupid' as you implied; the design is working as intended by the author.

Ninja ZX-10RR

Thank you again...
Hmm... LOL nothing has changed XD only the file size from what I can see... No errors in the error log and all profile views look exactly the same...  :o

@Lou69 It was clearly stated "Country Flags", nothing else. And if you search it (http://custom.simplemachines.org/mods/index.php?action=search;basic_search=Country+flags) you can find 2 mods, the aforementioned one and also another one called "Country Flags Avatars" (http://custom.simplemachines.org/mods/index.php?mod=644) that has nothing to deal with me for 2 reasons: the first is that I never mentioned it and I clearly said "Country Flags" (http://custom.simplemachines.org/mods/index.php?mod=417) and the second reason is that the latter mod works only in SMF 1 and this is SMF 2.0.x support ;)
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

mashby

And I'm just being nice in helping you here and possibly should have just suggested asking in the support topic for the mod. Is it possible to get a URL where you have just updated that file? Or maybe you haven't? I added this bit:
// Show the country they hail from!
if (isset($message['member']['country_flag']) && !empty($modSettings['country_flag_show']) && !empty($message['member']['country_flag']))
{
$flags = CountryFlag();
echo '
<dt>', $txt['country_flag'], ':</dt>
<dd><img src="', $settings['images_url'], '/flags/', $message['member']['country_flag'], '.png" alt="', $message['member']['country_flag'], '" title="', $flags[$message['member']['country_flag']], '" /></dd>';
}
Always be a little kinder than necessary.
- James M. Barrie

Bob Perry of Web Presence Consulting

As it was not originally designed to display on the profile, what the coder has to do is determine the snippet(s) of code the original mod uses to execute it displaying on the post and do the same thing to the profile, sometimes you get lucky & can just copy and paste in the appropriate file/location... but more often its just a little more complicated than that and often requires editing multiple files, its always going to be faster to contact the author in that case, good module authors relish this kind of interaction
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

Ninja ZX-10RR

I'll take a look at this after dinner thank you meantime ;)
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Advertisement: