Welcome Guest, Not a member yet? Register   Sign In
PyroCMS v0.9.9
#31

[eluser]Phil Sturgeon[/eluser]
[quote author="hugle" date="1264491507"]Few more thingsSmile

1) Is it possible to move Pages to other pages for example:

I have:
contact_us page.
it also has childs:
con1
con2
con3

now I want to make contact_us to become a child of support?
so it becomes:
support > contact_us >
con1
con2
con3[/quote]
Sadly only pages fit into the child parent structure. Making PyroCMS more page based would be ideal, and all modules could be "special pages" but I have no idea how to go about doing that. Suggestions are welcome.


[quote author="hugle" date="1264491507"]

2)
It is possible to change default behaviour of 'Page Status'?[/quote]

Change it how? Live by default or...?

[quote author="hugle" date="1264491507"]

3)
it would be nice, that at least, childs would 'inherit' the default 'DESIGN' from parent, what do you whink?[/quote]

The idea is that each page has its own CSS then shared CSS is handled by page layouts. Write CSS for the page layout then apply that layout to each page that should have it.


[quote author="hugle" date="1264476105"]Imho, it would be nice to have a jquery script. which would transform the Title,
for example "My webpage title" to 'my-webpage-title" and put it into URL (while creating/editing the page)[/quote]

Ticket created. I'll do this for news too.

[quote author="hugle" date="1264476105"]
Now the question about DESIGN tab, in PAGES module. if no CSS rules exists, I still have:
Code:
<style type="text/css">
        
    </style>

<!-- Page layout: Default -->
Inside the code...
[/quote]

Not an issue, saves writing an extra if statement. :-p

[quote author="hugle" date="1264476105"]
btw, if I put the : <div class="clear"></div> - the tinymce edit will remove this (as it is blank imho)
can this function be disabled?[/quote]

I don't know, use <br class="clear" />?
#32

[eluser]Phil Sturgeon[/eluser]
[quote author="freedom-ru" date="1264602890"]I'm from Russia and I like PyroCMS and I would like to translate it into Russian, but I see that not all words are rendered in the language files. Do you plan it? I can also help with this[/quote]

Hey,

Most of the text is now multilingual, only things like the Settings module are still hard-coded in English.

Between the language files and module details.xml you should find most things are ready to be translated.

http://pyrocms.com/documentation/translators-guide
#33

[eluser]davidbehler[/eluser]
Hey,
I've just downloaded the zip and tried getting it to run.

http://vm/pyrocms is where it would be located. But going there results in a redirect to http://www.vmpyrocms.com/index.php/error_404.html

After editing config.php and setting base_url like this:
Code:
$config['base_url']    = "http://vm/pyrocms/";
it redirects to http://vm/pyrocms/index.php/error_404.html which seems to be correct. BUT the urls to all css/js files seem to be relative (e.g. pyrocms/application/assets/css/style.css) and do not work. Links, like the one to the homepage work fine though.

I've added german language files and wanted to test them before sending them to you or whatever I'm supposed to do with them...

Maybe you can help me out here Smile
#34

[eluser]Phil Sturgeon[/eluser]
God knows, possibly the host name confusing it. It should support sub-directories, sub domains and all sorts of weird URL's.

Try debugging from line 79 constants.php to see where its going wrong. It works fine on my localhost/pyrocms so theoretically it should not be any different.
#35

[eluser]hugle[/eluser]
[quote author="waldmeister" date="1264702537"]Hey,
I've just downloaded the zip and tried getting it to run.

http://vm/pyrocms is where it would be located. But going there results in a redirect to http://www.vmpyrocms.com/index.php/error_404.html

After editing config.php and setting base_url like this:
Code:
$config['base_url']    = "http://vm/pyrocms/";
it redirects to http://vm/pyrocms/index.php/error_404.html which seems to be correct. BUT the urls to all css/js files seem to be relative (e.g. pyrocms/application/assets/css/style.css) and do not work. Links, like the one to the homepage work fine though.

I've added german language files and wanted to test them before sending them to you or whatever I'm supposed to do with them...

Maybe you can help me out here Smile[/quote]

Hello waldmeister, aka MeNeedzSmile)))))

try changing config.php to:
Code:
$config['base_url'] = BASE_URL;

Btw, are you sure you downloaded 0.9.8-beta1 ?

Good luck!
#36

[eluser]davidbehler[/eluser]
I used the link on the translators guide: http://github.com/philsturgeon/pyrocms/z....9.8-beta1

@constats.php:
APPPATH_URI is defined as 'pyrocms/application/'. As $_SERVER['DOCUMENT_ROOT'] is used to define APPPATH_URI, it can never be absolute. Adding '/' in front of the APPPATH_URI makes it work...atleast partially. Firebug says the files were found but the css is actually not applied to the html...don't know why.

@base_url:
Slightly changing the base_url-finding-function in config.php to this:
Code:
$config['base_url']    = "http://".$_SERVER['SERVER_NAME'].str_replace( str_replace("\\", "/", $_SERVER['DOCUMENT_ROOT']), '/', str_replace("\\", "/", str_replace(SELF, '', FCPATH)) );
Notice the first str_replace where I replace the result of the second str_replace with '/' instead of ''. That fixed the redirect problem for me.
#37

[eluser]Phil Sturgeon[/eluser]
Your solution is nowhere near as flexible. Your's turns a working URL like this:

Quote:http://localhost:10088/sites/pyrocms/

into this:

Quote:http://localhost/Users/phil/Sites/pyrocms/

Everyone's setups are different so getting this working out of the box for everyone is no easy challenge. Right now we have 95% of all configurations working fine, if you can debug my solution to see what is breaking that would be very helpful for me. I'd do it myself but I cannot re-create it. Confusedhut:
#38

[eluser]davidbehler[/eluser]
I did not mean mine was the perfect solution for everyone..just that it worked for me Wink

I'll look into it and see what if I can help
#39

[eluser]hugle[/eluser]
As for now, the only sollution I see, for changing page parent is to make the page list "draggable"
it would make it possible to change positions between pages, change owners, etc.
But this seems too complicated for me.
Have no more ideas on this...

So far no more issues.

Btw, I have one extention for Email class.
It ads some escaping when replying. I can't remember exacly what it did, but I have tested it 20x times, it really fixes issues while replying the email like:
Code:
"John Smith <[email protected]>"
With default CI lib I had problems. this issue fixed the problem not only for me.

I think when you'll take a look into this code, and take a look at current "reply_to ()" function in CI lib, you'll understand that this one is missing, as it is a clone of "from ()" function
Code:
&lt;?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

class MY_Email extends CI_Email {

    function MY_Email() {
        parent::CI_Email();
    }
    
    function reply_to($replyto, $name = '')
    {
        if (preg_match( '/\<(.*)\>/', $replyto, $match))
        {
            $replyto = $match['1'];
        }

        if ($this->validate)
        {
            $this->validate_email($this->_str_to_array($replyto));
        }

        if ($name == '')
        {
            $name = $replyto;
        }
        
        // prepare the display name
        if ($name != '')
        {
            // only use Q encoding if there are characters that would require it
            if ( ! preg_match('/[\200-\377]/', $name))
            {
                // add slashes for non-printing characters, slashes, and double quotes, and surround it in double quotes
                $name = '"'.addcslashes($name, "\0..\37\177'\"\\").'"';
            }
            else
            {
                $name = $this->_prep_q_encoding($name, TRUE);
            }
        }

        if (strncmp($name, '"', 1) != 0)
        {
            $name = '"'.$name.'"';
        }

        $this->_set_header('Reply-To', $name.' <'.$replyto.'>');
        $this->_replyto_flag = TRUE;
    }
        
}
?&gt;


What about PyroCMS, I haven't met anymore bugs. -beta1 is doing well Smile
Maybe you have things you wanna test? just tell
#40

[eluser]Phil Sturgeon[/eluser]
Making those Treeview items draggable is not easy, the plugin does not support it and the re-code is something to advanced for me right now.

badsyntax may be able to do it, but he is too busy. I'll try and poke him about it.

If you could test the Akismet plugin implemented on comments that would be handy. You need an API key to put in settings (check UPGRADE) and it should work, but I have not tested it yet.




Theme © iAndrew 2016 - Forum software by © MyBB