php forum
php mysql forum
php mysql smarty
 
Page 2 of 2 < 1 2
Topic Options
#253621 - 02/08/04 02:42 PM Re: Form for specific forum [Re: sdf123]
oceanwest Offline
Enthusiast

Registered: 04/25/02
Posts: 490
Loc: Escondido, CA
This is all I added to addpost.php<br /><br /><br /> // ----- JoshPet's Mod Template START ---------<br /> $platform = get_input("platform","post");<br /> $version = get_input("version","post");<br /> $fmp = get_input("fmp","post");<br /> <br /> // --- Build Subject & Body ---------<br /><br /> $Body .= "\n\nPlatform: $platform / Version: $version \nFileMaker Version: $fmp\n\n";<br /> <br /> <br /><br /><br />// ----- JoshPet's Mod Template END -----------
_________________________
FM Forums
Largest Online FileMaker Community
http://www.fmforums.com

Top
#253622 - 02/09/04 01:29 AM Re: Form for specific forum [Re: kwalenta]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Didn't see this before. Sorry. <br /><br />No - given that we update here quite frequently, we didn't want a specific table. All the info is stored in the body of the post. The input form just helps it get displayed nicely. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#253623 - 02/15/04 12:12 PM Re: Form for specific forum [Re: Daine]
oceanwest Offline
Enthusiast

Registered: 04/25/02
Posts: 490
Loc: Escondido, CA
What is the difference between $Body .= and $Body = with out the "." When I tried to set this up<br />I got it sort of working but it would post stuff twice... I am not sure how to have a few extra fields end up either at the top of the body or the bottom of the body.<br /><br />Thanks. SD
_________________________
FM Forums
Largest Online FileMaker Community
http://www.fmforums.com

Top
#253624 - 02/15/04 02:25 PM Re: Form for specific forum [Re: sdf123]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
The .= adds to it.<br /><br />So if you have:<br /><br />$Body = "blah blah";<br /><br />Then body is equal to "blah blah"<br /><br />Then below that if I say:<br /><br />$Body .= "this that";<br /><br />The .= adds to it, so now body is equal to:<br /><br />"blah blah this that". <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#253625 - 02/16/04 08:47 PM Re: Form for specific forum [Re: Daine]
oceanwest Offline
Enthusiast

Registered: 04/25/02
Posts: 490
Loc: Escondido, CA
I am still baffled. I added the code to the php and added the form to the template. but<br />when the user posts i get it posted twice. the first time with the data the second time blank.<br /><br />I had to disable as it was adding extra lines to every post.<br /><br />any suggestions.
_________________________
FM Forums
Largest Online FileMaker Community
http://www.fmforums.com

Top
#253626 - 05/12/04 08:57 PM Re: Form for specific forum [Re: sf49rminer]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I've used this for a forum here: http://www.drumlines.org/threads/postlist.php/Board/season <br /> <br />I use it so people can submit a Fantasy Corps while keeping all of their picks in a neat format. As you can see if you visit it, I've used extensive HTML to format the post. This still works even though I have HTML off, since the HTML is not typed in by the user, but rather passed by the script. If anyone needs help with implementing this "mod" on their site, add me to the list of people that can help! <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />Thanks for sharing this with us PetJosh!

Top
#253627 - 05/12/04 09:00 PM Re: Form for specific forum [Re: sdf123]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
[]oceanwest said:<br />I am still baffled. I added the code to the php and added the form to the template. but<br />when the user posts i get it posted twice. the first time with the data the second time blank.<br /><br />I had to disable as it was adding extra lines to every post.<br /><br />any suggestions. [/]<br /><br />I got this same problem. This happens when you have the "preview" box ticked. I removed the preview code from the tmpl file to fix this so users cannot use the feature.

Top
#253628 - 05/12/04 09:40 PM Re: Form for specific forum [Re: eslmix]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Although, I am having problems with replies. They all try to include the original layout using HTML. I only want the first post in a thread to use the layout. Am I missing something?

Top
#253629 - 05/18/04 03:31 PM Re: Form for specific forum [Re: eslmix]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I'll give this graemlin <img src="http://www.ubbdev.com/forum/images/graemlins/bow.gif" alt="" /> to anyone *cough* PJ *cough* that would kindly show me where I went wrong.

Top
#253630 - 05/18/04 07:05 PM Re: Form for specific forum [Re: eslmix]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
Do you use the same form that you created to process the replies?

