Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 User Map with XThreads?
RateU Offline
Administrator
*******
Posts: 2,327
Joined: Mar 2010
Post: #31
RE: User Map with XThreads?
(09-03-2011 03:11 AM)RocketFoot Wrote:  Would it be possible to link the location in my member's post bit profile and regular profile page to the map in their discussion thread?  

I'm thinking it would be much like the bits used to link the vidoes and articles to the profile but I am unsure how to construct the bit!

Should be similar. Something like this:
Postbit:

HTML Code
<a href="link_to_usermap_forum&amp;filterxt_uid={$post['uid']}">My Location</a>


Profile:

HTML Code
<a href="link_to_usermap_forum&amp;filterxt_uid={$memprofile['uid']}">My Location</a>


09-03-2011 03:23 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #32
RE: User Map with XThreads?
I used this for the postbit:

Code:
<a href="forumdisplay.php?fid=85&amp;filterxt_uid={$memprofile['uid']}">{$post['fid1']}</a>


Placed in postbit_author_user, But it links to the entire map...

Let me try yours...

This worked for me...

Code:
<a href="forumdisplay.php?fid=85&amp;filterxt_uid={$post['uid']}">{$post['fid1']}</a>


Also, I edited my other post you may have not seen...
Would it be possible to add a small map tot he profile page with the member's marker?  Or is that too much coding involved?


[Image: gallery_2_628_39582.jpg]
(This post was last modified: 09-03-2011 03:48 AM by RocketFoot.)
09-03-2011 03:29 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,327
Joined: Mar 2010
Post: #33
RE: User Map with XThreads?
(09-03-2011 03:29 AM)RocketFoot Wrote:  I used this for the postbit:

Code:
<a href="forumdisplay.php?fid=85&amp;filterxt_uid={$memprofile['uid']}">{$post['fid1']}</a>


Placed in postbit_author_user, But it links to the entire map...


Because we can't use $memprofile in postbit.

(09-03-2011 03:29 AM)RocketFoot Wrote:  Would it be possible to add a small map tot he profile page with the member's marker?

For displaying the small map, maybe we can use the Google Static Maps

09-03-2011 04:24 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #34
RE: User Map with XThreads?
I  think that would be cool!  My IPB forum has a small map that displays in the user's profile page.  Clicking the marker takes you to the discussion page.

That would be a little more custom than just a link!  Biggrin


Attached File(s) Thumbnail(s)
   

[Image: gallery_2_628_39582.jpg]
(This post was last modified: 09-03-2011 05:00 AM by RocketFoot.)
09-03-2011 04:57 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,327
Joined: Mar 2010
Post: #35
RE: User Map with XThreads?
(09-03-2011 04:57 AM)RocketFoot Wrote:  Clicking the marker takes you to the discussion page.

Unfortunately, not to the showthread, only to the forumdisplay (uid filtered):
http://xtest.byethost7.com/member.php?ac...file&uid=1

09-03-2011 05:05 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #36
RE: User Map with XThreads?
(09-03-2011 05:05 AM)RateU Wrote:  
(09-03-2011 04:57 AM)RocketFoot Wrote:  Clicking the marker takes you to the discussion page.

Unfortunately, not to the showthread, only to the forumdisplay (uid filtered):
http://xtest.byethost7.com/member.php?ac...file&uid=1

That would still be ok...looks perfect!

[Image: gallery_2_628_39582.jpg]
(This post was last modified: 09-03-2011 05:08 AM by RocketFoot.)
09-03-2011 05:07 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,327
Joined: Mar 2010
Post: #37
RE: User Map with XThreads?
You need Template Conditionals or PHP In Template plugin for that. And you need a custom profile field to hold the user's address.

The basic example image URL (using location custom profile field - fid1):

HTML Code
http://maps.googleapis.com/maps/api/staticmap?zoom=14&amp;size=450x200&amp;center=<func urlencode>{$userfields['fid1']}</func>&amp;markers=<func urlencode>{$userfields['fid1']}</func>&amp;sensor=false

Modify it as your needs.


09-03-2011 05:16 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #38
RE: User Map with XThreads?
Not sure I follow...

Should I add the code above to a custom profile field?

[Image: gallery_2_628_39582.jpg]
09-03-2011 05:19 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,327
Joined: Mar 2010
Post: #39
RE: User Map with XThreads?
It's the statics image URL. You need to put it inside the member_profile template (wrap it with the img tag). Example:

HTML Code
<img src="http://maps.googleapis.com/maps/api/staticmap?zoom=14&amp;size=450x200&amp;center=<func urlencode>{$userfields['fid1']}</func>&amp;markers=<func urlencode>{$userfields['fid1']}</func>&amp;sensor=false" alt="" />


Your users need to put their address into the custom profile field (in this example: Location custom profile field).


(This post was last modified: 09-03-2011 05:26 AM by RateU.)
09-03-2011 05:26 AM
Find all posts by this user Quote this message in a reply
RocketFoot Offline
Senior Member
****
Posts: 338
Joined: Jul 2010
Post: #40
RE: User Map with XThreads?
Oh ok...I thought it would automatically link from this mod.  I don't want to have to make them add even more info...LOL

[Image: gallery_2_628_39582.jpg]
09-03-2011 05:31 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: