|
|
#1 |
|
Member
Join Date: Dec 2008
Posts: 56
Rep Power: 3 ![]() |
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>
__________________
v4.0.9 Designer |
|
|
|
|
|
#2 | |
|
Moderator
Join Date: Mar 2006
Posts: 4,065
Rep Power: 99 ![]() ![]() |
Quote:
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 |
|
|
|
|
|
|
#3 | |
|
Member
Join Date: Dec 2008
Posts: 56
Rep Power: 3 ![]() |
Quote:
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 |
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Mar 2006
Posts: 4,065
Rep Power: 99 ![]() ![]() |
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 |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |