The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I am trying to add a comment area & Added comments below or above that, using coding from vbulletin.
I can get the text area to show, but can't submit a comment to show on same page. Below is the code I am using. Will someone point me in the right direction to get this to work? Code:
<table class="tborder" cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td valign="top" class="thead"> Write Comment: </td> </tr> <tr> <td class="alt1"> <div align="center"><form action="javascript:get(document.getElementById('myform'));" name="myform" id="myform"> <textarea rows="3" cols="50" id="mytextarea1"></textarea> <br> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="button" name="button" value="Submit your Comment" onclick="javascript:get(this.parentNode);"> <input type="reset" value="Delete"> </form> </div> </td> </tr> </table> |
#2
|
|||
|
|||
![]()
What script is supposed to process the values entered? All i see now is that you call a JS-script onsubmit. I doubt this will process the data.
|
#3
|
||||
|
||||
![]()
That is my question.
I want to add this to a custom page & allow commenting to be posted on same page. The code above is a simple HTML comment box. What would I need to do to get this to work on a page? This is what I am looking for. http://www.vbulletin.com/forum/album...pictureid=2960 |
#4
|
|||
|
|||
![]()
You will need a script that receive the values entered, process them, optionally store them. And your main page will first need to check if a value is already stored and retrieve it.
PS Sorry about the vague answer, but your question is like: i don't know any webprogramming can someone show me how to create a full application? The question is too vague. |
#5
|
||||
|
||||
![]() Quote:
right direction to make what I am trying to make. As for web programming, I know little of it, I am a copy & paste king. I thought this forum was for vbulletin members to discuss vb mods & to help one another if possible. I have searched for a few days to get what I want before I ask for help. My question is too vague? I thought it was dead on the money. If anyone else could help me out without criticizing my web programing abilities, I would greatly appreciate it. |
#6
|
|||
|
|||
![]()
Well i really don't know where to start.
You will need to set the form action to a php-script. This script should accept all values and write them to the database. The script showing the page will need to be adjusted to retrieve the previously stored data and show it on the page. |
#7
|
||||
|
||||
![]()
You might try googling for a tutorial on processing a form.
Is this going to be a standalone page for comments or are you trying to incorporate it into another vb page? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|