Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 31 Oct 2014, 11:09
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
pe_pplog v2.1b bufixes!
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 5 [70 Posts]   Goto page: 1, 2, 3, 4, 5 Next
Author Message
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Tue 21 May 2013, 22:52    Post subject:  pe_pplog v2.1b bufixes!
Subject description: another version of the pplog
 

I had used the PPLOG v1.1b for a year during my travels when I set out to add a gallery to it (for my travel pictures), fix some bugs I had found (mainly the archive) and change some things that I wanted to tweak for my personal liking.
In the end it turned into a project, with the objective to create a blog that is pretty (updated css, taking advantage of JQuery features), easy to use (mainly by separating the administrator features from the main script) and customise. The result was the pe_pplog (pretty easy pplog).

You can find it on Github under http://github.com/efiabruni

The newest release is Version 2.1b, which comes in two pets, one for puppys with the hiawatha server installed with /root/Web-Server as the document root and the other for puppys with a lampp installation at /opt/lampp.

It comes in a German and an English version (with documentation being in either language) and Spanish localisation available for either, as well as an incomplete Greek one (taken from the translation of the original PPLOG done by koulaxizis). It is also possible to add your own translation in the pe_Config.pl file.

Packages have been tested in Precise (2.7.1), Slacko (5.6), Lucid(5.2.8-005) Saluki (23) and Carolina (latest) but should work with all other puppys who have the servers installed[url]
pe_pplogv2.1b_GER_lampp.pet
Description  For the lampp server, German
pet

 Download 
Filename  pe_pplogv2.1b_GER_lampp.pet 
Filesize  140.49 KB 
Downloaded  206 Time(s) 
pe_pplogv2.1b_GER_hiawatha.pet
Description  For the hiawatha server, German
pet

 Download 
Filename  pe_pplogv2.1b_GER_hiawatha.pet 
Filesize  142.44 KB 
Downloaded  189 Time(s) 
pe_pplogv2.1b_GER.zip
Description  zip file for a live server, German
zip

 Download 
Filename  pe_pplogv2.1b_GER.zip 
Filesize  156.07 KB 
Downloaded  177 Time(s) 
pe_pplogv2.1b_EN_lampp.pet
Description  For the lampp server, English
pet

 Download 
Filename  pe_pplogv2.1b_EN_lampp.pet 
Filesize  131.95 KB 
Downloaded  196 Time(s) 
pe_pplogv2.1b_EN_hiawatha.pet
Description  For the hiawatha server, English
pet

 Download 
Filename  pe_pplogv2.1b_EN_hiawatha.pet 
Filesize  133.17 KB 
Downloaded  204 Time(s) 
pe_pplogv2.1b_EN.zip
Description  zip file for a live server, English
zip

 Download 
Filename  pe_pplogv2.1b_EN.zip 
Filesize  149.52 KB 
Downloaded  199 Time(s) 

Last edited by efiabruni on Wed 04 Dec 2013, 12:29; edited 8 times in total
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 2230
Location: The Blue Marble

PostPosted: Wed 22 May 2013, 13:36    Post subject:  

Checked your site - it's a cool blog Smile
_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Wed 05 Jun 2013, 20:20    Post subject: added features!
Subject description: automatic gallery and a contact me page
 

contact.pl.gz
Description  "contact me" page as a separate page
gz

 Download 
Filename  contact.pl.gz 
Filesize  1.12 KB 
Downloaded  348 Time(s) 
newGallery.patch.gz
Description  gallery script, for pe_admin.pl; gunzip to use
gz

 Download 
Filename  newGallery.patch.gz 
Filesize  1.5 KB 
Downloaded  350 Time(s) 
contact_page.patch.gz
Description  "contact me" page integrated in the pe_pplog, gunzip to use
gz

 Download 
Filename  contact_page.patch.gz 
Filesize  1.07 KB 
Downloaded  343 Time(s) 
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Wed 05 Jun 2013, 20:29    Post subject: see previous post
Subject description: this somehow vanished from the previous post
 

I wrote a script to create a gallery to my travel blog, the result can be seen here.

It can display pictures in jpeg/jpg, png and gif format. Thumbnails should be placed into a folder named "thumbs" in the image folder and have the same name as the original photo. If there is no "thumbs" folder the script uses the original photo (resized) as thumbnails, but I would recommend creating thumbnails for high quality pictures for easy loading.

I also made a simple "Contact me" page: either as a separate page
or integrated in the blog. You will have to add our $config_contactAddress= 'Your info'; to pe_Config.pl

jamesbond found a bug in the archive:
jamesbond wrote:


