logged out profile page
Posted: 16 May 2008 09:31 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  872
Joined  2007-06-01

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 1.6.3 (Build:  20080421)commercial
Using EE forum Version 2.1.0 (20080421)

Profile
 
 
Posted: 16 May 2008 10:32 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  9923
Joined  2002-04-29

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
 
 
Posted: 16 May 2008 10:53 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  872
Joined  2007-06-01

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 1.6.3 (Build:  20080421)commercial
Using EE forum Version 2.1.0 (20080421)

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

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.
No PM’s, please—use regular mail.

Profile
 
 
Posted: 16 May 2008 03:56 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  872
Joined  2007-06-01

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 1.6.3 (Build:  20080421)commercial
Using EE forum Version 2.1.0 (20080421)

Profile
 
 
Posted: 16 May 2008 04:31 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  11208
Joined  2004-05-15
tuittu - 16 May 2008 03: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.
No PM’s, please—use regular mail.

Profile
 
 
Posted: 18 May 2008 04:47 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  872
Joined  2007-06-01

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 1.6.3 (Build:  20080421)commercial
Using EE forum Version 2.1.0 (20080421)

Profile
 
 
Posted: 18 May 2008 06:11 AM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  9923
Joined  2002-04-29

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
 
 
Posted: 18 May 2008 07:22 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  872
Joined  2007-06-01

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

Thank you very much!
Yours:
- Tuittu

 Signature 

Using EE 1.6.3 (Build:  20080421)commercial
Using EE forum Version 2.1.0 (20080421)

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 10:33 AM
Total Registered Members: 58259 Total Logged-in Users: 34
Total Topics: 68362 Total Anonymous Users: 15
Total Replies: 368154 Total Guests: 404
Total Posts: 436516    
Members ( View Memberlist )