The Official Advantage Forum

The Official Advantage Forum

  • February 05, 2012, 10:56:42 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Personal Skills page  (Read 473 times)

Xerces

  • Provider
  • ****
  • Karma: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 196
    • View Profile
Personal Skills page
« on: February 27, 2009, 07:42:58 PM »

The Personal skills page is not working with the persistent login feature.  This can be reproduced with the following steps.

[list:39cwad8u][*:39cwad8u]Login to the site (using remember me option)[/*:m:39cwad8u]
[*:39cwad8u]View Personal Skills Page (data uploaded is shown)[/*:m:39cwad8u]
[*:39cwad8u]Close all browser windows[/*:m:39cwad8u]
[*:39cwad8u]Revisit the site (autologin should have worked)[/*:m:39cwad8u]
[*:39cwad8u]Visit Personal Skills Page (no data will be shown but should be)[/*:m:39cwad8u][/list:u:39cwad8u]
Sorry....  :BangHead:
Logged
Xerces Xerces One

- For every complex problem there is a solution that is Simple, Neat, and Wrong. H.L. Mencken

Xerces

  • Provider
  • ****
  • Karma: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 196
    • View Profile
Re: Personal Skills page
« Reply #1 on: February 27, 2009, 07:48:07 PM »

When the data isnt showing if you click on the new Currency Converter and then back to Personal Skills the data appears...  looks like the Currency converter reaccessed the cookie parameters or something.
Logged
Xerces Xerces One

- For every complex problem there is a solution that is Simple, Neat, and Wrong. H.L. Mencken

JJG

  • Administrator
  • Dominant
  • *****
  • Karma: +1/-0
  • Offline Offline
  • Posts: 882
    • View Profile
    • Advantage 2009
Re: Personal Skills page
« Reply #2 on: February 27, 2009, 08:26:48 PM »

Hi Xerces sorry about all this :(

I will sort it out as soon as possible, it'll be a sessions problem more than likely my mistake  :<img src=" title="Roll Eyes" />  give me an hour or two, I am up to my neck in the AWCC at the moment and I am also trying to get back some missing modules that disappeared when I upgraded a component that desperately needed upgrading  :angry5:

Hopefully things will be back to normal very soon :)
Logged
JJG(EU) JJG(AW)

- The World Wide Web is the only thing I know of whose shortened form takes three times longer to say than its long form - "Douglas Adams, The Independent on Sunday, 1999"

JJG

  • Administrator
  • Dominant
  • *****
  • Karma: +1/-0
  • Offline Offline
  • Posts: 882
    • View Profile
    • Advantage 2009
Re: Personal Skills page
« Reply #3 on: February 27, 2009, 10:39:25 PM »

Yes as I thought all my fault :-[

It was a sessions issue, I have been gradually changing the site to try to cover all bases and I had forgot to include the personal skills pages so the sessions were not all taken into account, in order to standardize things across the board so to speak I have constructed a sessions-init script which was included in the currency converter page which initialized the session for you so you could then see your skills listings so now at the top of the skills pages there is this line
[code=php:gt0lw869]<?php
require_once('j-includes/init-session.php');
?>[/code:gt0lw869]
which contains the following

[code=php:gt0lw869]<!--PHP SECTION-->
<?php  // no direct access
defined'_JEXEC' ) or die ( 'Restricted access' );

############################################
#                                          #
# Jumi plug for  SESSION stuff             #
#                                          #
############################################

if (! isset ( $_SESSION )) {
    
session_start ();
}

// include some helper files here
require_once ('Connections/testconn.php');
require_once (
'phpscripts/funcs.php');
// make current user variables accessible and
// add to old session variables to save rewriting the scripts
if(!$user) {
    
$user =& JFactory::getUser();
    
$_SESSION['MM_Username'] = $user->username;
}
// insert items such as CSS JS or Custom Script into Joomla document head
$document = &JFactory::getDocument();
$document->addStyleSheet('phpscripts/jcss/jsite.css'); // for .css into the head
$document->addScript('../javascript/external.js'); // for .js into the head
$document->addScript('../javascript/top.js');
#echo '$user = '.$user->username.'';
#show_array($_SESSION);
?>
[/code:gt0lw869]

lol and that is the simple version, this is the one for the AWCC listings page
[code=php:gt0lw869]<!--PHP SECTION-->
<?php  // no direct access
defined'_JEXEC' ) or die ( 'Restricted access' );

############################################
#                                          #
# Jumi plug for  SESSION + lightbox stuff  #
#                                          #
############################################

if (! isset ( $_SESSION )) {
    
session_start ();
}

// include some helper files here
require_once ('Connections/testconn.php');
require_once (
'phpscripts/funcs.php');
// make current user variables accessible and
// add to old session variables to save rewriting the scripts
if(!$user) {
    
$user =& JFactory::getUser();
    
$_SESSION['MM_Username'] = $user->username;
}
// insert items such as CSS JS or Custom Script into Joomla document head
$document = &JFactory::getDocument();
$document->addStyleSheet('phpscripts/jcss/jsite.css'); // main website css file
$document->addStyleSheet('../css/lightbox.css'); // lightbox css file
$document->addScript('../javascript/external.js'); // to open links in external window (for W3C compliance)
$document->addScript('../javascript/top.js'); // to go to top of page
$document->addScript('../javascript/prototype.js'); // lightbox support file
$document->addScript('../javascript/scriptaculous.js?load=effects,builder'); // lightbox support file
$document->addScript('../javascript/lightbox.js'); // finally the lightbox file itself
#echo '$user = '.$user->username.'';
#show_array($_SESSION);
?>
[/code:gt0lw869]

What fun ;)
Logged
JJG(EU) JJG(AW)

- The World Wide Web is the only thing I know of whose shortened form takes three times longer to say than its long form - "Douglas Adams, The Independent on Sunday, 1999"

Xerces

  • Provider
  • ****
  • Karma: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 196
    • View Profile
Re: Personal Skills page
« Reply #4 on: March 04, 2009, 04:37:34 PM »

I assume you are still working on the Upload page for the Personal Skills?  I see the Temp CC page.  I like that better than the collapable tabs.  Things are coming along..
Logged
Xerces Xerces One

- For every complex problem there is a solution that is Simple, Neat, and Wrong. H.L. Mencken
Pages: [1]   Go Up
 

Page created in 0.108 seconds with 17 queries.