Top
#253631 - 05/18/04 09:19 PM Re: Form for specific forum [Re: ]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I use the default reply form for all replies. I only use the unique form for new posts. I have implemented a temporary fix by creating seperate newpost, etc. files for the forums, but I would like to have things laid out more efficiently.

Top
#253632 - 05/18/04 10:05 PM Re: Form for specific forum [Re: eslmix]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
If you are using the standard reply form, I don't know why it would try to use the HTML from the original post unless you are quoting the original message?<br /><br />I might misunderstand what's happening though.

Top
#253633 - 05/18/04 11:26 PM Re: Form for specific forum [Re: ]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
It looked like it was still pulling the $body from the formatted part that is called when $board= matches up with the current board. I want to know how to use the formatted "if $board=" part only on new posts and not for subsequent replies.

Top
#253634 - 05/19/04 02:50 AM Re: Form for specific forum [Re: eslmix]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
[]DLWebmaestro said:<br />I'll give this graemlin <img src="http://www.ubbdev.com/forum/images/graemlins/bow.gif" alt="" /> to anyone *cough* PJ *cough* that would kindly show me where I went wrong. [/]<br /><br />This is tough for me to follow - but if you PM me FTP info and a login at your board (maybe I have one) I'll take a glance. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#253635 - 05/19/04 03:28 AM Re: Form for specific forum [Re: sf49rminer]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Actually, I think the problem lies here: <br /> <br />
Code:
 <br />if ($Board == "season"){ <br /> <br />$Subject = "$corps"; <br />$Body = "&lt;ol&gt;&lt;li&gt;$corps&lt;/li&gt;"; <br />$Body .= "&lt;li&gt;$name&lt;/li&gt;"; <br />$Body .= "&lt;li&gt;$postername&lt;/a&gt;&lt;/li&gt;"; <br />$Body .= "&lt;li&gt;$email&lt;/li&gt;"; <br />$Body .= "&lt;li&gt;$location&lt;/li&gt;&lt;/ol&gt;"; <br />} <br />else { <br />	$Body = get_input("Body","post"); <br />
<br /> <br />I've truncated all of the $Body lines for ease of reading. I noticed you have this: <br />
Code:
 <br />&amp;&amp; ($modsubmit == "yes") <br />
<br />as part of your "if" statement. I've tried tying it to the submit button's name in newpost to no avail. Is this what is supposed to be done? I figure there has to be a purpose for this check, but I don't know what you've assigned to $modsubmit and I get the same problem with it in there.

Top
#253636 - 05/19/04 04:09 AM Re: Form for specific forum [Re: eslmix]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Ah - this is so that it only "builds" the post once, otherwise, every time you preview, it gets duplicated.<br /><br />Inside your Special newpost "form", add this BETWEEN the form tags:<br /><br /><input type="hidden" name="modsubmit" value="1" /><br /><br />Then at the top of addpost.php, be sure you have a get_input line for the variable "modsubmit".<br /><br />Then your "if" should look like this:<br /><br /><br />if (($Board == "season") && ($modsubmit)){<br /><br /><br />Now this way - it only does the "building" of the detailed post text, if it's coming from your special form. If it comes from anywhere else (like the privew etc...) $modsubmit will not have a value, and it'll skip over (as your special forwarding is already in place at that point. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />Make sense?
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#253637 - 05/19/04 06:35 AM Re: Form for specific forum [Re: Daine]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Does to me <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#253638 - 05/19/04 04:09 PM Re: Form for specific forum [Re: 234234]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I finally got it working the way it should! <img src="http://www.ubbdev.com/forum/images/graemlins/yay.gif" alt="" /><br /><br />Here ya go Josh! <img src="http://www.ubbdev.com/forum/images/graemlins/bow.gif" alt="" />

Top
#253639 - 03/25/05 08:50 AM Re: Form for specific forum [Re: eslmix]
Gregori Offline
Member

Registered: 09/14/02
Posts: 157
This is a great modification! <br /> <br />I only have two questions. <br /> <br />Is it possible to make some specified, or all, of these new fields mandatory? <br /> <br />How does the navigation links at modindex.php work? <br />


Edited by Gregori (03/25/05 09:04 AM)

Top
#253640 - 04/14/05 02:24 PM Re: Form for specific forum [Re: tubedogg_dup1]
Gregori Offline
Member

Registered: 09/14/02
Posts: 157
Anyone?

Top
Page 2 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