Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #11  
Old 04-15-2002, 11:30 PM
kira kira is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. )

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?
Reply With Quote
  #12  
Old 04-16-2002, 05:50 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #13  
Old 04-16-2002, 11:09 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow great stuff Logican...

This was a really good idea...

Satan
Reply With Quote
  #14  
Old 04-16-2002, 07:34 PM
kira kira is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Satan! (Wow, I never thought I'd be saying that! ) 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! )

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.
Reply With Quote
  #15  
Old 04-16-2002, 07:51 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 04-16-2002, 08:02 PM
kira kira is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #17  
Old 04-16-2002, 08:12 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 04-18-2003, 07:37 PM
Highlander Highlander is offline
 
Join Date: Apr 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools
Display Modes

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 07:48 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.04285 seconds
  • Memory Usage 2,250KB
  • 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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete