Welcome Guest, Not a member yet? Register   Sign In
Ionize - Free & Open Source creative CMS
#61

[eluser]Kip zonder Kop[/eluser]
[quote author="Michel-Ange" date="1258765757"]@Kip zonder Kop : Great add !

Just one comment :
In the article_model, you don't need to write all the publish filter code yourself.
This will be is enough :

Code:
function get_adjacent_article($current,$adjacent)
{  
       if ($adjacent == 'previous')
       {
          $this->db->select_max('ordering');
          $this->db->where('ordering <', $current['ordering']);
       }
       else
       {
          $this->db->select_min('ordering');
          $this->db->where('ordering >', $current['ordering']);
       }
      
       $this->db->select('name');
       $this->db->where('id_page', $current['id_page']);

       // The publish filter
    if ( $this->publish_filter === true )
        $this->filter_on_published();
    
       $query = $this->db->get($this->table);
       if ($query->num_rows() > 0)
       {
         return $query->row_array();
       }
       return $false;              
}
[/quote]

I have been struggling with that but I get

Code:
Fatal error: Call to private method Base_model::filter_on_published() from context 'Article_model' in C:\Pev\Data\Web\ionize-dev\application\models\article_model.php on line 531
#62

[eluser]Unknown[/eluser]
very good
#63

[eluser]Kip zonder Kop[/eluser]
[quote author="nikitab1008" date="1258774339"]very good[/quote]

Congratulations with your first post ;-)
#64

[eluser]m4rw3r[/eluser]
@Kip zonder Kop:

Are you wrapping the previous_url and next_url in a callable linked to $this->context->define_tag()? Or are you using the $this->context->set_data() method (or similar)?

Because it is good if you make the fetch of the adjacent pages optional and on demand (you can cache them though). So you only fetch the data when the view asks for it.



@All:

Anyway, seems like my templating engine (The FTL_* classes) is a success. Guess I have another project to properly write documentation for.

Great thanks to Michel-Ange who managed to write the CMS I never got the time to write! Smile
#65

[eluser]Kip zonder Kop[/eluser]
[quote author="m4rw3r" date="1258784839"]@Kip zonder Kop:
Are you wrapping the previous_url and next_url in a callable linked to $this->context->define_tag()? Or are you using the $this->context->set_data() method (or similar)?
[/quote]

I am not even sure. I do know I am not using define_tag() so I guess implicitely I must be using one of the other methods.

I setup the values as entries in the array called $articles in the get_article() method of the page controller. Please tell me what I am doing and if this is proper coding.

And yes, some documentation of the FTL would come in handy. I have been studying the code for ages now and didn't even discover the meaning of FTL.
#66

[eluser]Michel-Ange[/eluser]
@Kip zonder Kop : I agree with m4rw3r : Should be better to create directly a tag.

As your addon is really nice, I will see how to implement it, especially regarding the filter.
It's important to get also the lang table data when getting the prev / next article, so you just get the next article which is published (online) in the current language (article content can be offline for a given language).

Will see that as I will control all the base_model function declaration.
#67

[eluser]Iscariah[/eluser]
Hi Michel-Ange,

Today I've installed Ionize and I really like it already! But I ran into a problem after installing. When I did an attempt to login, nothing happened... :S

After some testing I discovered that I couldn't use an @ in my password. So, it would be nice if you could fix this little problem in a future release. Punctuations are a way to make your password stronger and I always like to use it.

The backend works just fine as far as I tested. Thanks for all the time you spend to this project. This is far better then PyroCMS which I tried also. Keep up the awesome work!

Greetings from the Netherlands.

Isca.

EDIT: Sorry for this, but I've encountered another problem. In the demo admin area on your site, the site refreshes itself after an action like editing or anything else. Unfortunally, my installation here does not have that attitude. I have to refresh the admin page myself everytime I do something (for example clicking the little blue globe icon aside of the pages in the left panel) before I see the change. Sad Will this be fixed in 0,91? I certainly hope so. I'm working on a windows xp machine and tried it with IE 8, FF 3.5, Google Chrome 3, Safari 4 and Opera 10. All with no luck. It has probably something to do with Mocha UI Sad
#68

[eluser]Michel-Ange[/eluser]
@Iscariah : Thanks for your post. I'm very happy you like Ionize.

We worked hard to create Ionize, not with the idea to compare our system to other one, but just to provide a professional, simple and powerful CMS regarding our experience with users and of course our experience as webdesigners.
We hope people will like this system and make it evolute in a good way.

As the Ionize team is very busy (I have a "daily" work and work as freelance the week-end), we will make our possible to release asap the new version and implement every good remark from users and developers.

Don't hesitate to participate and post some bugs corrections !

Concerning your problem, could you install Firebug for Firefox to obtain more informations about what's happens ? Your problem looks strange.
#69

[eluser]Iscariah[/eluser]
[quote author="Michel-Ange" date="1259100333"]@Iscariah : Thanks for your post. I'm very happy you like Ionize.

We worked hard to create Ionize, not with the idea to compare our system to other one, but just to provide a professional, simple and powerful CMS regarding our experience with users and of course our experience as webdesigners.
We hope people will like this system and make it evolute in a good way.

As the Ionize team is very busy (I have a "daily" work and work as freelance the week-end), we will make our possible to release asap the new version and implement every good remark from users and developers.

Don't hesitate to participate and post some bugs corrections !

Concerning your problem, could you install Firebug for Firefox to obtain more informations about what's happens ? Your problem looks strange.[/quote]

Hi! Thanks for the quick response. I tried firebug and it seems that the following code will be injected in the XMLHttpRequest answer:

Code:
{"message_type":"success","message":"Operation OK","update":[],"status":1,"id":"3"}
&lt;!-- www.000webhost.com Analytics Code --&gt;
[removed][removed]
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
&lt;!-- End Of Code --&gt;

So, it's totally not your fault that it doesn't work. It's my free web provider. Sad But i'm not that good in coding. Is there a change of filtering that analytics code or is that impossible? Many thanks in advance!

EDIT: Eureka!!! Finally I found a solution for the code. People, you all could use 000webhost.com if you like now. Just add the following code to your .htaccess file:
Code:
php_value auto_append_file none
php_value auto_prepend_file none

(At the end of the .htaccess file is fine.)

@Michel-Ange: Thanks for your reply again. Now, the punctuations in the passwords are the only problem left for me. I will test that right after I typed this.

EDIT 2: Well, I tested the login problem for accounts with punctuations in their passwords... Firebug gives me nothing with such an account, while another account without the punctuations in their passwords just work fine. Firebug returns some GET headers and the system logs in. I don't think I can come up with a solution for this one. I have this very same problem also on my local server.

EDIT 3 (last one, I promise): My account has been canceled by 000webhost.com. Not for the solution above, but for Slow MySQL Queries. It's ridiculous and I am trying another free host now. Hopefully a better one, we'll see. I don't really want to pay for it, because it's a hobby game clan site.
#70

[eluser]Kip zonder Kop[/eluser]
[quote author="Michel-Ange" date="1259100333"]As the Ionize team is very busy (I have a "daily" work and work as freelance the week-end), we will make our possible to release asap the new version and implement every good remark from users and developers.[/quote]

I don't understand. Do you work on Ionize while sleeping?

[quote author="Michel-Ange" date="1259100333"]Don't hesitate to participate and post some bugs corrections ![/quote]

How are you planning to organize the work on Ionize. Use this forum as a communication tools. Maybe go to Github or Google code?

For the time being, 2 other issues. One big one minor:

1) I can't seem to find another way to re-order already created pages then going into the database and updating the ordering column of the page table. Do I mis out on something in the admin panel?

2) When editing a page in the admin panel the views in the dropdown box "view" are not ordered. In the other dropdown boxes (Article list view and Article view) the contents are ordered.

Edit: 2) is not entirely true. The ordering of all boxes is dependent on the underlying file names. In my situation the fact that the other 2 were ordered was coincidence. In my opinion an ordering on the logical name is better. Fix. change

Code:
$datas = array('0' => lang('ionize_select_default_view')) + $datas;
to
Code:
$datas = array('0' => lang('ionize_select_default_view')) + $datas;
asort($datas);
on line 144, 152 and 160 of page.php in controllers/admin




Theme © iAndrew 2016 - Forum software by © MyBB