vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Reply box on nonVB page? (https://vborg.vbsupport.ru/showthread.php?t=37446)

kira 04-15-2002 10:30 PM

Hi, Logician! :)

Thanks again for your hard work. Actually, the change wasn't a happy one, unfortunately. While I was in the middle of typing out a test post, I saw that someone had already posted a new msg elsewhere on my forum -- someone who was logged in -- and while the correct username showed up in the thread posting, the "last post by" on the forum homepage was listed as "A Kira Fan"! LOL. Kinda funny, actually.

(I was going to change "A Kira Fan" to something else once I got the thing working ... I'm not THAT egotistical. :D)

So here's a probably silly thought -- can I log out and, using the HTML from a regular new reply page, copy the login fields, adding it to the original version of the form you created? Or is this too simple?

Logician 04-16-2002 04:50 AM

ok got it:

First delete the change you made in newreply.php (convert it back to original) and use this HTML form in your episode pages:

-- cut --
<form enctype="multipart/form-data" action="/yourforum/newreply.php" name="vbform" method="post">
<input type="hidden" name="s" value="">
<input type="hidden" name="action" value="postreply">
<input type="hidden" name="threadid" value="3">
<input type="hidden" name="title" value="">
<input type="hidden" name="iconid" value="0">
<input type="hidden" name="parseurl" value="yes">
<input type="hidden" name="email" value="">
<input type="hidden" name="disablesmilies" value="">
<input type="hidden" name="signature" value="yes">
<input type="hidden" name="closethread" value="">
<input type="hidden" name="hiddenreply" value="">
<input type="hidden" name="signature" value="yes">
<input type="hidden" name="rating" value="0">

<table cellpadding="0" cellspacing="0" border="0" bgcolor="#555576" width="100%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr>
<td bgcolor="#8080A6" colspan="2"><font face="verdana, arial, helvetica" size="2" color="#EEEEFF" class="thtcolor"><b>Post
Reply</b></font></td>
</tr>
<tr valign="top">
<td bgcolor="#DFDFDF"><font face="verdana, arial, helvetica" size="2" ><b>Your User Name:</b></font></td>
<td bgcolor="#DFDFDF"><font face="verdana, arial, helvetica" size="2" ><input type="text" class="bginput" name="username" value="A Kira Fan" size="25">
&nbsp;&nbsp;</font>
<font face="verdana,arial,helvetica" size="1" ><a href="register.php?action=signup">Want to register?</a>
</font></td>
</tr>
<tr valign="top">
<td bgcolor="#F1F1F1"><font face="verdana, arial, helvetica" size="2" ><b>Your Password:</b></font></td>
<td bgcolor="#F1F1F1"><font face="verdana, arial, helvetica" size="2" ><input type="password" class="bginput" name="password" value="" size="25">
&nbsp;&nbsp;</font>
<font face="verdana,arial,helvetica" size="1" ><a href="member.php?action=lostpw">Forgotten your password?</a>
</font></td>
</tr>

<tr>
<td bgcolor="#DFDFDF" valign="top" nowrap><font face="verdana, arial, helvetica" size="2" ><b>Your
Reply:</b></font></td>
<td bgcolor="#DFDFDF">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td>
<textarea name="message" rows="7" cols="70" wrap="virtual" tabindex="1"></textarea>
<br>
<font face="verdana,arial,helvetica" size="1" ></font></td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr></table>

<br>

<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td align="center"><font face="verdana, arial, helvetica" size="2" >
<input type="submit" class="bginput" name="submit" value="Submit Reply" accesskey="s" tabindex="2">
</font></td>
</tr>
</table>

</form>

-- cut --

Now your registered users can post with their usernames and passwords, while unregistered users (who should leave the password field blank!) can post with any name unless this name is already registered! Registered users are not suppose to be a "Kira Fan" any more! ;)

Hope this helps..

Chris M 04-16-2002 10:09 AM

Wow great stuff Logican...

This was a really good idea...

Satan

kira 04-16-2002 06:34 PM

Thanks, Satan! (Wow, I never thought I'd be saying that! :D) I hope the idea might come in handy for someone else. Logician's made a pipedream come true. I really didn't think this was gonna be possible.

Logician ... WOW! This is amazing! It works perfectly. :)

Two teensy final questions:

a) I noticed that the "signature" hidden input field is repeated twice. Is that required?

b) Also, I see there's been a change in the FORM action since the original code you created. The original was:

<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)">

and now you're recommending simply:

<form enctype="multipart/form-data" action="/yourforum/newreply.php" name="vbform" method="post">

So I just wanted to confirm that this is okay.

All in all, I couldn't be happier with your wonderful help, Logician! If anyone wants to see the final result, you can visit this episode page and scroll down to see the form. (Please don't submit it, though! :D)

As you'll see, I made a few cosmetic tweaks to match the look of my site and guide their comments a little, and also removed the "want to register" link -- they can register later if they want. :) Finally, I added a touch of javascript to clear the username field if the reader clicks on it (like the search box here on vb.org). Note: This scene is a little sexy (this web series is similar to a nighttime soap) so don't click if you're offended by PG material.

I'm so grateful for all your help, and hope one day I'll be able to return the favor for someone in your honor. :)

Chris M 04-16-2002 06:51 PM

Hey...

I read your story thingy...

I signed up at your forums earlier, but havent recieved a Confirmation email yet...

And I think they are meant to be repeated...php is like that...

Satan

kira 04-16-2002 07:02 PM

Cool, I thought that was you! :) Hm, I'm not sure why you didn't get sent the email at your hotmail address. Well, I just sent out your password again, so hopefully this will get to you. Sorry for the inconvenience, and thanks so much for registering!

Logician 04-16-2002 07:12 PM

Hey there,
Quote:

Originally posted by kira
a) I noticed that the "signature" hidden input field is repeated twice. Is that required?

nope not required, ignore one pls.

Quote:


b) Also, I see there's been a change in the FORM action since the original code you created. The original was:

<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)">

So I just wanted to confirm that this is okay.

if it's working then it's ok.. j/k :)

In fact I tried to get rid of the java script error you recieved with AOL so removed that part intentionally. I hope it worked?

Quote:


As you'll see, I made a few cosmetic tweaks to match the look of my site and guide their comments a little, and also removed the "want to register" link -- they can register later if they want. :) Finally, I added a touch of javascript to clear the username field if the reader clicks on it (like the search box here on vb.org).

nice look, nice tweaks.. ;)

Quote:


I'm so grateful for all your help, and hope one day I'll be able to return the favor for someone in your honor. :)

yw and deal.. :)

Regards,
Logician

Highlander 04-18-2003 06:37 PM

hi there,

i got a problem like kira..but instead of posts on nonvb pages to an already created thread.. i try the last days to.. create an thread if someone is posting on a review.. or maybe if the review is written..a thread is created to diskuss..
here is a samplke of that PHP-Form that creates an review..but how to create an thread with this replay box if a discussion is being started..so i dont have to create twice..first a thread..than my review.. and the user creates an thread if he is beginning siscussing the review.. maybe got an idea.. but for me the vb code is to high to understand..im really happy that i created this php form :)

Example..for reviews creating:

here is sample of that form:
http://www.spielplanet2.de/forum/gam...panel_user.php

this form creates an review in my database..so is not pretty..but useful.. :) ..


All times are GMT. The time now is 12:03 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.04525 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete