php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#253601 - 07/12/03 11:17 PM Form for specific forum
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
This is probably asking a lot but I figure it's worth a shot. I noticed that you have a form under the Modifacations forum, that would be really handy for a specific forum I have and I figure I could tweak it to what I need. Any chance of sharing that with us? (that is unless I missed it on here already).

Top
#253602 - 07/12/03 11:53 PM Re: Form for specific forum [Re: BlarC]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
It's nothing that I ever really "wrote up" as it's so customized it'd be tough to post it as a mod.... and it was nothing that I really wanted to "support". However, it is easy to do.<br /><br />Basically in the newpost.php & newreply.php script where it calls the .tmpl file - you add a clause so that if ($Board == "modifications") {<br />Then it calls a different template as well.<br />Like this:<br />
Code:
<br />		if ($Board == "modifications") {<br />		   	include("$thispath/templates/$tempstyle/newpostmod.tmpl");<br />		} else {<br />	   	include("$thispath/templates/$tempstyle/newpost.tmpl");<br />		}<br />
<br /><br />Then in addpost.php - I had to add some code near the top. Since our modification posting page basically builds a formatted subject and body - you need to use some code to build the subject & body however you want.<br /><br />This is what I have near the top of the addpost.php file:<br />
Code:
<br />// ----- JoshPet's Mod Template START ---------<br />	$modname = get_input("modname","post");<br />	$moddesc = get_input("moddesc","post");<br />	$v60 = get_input("60","post");<br />	$v61 = get_input("61","post");<br />	$v62 = get_input("62","post");<br />	$v63 = get_input("63","post");<br />	$prerequisites = get_input("prerequisites","post");<br />	$author = get_input("author","post");<br />	$date = get_input("date","post");<br />	$credits = get_input("credits","post");<br />	$filesaltered = get_input("filesaltered","post");<br />	$databasealter = get_input("databasealter","post");<br />	$instructions = get_input("instructions","post");<br />	$status = get_input("status","post");<br />	$newfiles = get_input("newfiles","post");<br />	$modsubmit = get_input("modsubmit","post");<br /><br />if (($Board == "modifications") &amp;&amp; ($modsubmit == "yes")) {<br /><br />  // --- Let's display the checked version numbers right --<br />  	if (($v60) &amp;&amp; (($v61) || ($v62) || ($v63))) {<br />  		$version = $v60."-";<br />  	}	<br /><br />  	if (($v61) &amp;&amp; (($v62) || ($v63))) {<br />  		$version .= $v61."-";<br />  	} else {<br />  		$version .= $v61;<br />  	}	<br /><br />  	if (($v62) &amp;&amp; ($v63)) {<br />  		$version .= $v62."-";<br />  	} else {<br />  		$version .= $v62;<br />  	}<br />  	<br />  	if ($v63) {<br />  		$version .= $v63;<br />  	}<br />  	<br />  	if (!$version) {<br />  		$version = "$v60$v61$v62$v63";<br />  	}			<br />  <br /><br />  // --- Build Subject &amp; Body ---------<br />	$Subject = "$status-[$version] $modname";<br />	$Body = "[b]Mod Name / Version:[/b] $modname \n\n";<br />	$Body .= "[b]Description:[/b] $moddesc \n\n";<br />	$Body .= "[b]Working Under:[/b] UBB.Threads $version \n\n";<br />	$Body .= "[b]Mod Status:[/b] $status \n\n";<br />	$Body .= "[b]Any pre-requisites:[/b] $prerequisites \n\n";<br />	$Body .= "[b]Author(s):[/b] $author \n\n";<br />	$Body .= "[b]Date:[/b] $date \n\n";<br />	$Body .= "[b]Credits:[/b] $credits \n\n";<br />	$Body .= "[b]Files Altered:[/b] $filesaltered \n\n";<br />	$Body .= "[b]New Files:[/b] $newfiles \n\n";<br />	$Body .= "[b]Database Altered:[/b] $databasealter \n\n";<br />	$Body .= "[b]Info/Instructions:[/b] $instructions \n\n";<br />	$Body .= "[i]Disclaimer: Please backup every file that you intend to modify. \n";<br />	$Body .= "If the modification modifies the database, it's a good idea to backup your database before doing so. \n\n";<br />	$Body .= "Note: If you modify your UBB.Threads code, you may be giving up your right for \"official\" support from Infopop.";<br />	$Body .= "If you need official support, you'll need to restore unmodified files. [/i] \n\n";<br />}<br />// ----- JoshPet's Mod Template END -----------<br />
<br /><br />That's not real specific - as it's tough to explain this like a generic mod - but hopefully it's enough to get you goin in the right direction. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#253603 - 07/13/03 12:19 AM Re: Form for specific forum [Re: Daine]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Thanks Josh, that should be enough for me to get something going. I also understand not wanting to support it as it has to be specific to your needs, if it gives me too much of a problem I will scratch it. I just think it's a neat idea.

