DanceInstructor 19 Posting Whiz

menuWerx is a PHP class to generate a menu for your site. Options include: debug mode, horizontal or vertical orientation & hooks, optional inline styles, and strict or transitional modes. See an example at: http://www.Clear-Mind.com/menuwerx/

LastMitch commented: Nice Work! +12
DanceInstructor 19 Posting Whiz

I will need to buy an SSL certificate soon and I have a few questions.

When I create the signing request and purchase the certificate, am I tied to the server that generated the request? Once I buy the certificate will I be able to easily transfer it to a new host?

I'm thinking of getting the godaddy Deluxe SSL certificate or the Essential SSL certificate from instantssl.com. I would like it very much if people post about their experiences and opinions with these and other SSL providers.

DanceInstructor 19 Posting Whiz

I don't see where you are grabbing the submitted data. Normally this would be something like:
$wavName = $_POST;

The submitted data may be in $_POST or in $_REQUEST. Try print_r($_POST); or print_r($_REQUEST); and you should see what you need to do.

DanceInstructor 19 Posting Whiz

I've used cURL to log into a clients secure site and generate downloads for the clients' customers. Does that answer your question or did I not understand?

DanceInstructor 19 Posting Whiz

I'm looking for a way to collect hardware/software information from users that visit a site I'm working on (The user will request this action with full knowledge of what is happening of course). You can see an example of what I'm looking for at Crucial where they have a button to click that checks if your pc is ready to upgrade to Vista or not.

I've looked around but can't seem to find any pre-packaged solutions. Does anyone know of anything like this that can be licensed or bought?

Thanks.

DanceInstructor 19 Posting Whiz

I think its great. It's to the point and succinct. It makes it look easy (which it is for the most part). If somebody has a problem, then its a good reason for them to post and everyone can benefit from that discussion (and possibly use that info to improve/udate the tutorial).

Although in my opinion this is a "server administratration" tutorial and doesn't really apply to scripters/programmers.

DanceInstructor 19 Posting Whiz
DanceInstructor 19 Posting Whiz

For some reason the forum module is redeclaring the <html> and <head> sections of the document. The forum is there, but the browser won't display it because of the html errors. You should probably reinstall the forum module without touching the database.

In general if you wanna update the forum you should get that update from the PHPNuke people, otherwise it will probably break.

DanceInstructor 19 Posting Whiz

I'm writing some copy and the premise is a story about a small business owner. "small business owner" is NOT the keyword phrase I want to optimize the page for, but I find myself using "small business owner" overa and over again.

The product is for small business owners, but I don't expect to rank for "small business owner" or for people to search for "small business owner" in an effort to find my product.

My question is: Should I try to change the wording to avoid repeated use of small business owner (I've thought about using SBO)?

I'm afraid that if I use a different term/phrase each time that I may confuse potiential customers reading the copy. What do you people think?

DanceInstructor 19 Posting Whiz

rariti do as smalldogn says ;)

For more info on the problem check out the following link:
http://developer.mozilla.org/en/docs/Incorrect_MIME_Type_for_CSS_Files

DanceInstructor 19 Posting Whiz

That should work without modification to your .htaccess file.

The only thing that might be an issue would be indexing. So if you see a list of files in the directory instead of the page you expect then try adding the following lines to your .htaccess file:

#this will turn off indexing (the list of files
Options -Indexes
#this will make a /directory/ link point to index.html
DirectoryIndex index.html

DanceInstructor 19 Posting Whiz

Give the table cell you want to scroll an id, then give it a fixed height, and set overlfow to scroll. Should look something like this:

td#id {
height: 400px;
overflow: scroll;
}

I would also like to coment, that when using div's for layout I rarely use more than 5 or 6. I'm not sure why you think you have to have as many as you believe you do.

DanceInstructor 19 Posting Whiz

Dani are you talking about checking the referer or something else?

DanceInstructor 19 Posting Whiz

The best way is to use layers. So you would import the image or photo into a photoshop file on a layer. Then make a new layer "above" the image and draw or import the graphics that will create the curved or shaped part.

At a quick glance this looks like a good layers tutorial:
http://duckz.nl/index.php?subaction=showfull&id=1156591082&archive=&start_from=&ucat=2&

You can find a lot of tutorials here:
http://www.pixel2life.com/tutorials/adobe_photoshop/

DanceInstructor 19 Posting Whiz

<input type="submit" value="att1">

and in your php do:

if($_POST == "att1") {
do stuff...
}

DanceInstructor 19 Posting Whiz

That really depends on how your host has setup the server. Chances are you will need to create an ftp account and install the frontpage extensions for the site you want to work with.

DanceInstructor 19 Posting Whiz

You don't want to do that. That would be very annoying and people would not stay on your site.

DanceInstructor 19 Posting Whiz

Make sure you read the whole thread:
http://www.daniweb.com/techtalkforums/thread73830.html

DanceInstructor 19 Posting Whiz

Are you sure the query is returning results? Are the results an array?

print_r($sqlProject); so you know the query looks lik you think it should. Try running that query in phpMyAdmin and see what the results are, that may help you figure out what's going on.

You may need to add the resource link to the query: mysql_query($sqlProject, $link); This link is made using mysql_connect() so look for :

$somename = mysql_connect(login stuff...);

and then you wound want to have it:

$queryProject = mysql_query($sqlProject, $somename)...

mikesowerbutts commented: good helpful asvice +1
DanceInstructor 19 Posting Whiz

Yep, Firefox will show it, IE will not. Try removing the doctype declaration and see if IE will show it. Your doctype declaration is invalid. The doctype you probably wanted to use is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
DanceInstructor 19 Posting Whiz

I think it's because the server accepts asp style code tags as php tags, in other words the server is try ing to parse <?xml... ?> as php.

So try this:

<?php echo '<?xml version="1.0" encoding="iso-8859-1"?>'; ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
DanceInstructor 19 Posting Whiz

MySQL is the most widely used and supported database. PostgreSQL is popular as well.

Server-side languages to look into for interfacing your site with your database: PHP, Ruby on Rails, Python.

So it will be diffucult for anyone to tell you the "how" until you have decided on the "what I will use".

Good Luck.

DanceInstructor 19 Posting Whiz
DanceInstructor 19 Posting Whiz

It looks like the value of the 'stat_pts' field in the database is zero, or possibly you have the field name wrong. Change it to this and you will be able to figure it out i think:

function addOneAtt($uname, $attname)
    {
        //Get current number of attribute point and stat points
        $dbarray = $this->getUserInfo($session->username);
        $attpts     = $dbarray['$attname'];
        $statpts = $dbarray['stat_pts'];
        echo '<br /><pre>';
        print_r($dbarray);
        echo '</pre><br />';
        
        //Add one to the current number of attribute points
        $attpts = $attpts + 1;
        
        //Subtract one from the current number of stat points
        $statpts = $statpts - 1;
        
        //Update attribute and stat points in database
        //function updateUserField($username, $field, $value)
        $this->updateUserField($uname, $attname, $attpts);
        $this->updateUserField($uname, stat_pts, $statpts);
    
        return;
    }
DanceInstructor 19 Posting Whiz

You should post several lines of code before the line mentioned in the error + the line mentioned in the error. If possible post a "complete statement", ie a section of code that is more or less complete unto itself.

But I have to say, the code in your error statements looks very screwed up...

DanceInstructor 19 Posting Whiz
DanceInstructor 19 Posting Whiz

Make a page for viewing profiles, that won't show anything that is private or allow any edits. This page you can pull the username from the page link.

Then make a seperate page only for editing. This page would pull the username from your session variable after they have logged in.

DanceInstructor 19 Posting Whiz

Man I can't believe i missed that echo in the first post. I thought you were in html mode...

You don't want to call your include that way. This is kind of backwards but try it:

$_GET['username'] = $session->username;
include("userinfo.php");
DanceInstructor 19 Posting Whiz

I ran out of time on the other post ;_;

  • /cakecalendar/
    • /app/
      • /config/
      • /controllers/
      • /locale/
      • /models/
      • etc...
    • /cake/
      • /config/
      • /libs/
      • /locale/
      • etc...
  • etc...
DanceInstructor 19 Posting Whiz

This doesn't use ASP, but it should give you the client-side info you need.

http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-ajax/

