Part of the EllisLab Network
   
7 of 25
7
FreakAuth light 1.0.4 released
Posted: 21 May 2007 01:49 PM   [ Ignore ]   [ # 61 ]  
Summer Student
Total Posts:  13
Joined  05-11-2007
grahack - 21 May 2007 01:37 PM
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?

Okey this is the controller code:

function slett($id)
    
{
        
        $this
->kategorim->slettKategori($id);
        
//set a flash message
        
$msg = $this->db->affected_rows().$this->lang->line('FAL_user_deleted');
        
$this->db_session->set_flashdata('flashMessage', $msg, 1);
        
redirect('admin/kategoric', 'location');
             
    
}

MODEL
:

function
index(){
        
        $data[
'heading']='Admin Console home';
        
$data['action']='Administrer kategorier';
        
//['content']="<p>Aministrer meny!</p>";
        
        
$data['page'] = 'FreakAuth_light/template_admin/kategori/kategoriv';
        
        
$data['sql'] = $this->kategorim->hentKategori();
        
        
$this->load->vars($data);
            
        
$this->load->view($this->config->item('FAL_template_dir').'template_admin/container');
        
      
    
}
    
function slettKategori($id)
    
{
        
        $this
->db->where('idKategori', $id);
        
$this->db->delete('kategori');


HTML FROM THE VIEW:
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html>
<
head>
<
title>hibiscus Administration Console &raquo; Admin Console home</title>

<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
meta http-equiv='expires' content='-1' />
<
meta http-equiv= 'pragma' content='no-cache' />
<
meta name='robots' content='all' />
<
meta name='author' content='Daniel Vecchiato 4webby.com' />
<
meta name='description' content='Administration console' />
<
style type='text/css' media='all'>@import url('http://eple.hib.no/hibiscus/public/css/admin_console.css');</style>
<
link rel='stylesheet' type='text/css' media='all' href='http://eple.hib.no/hibiscus/public/css/adminconsole.css' />
</script>

</script>
</script>
</script>
</script>
</script>
</script>
</head>
<
body>

<!--
START NAVIGATION -->
<
div id="header">

    <
div class="back_website">
     
[ <a href="http://eple.hib.no/hibiscus/index.php" title="Til Hjemmeside">Til Hjemmeside</a> ]
    
</div>
    <
div class="login">
        <
a name="top"></a>
          
welcome hibiscus [ <a href="http://eple.hib.no/hibiscus/index.php/auth/logout.html" title="Logout">Logout</a> ]    </div>

</
div>

<
div id="masthead">
<
table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<
tr>
<
td><h1>hibiscus Administration Console</h1></td>
</
tr>
</
table>
</
div>    <div id="navlist">
        <
ul id="navlist">
            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin.html" title="Journalist Meny">Journalist Meny</a></li>

            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/admins.html" title="administrators">administrators</a></li>
            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/users.html" title="users">users</a></li>
            <
li id="active"><a href="http://eple.hib.no/hibiscus/index.php/admin/kategoric.html" title="kategori">kategori</a></li>
            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/meny.html" title="Statisk meny">Statisk meny</a></li>
            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/statisk.html" title="Statiske sider">Statiske sider</a></li>
            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/tagc.html" title="Under kategorier">Under kategorier</a></li>

            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/nyhet.html" title="Nyhet">Nyhet</a></li>
            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/lastOppAnnonse.html" title="Annonser">Annonser</a></li>
        </
ul>
</
div>
<
br clear="all" />
<!--
START CONTENT -->
<
div id="content">
    <
div id="flashMessage" style="display:none;">
        
1 user successfully deleted!    </div>


<
h2>Administrer kategorier</h2>



  
<
form action="http://eple.hib.no/hibiscus/index.php/admin/kategoric/leggtil.html" method="post"><input type="submit" name="Add" value="Legg til kategori" class="submit" id="submit"  />

</
form>

<
table>
  <
tr>
   
    <
th scope="col">Kategori navn</th>

    <
th scope="col">Vis i Meny</th>
    <
th scope="col">Edit/Slett</th>
  </
tr>
    <
tr class="center">
  
    <
td>
      
Sport       </td>
   
   And
some more..


As you see the flash message is there.. but it wont display..

Profile
 
 
Posted: 21 May 2007 02:08 PM   [ Ignore ]   [ # 62 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  492
Joined  02-21-2007
pels - 21 May 2007 01:49 PM

<style type=‘text/css’ media=‘all’>@import url(‘http://eple.hib.no/hibiscus/public/css/admin_console.css’);</style>
<link rel=‘stylesheet’ type=‘text/css’ media=‘all’ href=‘http://eple.hib.no/hibiscus/public/css/adminconsole.css’ />
</script>

</script>
</script>
</script>
</script>
</script>
</script>
</head>

As you see the flash message is there.. but it wont display..

don’t you think this code is a bit strange?
1) admin_console.css != adminconsole.css
2) SEVERAL closing tags with no opening tag
Dan was right, you don’t seem to have this

</script>
</script>

Profile
 
 
Posted: 21 May 2007 02:42 PM   [ Ignore ]   [ # 63 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006
grahack - 21 May 2007 02:08 PM

Dan was right, you don’t seem to have this

</script>
</script>

No I think that it is just the forum that doesn’t allow to post >script> stuff and it always cleans them out!
Can you please repost your view content turning the initial “<” script tags for Javascript in this way”>”?

+ try to validate the CSS and HTML of the page not displaying correctly

 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 06:13 PM   [ Ignore ]   [ # 64 ]  
Research Assistant
RankRankRank
Total Posts:  428
Joined  05-21-2007

FreakAuth light 1.0.4 is a excellent addition and keep the same philosophy then CI.

Thanks a lot for your work guys.

Where is the most accurate and up to date documentation about the new version ?

Thanks.

 Signature 

-> None official irc channel [ irc.freenode.net #codeigniter ]

Profile
 
 
Posted: 21 May 2007 11:49 PM   [ Ignore ]   [ # 65 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  492
Joined  02-21-2007
sikkle - 21 May 2007 06:13 PM

Thanks a lot for your work guys.

We’re glad it works!

Where is the most accurate and up to date documentation about the new version ?

http://www.4webby.com/freakauth/
is the old docs, we still have some work to do here, but there was no big external change between the versions (except in the config file, but it’s documented in the comments).

http://www.ciforge.com/trac/freakauth/wiki/FAL_Upgrade
is the most accurate upgrade instructions

Profile
 
 
Posted: 21 May 2007 11:55 PM   [ Ignore ]   [ # 66 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  492
Joined  02-21-2007
danfreak - 21 May 2007 02:42 PM
grahack - 21 May 2007 02:08 PM

Dan was right, you don’t seem to have this

</script>
</script>

No I think that it is just the forum that doesn’t allow to post >script> stuff and it always cleans them out!
Can you please repost your view content turning the initial “<” script tags for Javascript in this way”>”?

+ try to validate the CSS and HTML of the page not displaying correctly

Yeah, right, I’m sorry, I did the same mistake and didn’t verify my post
I can’t rembemrer a good excuse for this… red face

Profile
 
 
Posted: 22 May 2007 02:12 AM   [ Ignore ]   [ # 67 ]  
Summer Student
Total Posts:  13
Joined  05-11-2007

Ok here is my html again:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html>
<
head>
<
title>hibiscus Administration Console &raquo; Admin Console home</title>

<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
meta http-equiv='expires' content='-1' />
<
meta http-equiv= 'pragma' content='no-cache' />
<
meta name='robots' content='all' />
<
meta name='author' content='Daniel Vecchiato 4webby.com' />
<
meta name='description' content='Administration console' />
<
style type='text/css' media='all'>@import url('http://eple.hib.no/hibiscus/public/css/admin_console.css');</style>
<
link rel='stylesheet' type='text/css' media='all' href='http://eple.hib.no/hibiscus/public/css/adminconsole.css' />
</script>

>script src="http://eple.hib.no/hibiscus/public/js/flash.js" type="text/javascript"></script>
>script src="http://eple.hib.no/hibiscus/public/js/bildeopne.js" type="text/javascript"></script>
>script src="http://eple.hib.no/hibiscus/javascript/prototype.js" type="text/javascript"></script>
>script src="http://eple.hib.no/hibiscus/javascript/effects.js" type="text/javascript"></script>
>script src="http://eple.hib.no/hibiscus/javascript/dragdrop.js" type="text/javascript"></script>
>script src="http://eple.hib.no/hibiscus/javascript/controls.js" type="text/javascript"></script>
</head>
<
body>

<!--
START NAVIGATION -->
<
div id="header">

    <
div class="back_website">
     
[ <a href="http://eple.hib.no/hibiscus/index.php" title="Til Hjemmeside">Til Hjemmeside</a> ]
    
</div>
    <
div class="login">
        <
a name="top"></a>
          
welcome hibiscus [ <a href="http://eple.hib.no/hibiscus/index.php/auth/logout.html" title="Logout">Logout</a> ]    </div>

</
div>

<
div id="masthead">
<
table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<
tr>
<
td><h1>hibiscus Administration Console</h1></td>
</
tr>
</
table>
</
div>    <div id="navlist">
        <
ul id="navlist">
            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin.html" title="Journalist Meny">Journalist Meny</a></li>

            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/admins.html" title="administrators">administrators</a></li>
            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/users.html" title="users">users</a></li>
            <
li id="active"><a href="http://eple.hib.no/hibiscus/index.php/admin/kategoric.html" title="kategori">kategori</a></li>
            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/meny.html" title="Statisk meny">Statisk meny</a></li>
            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/statisk.html" title="Statiske sider">Statiske sider</a></li>
            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/tagc.html" title="Under kategorier">Under kategorier</a></li>

            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/nyhet.html" title="Nyhet">Nyhet</a></li>
            <
li><a href="http://eple.hib.no/hibiscus/index.php/admin/lastOppAnnonse.html" title="Annonser">Annonser</a></li>
        </
ul>
</
div>
<
br clear="all" />
<!--
START CONTENT -->
<
div id="content">
    <
div id="flashMessage" style="display:none;">
        
1 user successfully deleted!    </div>


<
h2>Administrer kategorier</h2>



  
<
form action="http://eple.hib.no/hibiscus/index.php/admin/kategoric/leggtil.html" method="post"><input type="submit" name="Add" value="Legg til kategori" class="submit" id="submit"  />

</
form>

The css just wont display as it shuld, if i remove the divs in the content template the message shows.

Profile
 
 
Posted: 22 May 2007 02:24 AM   [ Ignore ]   [ # 68 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

@pels
well, you have forgotten to load the jquery.js file that is needed by flash.js

flash.js is written to work with jquery

+ once you load the jquery.js you might experience some Javascript conflicts with Prototype (but I’m not sure).

try to load jquery.js, and if you still experience some problems, my suggestin is to use scriptaculous, and rewrite the flash.js in order to work with it.

 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: 22 May 2007 02:27 AM   [ Ignore ]   [ # 69 ]  
Summer Student
Total Posts:  13
Joined  05-11-2007

my bad i forgot to comment the first javascript. its there.


<link rel=‘stylesheet’ type=‘text/css’ media=‘all’ href=‘http://eple.hib.no/hibiscus/public/css/adminconsole.css’ />
>script src=“http://eple.hib.no/hibiscus/public/js/jquery.js” type=“text/javascript”></script>

>script src=“http://eple.hib.no/hibiscus/public/js/flash.js” type=“text/javascript”></script>

But still no display of the flash, i though this was a css problem.

How can this happen when it worked perfectly in FAL 0.3?

Profile
 
 
Posted: 22 May 2007 02:36 AM   [ Ignore ]   [ # 70 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

@pels
did you validate your css?

I think there are conflicts between Jquery and the other libraries you use in the backend

=> Using jQuery with Other Libraries
=> see these threads in the Jquery forum

why don’t you simply use Jquery: 1 small library that does everything and less code to write compared with Prototype and Scriptaculous?

+ a lot of plugins
+ if you need more have a look at the Interface components library for jQuery

 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
 
 
   
7 of 25
7
 
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 719, on June 06, 2008 10:16 AM
Total Registered Members: 64453 Total Logged-in Users: 26
Total Topics: 80959 Total Anonymous Users: 0
Total Replies: 435681 Total Guests: 172
Total Posts: 516640    
Members ( View Memberlist )