Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sblog-0.1 - GPL License
28-01-2010, 09:29 AM
Post: #1
sblog-0.1 - GPL License
sblog-0.1 - GPL License
Created by Alexander Wolfe
Description: A blog tweak


.zip  sblog-0.1 gpl.zip (Size: 15.1 KB / Downloads: 221)
www.andrewemmett.co.uk - lifestyle, tech and all sorts of geek
Find all posts by this user
19-04-2010, 02:18 PM
Post: #2
RE: sblog-0.1 - GPL License
Please advise on installing. I have loaded the tweak to the tweaks directory, and it appears in the list. I have it activated, however when I make an entry I get "Error writing file! Please check directory permissions."

mainpage is set to <?php runtweak ('simple-blog') ?>

Just what am I doing wrong?? Please help
Find all posts by this user
20-04-2010, 12:33 PM
Post: #3
RE: sblog-0.1 - GPL License
Hi Dalenberg,

Never tried this tweaker (module), however the error your getting is a write permission issue. So you probably need to use chmod (or right click on a directory / file in your ftp client) to change write permissions.

Regards

Andrew
www.andrewemmett.co.uk - lifestyle, tech and all sorts of geek
Find all posts by this user
20-04-2010, 07:43 PM (This post was last modified: 20-04-2010 07:44 PM by Dalenberg.)
Post: #4
RE: sblog-0.1 - GPL License
Thanks. I have checked the permissions, and they are correct. I believe the error is generated from the statement:

$retval = put2file(SBLOG_POSTDIR.$filename_to_put, stripslashes($content));

The problem is: I can not find a function: put2file() anywhere, ergo the error!!! This statment is in the "write File" area of the script. I suspect I'll have to either write my on "write File" or somehting like that. I just thought you might have encountered this problem. Thanks any way. If others have had this problem and have a solution please let me know..


Existing CODE:



//writes a new post to file
function sblog_put_post($title, $date, $content) {
$filename_time = strtotime($date);
$filename_title = str_replace(" ","_",$title);
$filename_to_put = $filename_time."<::>".$filename_title.".html";
$retval = put2file(SBLOG_POSTDIR.$filename_to_put, stripslashes($content));
if(!$retval) {
echo '<div class="redbox">Error writing file! Please check directory permissions.</div>';
}
Find all posts by this user
21-04-2010, 02:42 AM (This post was last modified: 21-04-2010 02:43 AM by Zorchenhimer.)
Post: #5
RE: sblog-0.1 - GPL License
If the function didn't exist, you'd get an error about an "Undefined Function". Open up 'data/setting.php' and you'll see that put2file() is defined on line 77. The error you are getting is related to directory permissions.
Visit this user's website Find all posts by this user
25-04-2010, 02:29 AM
Post: #6
RE: sblog-0.1 - GPL License
(21-04-2010 02:42 AM)Zorchenhimer Wrote:  If the function didn't exist, you'd get an error about an "Undefined Function". Open up 'data/setting.php' and you'll see that put2file() is defined on line 77. The error you are getting is related to directory permissions.

Quite True!!! I did find the code in the setting.php. Still looking at permissions stuff. This system is on a windows 2000 server running apache... Still not sure why I am getting the permissions problem.. Let you know what I find..
Find all posts by this user
25-04-2010, 06:57 PM
Post: #7
RE: sblog-0.1 - GPL License
Permissions on Windows are, many times, more complicated than they need to be. Right click on the folder in question, go to Properties > Security. Make sure "Everyone" has read capabilities, and apply it recursively.
Visit this user's website Find all posts by this user
08-07-2010, 05:07 PM
Post: #8
RE: sblog-0.1 - GPL License
I have a problem. I've installed the tweak correctly (I think). The blog is on sidebar, okay.. sample post shows... but when I try to save post it only shows me: slug load error : slug cannot be loaded

WTF? I've tried to deactivate friendly names but it only gives me 404 then. I don't have any idea what to do.
Find all posts by this user
31-07-2010, 05:45 AM (This post was last modified: 31-07-2010 06:03 AM by Malachai.)
Post: #9
RE: sblog-0.1 - GPL License
This is the message
Code:
Fatal error: Class 'Tweak' not found in /home/malachai/public_html/data/tweaks/sblog.php on line 31
Unfortunately I have no experience in the field of fixing things, and I have no idea what I did wrong. It goes into tweaks right?
Or should I use 6 Final instead of 7
Find all posts by this user
30-03-2011, 09:57 AM (This post was last modified: 30-03-2011 02:58 PM by Dalenberg.)
Post: #10
RE: sblog-0.1 - GPL License
Back in March, 2010 I posted the first entry, expressing the write file problem I was having. Because of circumstances, and, at the time, my limited knowledge of what I was doing, I postponed this problem until lately.

I now have the simple-blog working:

In the sblog.php file <::> is used as a separator with-in the file name. These are not legal characters permitted under windows. Simply by changing the several functions where ."<::>". appears to ."---". I was able to make the script work. Second, I used simple-blog for the run tweak on the page I wished to display, and it should have been sblog-page.

I provide this information so others using WAMP will be able to avert the same troubles I have had,,,
Find all posts by this user








Forum Jump:


User(s) browsing this thread: 1 Guest(s)