I highly recommend the JQuery library:
http://jquery.com/

DanceInstructor 19 Posting Whiz

index.php?page=userinfo?user=$session->username\
should be:
index.php?page=userinfo&user=<?php echo $session->username ?>

DanceInstructor 19 Posting Whiz

Huh?? There should only be 1 core.php to edit!

Describe your folder/directory layout for me.

Edit:

Actually, which directory do you want the calendar installed in? I figured out that you are now trying to install it in /cakecalendar/ so you need to ditch the /cake/ directory cause it will only cause confusion.

Now make sure you edit /cakecalendar/app/config/bootstrap.php and add the following:
$modelPaths = array('/home/vol3/myplace.us/daveclissold/daveclissold.com/htdocs/cakecalendar/app/models');

$viewPaths = array('/home/vol3/myplace.us/daveclissold/daveclissold.com/htdocs/cakecalendar/app/views');

$controllerPaths = array('/home/vol3/myplace.us/daveclissold/daveclissold.com/htdocs/cakecalendar/app/controllers');

Then make sure that /cakecalendar/app/config/database.php has the correct info.
Then make sure that /cakecalendar/app/config/core.php has
define(DEBUG, 0);

Just so we are clear. The calendar and cake should be in the same directory (/cakecalendar/), so the dir structure should be like so

/cakecalendar/
/app/
/config/
/controllers/
/locale/
/models/
etc...
/cake/
/config/
/libs/
/locale/
etc...
etc

Let me know how it goes.

DanceInstructor 19 Posting Whiz

That is a warning, it doesnt necessarily mean the app is broken. As long as you are not in debug mode you won't see that. So edit /cake/app/config/core.php and change:
define('DEBUG', 2); or define('DEBUG', 1);
to:
define('DEBUG', 0);

If you uploaded the calendar app it probably overwrote core.php file and set it back into debug mode.

DanceInstructor 19 Posting Whiz
echo "Logged in as ".$sesion->username;
DanceInstructor 19 Posting Whiz

I'm assuming you have uploaded the calendar app.

Ok in /cake/app/sql/ you should find the file cakecalendar.sql. Your host probably has some way to use phpmyadmin via whatever control panel you use yes? Go into phpmyadmin and on the left pick the database you made for cakecalendar. Choose the SQL tab in the right hand pane. Now copy the contents of the file cakecalendar.sql to the textbox (Run SQL query/queries...) and click Go.

One thing to note: It's for the best that this database isnt shared with other apps you may be using.

If you get an error message about syntax then just change all these:
ENGINE=MyISAM DEFAULT CHARSET=latin1;
to this:
ENGINE=MyISAM;
and repeat the copy/paste again.

Now add this function to /cake/app/controllers/users_controller.php

function addUser() {
		$query = "INSERT INTO `users` ( `id` , `username` , `password` )
			VALUES (
				NULL , 'myName', 'myPass'
			)";
		$result = $this->User->query($query);
		if(mysql_error()) {
			die(mysql_error());
		} else {
			die('User successfully added.');
		}
    }

You should comment this function out once you have added your user.

Now the users controller doesn't use any hashing and it probably should xD. So if you are concerned then do the following before you add the user
On line 21, change this:
if(!empty($someone) && $someone == $this->data)
to this:
if(!empty($someone) && $someone == sha1($this->data))
then in the addUser function change:
NULL , 'myName', 'myPass'
to:
NULL , 'myName', '".sha1(myPass)."'

Oh yeah, …

DanceInstructor 19 Posting Whiz

Does the server you are working on have register_globals = on ? If not (and its more secure if register_globals is off) then you will need to get the $content variable like so:

$Content = $_GET['Content'];

also register should be in quotes like so:

case 'register':
DanceInstructor 19 Posting Whiz

Edit the file /cake/app/config/core.php and change:
define('DEBUG', 2); or it might be define('DEBUG', 1);
to:
define('DEBUG', 0);

You still need a database, once you have a database ready then rename:
/cake/app/config/database.php.default
to:
database.php

then edit the $default = array part so that it reflects the details of your db setup.

Get that far and I'll help you through the last 2-3 things you need to do to get this working

DanceInstructor 19 Posting Whiz

The webroot is the top level directory where files will be served to the web. For instance the directory structure may look like this:

/home/accountName/public_html/

In this case only files in public_html/ would be available to the people browsing the site. Also in this case I think they may be looking for a string to append to the begining of urls so the links in template files would point to the right place.

I think the server root in this case is probably the file path to the files used by the shopping cart.

In a more basic sense, the author doesn't expect the shopping cart to be placed in the top level directory and needed a way to determine what subfolders it is in.

DanceInstructor 19 Posting Whiz

What is in the /dimensional-letters/metal/ directory?

DanceInstructor 19 Posting Whiz

Look for a .htaccess file in the top directory and as long as there doesn't appear to be any passwords or other info to keep private, post it here. It may give some clues as to what's happening.

DanceInstructor 19 Posting Whiz

Ok. Find the file called bootstrap.php. It should be in app/config/bootstrap.php. Now edit bootstrap.php and add the following code:

$modelPaths = array('/home/vol3/myplace.us/daveclissold/daveclissold.com/htdocs/cake/app/models');
$viewPaths = array('/home/vol3/myplace.us/daveclissold/daveclissold.com/htdocs/cake/app/views');
$controllerPaths = array('/home/vol3/myplace.us/daveclissold/daveclissold.com/htdocs/cake/app/controllers');

I think the paths are probably correct, but they may not be just right. So you may have to edit them slightly, maybe add the trailing / or whatever.

Let me know what happens.

Bah. The forum is cutting some of it off.
$modelPaths = array('....models');
$controllerPaths = array('...controllers');

DanceInstructor 19 Posting Whiz

Pay close attention to the version number here:

How to Install

1. Download CakePHP 1.2
2. Download Cake Calendar
3. Put both directories on your server
4. That's it!

That's from his page.

Hmm, it will work. You have to add the user/administrator yourself, and the style is lacking. But it works... xD

http://testing.clear-mind.com/

http://testing.clear-mind.com/users/login
user: Testing
pass: testing

DanceInstructor 19 Posting Whiz

Which calendar were you trying to use? and which version of cake?

DanceInstructor 19 Posting Whiz

Wow... That's interesting. I think (and this will sound crazy) that your page was somehow saved as the 404 page. The header response from the server is saying 404 not found:

Date: Fri, 30 Mar 2007 18:51:47 GMT
Server: Apache/1.3.33 (Unix) ApacheJServ/1.1.2 PHP/4.3.10 FrontPage/5.0.2.2635 Rewrit/1.1a
X-Powered-By: PHP/4.3.10
Set-Cookie: swtest=1; expires=Sun, 29-Apr-07 18:51:47 GMT; path=/; domain=.signwire.com
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

404 Not Found

also try other pages that can't possibly exist and you get this page, for ex:

http://www.signwire.com/dimensional-letters/metal/foobarpwns.xyz

:!: :!: :!:

DanceInstructor 19 Posting Whiz

You have not declared a doctype for this page. This leaves each browser to decide how it will render the page (quirks mode) vs following standards (standards mode). Declaring a doctype may make FF start paying attention to your z-index declarations. Doctypes: http://www.w3schools.com/tags/tag_doctype.asp

I think this menu will be bad for SEO as most search engines probably wont be able to see the links in the menu. Also by using this menu you FORCE your viewers/users to enable javascript to browse the site. IMO you should try something else.

I have used and like FreeStyle Menus, you can find it here: http://www.twinhelix.com/dhtml/fsmenu/
FreeStyle Menus use javascript, but degrade gracefully if javascript isnt available. The actual links to your pages are on the page on document load as well, so search engines will be able to see other pages on your site.

DanceInstructor 19 Posting Whiz
DanceInstructor 19 Posting Whiz

That code should not give you an ip address, unless the server isnt setup with a host name. I dont understand your problem if you are calling a page on another server you already know the other server's host name...

DanceInstructor 19 Posting Whiz

Agreed. This would not be an efficient nor effective approach.

DanceInstructor 19 Posting Whiz
echo $_SERVER['HTTP_HOST'];
DanceInstructor 19 Posting Whiz

I think you need to reference the form name as well so it would be something like this:

Number(document.formName.blackeyedsusan.value) ...