#253622 - 02/09/0401:29 AMRe: Form for specific forum
[Re: kwalenta]
JoshPet
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="" />
#253623 - 02/15/0412:12 PMRe: Form for specific forum
[Re: Daine]
oceanwest
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
#253624 - 02/15/0402:25 PMRe: Form for specific forum
[Re: sdf123]
JoshPet
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="" />
#253625 - 02/16/0408:47 PMRe: Form for specific forum
[Re: Daine]
oceanwest
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
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!
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.
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?
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.
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.
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.
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.
#253634 - 05/19/0402:50 AMRe: Form for specific forum
[Re: eslmix]
JoshPet
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="" />
<br /> <br />I've truncated all of the $Body lines for ease of reading. I noticed you have this: <br />
Code:
<br />&& ($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.
#253636 - 05/19/0404:09 AMRe: Form for specific forum
[Re: eslmix]
JoshPet
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?
#253637 - 05/19/0406:35 AMRe: Form for specific forum
[Re: Daine]
scroungr
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.
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="" />
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 />