Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 3 of 3
Goto page Previous  1, 2, 3
 
Reply with quote Download Post 
Post Re: How Do I Check If A User Is Logged In ? 
 
Please Do another fresh Upgrade and ensure that IP is working correctly before you add anything.

andy


And it probably explains why you never found these Mistakes that you made, because something else is screwed up as well.

full_page_generation('alertz_VIP.php', , '', '');
 



 
mortSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: How Do I Check If A User Is Logged In ? 
 
AndyGpy wrote: [View Post]
Right guys,

getting closer i think.

i know the alertz.php and the .tpl files are okay the problem lies when i am logged in and click on the link to go to the alertz page it forgets about the session ID and kicks me to the log in screen.

THe link i have in the header sectiion is

<a href="{FULL_SITE_PATH}/alertz_VIP.php" class="invert">Alertz</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;

how can i get it so the session ID is kept like any other link i have ?

I am sure i have cookies on, as i have set cookie path etc.

This fully explains what the problem is.

The solution is easy... you need to append sid to the url.

Do what mort suggested on adding append_sid on redirect, and then this part...

You should define the URL as a var in PHP, maybe in page_header function, something like this:
Code: [Download] [Hide] [Select]
'U_ALERTZ_VIP' => append_sid('alertz_VIP.' . PHP_EXT),


And then use the var int TPL like this:
Code: [Download] [Hide] [Select]
<a href="{FULL_SITE_PATH}{U_ALERTZ_VIP}" class="invert">Alertz</a>


And your issue should be gone forever... let me know...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Do I Check If A User Is Logged In ? 
 
I don't know MG, he says he's got cookies turned on and yet nothing is being set. Because it worked for me as is and I never even "Set" cookies on this XAMPP install - just the default install and it works fine.  

And for Andy's benefit.

Even without sessions, you need to check things instead of assuming that something is working. Because this is what you should be getting without appending the sid.

As I POINTED OUT to you before. You are getting nothing?

 andy2

Quote:
You should define the URL as a var in PHP, maybe in page_header function, something like this:


Actually - Put it in templates/default/default.cfg along with its cousins at the bottom.
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Do I Check If A User Is Logged In ? 
 
Mort --

full_page_generation('alertz_VIP.php', , '', ''); was a typo, if you had checked it prior to informing me you would have seen it went to .tpl page. LOL

MG --

     

Mort -- no disrespect, but people like me who are trying to learn can be put of sometime by the way you came over earlier. All worked out in the end

Many thanks to both you and MG.

now i need to do that for all my links that are like that one.

regards
 



 
AndyGpySend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Do I Check If A User Is Logged In ? 
 
AndyGpy wrote: [View Post]
Mort --

full_page_generation('alertz_VIP.php', , '', ''); was a typo, if you had checked it prior to informing me you would have seen it went to .tpl page. LOL


I made it a .tpl file when I tested it.

I quoted exactly what YOU WROTE! It's no good saying afterwards "It was a typo" when you post it and say This is what I've GOT!.

Quote:
alertz_VIP.php

       //full_page_generation();
                full_page_generation('alertz_VIP.php', , '', '');

and the template alertz_VIP.tpl



Quote:
can be put of sometime by the way you came over earlier


Yeah, well that's too bad - Because you were all over the place with this, and you say you were frustrated. ?
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Do I Check If A User Is Logged In ? 
 
Not getting into an Argument Mort but look at my 7th post on this topic --


else
    // Yes they are
   {

     ....My code is in here...

    full_page_generation('alertz_VIP.tpl', '', '', '');
                
   }

and further down in the posts.

Anyway all is good.
 



 
AndyGpySend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Do I Check If A User Is Logged In ? 
 
AndyGpy wrote: [View Post]
Not getting into an Argument Mort but look at my 7th post on this topic --


And WHY would I take script from your seventh post when you supposedly posted an updated version here. Well after the post that you refer too. ?

