SnippetMaster Support Forums
Return to main website
 
February 25, 2018, 03:20:13 AM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 25, 2018, 03:20:13 AM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Almost got it « previous next »
Pages: [1] 2 Print
Author Topic: Almost got it  (Read 24969 times)
Ickii

Posts: 14


[-] Almost got it
« on: September 02, 2002, 06:55:37 AM »

Ok, I have been playing with this for hours, I am a slooooow learner  Rolling Eyes

I have finally got the login page to work but the only pages it shows that can be changed are the default sample pages.

What do I need to set in order to see the pages I want to be able to change?

Update - I finally got it to work IF the page to edit is in a folder within my html dir. How can I set it to allow editing of pages within my html dir ( not in a seperate folder )

ickii  Rolling Eyes
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Almost got it
« Reply #1 on: September 02, 2002, 04:05:57 PM »

1.  Make sure the $IGNORE variable located in the config.inc.php file does NOT include your html directory.  Basically, any folders listed in this array will NOT be searched for snippetmaster tags.

2.  I'm not sure I understood what you wrote in blue text.  I assume the "html" directory is your web root?  SnippetMaster should be able to read any file located in any directory UNDER your web root, as long as the folder is not listed in the $IGNORE variable as specified in my point above.

Let me know if you still need some help.

Cheers!
Report to moderator   Logged
Ickii

Posts: 14


[-] Almost got it
« Reply #2 on: September 02, 2002, 06:09:43 PM »

Here is the problem Im having.

The full path to my html file is this -

/home/virtual/site11/fst/var/www/html

If I use that in the config I get an error message saying

/home/virtual/site11/fst/var/www/html/templates/login.html does not exist. (or something like that LOL) I forget the exact message.

If I use... /home/virtual/site11/fst/var/www/html/snippetmaster
it works but does not see anything outside of the snippetmaster folder. Does that make sense?

Maybe I am doing something else wrong? I don't think the main html folder is listed in the ignore variable. I think I will delete everything and start over  Shocked

This looks really usefull, I hope I can get it to work.

Thanks for the help.

ickii
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Almost got it
« Reply #3 on: September 02, 2002, 07:22:33 PM »

I think I might know what is causing this problem for you.  If you could post the contents of the config.inc.php file that would help.

(Be sure to change the username/password before you do, though..)

Cheers!
Report to moderator   Logged
Ickii

Posts: 14


[-] Almost got it
« Reply #4 on: September 02, 2002, 07:31:20 PM »

This is what the config file looked like when it sorta worked.

<?php

// This is the FULL path to the directory where the SnippetMaster program files
// are located.
// NOTE: If you put SnippetMaster in your "web root" directory, the $ROOT and
//       $PATH settings will then be the same. DO NOT add a trailing slash.
   $PATH = "/home/virtual/site11/fst/var/www/html/snippetmaster";

// This is the FULL path to the directory where your website files are
// located on your server (Your web root). DO NOT add a trailing slash.
   $ROOT = "/home/virtual/site11/fst/var/www/html";

// Set to the full url to access the value you set for $ROOT
   $PREVIEW = "http://www.mydomain.com";

// Set to the full url to access the value you set for $PATH.
   $URL = "http://www.mydomain.com/snippetmaster";

// Specify a list of folders to ignore when browsing for SnippetMaster files.
   $IGNORE = array("stats","images","includes","cgi-bin","Templates","download","polls","forums","newsletter","location1","location2");

// What kind of file types should be visible to the users when browsing for
// images using the WYSIWYG editor?  (The extensions you specify MUST be
// for an image filetype or you will get javascript errors.)
   $VALID_IMAGE_FILE_TYPES =  array("gif","jpg","jpeg","png");

// What kind of file types should be visible to the users when browsing for
// links using the WYSIWYG editor?
   $VALID_LINK_FILE_TYPES =  array("html","htm","doc","pdf","xls","ppt","txt","jpg","gif","png");

// Set to 1 to use authentication, otherwise set to 0.
// NOTE: If  you don't need password protection, set AUTH to 0.
   $AUTH = 1;
   $USER = "demo";
   $PASS = "demo";

// Set the email address to be used for error reporting.
// NOTE: (Must be set, even if $REPORT is set to 0)
   $EMAIL = "your_email@domain.com";

// To turn off SnippetMaster errors from appearing in your email inbox,
// set to 0.
   $REPORT = 1;

// What is the maximum size of an editable file in bytes?
   $MAXSIZE = 1000000;

// Set to 1 to enabling printing of WYSIWYG debug messages, otherwise
// set to 0
   $DEBUG = 0;

// You can specify an unlimited number of upload locations for your users. To
// add more locations, just follow the variable pattern.  (Be sure to increment
// the array number for each new location.)
// PATH - The _full_ path to the destination directory. (DO NOT add a trailing
//      slash.) This directory MUST already exist and have permissions of 777.
// NAME  - The text users will see in the Upload window for this location.
// OVERWRITE - For this location, allow files that already exist to be
//             overwritten? For yes, set to 1; for no, set to 0.
// If you don't want to use at least three locations, just delete the lines you
// don't need.  (They are for example only, anyway..)
   $UPLOAD_INFO[1][PATH] = "/home/snippetm/public_html/location1";
   $UPLOAD_INFO[1][NAME] = "Upload Location #1";
   $UPLOAD_INFO[1][OVERWRITE] = 1;
   $UPLOAD_INFO[2][PATH] = "/home/snippetm/public_html/location2";
   $UPLOAD_INFO[2][NAME] = "Upload Location #2";
   $UPLOAD_INFO[2][OVERWRITE] = 0;
   $UPLOAD_INFO[3][PATH] = "/home/snippetm/public_html/location3";
   $UPLOAD_INFO[3][NAME] = "Upload Location #3";
   $UPLOAD_INFO[3][OVERWRITE] = 1;

// Do you want to limit the acceptable extensions of uploaded file types?
// To enable set to 1; to disable change to 0.
   $LIMIT_UPLOAD_FILE_TYPES = 1;

// If enabled, specify a list of acceptable file types for the upload function.
   $VALID_UPLOAD_FILE_TYPES =  array("gif","jpg","jpeg","png");

// Do you want to set a size limit for uploaded files?  
// To enable set to 1; to disable change to 0.
   $UPLOAD_FILE_SIZE_LIMIT = 1;

// If enabled, specify the size limit (in bytes) for uploaded files.
   $UPLOAD_FILE_MAX_SIZE = 200000;

?>

Thanks again for the help
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Almost got it
« Reply #5 on: September 02, 2002, 07:39:26 PM »

Hmmm.. interesting.  From what I can see, everything should be working.

From the error you posted, it looks like the "snippetmaster" folder is being removed from the path.. so the included template file (login.html) is not being found.

This is strange because the command to find the file simply takes the $PATH variable, and then adds "includes" and "login.html" to it.  So if you $PATH is set as you described, then it should work.

If you're interested, I can try an install myself to get it working.. Fire me off an email with the ftp address and login info and I can take a crack at it.

Cheers!
Report to moderator   Logged
Ickii

Posts: 14


[-] Almost got it
« Reply #6 on: September 03, 2002, 04:36:51 AM »

Update - I deleted snippetmaster and started over....now I get the login in page but after entering user / pass I get this

SnippetMaster v1.0 ERROR
Unable to change directories to "/home/virtual/site11/fst/var/www/html" (permissions denied), check your permissions and your ROOT setting in "includes/config.inc.php"
FUNC: directoryDropDown().

How should premissions be set for my main html dir? Or is this something else?

Electric - I appreciate the offer to install for me, if I can't get it working I will take you up on the offer.  Very Happy

ickii
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Almost got it
« Reply #7 on: September 03, 2002, 10:33:17 AM »

The html directory should be set to permissions of 755.  (This is pretty standard permissions for all directories.)
Report to moderator   Logged
Ickii

Posts: 14


[-] Almost got it
« Reply #8 on: September 04, 2002, 08:23:20 AM »

arrrrgggg Embarassed

I give up, cant get it to work, Electric Im sending you the info, can you give it a try when you have time, no hurry  Very Happy

ickii
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Almost got it
« Reply #9 on: September 04, 2002, 11:40:36 AM »

You betcha.  Just fire any info off to henri@snippetmaster.com

I'll take a crack at it as soon as possible.   (I'll email you before I do anything, just so you know.  And if you provide an IM number I can try to contact you via messanger or whatever first..)

Cheers!
Report to moderator   Logged
sikter

Posts: 7


[-] Almost got it
« Reply #10 on: September 04, 2002, 01:09:21 PM »

If you find the answer please put it here.

I have the same problem and only difference is that my html files are under:
home/endeavor/public_html
and shippet is here
home/endeavor/public_html/editor


Thanks.
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Almost got it
« Reply #11 on: September 04, 2002, 06:19:07 PM »

Quote from: sikter
If you find the answer please put it here.

I have the same problem and only difference is that my html files are under:
home/endeavor/public_html
and shippet is here
home/endeavor/public_html/editor

Thanks.


Sikter, does your public_html directory have permissions of 755?
Report to moderator   Logged
sikter

Posts: 7


[-] Almost got it
« Reply #12 on: September 05, 2002, 06:49:30 AM »

Quote from: electric
Quote from: sikter
If you find the answer please put it here.

I have the same problem and only difference is that my html files are under:
home/endeavor/public_html
and shippet is here
home/endeavor/public_html/editor

Thanks.


Sikter, does your public_html directory have permissions of 755?


Yes, it has 755 permission by default.
Report to moderator   Logged
skilgore

Posts: 18


[-] Almost got it
« Reply #13 on: September 05, 2002, 02:55:22 PM »

I'm Having the same issue as sikter. All of my folders (that I can get to, I'm on a shared host) are chmod 755.

UPDATE & Question

I have tried this with the new versiojn (*1.01) and still have the problem. Could this have to do with other directories above my site (shared server) having different permissions?
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Almost got it
« Reply #14 on: September 05, 2002, 08:40:45 PM »

Quote from: skilgore
Could this have to do with other directories above my site (shared server) having different permissions?


I don't think so... (maybe, but I doubt it).  Can you post the exact error message that is being displayed?

Thanks!
Report to moderator   Logged
skilgore

Posts: 18


[-] Almost got it
« Reply #15 on: September 05, 2002, 09:41:11 PM »

Sure Thing!

Quote
SnippetMaster v1.0 ERROR
Unable to change directories to "/home/virtual/site8/fst/var/www/html" (permissions denied), check your permissions and your ROOT setting in "includes/config.inc.php"
FUNC: directoryDropDown().


If you want to try it out, and see if its just me
 http://www.westernequipmentco.com/snip

Im Using WinXP and IE 6.0.2600
TIA!
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Almost got it
« Reply #16 on: September 05, 2002, 10:09:40 PM »

Hmm.. As long as the folder (/home/virtual/site8/fst/var/www/html) is chmodded to 755 or higher, then the script should be able to read the directory.  

The php function that is producing the error is this:

Code:
chdir("/home/virtual/site8/fst/var/www/html")


Are you any good at PHP?  If you are, then try creating a new file called "test.php" and put the following code into it:
Code:
<?php

$directory 
"/home/virtual/site8/fst/var/www/html";

if&
#40;!@chdir&#40;$directory&#41;&#41; &#123; echo "Unable to change directories to <b>$directory</b>.";
else &#123; echo "Success!"; &#125;

?>


Then upload the file up to your website and try to run it.  Let me know what text is displayed.  Basically, this will simply try to change directories into the one specified.. a way to isolate the problem, hopefully.

Cheers!
Report to moderator   Logged
skilgore

Posts: 18


[-] Almost got it
« Reply #17 on: September 05, 2002, 11:04:34 PM »

hrmmm...

Quote
Parse error: parse error in /home/virtual/site8/fst/var/www/html/dirtest.php on line 6


Line 6 is

Quote
Parse error: parse error in /home/virtual/site8/fst/var/www/html/dirtest.php on line 6


I'm fairly new to PHP, so I cdon't know how to fix that line. Ideas?

Thanks!
BTW, i refuse to support Paypal... is there any other way to donate?

I already rated you with 5 and 10's for an awesome idea, your working implementation, and your quick support response.Wink
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Almost got it
« Reply #18 on: September 05, 2002, 11:08:49 PM »

Whoops!  I forgot to close one of the brackets.. duh.   Embarassed

Here's the corrected code:
Code:
<?php 

$directory 
"/home/virtual/site8/fst/var/www/html"

if&
#40;!@chdir&#40;$directory&#41;&#41; &#123; echo "Unable to change directories to <b>$directory</b>."; &#125; 
else &#123; echo "Success!"; &#125; 

?>


Sorry about that!  And if you prefer, you can donate by sending cash in the mail (email me and I'll send you my address) or I can set you up with a different credit card page that doesn't use paypal.  Mind if I ask why you don't like paypal?

Cheers!
Report to moderator   Logged
Ickii

Posts: 14


[-] Almost got it
« Reply #19 on: September 06, 2002, 04:35:45 AM »

Since I am having the same problem I tried the test and got this

Unable to change directories to /home/virtual/site11/fst/var/www/html.

skilgore - are you on a server using ensim? Just curious if this might be the problem?

ickii
Report to moderator   Logged
Pages: [1] 2 Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Almost got it « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!