Top
#253604 - 07/13/03 06:31 PM Re: Form for specific forum [Re: BlarC]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
If you really want to beef this modification up you can add one field in the w3t_Boards table U_Specific TINYINT(1) DEFAULT '0'<br /><br />What this would do is have all the boards to 0. Then you can edir the scripts that create and edit boards to populate this field. I believe the names are editboard.php, doeditboard.php, createboard.php and something else... but you will be able to find them easily. Changing the screen of the edit/create boards in the admin area you can have a combo box which will set the value for this field. Hence you can have:<br /><br />0 - Default<br />1 - Modifications 6.3<br />2 - Modifications 6.2<br /><br />etc.<br /><br />Then you change Josh's instructions and you check for the U_Specific field's values instead of the board keyword. This makes the script a lot more flexible and less prone to typing errors. Mapping every choice to a template gives you what is needed.
_________________________
Nikos

Top
#253605 - 07/19/03 02:00 AM Re: Form for specific forum [Re: Hal_dup2]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
Well, after seeing this thread, I decided to follow up on my dream of creating a unique form within a forum on my board.<br /><br />With the information posted here by both Josh and dimopoulos, I've managed to succeed in my dream! <img src="/forum/images/graemlins/grin.gif" alt="" /><br /><br />Thanks to ericgtr for bringing this topic up, and to Josh and dimopoulos for showing me how it could be done! <br /><br />My board is small, and designed for members of my gaming guild and other guilds/friends who might be interested, but the form I created will help streamline the application process to our guild on our EverQuest chapter.<br /><br />If this works out for our EQ chapter, I will be creating the same thing for our chapters on other games. Would be really easy, now that I have a template to work from. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />If folks were interested, I MIGHT be able to post what I did and how I did it. But keep in mind that I've also integrated a guild roster into my forum as well, so part of my form utilizes that. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />If you want to take a look, pop by my site at http://forum.sofguild.com, login as test/test, then go to the EQ Membership Applications forum and click post. You'll be able to see the form.<br /><br />Unfortunately, I can't let you see the results, except in a screen shot, as the forum that the application is posted to, is a hidden forum for guild officers only.<br /><br />Sorry to get so long winded. <img src="/forum/images/graemlins/tongue.gif" alt="" /> I'm pretty proud of myself over this and just wanted to share. LOL<br /><br />So anyways, here's the results of a submitted application via the form.<br /><br /> New Application in hidden Forum <br /><br /> Viewing the new application <br /><br />Again, big props to you guys for the help. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I'll answer any questions folks have as best I can, just let me know!<br /><br />Zack

Top
#253606 - 07/19/03 02:52 AM Re: Form for specific forum [Re: ]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
This is a neat modification that can have many different applications. Kudos to all involved!

Top
#253607 - 09/15/03 06:55 PM Re: Form for specific forum [Re: eslmix]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
Ok, im bookmarking this thread. Im going to add this to the gaming site as soon as i get the upgrade. This script owns....
_________________________
DrChaos
LeetGamers

Top
#253608 - 12/30/03 08:29 PM Re: Form for specific forum [Re: Duck]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
Sorry to dig up an old thread but I was wondering if this mod was ever put up for download. This would be great for my board.... and I think Im ready to work on it
_________________________
DrChaos
LeetGamers

Top
#253609 - 12/30/03 09:33 PM Re: Form for specific forum [Re: Duck]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Well this was never wrote up as a mod as it would have to be tailored to each exact site so there would be no way to make it a mod as Josh stated. However he stated above how to do it <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> There is enough information posted above to get you going.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#253610 - 01/01/04 06:26 PM Re: Form for specific forum [Re: sf49rminer]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
Ill try it out. I would like to get it working like he has it on his site. That is really a nice hack. Takes alot of work out of the entire process....
_________________________
DrChaos
LeetGamers

Top
#253611 - 01/01/04 06:44 PM Re: Form for specific forum [Re: Duck]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Like who has on what site.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#253612 - 01/02/04 07:11 AM Re: Form for specific forum [Re: sf49rminer]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
[]If folks were interested, I MIGHT be able to post what I did and how I did it. But keep in mind that I've also integrated a guild roster into my forum as well, so part of my form utilizes that. <br /> <br />If you want to take a look, pop by my site at http://forum.sofguild.com, login as test/test, then go to the EQ Membership Applications forum and click post. You'll be able to see the form. <br /> <br />Unfortunately, I can't let you see the results, except in a screen shot, as the forum that the application is posted to, is a hidden forum for guild officers only. <br /> <br />Sorry to get so long winded. I'm pretty proud of myself over this and just wanted to share. LOL <br />[/] <br /> <br />Zacary: about 7 posts up. <br /> <br />(the quote mod that dispplays the name when quoting seems to not be working.)


Edited by DrChaos (01/02/04 07:13 AM)
_________________________
DrChaos
LeetGamers

