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 Tue 30 Sep 2014, 20:47
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 3 of 5 [70 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Fri 21 Jun 2013, 17:21    Post subject: Working now!  

YES! Thanks again efiabruni! Very Happy Laughing

Hopefully I have the time this weekend to play a bit more with different pplog templates.
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Fri 21 Jun 2013, 20:39    Post subject: cool!  

Glad I could help Smile There are now pet packages available for the blog (see first post) so there is no need anymore for changing file paths or setting permissions. I also tested in in Carolina and Saluki, but would be grateful for feedback on how it works in other derivatives.
Back to top
View user's profile Send private message 
Dromeno

Joined: 12 Sep 2008
Posts: 538

PostPosted: Sat 22 Jun 2013, 04:30    Post subject: pagekite  

Thanks thanks thanks... Pet works indeed (Carolina). It would be great if you (or somebody else) could make a pagekite pet as well. Last year I used Opera Unite for these kind of things, but they dropped the project.

Of course Opera is not open source either, so not the first choice, but so far they have been producing great tools.
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Wed 24 Jul 2013, 01:53    Post subject: bugfix version  

There is now a bugfix version (2b) available of the blog, see the first post.
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Thu 01 Aug 2013, 01:05    Post subject: new css theme  

I made a new css theme for the blog (darkgrey).

updated 23.11.13 to work with the new css based lightboxes/gallery
darkgrey.css.gz
Description 
gz

 Download 
Filename  darkgrey.css.gz 
Filesize  1.51 KB 
Downloaded  172 Time(s) 
darkgrey.png
 Description   
 Filesize   152.38 KB
 Viewed   336 Time(s)

darkgrey.png


Last edited by efiabruni on Sat 23 Nov 2013, 15:00; edited 1 time in total
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Sun 01 Sep 2013, 00:28    Post subject: pets for precise and slacko  

I tested the pets for Precise 2.7.1 and Slacko 5.6 and they are not only working fine, but also do not overwrite the inbuilt PPLOG files.

There is also a new theme, with the menu on the bottom of the page:

updated css file 23.11.13 to work with the new css based gallery/lightboxes
plain.css.gz
Description 
gz

 Download 
Filename  plain.css.gz 
Filesize  1.5 KB 
Downloaded  163 Time(s) 
Screenshot.png
 Description   
 Filesize   87.52 KB
 Viewed   302 Time(s)

Screenshot.png


Last edited by efiabruni on Sat 23 Nov 2013, 14:59; edited 1 time in total
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Sun 08 Sep 2013, 14:57    Post subject: Upload page  

This is a plugin for the admin page of the blog, a simple upload page. Multiple file uploads are supported in modern browsers, otherwise it is only simple file upload.

The following variables have to be added to pe_Config.pl:

Code:
our @config_uploadFolders = qw(/images /css);

Folder you want to upload to, the script will recognise subfolders and add them automatically (eg, for /images, /images/photos and /images/photos/thums would be added on the upload page to choose from)

Code:
our @config_allowedMime = qw(image/ text/css text/html text/plain);

Allowed mime types, if no file extension is given all for this mime type can be used. As in this example all image files (png, gif, jpg etc.) can be used, but for text files only css, html and plain text files)

For localisation add the highlighted to the language you are using:

our %locale;

$locale {"EN"} = {
upload=>"Upload File",
...
}

in case the pe_pplog version without localisation is used add:
Code:
our $lang = "EN";
our $locale{$lang} = {upload => "Upload File"};


Plugin:
upload.pl.gz
Description 
gz

 Download 
Filename  upload.pl.gz 
Filesize  1.56 KB 
Downloaded  207 Time(s) 
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Fri 13 Sep 2013, 20:07    Post subject: choose locale and choose style option
Subject description: diff file
 

This is a diff file for the v2b of the pe_pplog to add a chose style and/or choose language option. A cookie is set to remember the choice.

I had added this to the demo page of the pe_pplog, but do not want to add it as a regular feature.
selection.diff.gz
Description 
gz

 Download 
Filename  selection.diff.gz 
Filesize  872 Bytes 
Downloaded  214 Time(s) 
Back to top
View user's profile Send private message 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Tue 24 Sep 2013, 17:43    Post subject: Adding a calendar
Subject description: -using JQuery FullCalendar
 

Adding a calendar to the pe_pplog is quite easy, you can find a how-to here.

Using the same JQuery plugin I also wrote a new archive script replacing the old one with a calendar with click-able links.

Follow the instructions in the post in the link, or use the attached diff file.

The JQuery plugin (not by me) can be downloaded here. Place the files in the /js folder on your server.
Copy and paste the following to "our $config_customHTMLhead" and "our $config_customHTMLadmin" :
Code:
<link rel="stylesheet" type="text/css" href="/js/fullcalendar.css" />
<script type="text/javascript" src="/js/fullcalendar.js"></script>
archive_sub.diff.gz
Description  diff file for sub.pl to add a calendar based archive
gz

 Download 
Filename  archive_sub.diff.gz 
Filesize  1.44 KB 
Downloaded  214 Time(s) 
cal-archive.png
Description  calendar based archive example
png

 Download 
Filename  cal-archive.png 
Filesize  81.08 KB 
Downloaded  210 Time(s) 
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1821
Location: South Australia

PostPosted: Sat 19 Oct 2013, 03:32    Post subject:  

efiabruni I have your lovely pe_pplog.pl working very nicely locally using localhost on my desktop computer.

My next challenge is to upload it to my web site so others can also access it.

I would like to locate the blog at something like:
http://www.mysite/blog

If I had an index.html or index.php file in the blog directory then the blog would be launched. As the main perl script is named pe_pplug.pl, how do I make this work. I thought it would be as simple as creating a .htaccess file in the blog directory with the contents of:

DirectoryIndex pe_pplog.pl index.html index.php index.htm

but this didn't work.

Should the blog and Web-Server directories be sub directories of the blog directory? or do I put the contents of the blog and Web-Server directory at the blog level directory?

Regards

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Sat 19 Oct 2013, 14:02    Post subject:  

There are two ways to do this. The easiest is to unzip the blog in the web server root directory as is and put an index.php file in the web-server/blog directory with the following:

Code:
<?php
   if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
      $uri = 'https://';
   } else {
      $uri = 'http://';
   }
   $uri .= $_SERVER['HTTP_HOST'];
   header('Location: '.$uri.'/pe_pplog.pl/');
   exit;
?>


this will redirect any request to localhost/blog to localhost/pe_pplog.pl without any need for .htacces files or the like.

if you don't like the .pl ending showing put the blog directory of the zip file into the blog directory of the web-server. For example the pe_Config.pl file would then be located in web-server/blog/blog/pe_Config.pl.
Move the pe_pplog.pl and pe_admin.pl to web-server/blog.
Leave the /css /js and /image folders in web-server.
Add an .htacces file to the web-server/blog folder with
Code:
DirectoryIndex pe_pplog.pl


These directions assume the server is an Apache web-server
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1821
Location: South Australia

PostPosted: Sat 19 Oct 2013, 19:21    Post subject:  

Neither suggestion worked. I am getting a 403 (forbidden) error.

I have check the permissions. Directories are 755 and files 644.

From the http://www.MySite.com/public_html my directory structure is:

.
|-- blog
| |-- CHANGELOG
| |-- change.pl
| |-- comments
| |-- contact.pl
| |-- editConfig.pl
| |-- LICENSE
| |-- newGallery.pl
| |-- pe_Config.pl
| |-- pe_Config.pl.bak
| |-- posts
| | |-- 00000.ppl
| | `-- hits.ppl.hits
| |-- readme
| | |-- README
| | |-- README_GER
| | |-- README_GERhiawatha
| | `-- README_GERzip
| `-- sub.pl
|-- css
| |-- menu2.jpg
| |-- menu3.jpg
| |-- menu.jpg
| |-- m_menu2.jpg
| |-- m_menu3.jpg
| |-- m_menu.jpg
| |-- mobile.css
| `-- style.css
|-- images
| |-- news-feed.png
| |-- prettyPhoto
| | |-- dark_rounded
| | | |-- btnNext.png
| | | |-- btnPrevious.png
| | | |-- contentPattern.png
| | | |-- default_thumbnail.gif
| | | |-- loader.gif
| | | `-- sprite.png
| | |-- dark_square
| | | |-- btnNext.png
| | | |-- btnPrevious.png
| | | |-- contentPattern.png
| | | |-- default_thumbnail.gif
| | | |-- loader.gif
| | | `-- sprite.png
| | |-- default
| | | |-- default_thumb.png
| | | |-- loader.gif
| | | |-- sprite_next.png
| | | |-- sprite.png
| | | |-- sprite_prev.png
| | | |-- sprite_x.png
| | | `-- sprite_y.png
| | |-- facebook
| | | |-- btnNext.png
| | | |-- btnPrevious.png
| | | |-- contentPatternBottom.png
| | | |-- contentPatternLeft.png
| | | |-- contentPatternRight.png
| | | |-- contentPatternTop.png
| | | |-- default_thumbnail.gif
| | | |-- loader.gif
| | | `-- sprite.png
| | |-- light_rounded
| | | |-- btnNext.png
| | | |-- btnPrevious.png
| | | |-- default_thumbnail.gif
| | | |-- loader.gif
| | | `-- sprite.png
| | `-- light_square
| | |-- btnNext.png
| | |-- btnPrevious.png
| | |-- default_thumbnail.gif
| | |-- loader.gif
| | `-- sprite.png
| `-- smilies
| |-- angry.png
| |-- cry.png
| |-- dilemma.png
| |-- happy.png
| |-- heart.png
| |-- lol.png
| |-- mmh.png
| |-- oh.png
| |-- ouch.png
| |-- sad.png
| |-- shock.png
| |-- surprised.png
| `-- wink.png
|-- js
| |-- jquery.prettyPhoto.js
| |-- prettyPhoto.css
| `-- README
|-- .htaccess
|-- index.php
|-- pe_admin.pl
|-- pe_pplog.pl
`-- README


Server Software
Apache: 2.2.23
CentOS: CentOS release 6.4 (Final)
cPanel: 11.36.2 (build 4)
Curl: 7.12.1
MySQL 5.5.33
phpMyAdmin 3.5.5
Python: 2.6.6
Perl: 5.8.8
PHP: 5.2.17
ionCube Loader: 4.2.2
Zend Optimizer: 3.3.9
Ruby: 1.8.7
Rails: 2.3.18
OpenSSL: 1.0.0-fips

My other blog runs fine but it's written in php not perl.

I'm running out of ideas.

Cheers
directory.tar
Description  Clearer directory structure
tar

 Download 
Filename  directory.tar 
Filesize  20 KB 
Downloaded  192 Time(s) 

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Sun 20 Oct 2013, 00:28    Post subject:  

Ok, I see three possibilities
1. The server is not set up to allow .htaccess files. In this case the 403 Error should read like:
Quote:
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.


In this case use the solution with the php script

2. I think this is the case here:
The server is not set up to run cgi files from outside of the cgi-bin folder.

then error message is likely:
Quote:
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

try and add the following to your .htacces file:

Quote:
AddHandler cgi-script .pl
Options +ExecCGI


3. The server does neither allow for htaccess files nor cgi scripts outside of the cgi-bin

In this case, rename the pe_pplog.pl and pe_admin.pl to pe_pplog and pe_admin, make them executable and move them to the cgi-bin.
Move the blog folder to the cgi-bin
change the index.php file to:

Code:
<?php
   if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
      $uri = 'https://';
   } else {
      $uri = 'http://';
   }
   $uri .= $_SERVER['HTTP_HOST'];
   header('Location: '.$uri.'/cgi-bin/pe_pplog.pl/');
   exit;
?>
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1821
Location: South Australia

PostPosted: Sun 20 Oct 2013, 18:38    Post subject:  

efiabruni wrote:
Ok, I see three possibilities
1. The server is not set up to allow .htaccess files. In this case the 403 Error should read like:
Quote:
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.


In this case use the solution with the php script


The server is fine with .htaccess files, in fact I use them to assign icons and descriptions like:
http://smokey01.com/software/Fatdog64-600/

efiabruni wrote:

2. I think this is the case here:
The server is not set up to run cgi files from outside of the cgi-bin folder.

then error message is likely:
Quote:
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

try and add the following to your .htacces file:

Quote:
AddHandler cgi-script .pl
Options +ExecCGI


This didn't fix the problem either. It really seems to be some sort of permissions problem
efiabruni wrote:

3. The server does neither allow for htaccess files nor cgi scripts outside of the cgi-bin

In this case, rename the pe_pplog.pl and pe_admin.pl to pe_pplog and pe_admin, make them executable and move them to the cgi-bin.
Move the blog folder to the cgi-bin
change the index.php file to:

Code:
<?php
   if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
      $uri = 'https://';
   } else {
      $uri = 'http://';
   }
   $uri .= $_SERVER['HTTP_HOST'];
   header('Location: '.$uri.'/cgi-bin/pe_pplog.pl/');
   exit;
?>


Option three didn't work either.

Here is the really strange bit. CatDude has exactly the same blog set up on the same company's server but under a different account.

It really seems like I have to enable perl scripts to run. Hostgator allows perl as you can see from a previous post. I guess I might need to put some definition in the .htaccess to do this, I just need to work out what that syntax is.

Thanks

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
efiabruni

Joined: 18 Oct 2011
Posts: 68

PostPosted: Sun 20 Oct 2013, 20:19    Post subject:  

Ok, I'm out of ideas as well. Hosting companies can be specific with cgi script set ups, I guess. Let me know if you solve this problem. Sorry I couldn't help Sad
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 5 [70 Posts]   Goto page: Previous 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.1100s ][ Queries: 13 (0.0082s) ][ GZIP on ]