forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: allvip on November 30, 2013, 08:03:08 pm

Title: profile.php path
Post by: allvip on November 30, 2013, 08:03:08 pm
I need to write in template.html the path to user profile.php

I think it shoud be profile.php?uid=?

What is the correct path?

Title: Re: profile.php path
Post by: allvip on November 30, 2013, 08:14:19 pm
I tryed profile.php?uid={USER_ID} and other but is not working.
Title: Re: profile.php path
Post by: Αndré on December 02, 2013, 01:23:55 pm
As already described in several other threads, you need to add a token in template.html and replace it in theme.php. So if you added
Code: [Select]
profile.php?uid={USER_ID}you need to replace
Code: [Select]
{USER_ID}
As you haven't posted any details, I cannot give you more detailed advices.
Title: Re: profile.php path
Post by: allvip on December 02, 2013, 02:40:27 pm
I found no thread about profile path.Maybe I use the wrong words in search.

replacing the token in function $template_thumbnail_view is the hard part.

DETAILS:

http://www.allvip.us/cpg/d (http://www.allvip.us/cpg/d)

click allvip under thumbnails.opens in overlay

I only added:

empty div id overlay in template.html after body tag display:none

and :

Code: [Select]
<script>
$(document).ready(function () {
$( "#overlay" ).load( "profile.php?uid={USER_ID}");
});
</script>


Title: Re: profile.php path
Post by: allvip on December 02, 2013, 03:46:29 pm
function pageheader or pagefooter global...$template_vars['{USER_ID}'] = 'profile.php?uid=';...

tryed many ways

nothing

I'm just no good with replaceing tokens.
Title: Re: profile.php path
Post by: Αndré on December 03, 2013, 10:12:31 am
In template.html, replace
Code: [Select]
<script>
$(document).ready(function () {
$( "#overlay" ).load( "profile.php?uid={USER_ID}");
});
</script>
with
Code: [Select]
{USER_PROFILE}

Copy the function pageheader from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist. Then, find
Code: [Select]
$template_vars = CPGPluginAPI::filter('theme_pageheader_params', $template_vars);and above, add
Code: [Select]
$template_vars['{USER_PROFILE}'] = USER_ID ? '<script>$(document).ready(function () { $( "#overlay" ).load( "profile.php?uid='.USER_ID.'"); } );</script>' : '';
Title: Re: profile.php path
Post by: allvip on December 07, 2013, 07:05:52 pm
For some reason div overlay is not loding anything.
I quit - is not so important.
maybe when I will have more time I will try again.