Top
#253613 - 01/02/04 09:11 AM Re: Form for specific forum [Re: Duck]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Okay well for what he did which was only add a few fields to the newpost form you do not need Josh's modification. That is overkill.<br /><br />Have you filled out the extra fields? You can use them in the new post screen etc. Might as well do minor coding instead of major coding <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#253614 - 01/02/04 02:46 PM Re: Form for specific forum [Re: sf49rminer]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
I like the way its layed out. You can log in and see the active mambers, then click on their name to see their rank and some info, then you can click on the name there and get their entire stats. I dont know how he pulls the stats to keep it updated but it is a sweet layout. <br /><br />What I am tring to get done is use the layout he has but have different info. I want to be able to host tournament (like a 10 man 1v1 double elimination) I have the brackets but they are in html. Im still working on getting them to work inside josh's generic page mod. When the tourney is over I can go in and enter the information and you could use this layout to see the results for each person, download a re-play of the game, read the commentary, see various info. there are endless possibilities. I was just seeing if he ever wrote it out and add it to the mods. <br />You can see that after a few tourneys you will be able to see the stats for any one person, for all the tourneys they played in and tell if they are good or not. they have something like this as a mod for phpnuke but I am having a heck of a time getting it transferred and to work. Since it was coded to work with phpnuke, some things certainly will not work.<br /><br />If I ever get it the way I want it to Ill be sure to add it to the mod section.
_________________________
DrChaos
LeetGamers

Top
#253615 - 01/02/04 02:50 PM Re: Form for specific forum [Re: Duck]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Well what I was getting at is using the extra fields built into Threads you can save alot of coding. You can use those to add the fields you want and they can be included on the registration signup and the when viewing profiles. You have 4 extra fields
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#253616 - 01/02/04 03:39 PM Re: Form for specific forum [Re: sf49rminer]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
ya, in the pofile. there is more slots for info.<br /><br />But the way it is set up there is controlled by the admin or mods (assuming) If I just open the slots and put the question as, "tournaments won by member" they could just put 4, 10, 15 or whatever and even change it every day.<br /><br />Question: (probably asked by me before) <br />If I take the generic page mod and simply paste the full html code between the tags where it says, the links should stay as they are and link to the pages that I set, correct.
_________________________
DrChaos
LeetGamers

Top
#253617 - 01/02/04 06:21 PM Re: Form for specific forum [Re: Duck]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
Omegatron is right. I have my guild members roster integrated into my threads so I have extra fields there.<br /><br />Most of what is shown on the form though is directly from Threads, i.e. the link to the "sponsor's" profile.<br /><br />I'd go into detail as to why I haven't done a write up yet, or why the other mods I've done haven't been updated (let alone my upgrade to 6.4 <img src="http://www.ubbdev.com/forum/images/graemlins/tongue.gif" alt="" />) but, ya'll think I was lying to ya. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /><br /><br />Let's just say, I'm living in a soap opera it seems...<br /><br />Complete with cheating husbands (not me), abusive fiancee's (also not me), and a pregnant wife (yes mine <img src="http://www.ubbdev.com/forum/images/graemlins/grin.gif" alt="" />). <br /><br />ANYWAY, drop me a PM DrChaos and let me know what you need help with regarding setting up this type of form or whatever, I'll give help where I can. As has been stated, a generic write up for this type of thing wouldn't be easy as everyone's forms are basically customized.<br /><br />But I check here a couple times a day still and can chat with ya to assist where I am able. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />PS. Sorry for the long winded blah blah folks. I'll go be quiet now. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />

Top
#253618 - 01/02/04 07:23 PM Re: Form for specific forum [Re: ]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
Congrats on the baby <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> (lol, sorry for the rest)<br /> IM tring out a couple of things. Ill keep you posted in some pm's. easier for you to get them quicker <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
DrChaos
LeetGamers

Top
#253619 - 01/04/04 11:05 AM Re: Form for specific forum [Re: Duck]
chillin Offline
Journeyman

Registered: 01/26/03
Posts: 127
Loc: bend, OR USA
Josh, the corresponding Modindex page... do you actually take certain bits of each form and dump to a seperate table? I'm trying to figure out how you accomplished this page, and that was my first guess.<br /><br />tia<br />chillin
_________________________
i see threads people
http://www.chinooktc.com

Top
#253620 - 02/08/04 02:41 PM Re: Form for specific forum [Re: kwalenta]
oceanwest Offline
Enthusiast

Registered: 04/25/02
Posts: 490
Loc: Escondido, CA
Ok i added this for all new posts but for some reason when I hit submit it puts the code in twice w/out any data...<br /><br /><br />Body text<br /><br />Platform: xxx / Version: yyy <br />FileMaker Version: zzz<br /><br />Platform: / Version: <br />FileMaker Version:
_________________________
FM Forums
Largest Online FileMaker Community
http://www.fmforums.com

Top
Page 1 of 2 1 2 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks