vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Adding text areas (https://vborg.vbsupport.ru/showthread.php?t=191817)

blind-eddie 09-25-2008 01:05 AM

Adding text areas
 
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>


Marco van Herwaarden 09-26-2008 10:18 AM

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.

blind-eddie 09-26-2008 12:03 PM

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

Marco van Herwaarden 09-26-2008 02:01 PM

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.

blind-eddie 09-27-2008 12:22 PM

Quote:

i don't know any webprogramming can someone show me how to create a full application?
lmao, I am not asking anyone to write anything. I am asking someone to point me in the
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.

Marco van Herwaarden 09-27-2008 02:17 PM

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.

Lynne 09-27-2008 03:18 PM

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?


All times are GMT. The time now is 01:22 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01755 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete