logged out profile page
Posted: 16 May 2008 08:31 AM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1660
Joined  06-01-2007

Im trying to think my head off what i need to do that i can add a automatic link to weblog entry that generates two things:
If logged in-link (this i did right and it works)
if logged out-link to custom profilepage. This is dont get what i need to do to get it working automaticly.

Example:
I create new entry, ok! in the bottom of that entry comes a buttonlink to my profile what shows when im logged in and what redirects me to my profile.

But when im logged out, i dont want to show my profilepage so i made this template called “memberinfo” for those who arent logged in.

What do i need to put into tags that it will generate proper link to my custom profilepage “memberinfo”, or my moderators profile who has different id and so on.

Please, can you light me up with this, thanks!

Yours:
- Tuittu

 Signature 

Using EE Commercial 1.6.6 Build 20081114  | EE forum 2.1.1 Build 20081028 | EE MSM 1.1 Build: 20081024

Profile
 
 
Posted: 16 May 2008 09:32 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12395
Joined  04-29-2002

I’m not following.

When you are not logged in, and you are viewing weblog entries through a template, you want a link to the author’s profile page? Or what exactly?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 16 May 2008 09:53 AM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1660
Joined  06-01-2007

Yes i know my english =)

I do mean that when im not logged in (or some visitor who even has no own account) and viewing a weblog entry that i/she/he sees this button called “author info” and by clicking that i/she/he is pointed to this page called “memberinfo”. So far hopefully you follow?

I need answer to this: what code i need to put into that code that it can handle 2 different way how to work when submitting new entry.

One is “if logged in” and this i have done and it works. It shows the button and linking to normal profilepage with the profile of the entry author.

Second is “if logged out” and this is my problem. I dont want it to link to normal profilepage. i need it to point to this template that i have done and its called “memberinfo”.

What codes i need to my weblogtemplate that it can pick up the right author in my memberinfopage and generates the button pointing to “memberinfo” with the right author info(location, 1 custom field, screenname and bio)?

I hope you understand me and sorry about my not-so-good english!
Thanks:
- Tuittu

 Signature 

Using EE Commercial 1.6.6 Build 20081114  | EE forum 2.1.1 Build 20081028 | EE MSM 1.1 Build: 20081024

Profile
 
 
Posted: 16 May 2008 02:16 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15408
Joined  05-15-2004

tuittu, can you post what code you have so far? I suppose you know about {if logged_in} and {if logged_out}, but I am a little hazy about your ultimate goal.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 16 May 2008 02:56 PM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1660
Joined  06-01-2007

i dont have any if logged out cos i really dont know what to put there.

but here is the logged in code:

{if logged_in}<a href="{profile_path=member}"><img src="{site_url}images/uploads/yhteystiedot.jpg" alt="" width="100" height="40" border="0"/></a>{/if}

I just want to get the right code what understand to get the right id from entry poster and parses the right link to the different template called “memberinfo” what is shown to all visitors.

Normal profilepage does not appear to visitors.

 Signature 

Using EE Commercial 1.6.6 Build 20081114  | EE forum 2.1.1 Build 20081028 | EE MSM 1.1 Build: 20081024

Profile
 
 
Posted: 16 May 2008 03:31 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15408
Joined  05-15-2004
tuittu - 16 May 2008 02:56 PM

i dont have any if logged out cos i really dont know what to put there.

Well, what would you like to go there? Give us an example, perhaps.

I just want to get the right code what understand to get the right id from entry poster and parses the right link to the different template called “memberinfo” what is shown to all visitors.

I don’t understand. Since this is obviously not a technical issue, however, I am moving this thread to “Howto”.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 18 May 2008 03:47 AM   [ Ignore ]   [ # 6 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1660
Joined  06-01-2007

i Simply am a)stupid or b)dont see the answer =) but im just after a solution that redirects visitor to “memberinfo” page instead of profilepage. and looking after a code what knows to pick the right id of entry submitter. ( example: {site_url}memberinfo/1/ )

 Signature 

Using EE Commercial 1.6.6 Build 20081114  | EE forum 2.1.1 Build 20081028 | EE MSM 1.1 Build: 20081024

Profile
 
 
Posted: 18 May 2008 05:11 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12395
Joined  04-29-2002

In general, you can do something like this:

{if logged_in}
do something
{if
:else}
do something else
{/if}


Assuming your memberinfo template “knows” what do do with the author_id, I’d use that.

So perhaps

<a href="{path=memberinfo/show/{author_id}}">View Author Info</a>

I’d have the memberinfo/show template be a single entry template that you use a query to pull back info based on the member_id which is passed in segment_3.

Does that help?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 18 May 2008 06:22 AM   [ Ignore ]   [ # 8 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1660
Joined  06-01-2007

Heh. That simple again. Conclusion: im stupid =)

Thank you very much!
Yours:
- Tuittu

 Signature 

Using EE Commercial 1.6.6 Build 20081114  | EE forum 2.1.1 Build 20081028 | EE MSM 1.1 Build: 20081024

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 27
Total Topics: 82017 Total Anonymous Users: 19
Total Replies: 440824 Total Guests: 173
Total Posts: 522841    
Members ( View Memberlist )