Support Forums

Old 01-15-2009, 02:44 PM   #1
Member
 
Join Date: Dec 2008
Posts: 56
Rep Power: 3
island1 is on a distinguished road
Default View your profile

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?
__________________
v4.0.9 Designer
island1 is offline   Reply With Quote
Old 01-15-2009, 02:50 PM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 4,065
Rep Power: 99
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by island1 View Post
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=" ?
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 01-15-2009, 03:08 PM   #3
Member
 
Join Date: Dec 2008
Posts: 56
Rep Power: 3
island1 is on a distinguished road
Default

Quote:
Originally Posted by Lhotch View Post
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
__________________
v4.0.9 Designer
island1 is offline   Reply With Quote
Old 01-15-2009, 03:22 PM   #4
Moderator
 
 
Join Date: Mar 2006
Posts: 4,065
Rep Power: 99
Lhotch is just really niceLhotch is just really nice
Default

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.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Profile page for sellers/members? Unregistered Pre Sales Questions 2 11-23-2008 06:29 PM
Remove Price and Need View Profile Link dexignz v4 Questions & Support 0 06-29-2008 08:55 AM
Your Public Profile outlook Off Topic 6 06-26-2008 07:07 PM
View Member Profile ISPCA2007 v3.1 Questions & Support 1 04-25-2007 10:40 AM
How can a user delete his profile? pat01 v3.1 Questions & Support 0 07-29-2006 12:44 PM


All times are GMT -4. The time now is 07:17 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0