FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Html help....
Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    The Ville.org Half-Life Gaming Community Forum Index -> Tech Corner
View previous topic :: View next topic  
Author Message
SwEeTLuScIouSGaNjA
Registered User


Joined: 29 Aug 2005
Location: Barrie, On Guild:=USV=
Posts: 511

PostPosted: Wed Aug 16, 2006 9:36 am    Post subject: Html help.... Reply with quote

Hello hello,

Just a question..I want to find html for a comment box, where people could stop by and drop a couple words, without having to be a member of the hosting site. I know it can be done, can anyone help me with this.

Peace

-GaNjA
_________________


Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu-
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SwEeTLuScIouSGaNjA
Registered User


Joined: 29 Aug 2005
Location: Barrie, On Guild:=USV=
Posts: 511

PostPosted: Wed Aug 16, 2006 11:05 am    Post subject: Reply with quote

Here is the code i'm using,but the problem seems to be when entering a comment it doesn't show up on the page..???...

<html>
<head>
<title>Thanks for your comments.</title>
</head>
<body>

<form action="comments.php" method="post">
<center>
<table>

<tr>
<th colspan="2">Leave a comment.</th>
</tr>

<tr>
<td><b>Name:</b></td>
<td><input type="text" name="name" width="5" height="5" wrap="on"></td>
</tr>

<tr>
<td><b>Comments:</b></td>
<td><input type="text" name="comment" wrap="on" overflow="true"></td>
</tr>

<tr>
<td align="center" colspan="2"><input type="submit" value="Submit Comment">
</tr>

</table>
</form>
<p>
<p>
<textarea name="textarea" cols="50" rows="20" wrap="on" readonly="true">

</textarea>
</body>
</html>

Maybe you know of something better??...AHHHHH..im panicing!!

-GaNjA
_________________


Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu-
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Stevo
Ville Supporter
Ville Supporter


Joined: 08 Dec 2002
Location: Orange County Guild: TVR
Posts: 9514

PostPosted: Wed Aug 16, 2006 1:31 pm    Post subject: Reply with quote

I can probably help. Where are the comments supposed to go? And what does comments.php do?
_________________

The Official TVR Website

Fopp
Song of the Week
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
.Nazi.Slaya
Registered User


Joined: 28 Jan 2004
Location: Wisconsin
Posts: 46

PostPosted: Wed Aug 16, 2006 1:58 pm    Post subject: Reply with quote

I know you could just make your text fields and then have the submit box go the the .php file which would then in turn take the data in the text spots and update the page...I'm pretty sure you'd have to do the page in PHP tho....I've used similar coding to have the content emailed to my address.

Dunno if this helps, but the PHP code to email it to you would be this...you might be able to figure something out from looking at this:
Code:
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "EMAILADDRESS";
$mailsubj = "SUBJECT";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
</script>

_________________

[deviantART] [Portfolio] [Able 6]
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
SwEeTLuScIouSGaNjA
Registered User


Joined: 29 Aug 2005
Location: Barrie, On Guild:=USV=
Posts: 511

PostPosted: Wed Aug 16, 2006 2:37 pm    Post subject: Reply with quote

Well basically, I am adding a guestbook to one part of the site. I know there are alot of guestbook scripts,but I'm freakin clueless. I am somewhat a newb at coding. I am also making a comment spot on the main page of the site, this is what we're tackling now.

Stevo.... On the main page of the site, I wanted to place a section where one could leave a comment, even a small blog. Then That comment would just stay on that main page. I dunno if that makes sense or not.

Php is what I thought, but I read somewhere about Cgi...??? does that make sense?

I could definitly use your help...thanks guys

**EDIT**
Nazi, that code left me no where. unless I did it wrong

-GaNjA
_________________


Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu-
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Stevo
Ville Supporter
Ville Supporter


Joined: 08 Dec 2002
Location: Orange County Guild: TVR
Posts: 9514

PostPosted: Wed Aug 16, 2006 2:59 pm    Post subject: Reply with quote

SwEeTLuScIouSGaNjA wrote:
Stevo.... On the main page of the site, I wanted to place a section where one could leave a comment, even a small blog. Then That comment would just stay on that main page. I dunno if that makes sense or not.

Alright, well the first thing you need is a place to store the comments such as a database or flat file. Then you need a script that can send and retrieve the comments.

Maybe you can post the contents of comments.php if it exists.

