profile.php path profile.php path
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

profile.php path

Started by allvip, November 30, 2013, 08:03:08 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

allvip

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?


allvip

I tryed profile.php?uid={USER_ID} and other but is not working.

Αndré

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.

allvip

#3
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

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>




allvip

function pageheader or pagefooter global...$template_vars['{USER_ID}'] = 'profile.php?uid=';...

tryed many ways

nothing

I'm just no good with replaceing tokens.

Αndré

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>' : '';

allvip

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.