Why don't I go back to last month - - - Same thing?

http://www.icyphoenix.com/viewtopic.php?p=58012#p58012

I downloaded what anyone would assume to be the latest - filed it - tested it - found errors, and now you tell me I should have used an earlier script.

It's up to you to make sure that the latest scripts you post are a true reflection of where you are up to.

As I said, you were all over the place.
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [SOLVED] How Do I Check If A User Is Logged In ? 
 
why you so agressive ?
 



 
AndyGpySend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Do I Check If A User Is Logged In ? 
 
I'm not aggressive Andy,

But I think you deserve an answer to your question.

Early on I went to your site and determined that you had neither sessions working on that page or cookies set for the whole board.

You say you did have cookies set. Well, my FF says you didn't, and if you had and were absolutely sure that cookies were set ON then you would have a problem somewhere else.

Did you test it - Probably No.

I gave you some tools to put in the header of any global file to test both sessions and cookies, and that would have determined whether or not cookies and sessions were actually working (Turned On).

Did you test it - Probably No.

Because if you had done that, it would have determined the cookie-status, and maybe you just didn't have them turned on after all. Because if they were turned on your MOD would have worked under Cookie(Sessions), and your next question would have been.

Why does this MOD work with cookies and not with sessions.?

To which the answer would have been obvious.

But you persisted with posting your script and asking why it's not working, so I put myself out to download it - file it - and test it. And found errors. But according to you I should have downloaded an earlier script that apparently didn't contain errors.

That's your fault, not mine.

When the script I checked didn't work for you, I again went back to your site and found that cookies were still not turned on and posted some pictures of it here.

Did you test if cookies were set - Probably No.

You boast about how you fixed someone else's MOD for your own purpose to get it to work with Icy Phoenix, and contravene the very licence that you obtained it under.

You also suggest that people should be here to make themselves available to help those who are less experienced - We are - But it's not a one-way street.

And finally, you also worked outside the guidelines of any logical diagnostics in helping to resolve the problem, by not testing your end of it, and by expecting people to simply fall on the answer to the problem.

I not aggressive Andy - Pissed Off would be a better term to use.
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [SOLVED] How Do I Check If A User Is Logged In ? 
 
Trying to provoke me into an arguement wont get one, one thing i would like to comment to in regards to your reply is:-

You boast about how you fixed someone else's MOD for your own purpose to get it to work with Icy Phoenix, and contravene the very licence that you obtained it under.

Never modded anyones MOD for my own purpose, all I have published is my own.

Mort -- Chill out, as i said i am learning as i go.
 



 
AndyGpySend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [SOLVED] How Do I Check If A User Is Logged In ? 
 
AndyGpy wrote: [View Post]
Never modified anyone's MOD for my own purpose, all I have published is my own.


You still miss the point.

Icyphoenix is licenced under the GPL, so you can use it and distribute it, for free, as long as the code and the modifications you make remain public.
However, if you do improve the source code, or add new features, we would be very happy to hear from you and include it in future releases either by adding it to the core files or as a modification.

Please do take the time to read the GPL licence - and if you don't understand it - Get someone who does to explain it to you. Because contributing the things you make by using someone else's GPL code is what keeps GPL alive.

But the one thing that does strike me as odd is that you profess to have written this modification to operate under Icy Phoenix, and it uses VB mark-up for the html?

But maybe that's intentional on your part to simplify things as Icy Phoenix mark-up can be a tad hard to follow at times  

Anyway, I'll have to give this subject a miss as I have to go and report a "Lost Puppy" on a VB site - Nothing fancy - Just the "Time of day sighted, the location, direction headed, colour of its feathers fur and any other relevant details that will help the owner to locate it or possibly be reunited with it.

 
 



 
Last edited by mort on Mon 25 Mar, 2013 14:19; edited 3 times in total 
mortSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 3 of 3
Goto page Previous  1, 2, 3


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron