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?
I tryed profile.php?uid={USER_ID} and other but is not working.
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.
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>
function pageheader or pagefooter global...$template_vars['{USER_ID}'] = 'profile.php?uid=';...
tryed many ways
nothing
I'm just no good with replaceing tokens.
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>' : '';
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.