BTW, here's a list of guestbook scripts that might be useful: http://www.hotscripts.com/PHP/Scripts_and_Programs/Guestbooks/index.html?RID=N303412
_________________

The Official TVR Website

Fopp
Song of the Week
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
SwEeTLuScIouSGaNjA
Registered User


Joined: 29 Aug 2005
Location: Barrie, On Guild:=USV=
Posts: 511

PostPosted: Wed Aug 16, 2006 3:23 pm    Post subject: Reply with quote

Stevo,

There are no comments as of yet. This was kind've the last addition before releasing the site.

I read that a database was better then a flatfile, but anyways..Like I understand the concept of what needs to be done...I just have no clue how to do it. .

-GaNjA
_________________


Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu-
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SwEeTLuScIouSGaNjA
Registered User


Joined: 29 Aug 2005
Location: Barrie, On Guild:=USV=
Posts: 511

PostPosted: Wed Aug 16, 2006 7:57 pm    Post subject: Reply with quote

Stevo...

I need you,I'm starting to panic.lol

-GaNjA
_________________


Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu-
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Stevo
Ville Supporter
Ville Supporter


Joined: 08 Dec 2002
Location: Orange County Guild: TVR
Posts: 9514

PostPosted: Wed Aug 16, 2006 8:15 pm    Post subject: Reply with quote

Sorry, man, I'm still here.

Do you have access to a MySQL database?

I think the best option is to get a pre-made script with features to filter out the comments and a place where you can edit/add/remove comments. That way people can't screw up your layout with HTML or leave unwanted comments.

It sounds like you're looking for a shoutbox/tagboard type of thing.
_________________

The Official TVR Website

Fopp
Song of the Week
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
SwEeTLuScIouSGaNjA
Registered User


Joined: 29 Aug 2005
Location: Barrie, On Guild:=USV=
Posts: 511

PostPosted: Thu Aug 17, 2006 8:01 am    Post subject: Reply with quote

Ya for sure, that would probablt be best stevo. I don't have MySQL database. Your thoughts on finding a pre-made script with those features you said would be the best idea I think to. Where and how could we do such things?

-GaNjA
_________________


Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu-
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Stevo
Ville Supporter
Ville Supporter


Joined: 08 Dec 2002
Location: Orange County Guild: TVR
Posts: 9514

PostPosted: Thu Aug 17, 2006 8:35 am    Post subject: Reply with quote

Here's a good one that can use a flatfile. Let me know if you need help installing it.

https://sourceforge.net/project/showfiles.php?group_id=37880&package_id=30306&release_id=314265
_________________

The Official TVR Website

Fopp
Song of the Week
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
StrontiumDog
Server Admin
Server Admin


Joined: 31 Jan 2006
Location: Chilliwack, BC Guild: <eVa> & V$
Posts: 1115

PostPosted: Thu Aug 17, 2006 8:43 am    Post subject: Reply with quote

Does Ganja have PHP on his web server...?
Where are you putting your HTML, Ganj?
_________________


"Oh Smeg! What the smeg's he smegging done? He's smegging killed me!" Lister, Red Dwarf
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SwEeTLuScIouSGaNjA
Registered User


Joined: 29 Aug 2005
Location: Barrie, On Guild:=USV=
Posts: 511

PostPosted: Thu Aug 17, 2006 8:49 am    Post subject: Reply with quote

alright thanks stevo...I won't know if help is needed until, I can get on my main PC later when I get home. So I will let you know tonight.

I dont think I have PHP on my web server...but I'm not sure.lol.
This HTML is going right on my main page.

I'll update on how she goes once I get on my other PC. Thanks Stevo, much appreciated, ill talk to you later

-GaNj
_________________


Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu-
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Stevo
Ville Supporter
Ville Supporter


Joined: 08 Dec 2002
Location: Orange County Guild: TVR
Posts: 9514

PostPosted: Thu Aug 17, 2006 9:05 am    Post subject: Reply with quote

That script I posted uses PHP, so you might want to make sure it is on your server first.

Where is the site hosted?
_________________

The Official TVR Website

Fopp
Song of the Week
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
SwEeTLuScIouSGaNjA
Registered User


Joined: 29 Aug 2005
Location: Barrie, On Guild:=USV=
Posts: 511

PostPosted: Thu Aug 17, 2006 9:07 am    Post subject: Reply with quote

my hosting site is piczo... ..

-GaNjA
_________________


Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu-
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    The Ville.org Half-Life Gaming Community Forum Index -> Tech Corner All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group