Part of the EllisLab Network
   
6 of 26
6
FreakAuth light 1.0.4 released
Posted: 21 May 2007 02:28 AM   [ Ignore ]   [ # 51 ]  
Summer Student
Total Posts:  10
Joined  01-15-2007

Hi,
  I just wanted to say that the error,

A PHP Error was encountered
Severity: Notice
Message: Undefined index: rules
Filename: admin/users.php
Line Number: 355

Still appears when I try to edit a user in the admin console.
Check it out.

~
Thomas

Profile
 
 
Posted: 21 May 2007 02:41 AM   [ Ignore ]   [ # 52 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  515
Joined  12-05-2006
thomasantony - 18 May 2007 09:48 PM

  Oh, and another thing is, using db prefixes completely breaks it. Suppose I set prefix as ab_ in database.php, naturally, I rename the freakauth tables to ab_fa_user etc to avoid mysql errors. Then I avoid getting mysql errors, but then I get errors in the freakauth installer saying “fa_country” not found etc. Maybe if I renamed the tables and set the prefix AFTER the installation , it may work .. hmm..

~
Thomas

Hey Thomas, the db table prefix is not hardcoded in the installer and neither in other scripts.
This means that you can change the fa_ table prefix to ab_ without any problem.

The only thing you should do is to change in application/config/freakauth_light.php

<?php
//...
/*
|------------------------------------------------------------------------------
| The table prefix for the database tables needed by FreakAuth_light
|------------------------------------------------------------------------------
|
|           !!!!!!!!  WARNING  !!!!!!!
|
|   NB: the table name for the db_session library is set in config.php
|       and won't be affected by this 'FAL_table_prefix' configuration
|
*/
$config['FAL_table_prefix'] = 'fa_';

BEFORE RUNNING THE INSTALLER!

Hope this helps!

Dan

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 21 May 2007 11:16 AM   [ Ignore ]   [ # 53 ]  
Summer Student
Total Posts:  13
Joined  05-11-2007
grahack - 21 May 2007 01:09 AM
pels - 20 May 2007 02:16 PM

Hi there..

After i upgraded to 1.0.4 from 1.0.3 the flash popups disappeared..
I have the $config[‘FAL_flash’] = TRUE;

Is it something more i have to do to get the flash messages up again?

well, this is very strange since every single flash messages appears on our tests
1) this config item is dedicated to the deny process (maybe we’ll have to rename it, mea culpa), and has nothing to do with the other uses of the flash messages
2) do you mean that no flash message appears anymore, or some disappeared? Is it the same in the admin console?
3) be sure to have this snippet in one of your view files that you use

<!--STAR FLASH MESSAGE-->
     
<?php
     $flash
=$this->db_session->flashdata('flashMessage');
     if (isset(
$flash) AND $flash!='')
     
{?>
         
<div id="flashMessage" style="display:none;">
             
<?=$flash?>
         
</div>
     
<?php }?>
     
<!--END FLASH-->

and try to remove the <div> tags, just to see if the message arrives (not a css problem)

<!--STAR FLASH MESSAGE-->
     
<?php
     $flash
=$this->db_session->flashdata('flashMessage');
     if (isset(
$flash) AND $flash!='')
     
{?>
             <?
=$flash?>
     <?php }?>
     
<!--END FLASH-->

I have flash messages in the login windows, but none in the console window.. Cant understand why they wont show anymore.

I tried to hardcode your code without a div into one of my view files and i got the message out.  Is it a css error then?

