Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Zamtil (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-22-2001 Last Update: Never Installs: 0
 
No support by the author.

Although I'm not quite ready for a release, I thought I'd announce this hack and get some feedback while I'm still in the development stages.

What does it do? Well, take a look first: http://www.noows.com/showthread.php?s=&threadid=1042

It allows you to associate a predefined fill-in-the-blanks form with a forum. Every thread can have form data associated with it, much like every thread can have a poll. Actually, with this hack, every thread can have both!

In my case, I run a small guild/gaming site where players of EverQuest want to display their in-game character information. Many players have multiple characters, etc, which really doesn't make extending the membership profiles easy or practical.

How does it work? ... Create a new thread/post as usual, associate a poll if the user wants. Once submitted, the thread starter or forum moderators, will have access to an 'edit form' button (same style/position as the existing 'new thread'/'post reply' buttons in the header/footer of every thread).

By clicking on the 'edit form' button, the user is presented with a fill in-the-blanks form.

formprefix field gets added to the forum table.

A new table, called {formprefix} gets added to your vBulletin database. (in my case, 'eqchar')

formid field gets added to the thread table.

When the user wants to edit a form, form.php processes form_edit_{eqchar}. For those viewing the thread, showthread.php processes form_show_{eqchar}.

Most of the work with this hack will be customizing the form_edit_ and form_show_ templates, as well as your table. Of course, once released I'd hope others would develop and share templates/table structures to truely make this a plug & play hack.

Your custom table must contain an integer field named 'id'.
After that, fields are labled as followed: text_{yourname}, num_{yourname}, and sel_{yourname}. Text type is self-explanatory. Num type ensures the user entered numeric data, or sets value to 0. Sel type is for drop down box selections. It's just a text field, but some extra processing is done to set the selector ("selected") to the current db value if the form is edited.

These same db field names are used as $formvars[text_{yourname}] within your templates to display the database values.

I'll probably add options for radio buttons and checkboxes. I seriously doubt I'll support binaries, as posts support this just fine.

Sorry for the default theme look, will change eventually. I just migrated from PHP-Nuke - what can PHPNuke do that vBulletin doesn't do better? I'm already looking into writing a SIMPLE home page/weblog for vBulletin. I want one-two files that I can drop in on top of vBulletin and go.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-23-2001, 12:52 AM
Ratorasniki
Guest
 
Posts: n/a
Default

looks very cool.
Reply With Quote
  #3  
Old 06-23-2001, 01:38 AM
\/ash
Guest
 
Posts: n/a
Default

That will be very usefull for a game page.
Reply With Quote
  #4  
Old 06-23-2001, 05:20 AM
chilliboy
Guest
 
Posts: n/a
Default

Nice!
Reply With Quote
  #5  
Old 06-23-2001, 10:13 AM
ToraTora! ToraTora! is offline
 
Join Date: Nov 2001
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think there is other practical uses for this hack as well.
The one thing i grow tired of, is the lack of tabling in the VB threads as far as post responses go. So, if I wanted to add a area for baseball stats, I would basically have to do it in HTML, and link it to the site, in order for it to appear as a valid "chart", and not a jumbled up mess that appears when you try and do it within the forums itself. Top it off with the fact you have to have HTML on in order to clear up these situations if you wish to have it directly in your site, and not a link, its basically a mess waiting to happen.

Although my opinion on your development may not matter, I would like to be the first to encourage you in the finalization of this hack.
I see roughly 5 or 6 uses for this, that could pertain to many, many areas of use for those in the news, stats, games, etc department...its a excellent idea, and when you have fished this hack, I will be waiting in line for it.
Reply With Quote
  #6  
Old 06-23-2001, 12:40 PM
chilliboy
Guest
 
Posts: n/a
Default

Totally Agree ToraTara,

I don't know if this would be possible as I don't know how your coding it, but here is something that I think would be good.

Say you have a 'sports team site' something like this would be really useful for stats on each player, team stats etc etc. Say you or a moderator started the thread, but didn't know a few stats so you would leave these blank. Registered users could, 'fill in the blanks', but before they where submitted to the 'final form' they would have to be verified by the moderator (which you can do through permissions anyway).

Hope you understand the idea - I look forward to seeing it in action.
Reply With Quote
  #7  
Old 06-23-2001, 01:37 PM
ToraTora! ToraTora! is offline
 
Join Date: Nov 2001
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is exactly what was running at our set-up. It was just as a little extra feature, a little update if you will...nothing along the lines of ESPN or anything of that magnitude, but it has turned into a major headache for the guy who is maintainning it for us, and as such, its been sort of dumped on our lap now...lol..
The user that started the project, is basically giving up on it, due to the complete non-freindly tabling, and information interface.
With baseball, just for example, you are constantly changing stats, scores, rain delays...etc...I am glad that at this point, the NBA is done for awhile...lol...

The problem is, that the person taking care of this task, is also HTML illiterate. He had started putting them into the forums, and unfortuantely, as we all know, they wont table up, and he didnt know that. He had sunk in close to three hours lining everything up, and than when he hit submit, and than looked at what he had created, he was a little bit pissed to say the least.

So, i think that this would be a great addition, to a major problem of keeping the viewers of the forums, AT the forums, and not jumping around to other sites looking for info that we could provide at the same level of accuaracy, and than us as administrators can handle the other things, rather than having to go back and enter in all the information, for another members project..lol..

so, yes, the sooner the better...
Reply With Quote
  #8  
Old 06-25-2001, 03:30 PM
chilliboy
Guest
 
Posts: n/a
Default

Just out of interest, I would be interested to know how you do it - just a simplified explanation.

Cheers

PS - The 'search' feature didn't go unnoticed either - very slick!
Reply With Quote
  #9  
Old 06-26-2001, 05:08 AM
sysmom sysmom is offline
 
Join Date: Oct 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm VERY interested in this feature, and would like to add it to a game-based board, too.

I can't get to the example of it, server out to lunch message in my browser, but I will look at it tomorrow.

Are you looking for feedback about it specifically, or just a general "Yes I'm interested" type of response here?

-deb
Reply With Quote
  #10  
Old 06-26-2001, 06:14 AM
Zamtil
Guest
 
Posts: n/a
Default

Quote:
Originally posted by chilliboy

PS - The 'search' feature didn't go unnoticed either - very slick!
The search feature probably wouldn't be part of the hack. I could probably release it, but it'd require 100% customization (it's custom to my table of data). It's not auto-generated like the forms themselves... hmm.

Anyways, got distracted from this hack for a few days, working on a drop-in image gallery, while my guinea-pigs ... er, users ... play with the forms hack and find bugs.

Biggest thing I'm not happy with is the process of filling in a form. You go through the normal new thread/post/poll creation process. Then, when you VIEW the post, you have this button:
appear with the new thread, post reply buttons at the top/bottom of each thread. Initially, I was gonna code it into the new thread creation process: New Thread->Redirect New Poll (if needed)->Redirect New Form, but I REALLY HATE making code changes to the stock PHP files. As is, there's only 2 minor source code changes: showthread.php and admin/forum.php. Everything else is in a new PHP file, new templates, or template edits.

Unless any of my users find a bug tomorrow, I'll put out release on Wednesday and go from there.
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 11:42 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.04587 seconds
  • Memory Usage 2,279KB
  • Queries Executed 23 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete