Hi, just wondering, does the blogging script have some kind of code that can integrate into a, say, an index.php page? Or is it just a full on blog where you can edit the CSS/template?
Question About Blogging Script
(13 posts) (4 voices)-
Posted 3 years ago #
-
The blogging script is an index.php page. It has a separete css file and also the layout can be easily changed by editing the index.php. A new version is being worked on that is more easier to read and change. Unfortunately for this size and scope, Pritlog does not currently use a templating engine like wordpress or other popular blogging engines.
I am not sure if I answered your question. Please let me know if your question was not understood correctly.
Posted 3 years ago # -
I have just started using pritlog and so far very impressed quick easy simple to use ..many thanks.
Now i had the same kind of problem i wanted my blog inside my web pages that i have already created so this is what i did.
Opened pritlog index.php and copied all the script inside the <php> tags leaving out all the html stuff at the top of the index page etc. Make sure you get the .js file entry.
Then just pasted the code into my standard web page where i wanted it to show and the job was done.
All that is left to do is to change the entries in config.php for the post and comments folders i.e the correct path to the files and added the css entries from pritlog style.css to my own css style sheet and it works out of the box. You can adjust the look of the blog by editing the script within the php tags.Steve
Posted 3 years ago # -
Steve, that's great.
I am at the moment playing with a very nice and lightweight cms, Pluck , and was just starting to think about adding Pritlog to it. Pluck has its own blog module, but it is still in early stages of development, so not as nice as the rest of the cms.Would it be possible to see your Pritlog integration somewhere? Live or a screenshot?
I am just a user, not a coder. Could you show what you did with the index.php?
Thank you!Posted 3 years ago # -
Posted 3 years ago #
-
That is looking good. Nice work!
Mes compliments au chef..Posted 3 years ago # -
Hi Steve,
Thats some neat work. I liked the look. Its interesting how you manage to run the php script under an html file. Did you change the file/app handlers for your server to achieve this?Posted 3 years ago # -
Hi
Prit
I guess you are the author if this way of using your script is not to your approval please let me know I dont want to offend anybody :).....Nothing special no adjustments to my web server ( I host my own webpages ), I just plucked the php part from the index.php and inserted it into the html page, then just adjusted the colours etc in the css and removed the header from the php script.Some other tweaks like remove the google links etc otherwise just bog standard.
Server nothing special just linux, apache and php5
If anybody wants the stripped script to insert in your pages let me know I can make a link from which you can download a zip plus a how to...contact can be made on my web pages contact form.
Steve
Posted 3 years ago # -
Just coming back from your contact form ;)
Posted 3 years ago # -
Hi Steve,
Yes, I wrote this script as an experiment in learning and improving my knowledge of php. There is no restriction in using Pritlog, but to retain the footer or get appropriate permission to remove the same.
There must be something configured on your server that allows a HTML to be handled and executed as a PHP script. In a normal server, one cannot do this.
I would be interested in taking a quick look at the stripped script. Do you think you can upload it somewhere? Also, I assume that the instructions would be as simple as pasting this script in an existing page layout. Right?
Posted 3 years ago # -
Hi
To make an html act as php add this to the .htaccess file in the directory that you want your html files to act like php files, of course this only works on apache servers.
AddType application/x-httpd-php .html
the secret is out....:)
there is a zip file you can download from here this contains the stripped php plus a howto
http://www.sunburyweather.co.uk/downloads/pblog.zip
the rest is just a cut and paste exercise
Steve
Posted 3 years ago # -
Thanks Steve.
AddType application/x-httpd-php .html
Exactly what I was getting at.
Posted 3 years ago # -
I have just started using pritlog and so far very impressed quick easy simple to use ..many thanks.
Now i had the same kind of problem i wanted my blog inside my web pages that i have already created so this is what i did.
Opened pritlog index.php and copied all the script inside the <php> tags leaving out all the html stuff at the top of the index page etc. Make sure you get the .js file entry.
Then just pasted the code into my standard web page where i wanted it to show and the job was done.
All that is left to do is to change the entries in config.php for the post and comments folders i.e the correct path to the files and added the css entries from pritlog style.css to my own css style sheet and it works out of the box. You can adjust the look of the blog by editing the script within the php tags.Steve
Thanks! That's what I was trying to ask. I, too, already have a page that I wanted to integrate the blog into somehow, like how Cutenews/FanUpdate works. There's a code they give where you just put it into your index page that automatically displays your blog entries and I wanted to ask if Pritlog does that or not.
Although, your post really helps! I'll try it out when my host is done switching servers because everything is down atm. If I need any help, I will make sure to contact you.
Posted 3 years ago #
Reply
You must log in to post.