[ABD] jQ User Map api3 v.0.0.3

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
javiexin
Code Contributor
Posts: 1157
Joined: Wed Oct 12, 2011 11:46 pm
Location: Madrid, Spain
Name: Javier
Contact:

Re: [DEV] jQ User Map api3 v.0.0.1

Post by javiexin » Wed Apr 18, 2012 5:49 pm

Nice addon 4seven...

I would have suggested that the link should open the map with the corresponding user selected, that is, if you open the map from the "tester" profile, you would get the user map with "tester" selected (that is, as if you had clicked on "tester" after opening the map). Not sure if this is too difficult...

Thanks again,
-javiexin

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 4_seven » Wed Apr 18, 2012 5:53 pm

That was my first intention. Bcs. of that i ask PatrickS3 again and see, that he need a pure link only.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
2xS
Registered User
Posts: 40
Joined: Tue Feb 14, 2012 7:03 pm
Location: Northern California

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 2xS » Wed Apr 18, 2012 6:00 pm

Hey 4_seven et al,

Loved Patrick's idea about adding a link in viewtopic, but for me it seemed redundant since I am displaying custom profile fields. I decided to add a link on the address instead of adding the additional icon. Here's what I did:

OPEN viewtopic_body.html
FIND:

Code: Select all

   		<!-- BEGIN custom_fields -->
			<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
		<!-- END custom_fields -->
REPLACE WITH:

Code: Select all

      
<!-- BEGIN custom_fields -->
               <!-- IF postrow.custom_fields.PROFILE_FIELD_NAME eq "Location" -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong>  <a href="{U_USER_MAP}">{postrow.custom_fields.PROFILE_FIELD_VALUE}</a></dd>
               <!-- ENDIF -->
<!-- END custom_fields -->
Where the field name "Location" is the "Field name/title presented to the user:" in the CPF menu (change this depending on your field name).

**Note also that you would need to use this second construct for any other custom profile fields you want displayed in viewtopic; otherwise, there will be a duplicate CPF entry if you don't replace the code or missing CPF entries if you include the second entry only once (and if you have more than one CPF being displayed).

My question for 4_seven is about the <a href="{U_USER_MAP}"> line... that link only opens up the user_map.html file; is there a way to actually jump to the user selected instead?

Cheers!

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 4_seven » Wed Apr 18, 2012 6:04 pm

2xS wrote:My question for 4_seven is about the <a href="{U_USER_MAP}"> line... that link only opens up the user_map.html file; is there a way to actually jump to the user selected instead?
read my last post and the post before.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
2xS
Registered User
Posts: 40
Joined: Tue Feb 14, 2012 7:03 pm
Location: Northern California

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 2xS » Wed Apr 18, 2012 6:31 pm

Apologies...

I was in the midst of writing that post when those replies went up and I was not notified. phpbb seems a bit lagged down today....
4_seven wrote:That was my first intention. Bcs. of that i ask PatrickS3 again and see, that he need a pure link only.
But to be clear...
Is it possible or no?

To me, it doesn't make sense to display the exact same icon/link with the same destination in everyone's postrow since the icon and link already appear in the overall header nav links on every page IMHO.

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 4_seven » Wed Apr 18, 2012 7:02 pm

i ment this was my first intention, so shure it is possible.
if it makes sense to you is another thing, but that is what PatrickS3 have wished.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 4_seven » Wed Apr 18, 2012 10:51 pm

2xS wrote:is there a way to actually jump to the user selected instead?
click testwise on these buttons of 3 different users Image

http://www.4seven.de/forum/1/viewtopic.php?p=496#p496

user marker is centered and highlighted white once,
with the same zoom level as on 'jump to profile link'
(rightclick on marker in map goes to user_weather profile).
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
2xS
Registered User
Posts: 40
Joined: Tue Feb 14, 2012 7:03 pm
Location: Northern California

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 2xS » Wed Apr 18, 2012 11:14 pm

8-)

That is EPIC!

Truly, you are a hero among men.

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 4_seven » Wed Apr 18, 2012 11:27 pm

thanks for laudation - updated instruction is here.
http://www.4seven.de/forum/6test/viewto ... p=324#p324
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 4_seven » Wed Apr 18, 2012 11:55 pm

related to http://www.phpbb.com/community/viewtopi ... #p13138516

correction for edit in styles/prosilver/template/viewtopic_body.html for viewtopic addition:

Code: Select all

{U_POSTER_MAP}
should be

Code: Select all

{postrow.U_POSTER_MAP}
instruction is corrected
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 4_seven » Thu Apr 19, 2012 12:10 am

4_seven wrote:v.0.0.2 preview (new feature)
  • switchable overlay section: weather, clouds.
only to clarify, bcs. some user ask:
these both modes are overlays, so the jQ User Weather mod is not a requirement for that feature.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
2xS
Registered User
Posts: 40
Joined: Tue Feb 14, 2012 7:03 pm
Location: Northern California

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 2xS » Thu Apr 19, 2012 12:14 am

Very nice work!

Works flawlessly.

As per my statement earlier regarding a CPF link as opposed to the icon, I used:

Code: Select all

<!-- BEGIN custom_fields -->
               <!-- IF postrow.custom_fields.PROFILE_FIELD_NAME eq "Location" --> 
               <!-- IF postrow.S_HAS_LOCATION -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong>  <a href="{postrow.U_POSTER_MAP}">{postrow.custom_fields.PROFILE_FIELD_VALUE}</a></dd>
               <!-- ENDIF -->
               <!-- ENDIF -->
<!-- END custom_fields -->
Looking forward to your v.0.0.2 release...

Cheers!

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 4_seven » Thu Apr 19, 2012 12:17 am

Thanks for the inspiration and feedback.
Current Mods | Mod Base | php(BB) programming | No help via PM

PatrickS3
Registered User
Posts: 31
Joined: Tue Aug 09, 2011 5:15 am
Location: Germany
Name: Patrick
Contact:

Re: [DEV] jQ User Map api3 v.0.0.1

Post by PatrickS3 » Thu Apr 19, 2012 5:35 am

Thanks that's great.

Would be the instructions for "viewtopic addition" be added in install.xml for next download v 0.0.2?

I will include it in my forum when v 0.0.2 is published.


Patrick

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] jQ User Map api3 v.0.0.1

Post by 4_seven » Thu Apr 19, 2012 9:49 am

no, its an addon, which dont come to package, so its ready as it is.
Current Mods | Mod Base | php(BB) programming | No help via PM

Locked

Return to “[3.0.x] Abandoned MODs”