Profile
 
 
Posted: 21 May 2007 11:25 AM   [ Ignore ]   [ # 54 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  515
Joined  12-05-2006

@pels
Are you sure you have these magic lines in all your headers?

//turn the starting ">" the other way around --> "<"
>script src="<?=base_url();?>public/js/jquery.js" type="text/javascript"></script>
>script src="<?=base_url();?>public/js/flash.js" type="text/javascript"></script>
 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 21 May 2007 11:40 AM   [ Ignore ]   [ # 55 ]  
Summer Student
Total Posts:  13
Joined  05-11-2007

Yes i have checked my headers i got both lines on all my view files.

Profile
 
 
Posted: 21 May 2007 11:45 AM   [ Ignore ]   [ # 56 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  515
Joined  12-05-2006

@pels
Summarising, do you have flash messages in the frontend, but not in the backend?
If yes,
did you change the CSS stylesheets?

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 21 May 2007 12:01 PM   [ Ignore ]   [ # 57 ]  
Summer Student
Total Posts:  13
Joined  05-11-2007
danfreak - 21 May 2007 11:45 AM

@pels
Summarising, do you have flash messages in the frontend, but not in the backend?
If yes,
did you change the CSS stylesheets?


Thats correct, i have flash in frontend but not in backend, the
I have not changed the admin_console.css : i have for example
#flashMessage{
width:500px;
color:#FF0000;
border-bottom: 2px solid #FF0000;
border-top: 1px solid #FF0000;
font-size: 16px;
margin: 8px 0px;
font-weight: bold;
padding: 10px;
}
so it shuld work..

If i add the div tags i get no output.

this is what the error console says:
Error: $(”#flashMessage”) has no properties
Source File: http://eple.hib.no/hibiscus/public/js/flash.js
Line: 2

Profile
 
 
Posted: 21 May 2007 12:49 PM   [ Ignore ]   [ # 58 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007
pels - 21 May 2007 12:01 PM

so it shuld work..

If i add the div tags i get no output.

this is what the error console says:
Error: $(”#flashMessage”) has no properties
Source File: http://eple.hib.no/hibiscus/public/js/flash.js
Line: 2

well if there is no <div id=“flashMessage”>, $(”#flashMessage”) doesn’t return anything, so it’s normal to receive a “has no properties”

just to be sure: do ou see this kind of beautiful console:
http://fezzik.free.fr/public/console.png

which browser do you use?
did you try with another browser?
(strange because you see them in other pages, could you make a list of what you see and what you don’t?)

Profile
 
 
Posted: 21 May 2007 12:57 PM   [ Ignore ]   [ # 59 ]  
Summer Student
Total Posts:  13
Joined  05-11-2007
grahack - 21 May 2007 12:49 PM
pels - 21 May 2007 12:01 PM

so it shuld work..

If i add the div tags i get no output.

this is what the error console says:
Error: $(”#flashMessage”) has no properties
Source File: http://eple.hib.no/hibiscus/public/js/flash.js
Line: 2

well if there is no <div id=“flashMessage”>, $(”#flashMessage”) doesn’t return anything, so it’s normal to receive a “has no properties”

just to be sure: do ou see this kind of beautiful console:
http://fezzik.free.fr/public/console.png

which browser do you use?
did you try with another browser?
(strange because you see them in other pages, could you make a list of what you see and what you don’t?)

Yes i can see the console you posted

I doesnt work in IE,Opera either, i use firefox.

In the http://eple.hib.no/hibiscus/index.php/admin  page i get the flashmessages, but when i login to the backend its nothing.

I can’t see any flash messages in the backend if i stick with the original setup.
If i hardcode your code without the div tag i get the output out. (but i really dont want to hardcode that into every view file)

Profile
 
 
Posted: 21 May 2007 01:37 PM   [ Ignore ]   [ # 60 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  493
Joined  02-21-2007
pels - 21 May 2007 12:57 PM

I doesnt work in IE,Opera either, i use firefox.

ok, so none of these browsers display correctly the message

In the http://eple.hib.no/hibiscus/index.php/admin  page i get the flashmessages, but when i login to the backend its nothing.

I can’t see any flash messages in the backend if i stick with the original setup.
If i hardcode your code without the div tag i get the output out. (but i really dont want to hardcode that into every view file)

you don’t have to modify all the files, since the “flash message div snippet” only needs to be in the content.php file
could you just show us the CI-url (controller/function/params) and the html source code that you get, where you think the flash message should appear?

Profile
 
 
   
6 of 26
6
 
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 819, on March 11, 2010 11:15 AM
Total Registered Members: 120486 Total Logged-in Users: 28
Total Topics: 126559 Total Anonymous Users: 4
Total Replies: 665411 Total Guests: 303
Total Posts: 791970    
Members ( View Memberlist )