The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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
|
Comments |
#22
|
|||
|
|||
Quote:
All the custom data is stored in your OWN table called (formprefix). I then use code like you used above to convert database fields into PHP variables. I've had a couple variations on this code, and the original did what you're suggesting - pack the data. But, on my site, I wrote a custom search engine for filtering/displaying the custom table. It can't be searched by vBulletin, but it's still a pretty clean interface, IMHO. My search: http://www.noows.com/eqprofiles.php Bit of SQL for custom table: CREATE TABLE eqchar ( id int(11) NOT NULL auto_increment, text_name varchar(60) NOT NULL default '', sel_server varchar(30) NOT NULL default '', text_guild varchar(100) default '', sel_religion varchar(20) default '', num_level smallint(8) default '0', sel_class varchar(15) NOT NULL default '', sel_race varchar(15) NOT NULL default '', sel_sex varchar(8) default '', num_hp int(11) NOT NULL default '0', num_ac int(11) NOT NULL default '0', num_atk int(11) NOT NULL default '0', The text_, sel_, and num_ prefixes determine how I handle/display/basic error check the data. 'eqchar' is my formprefix for forumid 84 & 69. Every thread in those forums then references an 'id' in the 'eqchar' table. Clear as mud? =) |
#23
|
|||
|
|||
Sounds and I look forward to it.
|
#24
|
|||
|
|||
Very Very Cool Zamtil.
Just One question, when can we get our hands on this? |
#25
|
|||
|
|||
Any word on this release yet....I'm very anxious.
|
#26
|
|||
|
|||
Heyas Zamtil...just wanted to check in with you to see if you had decided on releasing this one bro. Great work
|
#27
|
|||
|
|||
Hey bro, release this already, it works like a champ on your site.
|
#28
|
|||
|
|||
any news? would love to see this released
:water |
#29
|
|||
|
|||
Zamtil,
This is exactly the thread Ive been looking for. I also have an EQ guild site, and am VERY interested in this hack. Can you please share this hack? If so, Id be very grateful. Venti The Honorable Few ~Veeshan www.thehonorablefew.com/forums Venti@thehonorablefew.com |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|