Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2008, 01:05 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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>
Reply With Quote
  #2  
Old 09-26-2008, 10:18 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 09-26-2008, 12:03 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 09-26-2008, 02:01 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 09-27-2008, 12:22 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 09-27-2008, 02:17 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 09-27-2008, 03:18 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


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


All times are GMT. The time now is 02:51 AM.


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.03927 seconds
  • Memory Usage 2,214KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete