-
Posts
115 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Downloads
Gallery
Store
Everything posted by catfish
-
Sorry, my code didn't show. This is the include file <div id="nav-strip"> <div id="nav"> <ul id="pmenu"> <li class="tc"><a href="index.php">Home <!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="about-us.php" class="enclose">About CLCS</a></li> </ul> </li> <li class="tc"><a href="counselling.php">Counselling <!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li class="fly"><a href="counselors.php">Our Counsellors<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="./counselors.php#amanda">Amanda Sawatzky</a> </li><!--[if lte IE 6]></td></tr></table></a><![endif]--> <li><a href="./counselors.php#darlene">Darlene Tully </a></li> <li><a href="./counselors.php#brandon">Brandon Riopka</a> </li> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><a href="./counselling.php#resources">Resources</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li class="tc"><a href="programs.php">Programs <!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="adult-programs.php" class="enclose">Adult Programs</a></li> <li><a href="parenting-programs.php">Family Programs</a></li> <li><a href="youth-programs.php">Youth Programs</a></li> <li><a href="out-reach.php">Outreach Team</a></li> </ul> </li> <li class="tc"><a href="services.php">Other Services <!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="hampers.php">Christmas Hampers</a></li> <li><a href="meals-on-wheels.php">Meals on Wheels</a></li> <li><a href="loan-cupboard.php">Red Cross Loans</a></li> <li><a href="transit.php">Transit</a></li> </ul> </li> <li class="tc"><a href="employment.php">Employment <!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> </li> <li class="tc"><a href="contact.php">Contact Us <!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="links.php" class="enclose">Community Links</a></li> <li><a href="volunteer.php">Volunteer Positions</a></li> <li><a href="directors.php" class="enclose">Board of Directors</a></li> </ul> </li> </ul> </div> </div>
-
Thanks for your help. Initially I thought you were probably correct so this morning I uploaded the original index.html to see what would happen (because I am new to php and the include thing) The server is shaw which I don't know if you are familiar with where you are. Then I remembered that I had recently done the same thing with another clients site using the includes for his menu and he is also with shaw and has no problem so I am stumpted. ??? This is my codes <div id="header"> <img src="images/upper_left.jpg" width="30" height="30" alt="Corner Left" style="float: left;" /> <img src="images/upper_right.jpg" width="30" height="30" alt="Corner Right" style="float: right;" /> <a href="index.html" title="Cowichan Lake Community Services"><img class="logo" src="images/sm-logo.png" width="180" height="140" alt="Cowichan Community Services" /></a> <h1>Cowichan Lake Community Services</h1> <span class="h1">Box 670, 121 Point Ideal Rd,<br />Lake Cowichan, BC<br /> 250 749-6822</span> </div> <div id="body"> <div id="header_photo" class="hdr-volunteer"> <img class="sign" src="images/rightbox_sign.png" width="264" height="247" alt="" /> </div> <div> and the include file [code]<div id="nav-strip"> <div id="nav"> <ul id="pmenu"> <li class="tc"><a href="index.php">Home <!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="about-us.php" class="enclose">About CLCS</a></li> </ul> </li> <li class="tc"><a href="counselling.php">Counselling <!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li class="fly"><a href="counselors.php">Our Counsellors<!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="./counselors.php#amanda">Amanda Sawatzky</a> </li><!--[if lte IE 6]></td></tr></table></a><![endif]--> <li><a href="./counselors.php#darlene">Darlene Tully </a></li> <li><a href="./counselors.php#brandon">Brandon Riopka</a> </li> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li><a href="./counselling.php#resources">Resources</a></li> </ul> <!--[if lte IE 6]></td></tr></table></a><![endif]--> </li> <li class="tc"><a href="programs.php">Programs <!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="adult-programs.php" class="enclose">Adult Programs</a></li> <li><a href="parenting-programs.php">Family Programs</a></li> <li><a href="youth-programs.php">Youth Programs</a></li> <li><a href="out-reach.php">Outreach Team</a></li> </ul> </li> <li class="tc"><a href="services.php">Other Services <!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="hampers.php">Christmas Hampers</a></li> <li><a href="meals-on-wheels.php">Meals on Wheels</a></li> <li><a href="loan-cupboard.php">Red Cross Loans</a></li> <li><a href="transit.php">Transit</a></li> </ul> </li> <li class="tc"><a href="employment.php">Employment <!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> </li> <li class="tc"><a href="contact.php">Contact Us <!--[if IE 7]><!--></a><!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--> <ul> <li><a href="links.php" class="enclose">Community Links</a></li> <li><a href="volunteer.php">Volunteer Positions</a></li> <li><a href="directors.php" class="enclose">Board of Directors</a></li> </ul> </li> </ul> </div> </div> <?php include("drop_menu.php"); ?> </div>[/code]
-
Hello, I have just completed an update for a client I previously designed for. I decided the menu was getting bigger and/or changing regularly so I changed it to use the php include statement for the menu section. All pages were changed to end in php. I tested all the pages numerous time with my dreamweaver, view in browser and all looks good. Yesterday I upload all the files but the menu is not showing. I wondered if the server was taking time to make the changes of the new file (resolving as they say). I wonder if anyone has any ideas or recommendations. The website is http://www.comserv.org/ Thankyou
-
I was curious why some of the little folder icons beside the Topic titles are gray color (like my own) and others are not and popup appears on some when hovering.
-
I have my database set up for registrations which is working just fine, now I am working on having at the same time sending the results of the form fields sent by email which is also working but minimally. I have posted my code bit below but need to add more details to it. The email arrives From nobody@..... subject is fine and then I can't get all of the other fields to show and the autoresponder doesn't work at all. //Check whether the query was successful or not if($result) { mail($myemail, $subject, $fname, $lname, $email, $login); header("location: register-success.php"); exit(); }else { die("Query failed"); } /* Prepare autoresponder subject */ $respond_subject = "Thank you for contacting us!"; /* Prepare autoresponder message */ $respond_message = "Hello! Thank you for contacting us! We will get back to you as soon as possible! Yours sincerely, Your name www.yourwebsite.com "; /* Send the message using mail() function */ mail($email, $respond_subject, $respond_message); In other forms I am using I have a bit of code that lays out the email message very nicely but I get an error 500 whenever I try to add it. Below is a bit of the code so you know what I am talking about. My php is very limited but manage some things trial and error mostly. $message="$name just filled in your comments form.\n\nTheir phone number is:\n$phone\n\nThey live in:\n$city\n\nThey said:\n$comments\n\nTheir e-mail address is: $email"; if(mail($to,"Message From MC-HRSolutions.com",$message,"From: $email\n")) { echo "Thank you for your enquiry."; } else { echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
-
I don't know what clickbank is...
-
Thanks for your reply, it's been awhile but I am still working on this. I was very happy with how I made out after doing some tutorials etc. What I have now is that after the person pays for the membership with Paypal they are directed to the registration page. They fill out the fields which enter them into the database and then allows them to login to the members only section. I was happy with this but now my client wants to add more fields to the registration form. This isn't really a big deal besides more work for me but I'm not sure how to go about making it so that the form not only submits to the database but at the same time sends the form as an email with the information to my client to let him know that there is a new registrant in the database.(remember I am a php newbie!)
-
Ok, I managed to find the config file and changed the user back. Now I'm back in phpMyAdmin and will start from scratch with a new database. My catfishdb has disappeared.
-
Thanks for your reply, now I really messed things up. I started with your test code and kept getting parse errors. I finally got just a simple hello php to show up in the browser and then I went to check the privileges set and screwed something up big time. Below is what the phpMyAdmin screen says now. I even uninstalled the whole Wampserver and reinstalled it and still get the same screen. I've looked and looked and I can't find where to check the host, username and password in a configuration file anywhere. Error MySQL said: #1045 - Access denied for user 'root'@'localhost' (using password: NO) phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
-
So, I installed the Wampserver on my computer and have set up numerous databases over the past few days while working on a couple of tutorials. First one connected fine to the database and now I can't seem to get a connection and I'm confused with what I'm doing now. I'm trying to set up a login / registration. my original db was set up and called "recipes" host=localhost, username=test, password=password. So I have deleted all but 1 db now thinking maybe I'm only allowed 1 per wampserver?? Is that true? Now I have a db named catfishdb and a table set up called members with 3 fields, id, username, password My html form <form action="checklogin.php" method="post" name="form1"> <label for="username">User Name: </label><input type="text" name="myusername" id="username"> <label for="password">Password: </label><input type="password" name="mypassword" id="password"> <input type="submit" value="Login"> </form> My checklogin.php page <?php $host = "localhost"; $username = "test"; $password = "password"; $db_name = "catfishdb"; $tbl_name ="members"; $connect = mysql_connect("localhost", "test", "password") or die('Could not connect to server'); mysql_select_db("catfishdb") or die('Could not connect to database'); $myusername = $_POST['myusername']; $mypassword = $_POST['mypassword']; $sql = "SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'"; $result = mysql_query ($sql); $count = mysql_num_rows ($result); if ($count==1) { session_register("myusername"); session_register("mypassword"); header("location:login_success.php"); } else { echo "Wrong Username or Password"; } ?> Then I have a couple other pages such as login_success.php. I find it very difficult to even ask the proper questions here but hopefully a php whiz can spot something here. I've registered 1 username and password in the phpmyadmin panel for testing and I still get an error "Could not connect to database"
-
I have a client who wants to have a members only section on the website which contains letter/policy templates for their use but only after they pay for their membership. He wants to use paypal to receive the payments. I'm wondering what the best (and easiest ) way is to do this. ie; he'll obviously need to get notification that someone has paid and then he will need to give them access with a username and password. Thanks. I am limited with my PHP still but have started learning it. (slow going)
-
Thankyou both. I will have a look at the sitemap generator thing. I didn't know about that. Thanks again for answering
-
I am working on a new website where the client is fairly specif that she wants a "splash page" with just a collage of images before entering the site. I have never done this and have discouraged clients from doing this because of the search engines not finding them. My question however is - won't the engines find all of the other pages following, which contain the proper "title", "meta" "h" tags set up?
-
Thanks for all the input on this subject. I have set the WP up for the clients blog and got it looking like her website. Very happy and I do agree, although I like CMSMS for allot of reasons, this is the way to go for blogging/comments etc. I do not however even like CMS for most clients. They want to have the ability to update themselves but most of them haven't got a clue, they're too nervous to use it or I have to spend endless hours teaching them. Comments on this anyone?
-
While I haven't played too much with WP and changing the style of them (actually just the header picture picture and background) I have found a couple that were almost impossible to figure out how.
-
Very good you 2. Thankyou very much for your replies. As always... I appreciate it.
-
I currently have a client using cmsms which comes with the blogging module I have played with a bit. She wants to start blogging and my question is this.. do you think the wordpress blogs with a custom header (to match her site) would be better than using the cms blog module? I'm not sure which I should set up for her.
-
Oh, yes thankyou very much for your help Talking about the "Media" tab?
-
Hi, I don't see anymore comments about the media tab?
-
OMG! Yes it is there. I swear it wasn't the 20 times I looked for it. Thankyou, nothing like feeling stupid now :/ Are you talking about widgets? That's available under Appearance > Widgets.
-
In the past I worked on a blog for someone and was able to move the sidebar items around, see my plugins for images and add to it. Now I can't find this area for achieving this. Have looked a number of times. I am using the newest version which is 2.9.1 and the link is here. http://www.theadoptioncounselor.com/Blog/ Thankyou
-
I have set up and customized a wordpress blog for a client who is now twittering. I have installed a twitter widget for her but the link there is nothing to do with her latest tweet or what ever you call it. I don't know how to get these "follow me on twitter" etc things happening for her. Any help would be fantastic. Thanks.... Here is the link Here is the link to the blog http://phoenixnaturals.ca/blog/'>http://phoenixnaturals.ca/blog/ and her other site where I do have a follow me link... http://phoenixnaturals.ca/
-
I have a question regarding the set up of an order form. I am actually using the forms module in CMSmadesimple but for the life of me can't figure out how to do this. What I want is for the person to be able to order multiple clothing articles in different sizes if required. can someone help me with this. Here is a link to what I have and it is just not right yet. http://www.advancedridertraining.ca/index.php?page=items-for-sale Thankyou
-
I am wondering exactly what I would need to edit a pdf document for a client.
-
I have been asked to place some book images in the right sidebar of this blog and for the life of me I cannot figure it out. I set the blog up for the client but don't know too much about Wordpress. Can anyone look at this and tell me if you think it is even possible? Thanks http://theadoptioncounselor.com/Blog/