iDEV Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

IDEVSPOT COMMUNITY FORUMS. -----( ( ( NOT FOR OFFICIAL TECH SUPPORT ) ) )-----

Author Topic: RE: Digivendor pro downloads login display not updating  (Read 1312 times)

0 Members and 1 Guest are viewing this topic.

robinsonbanana

  • Newbie
  • *
  • Posts: 13
    • View Profile
RE: Digivendor pro downloads login display not updating
« on: March 11, 2010, 08:18:35 AM »
When I log in to digivendor pro downloads area the text still says not logged in in one place at the top of the screen and then in the middle of the screen it says I am logged in as user.....

Please can anyone tell me what to change and how to change it so that when I log in the logged in as user displays properly at the top of the downloads screen, thanks :-)

Work in progress

www.mydigitalfotostore.com/store

Logged

internet54

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • WWW
Re: RE: Digivendor pro downloads login display not updating
« Reply #1 on: March 11, 2010, 09:31:27 AM »
I see you've modified the template.  Are you sure you left the php code alone for that area, or did you replace it with text?

robinsonbanana

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: RE: Digivendor pro downloads login display not updating
« Reply #2 on: March 12, 2010, 06:19:41 AM »
I've left the php code alone except for shifting stuff around mostly, have left anything I thought was essential to the code, it did the same before I had modified anything too, must be a bug or something
Logged

internet54

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • WWW
Re: RE: Digivendor pro downloads login display not updating
« Reply #3 on: March 12, 2010, 07:01:47 AM »
That area should be checking for a session var.  If your code isn't looking for that then it's an error in your code.  You need to have an if() statement there trying to determine if the login has happened or not.  I can't see your code, but that would be the only cause of that issue.

robinsonbanana

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: RE: Digivendor pro downloads login display not updating
« Reply #4 on: March 12, 2010, 12:04:30 PM »
Thanks, should it just be in the loginform.php file?
Logged

internet54

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • WWW
Re: RE: Digivendor pro downloads login display not updating
« Reply #5 on: March 12, 2010, 07:36:04 PM »
It should be in your index.php in the header area in a div below where you have the search.

robinsonbanana

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: RE: Digivendor pro downloads login display not updating
« Reply #6 on: March 13, 2010, 08:08:37 AM »
 <?PHP

if ($_SESSION[username] != $nil) { ?>

is in there via an include im using, it seems to be that when you use the login form only on downloads area it refreshes log in area but not rest of screen, hence not updating the login status

Any way of getting the whole screen to refresh and not just the login area?

Appreciate your help

Thanks again :-)
Logged

internet54

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • WWW
Re: RE: Digivendor pro downloads login display not updating
« Reply #7 on: March 13, 2010, 12:58:23 PM »
That code should look something like this...

<?PHP
if ($_SESSION[username] != $nil) { ?>
This is the logged in text.
<?php } else { ?>
This is the NOT logged in text.
<?php } ?>

robinsonbanana

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: RE: Digivendor pro downloads login display not updating
« Reply #8 on: March 13, 2010, 02:37:48 PM »
I have that but on the download page it doesn't seem to work or update the status after login to download area, i'll keep trying lol :-) Thanks for your help.

By the way I have another query I want to basically have on my home page and search pages and category pages the products displayed with their information and price in a square box, ie so it looks like a polaroid picture., then the next item on the same line in the same layout format until the products reach the end of the line and move onto the next one etc. One product per line doesn't suit my gallery format idea.

Please could you tell me how to achieve this?

Thanks :-)

Some beer money in it if you could mod it for me :-)
Logged

internet54

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • WWW
Re: RE: Digivendor pro downloads login display not updating
« Reply #9 on: March 13, 2010, 04:52:32 PM »
You just need to modify the html that the code is already producing.
The page is already showing the products, just move around the html.

robinsonbanana

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: RE: Digivendor pro downloads login display not updating
« Reply #10 on: March 14, 2010, 01:34:08 AM »
Hi I don't know much html or php, just trying to learn off net as newbie and when images are printed with detail etc the next product is printed on the next line, i can get the products displaying next to each other side by side on same line but whatever I do i cannot when I add the information text and buttons -  the next product prints on the line below.

I want the the products with information to fill up one line until it reaches the end of the line and then move down to the next, like a gallery view: IMAGE&DETAIL IMAGE & DETAIL IMAGE & DETAIL IMAGE & DETAIL
                                               IMAGE&DETAIL IMAGE & DETAIL IMAGE & DETAIL IMAGE & DETAIL

etc.

Thanks for your help again, I am new to this so got to learn somewhere and it's great there are helpful people like you on here :-)
Logged

internet54

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • WWW
Re: RE: Digivendor pro downloads login display not updating
« Reply #11 on: March 14, 2010, 11:05:23 AM »
What your asking for will be heavily benefited by the use of <div> containers then using a stylesheet property like float.

robinsonbanana

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: RE: Digivendor pro downloads login display not updating
« Reply #12 on: March 14, 2010, 12:43:31 PM »
That would be great, how much would you charge? I know you could resell it to others and i'm sure other people would find it useful :-)

I certainly would :-)

Hope you're having good day :-)
Logged

internet54

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • WWW
Re: RE: Digivendor pro downloads login display not updating
« Reply #13 on: March 14, 2010, 05:55:07 PM »
Contact me through my website.

Thanks.