Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 02-17-2009, 09:08 PM
only_8s only_8s is offline
Junior Member
 
Join Date: 02-17-09
Posts: 2
iTrader: 0 / 0%
Exclamation Need help adding comment section

I'm putting up a site and I'd like people to be able to comment on my posts. Naturally, I tried CuteNews and the like but you have to chmod 777 just about everything and apparently my server (GoDaddy) doesn't support changing file permissions. (Unless you have a dedicated server, I believe. Then you can.)

Is there a system I can use where I don't have to change file permissions? One that isn't too complicated, hopefully? Or should I call tech support at GoDaddy and perpare to sound like a complete idiot on the phone?

Any help would be greatly appreciated.
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 02-18-2009, 10:41 AM
Izzmo's Avatar
Izzmo Izzmo is offline
v7n Mentor
 
Join Date: 11-01-03
Location: Kansas
Posts: 1,356
iTrader: 1 / 100%
Well, the reason you have to CHMOD the files is because CuteNews uses an upload feature I believe as well as using themes (which require to update files).

Unfortunately, the installer probably sees the files are incorrectly CHMOD'd and will not let you go any farther, correct?

As far as getting a program that will allow you the basic post news and comment will be hard to find. If you know any PHP, I suggest you rifle through CuteNews and see how they are doing comments and try to integrate your own system.

If not, there are always people who will develop a small simple script for you for a bargain (say $50?).

Crazy how GoDaddy restricts stupid things like that.

You get what you pay for with GoDaddy: ****ty hosting.
 
Reply With Quote
  #3  
Old 02-18-2009, 07:23 PM
Capo64 Capo64 is offline
Contributing Member
 
Join Date: 06-11-07
Posts: 238
iTrader: 0 / 0%
If you already have a system set up in PHP to add posts, it should be pretty simple to add comments..

Just add another table to the same database as your posts and call it comments with these columns:

comment_id, post_id, email, body, (whatever else you want to include in the comments)

Then on each post page, do a query something like this: SELECT * FROM comments WHERE post_id = 'current post id'

Display those comments wherever you want to, and set up a form on that page to submit a new comment:

<form action="process.php" method="post">
<input type="hidden" name="post_id" value="<?=current post id" />
<input type="text" name="email" />
<textarea name="body"></textarea>
<input type="submit" />
</form>

then have a process.php that does a query like:

INSERT INTO comments (post_id, email, body) VALUES ($_POST[post_id], $_POST[email], $_POST[body])

I know it's not exactly a walkthrough, but it should give you a good idea of what to do.
 
Reply With Quote
  #4  
Old 02-18-2009, 07:34 PM
only_8s only_8s is offline
Junior Member
 
Join Date: 02-17-09
Posts: 2
iTrader: 0 / 0%
Thanks! The first real answers I've gotten and they're very helpful
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i add a comment section to my website kf9211 Coding Forum 11 09-12-2008 05:11 PM
Having a smoking section in a restaurant Is like having peeing section in a swimming homebizseo Forum Lobby 10 07-24-2008 01:30 AM
Adding comment/shout box to perl web page generator script WinxClub Coding Forum 0 03-22-2007 09:43 AM
Need help adding a reviews section to my sites ijaz_uk Web Design Lobby 1 05-31-2006 12:48 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 07:32 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC