There's really no way to see your own profile on a c68 site that I can see. So I tried adding this to the my account page and make it accessable: on the userindex.tpl... Code: <a href="viewmember.php?member={$fromuserid}">See your Profile as others see it.</a> But the no matter who's logged in this code takes you to the administrators profile. Any suggestions what I'm doing wrong?
where is the smarty variable {$fromuserid} coming from? If you mouse over the link you put in userindex.tpl does it show a number after "member=" ?
1. I got the smarty variable from the pm_read.tpl. 2. mouse over shows a blank (or nothing) after the "member=" If the variable cant be accessed on this tpl, can you recommend another solution? Thanks
Smarty variables are assigned at the script level and presented to the templates where they are displayed or otherwise used. Each php script has its own varoiables based on what it does and what its displaying to the user. If you are viewing one page you cant assume a template variable is available on all pages. If you added a link to userindex.tpl that template is called and used by the userindex.php script file so the variables you will have to use will be specific to that page (generally speaking). As has been covered on the forums many times and is also touched on in the documentation (ie Template FAQ [68 Classifieds] ) you can place {deubug} in your layout.tpl template file to see the variables available as you navigate around your site. Im not aware of a site wide variable that holds your own user ID when you are logged in and navigating around the site.