Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2002, 05:23 AM
kira kira is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Reply box on nonVB page?

Hi everyone. This is my first post here so please be gentle. Also, I'm no coding guru by any stretch ... I run a forum but I'm more of a writer/editor/designer than anything else. VB.org has been an amazing resource, and I'm so grateful to you guys for providing it for free!

A little background. I have a site dedicated to my online writing -- it's an original drama series -- and my readers are mostly web newbies who are less experienced even than myself. They tend to be intimidated by anything that looks relatively complex, and I'm afraid the VB seems to freak 'em out.

While they respond avidly through a mail form placed right on the same page as my episodes, for some reason getting them to click on the link to post on my forum seems to be a sticking point. I've added the Quick Reply hack to my threads (here's a sample), which helped a little, but not enough, darnit!

What I'd like is some kind of code that I could use on an html page to create a very simple reply box (associated with a pre-existing thread). I already allow unregistered posts, so I don't require login capability (although it'd be nice for those who are registered). This way the readers could post their feedback in the simple box, press "send," and are automatically redirected to the forum thread.

In short, would it be logistically possible to create a hack to allow posting from a Quick Reply box nonVB page? And if so ... would someone do it for a poor PHP-impaired soul like me?

Thank you all very much again!
Reply With Quote
  #2  
Old 04-15-2002, 08:58 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I read your message 3 times but still couldnt get the practical usage of your request, sorry!

If I am not wrong, your requested HTML page would be a "reply thread" alternative, wouldnt it? And if so your users should click a link while reading a thread, to access that page just like the REPLY button in the original vbulletin code. So what's the difference and point of cancelling the original reply screen and creating an alternative which will do exactly the same feature?

If your only concern is the "complexity" of the reply screen you can simply make it more simple by disabling vbcode or similes or make a template modification and get yourself the simplest reply screen vbulletin history has ever seen!

Doesnt that work?

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

Hi, Logician! Thanks for responding.

Sorry I was confusing. The best way I guess is to show you a sample of what I'm looking for. Here's what I currently have -- it's the final scene of a chapter, and at the very bottom of the page is a feedback form.

So my hope is to exchange the feedback form for a VB reply box, much like the Quick Reply box at the bottom of this thread. No replies would be visible on the page. After filling in the reply and submitting, the reader would be taken to a regular VB thread page.

It's probably not possible, but I'm just hoping that having the VB reply form right on the episode page will spur people to submitting the info. As I mentioned, they fill in these feedback forms all the time -- I'd just like to get them to start posting their comments on the forum, and I think it's that extra clicking that seems to intimidate 'em. If I don't grab my readers the second they finish the episode, they dissipate like salt thrown into the sea.

Does that make any more sense? Probably this would be only useful for me, in which case most likely no one would be interested in creating the hack. But just in case, I'm tossing the idea it out here and crossing my fingers!

Thanks again, Logician.
Reply With Quote
  #4  
Old 04-15-2002, 02:54 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you publish your episodes in vbulletin threads (as thread's first message) or in another non-vb page?

If you publish them in vbulletin threads then message quick reply hack already does what you want: Users are able to send feedback without having to click a button. Just write your thought in a box and click send and you're done...

So what you want seems like just hiding the thread's other replies. By using quick reply box hack and displaying only the thread's first message (ie your writing) you'll get what you want.

Or do you publish them in non-vb pages?
Reply With Quote
  #5  
Old 04-15-2002, 03:13 PM
kira kira is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They're in nonVB html pages, alas. I figured I could have what I want if I converted the site into VBportal or something similar, but I have (gulp) four years' worth of episodes, and the idea of reformatting all that stuff makes me weak in the knees.

I dunno, I could see this hack as having a practical use for article writers who'd like to have an easy way to invite comments on their work.

Assuming my hypothetical hack notion isn't possible, and I use your idea of posting just the last scene of the episode in a VB thread -- would there be any way to have a layout like this:

1. scene text (aka the first post)
2. Quick Reply box
3. replies (in a different format than the scene text)

The replies would need to look different (maybe in a smallfont size, as opposed to normalfont) so that they don't detract from the scene itself. Not as important but also desirable would be to have the Quick Reply box situated between the scene and the replies.

But ideally my hack will be possible. Call me a dreamer!
Reply With Quote
  #6  
Old 04-15-2002, 03:57 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok lets divide the context:

1- YOUR EPISODES ARE IN NON-VB PAGE:

Are you ready to edit your HTML code and insert/update thread id number for all episodes you created or you will create? Your HTML code would require thread id so as to relate replies with a certain thread.

2- EPISODES ARE VB's FIRST MESSAGE:

It seems that having thread's first message different and captivating would do the trick for you. But first decide about the system you want.
Reply With Quote
  #7  
Old 04-15-2002, 04:05 PM
kira kira is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. LOL! I feel like I'm in a Mission Impossible episode.
Yes, I'm definitely ready for that challenge!

2. If above doesn't work, I do agree that having the thread's first message will be a good workaround.

I really appreciate your help, Logician. Thanks for your patience!
Reply With Quote
  #8  
Old 04-15-2002, 04:35 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok then, quick reply's HTML should do the trick for you. Insert this code into all your non-vb relevant pages where your episodes reside:

-- cut --
<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)">
<input type="hidden" name="s" value="">
<input type="hidden" name="action" value="postreply">
<input type="hidden" name="threadid" value="37446">
<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>
<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 --

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

and enter newreply.php's URL like:
<form enctype="multipart/form-data" action="myboard/newreply.php" name="vbform" method="post" onSubmit="return validate(this)">

Edit the line:
<input type="hidden" name="threadid" value="37446">
in all pages and insert the relevant threadid number here.

I've written this in a hurry so could not test it. Holler if it does not work

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

Um, you. are. GODlike.

Holy moly, I never thought I'd be able to get a response so quickly, much less a solution!

Yes, it did indeed work! I tried it in AOL at first and received a javascript error (but it worked anyway); in IE 5.5 it went through without a glitch.

I have two final (I hope) questions, if you don't mind my pushing you.

First Question: I logged out from my forums and returned to the episode page (going "undercover" as an unregistered or unlogged-in reader). The form was exactly the same -- the simple "Post Reply" textfield, with no name/password fields. Now, this may be how this version of the Quick Reply box works; I use the older version (I don't remember whose, I think it was someone with a Slavic name) that automatically provides fields for the username and password when someone isn't logged in.

I was able to post anyway (which is good) but of course the response was listed under the name "Unregistered."

I'd like to provide the usual login field so unregistered people can leave their names too (erasing the automatic "Unregistered" that appears for them). Is it possible to hardcode this, or to provide it for people who aren't cookied/registered?

I can live with having those "Unregistered" posts (I can always instruct people to include their names in the body of the post) but if you can figure out a way for me to provide a name field, I'd be thrilled.

Second Question: also, just for my own curiosity (and in case I'd like to test out the feasibility of your earlier suggestion) ... would it be possible to create the second scenario you mentioned -- posting a scene as a VB thread in which the first post is formatted differently from the rest?
------------------------

Sorry for the extra questions. I am so very, very grateful for your coming to the rescue! If you need any kind of design or copy editing, I'm your girl.
Reply With Quote
  #10  
Old 04-15-2002, 07:37 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by kira
I'd like to provide the usual login field so unregistered people can leave their names too (erasing the automatic "Unregistered" that appears for them). Is it possible to hardcode this, or to provide it for people who aren't cookied/registered?
Registered users (ones who are cookied) will still be able to post with their user names.

For unregistered guests I can provide you another solution, try this:

First replace your HTML code with that:
-- cut --
<form enctype="multipart/form-data" action="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="37446">
<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>
<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>
<tr>
<td bgcolor="#DFDFDF" valign="top" nowrap><font face="verdana, arial, helvetica" size="2" ><b>Your
Name (*):</b></font></td>
<td bgcolor="#DFDFDF">
<input type="text" name="guestname" maxlength="20" size="20">
<br>
<font size="-2" face="Verdana, Arial, Helvetica, sans-serif">*Leave this field
blank, if you are a registered user..</font></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 edit the file "newreply.php". Find this line:
-- cut --
$postusername = htmlspecialchars($username);
}
} else {
$postusername = $bbuserinfo['username'];
-- cut --

AFTER THAT LINE, add:
-- cut --
if ($guestname) {$postusername=substr(strip_tags($guestname),0,20) ;}
else
{$postusername="A Kira Fan";}
-- cut --

This will add the guest's entry as poster name unless she is a registered user! If she is already registered (and loged in!), her registered name will be the poster name regardless of what she entered in the name field. If she is neither registered nor entered her name, her name would be replaced with "A Kira Fan".

I guess this is exactly what you want..

Quote:

Second Question: also, just for my own curiosity (and in case I'd like to test out the feasibility of your earlier suggestion) ... would it be possible to create the second scenario you mentioned -- posting a scene as a VB thread in which the first post is formatted differently from the rest?
------------------------
Well possible but requires some time to think and code.. This is why I asked which one you prefer in the first place LOL..

Quote:

I am so very, very grateful for your coming to the rescue! If you need any kind of design or copy editing, I'm your girl.
Never mind.. I like helping people especially if they are asking very kindly
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 04:18 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04344 seconds
  • Memory Usage 2,283KB
  • Queries Executed 11 (?)
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
  • (3)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete