Custom Form Mod

Started by live627, July 09, 2008, 10:24:44 PM

Previous topic - Next topic

Garou

Ah you are trying to upgrade Rudolph's old mod?

Adding the table in to the Custom Form Mod probably isn't going to do you any good. This mod and a few others that create their own posts like say the RSS feeder mod aren't designed to post a topic description since its not a standard SMF function.

Essentially you would need to adjust the post function of your mod so that if something is posted without data for the description, it would work just like if someone created a post and left the description blank. That would make it work with any mod that creates its own post and not just this one. I would think that would be in the script someplace and not the DB.

Darnell5

Love the mod, In the next verion i have a request. could you add an attachment box option so you can add attachments. I use this for a report a hacker/abuse in game servers and it would be awesome if the reporter could upload .dem files. or any other files pictures/zip/rar. have these file types be choosable though so you can specify what can be uploaded.

Thank you for this awesome mod man.

Also if it is already possible to add an attachment to a form could someone tell me how i would do that.

bros

Quote from: Garou on July 14, 2009, 06:52:52 AM
Ah you are trying to upgrade Rudolph's old mod?

Adding the table in to the Custom Form Mod probably isn't going to do you any good. This mod and a few others that create their own posts like say the RSS feeder mod aren't designed to post a topic description since its not a standard SMF function.

Essentially you would need to adjust the post function of your mod so that if something is posted without data for the description, it would work just like if someone created a post and left the description blank. That would make it work with any mod that creates its own post and not just this one. I would think that would be in the script someplace and not the DB.

How unusual. It works perfectly fine when someone doesn't put a description when creating a topic.

Garou

Darnell5, attachments have been asked for many times is on the to do list but no promises on when or if it can happen.

bros I don't know what else to tell you, but based on your description of the problem that's what it sounds like.

When the form mod enters something in its own DB its during the creation of the form. It doesn't store any data in its own DB table during posting, all info is passed into SMF's post function and stored in the smf_messages table just like any other post, that is also where your descriptions should be stored. Is it possible that you are storing them in a different table?

bros

Quote from: Garou on July 15, 2009, 10:46:30 AM
Darnell5, attachments have been asked for many times is on the to do list but no promises on when or if it can happen.

bros I don't know what else to tell you, but based on your description of the problem that's what it sounds like.

When the form mod enters something in its own DB its during the creation of the form. It doesn't store any data in its own DB table during posting, all info is passed into SMF's post function and stored in the smf_messages table just like any other post, that is also where your descriptions should be stored. Is it possible that you are storing them in a different table?

Hmm..

It stores descriptions in smf_messages.

Jyohan

Hi I'm running 1.1.8 and every time I submit and application it just says "Invalid request variable." i put the board in as 1 then I put 1.0 like the URL says but regardless nothing has worked change it any suggestions?

Garou

Do you still have a board 1? It may have gotten deleted at some point. There are instructions if you click the [?] next to the Board ID field that tell you how to find the ID for your boards.

Jyohan

Quote from: Garou on July 17, 2009, 10:21:25 PM
Do you still have a board 1? It may have gotten deleted at some point. There are instructions if you click the [?] next to the Board ID field that tell you how to find the ID for your boards.

I just checked and yes its still listed as board 1.
hxxp:thehighguard.ofthefunk.com/forum/index.php?board=1.0 [nonactive]

bros

Could it be as simple as adding a Description field to the custom form mod where it also puts stuff into the description field?

Like where you specify the title of the topic, you could also specify a description.

Jyohan

I figured out the problem it apparently doesn't like the title of form fields to be numbers (I had to change 1 to one etc.)

Garou

bros, that could fix it if you would want to got to that trouble and for your site only . I wouldn't release a mod like that though. There has to be a better fix for it but Id have to see all the code you use for your mod and even then I couldn't make any promises that I could find the fix.

Jyohan, that is very odd. You must be running a mod that causes that problem and stores the board id as a string rather then integer. In any case that should be irrelevant as the next version of this mod will use a dropdown list of your boards rather then making you track down the Board ID. I already have the feature coded into both the 1.x and 2.x version of the mod on my test site, there's just a couple more features I want to finish before I release it.

nathan42100

Quick question, can this mod make a post to a forum that a regular user cannot access (aka for support purposes so that confidential info won't be revealed)

C4G-TK

Yes, it can post into a board that the user and others can't see.  However, it will redirect the person to an error page, since normally it would bring the person to the actual post.  Since the person doesn't have access to where the post/form is posted, the error page shows.  So, you need to inform them via the form that this will happen.

But, it is possible and the form does actually post.

-img removed-

Ginnas

I just downloaded this and tried to install it to my forum, after uploading it successfully when I go to "Apply Mod" I get the following error.

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Is this due to the fact that this mod is currently incompatible with version 1.1.10 or is something going wrong with the zip file?

thanks in advance for any response.

Garou

#654
The truth is I'm not sure. I haven't had time to check what was changed between 1.1.9 and 1.1.10. In theory it should work except the mod is incompatible with anything before 1.1.4 and in the decimal system .10 is the same as .1, so your server is thinking that you are trying to install it on 1.1.1 rather then 1.1.10. That is a mistake in SMF's naming of their versions, they should have named it 1.2 to be mathematically correct or 1.1.11 to follow their current naming structure.

You can either do a manual install using the instructions for version 1.4 of the mod on 1.1.8 that was the last official 1.1.x version the mod was compatible with however it would also install and run on 1.1.9. The other option is to open up the zip file and change the package-info.xml
Change...
<install for="1.1.4 - 1.1.99">
and
<uninstall for="1.1.4 - 1.1.99">
to
<install for="1.1.1 - 1.1.99">
and
<uninstall for="1.1.1 - 1.1.99">

As long as none of the code that they changed effects the mod it should install just fine, otherwise you will have to wait for the next update for the mod, which I'm hoping to have it done in the next few weeks depending on how much time life offline allows me to work on it.  :-\

Ginnas

Thank you Garou! that worked beautifully.

tokenn

Thank you for developers, I really love this mod.

However, please someone help me modify the code to link index.php?action=form;id=1 -> when clicking the "New Topic" in corresponding Board(ID).

I knew that this feature will be put in near future, but I really can't wait the new version to have this integration.

Thanks in advance & Cheers.

Garou

tokenn, This has been asked for many times and is on the to do list. That said, again, I haven't figured out how to do it yet with out breaking the forums altogether. If I could wave a magic wand and make it work along with everything else everyone "needs" the mod to do I would. Sort of that its going to be a while till I get it figured out and there will probably be several releases long before that as there are many features other people want that I already know how to code. Its just a matter of time and knowledge but the best I can promise is someday.

willerby

Quote from: Garou on July 13, 2009, 05:50:23 PM
Bros, you will need to manually remove the two cf databases in smf. If you have data in them that you want to use back them up first.

Then install the mod and drop the databases back in. If you dont want to use the old info and want to start fresh then you do not need to install the old DBs.

As for your database not being up to date that has nothing to do with the mod. Look for the thread about upgrading to 2.0 rc1-1 elswhere in this forum.

I have this problem too on reinstall using RC1.2

Could you take me through step by step what I need to do to avoid losing existing forms and data. Not sure how to back up data in just two tables and how to 'drop' the data back in. Sorry

Thanks

W

nathan42100

Quote from: C4G-TK on July 22, 2009, 11:47:45 PM
Yes, it can post into a board that the user and others can't see.  However, it will redirect the person to an error page, since normally it would bring the person to the actual post.  Since the person doesn't have access to where the post/form is posted, the error page shows.  So, you need to inform them via the form that this will happen.

But, it is possible and the form does actually post.
In /subs/CustomAction.php change line 233 to redirectexit(<put your stuff here>);

that will redirect users when they submit the form to http://myforum.com/index.php?<put your stuff here>

What I did was I installed the custom action mod and had it redirect to action=thanks. Note, <put your stuff here> needs to be in quotes.

Advertisement: