coppermine-gallery.com/forum

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
profile.php?uid={USER_ID}
you need to replace
{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 :


<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
<script>
$(document).ready(function () {
$( "#overlay" ).load( "profile.php?uid={USER_ID}");
});
</script>

with
{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
$template_vars = CPGPluginAPI::filter('theme_pageheader_params', $template_vars);
and above, add
$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.