The archiving doesn't work for me (it says "no post in archive"), I made it work by replacing
my @dates = map { split(/"/, $_); @_[2].'|'.@_[4].'|'.@_[0]; } @entries;
with
my @dates = map { my @stuff = split(/"/, $_); @stuff[2].'|'.@stuff[4].'|'.@stuff[0]; } @entries;.
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Tue 11 Jun 2013, 07:47    Post subject: I could use some documetation on pplog  

Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Tue 11 Jun 2013, 08:44    Post subject:  

Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Tue 11 Jun 2013, 08:45    Post subject: third  

Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Tue 11 Jun 2013, 08:47    Post subject: 4th  

for some reason the text of my post disappears?? preview looks fine ... 4th attempt


The infogami site to which the pplog app refers, i.e.http://pplog.infogami.com/ is dead (and unavailable at the wayback machine). But pplog looks beautiful and I would like to use it. So is there a manual somewhere?

Specifically, how do I need to change the indexfile

~/Web-Server/index.html

or add a link to it (I am using the seamonkey composer for it)

so that it shows the pplog site at localhost?
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Tue 11 Jun 2013, 15:09    Post subject: set up pplog as localhost  

which web server are you using? You have to change the .conf file of the webserver to use pe_pplog.pl (or pup_pplog.pl) as start file

In lampp (xampp) the file can be found at /lampp/etc/httpd.conf

I think for Hiawatha (when included in Puppy) it is: /etc/hiawatha/hiawatha.conf

open the hiawatha.conf or the httpd.conf file

hiawatha.conf looks like something this

change StartFile=index.html to StartFile=pe_pplog.pl (or pup_pplog.pl)

In httpd.conf (if you are using lampp) you have to set the directory index, there should be a section, which looks like this:

Code:
<IfModule dir_module>
    #DirectoryIndex index.html
    # XAMPP
    DirectoryIndex index.html index.html.var index.php index.php3  index.php4
</IfModule>


add pe_pplog.pl (or pup_pplog.pl) to DirectoryIndex so it looks like:

Code:
<IfModule dir_module>
    #DirectoryIndex index.html
    # XAMPP
    DirectoryIndex pe_pplog.pl index.html index.html.var index.php index.php3 Myblog.pl index.php4
</IfModule>


I don't know which version of the pplog you are using, this setup should work for all though. The original PPLOG is not being developed anymore, there is a google code page but no other documentation, I think. For the SJPPLOG, documentation/examples can be found at: http://pplog.scottjarvis.com and it has it's own thread here.

Documentation for the pe_pplog can be found at http://tine.pagekite.me/blog

Hope this helped Smile
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Wed 12 Jun 2013, 09:23    Post subject:  

thanx efiabruni!

I use hiawatha

And I just found out what the problem was: the contents of the /root/Web-Server/blog folder needs to be copied to /root/Web-Server/ if you want it to work. And of course

Quote:
change StartFile=index.html to StartFile=pe_pplog.pl (or pup_pplog.pl)


interesting: all the news about Edward Snowden and the NSA gave me the inspiration to play a bit more with the tor browser bundle and the 'hidden services' in it, like running a website from a computer without revealing the physical location of the machine. It works great with hiawatha & pplog!
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Wed 12 Jun 2013, 10:17    Post subject: How to edit links?  

OK, I have found out how to change the colors and banner etc. And add/delete entries of course. But... how does one add/remove links in the puppy template, as well as the "Copyright Puppy Personal Blog 2008 - All Rights Reserved" text?
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Thu 13 Jun 2013, 06:48    Post subject: 403 forbidden  

sorry for all there questions... but what am I doing wrong here? From the read me file in the pe_plog.zip:

Quote:
Installation:
Unzip and extract archive to the root of your webserver (for example /opt/lampp/htdocs)

-Test:(Start your webserver) and point your browser to http://localhost/pe_pplog.pl, you should see the blog main page with the welcome message


OK.. I have extracted pe_pplog.zip to /root/Web-Server on puppy. I also opened /etc/hiawatha/hiawatha.conf and defined the startpage as follows:

Hostname = 127.0.0.1
WebsiteRoot = /root/Web-Server
StartFile = pe_pplog.pl
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log

Then I typed in my browser window:

http://127.0.0.1/blog/pe_pplog.pl
and
http://127.0.0.1/pe_pplog.pl

in both cases I get a black page with "403 Forbidden" on it
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Thu 13 Jun 2013, 07:01    Post subject: access denied via filesystem  

In /var/log/hiawatha/error.log then I read this text:

Thu 13 Jun 2013 12:51:51 +0200|127.0.0.1|/root/Web-Server/pe_pplog.pl|access denied via filesystem

???
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Thu 13 Jun 2013, 13:34    Post subject: re: access forbidden  

I like all your questions, it shows me where documentation is missing Smile

sorry it took so long, I had to install hiawatha first. Both the pe_pplg.pl and the pe_admin.pl have to have execute permissions

in the terminal type:

chmod a+x /root/Web-Server/pe_pplog.pl

and

chmod a+x /root/Web-Server/pe_admin.pl

after this it was working for me



[/code]
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Thu 13 Jun 2013, 14:19    Post subject: pe_admin file  

Somehow there is a difference on how cookies are set between Hiawatha and Apache, the login was not working, please use the attached pe_admin.pl file.
pe_admin.pl.gz
Description 
gz

 Download 
Filename  pe_admin.pl.gz 
Filesize  6.73 KB 
Downloaded  332 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 5 [70 Posts]   Goto page: 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1002s ][ Queries: 12 (0.0037s) ][ GZIP on ]