Bio Popup Link

infinityssm
infinityssm
@makande
11 years ago
53 posts
Hello, I'm trying to create a "read-more" link in the artist bio that creates a pop-up box with the artists entire bio. How do I pass the artist id to a new page that shows the current artist bio info. I have already created a bio.tpl page with the bio tags, I also created a link in the artist profile to display the artist bio info. The problem is only one artist bio is showing. I need to have the current artists info to show.

This is the code that I'am using for the link;

/*
a href="{$jamroom_url}/bio&profile_id={$profile_id}" title="{$PROFILE_NAME}" onclick="popwin(this.href,'bio','455','523','yes');return false" Read More "
*/

Whats wrong with my attempt?

Thanks


updated by @makande: 01/22/14 10:12:13AM
douglas
@douglas
11 years ago
2,793 posts
Give this a try;

<a href="{$jamroom_url}/bio/profile_id={$_profile_id}" title="{$profile_name}" ....>

And in your bio.tpl, you should be able to get the profile ID with the {$profile_id} variable.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
brian
@brian
11 years ago
10,148 posts
You need to change the URL to this:

{$jamroom_url}/bio/profile_id={$profile_id}

This should also work:

{$jamroom_url}/bio?profile_id={$profile_id}

You have to use a question mark after the URI for the first parameter - ampersands separate any additional URL params.

Then inside your bio.tpl you can reference the profile_id as:

{$_post.profile_id}

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
infinityssm
infinityssm
@makande
11 years ago
53 posts
Works great. Thanks, much appreciated.