FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 9 users online :: 0 Registered, 0 Hidden and 9 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

[REQUEST] Advertisement form

View previous topic View next topic Go down

Anonymous
Guest
Guest

PostGuest Fri 23 Dec 2016, 08:55

Hey!

I've got a request. We 'd like to have a sort of form for people to be able to do some advertising in a forum (selling stuff, garage sales, etc.).

So we need a button (both in the normal reply as well as the quick reply) to be added to the sceditor and a form to complete. I was thinking about the postcards style, where people can insert a picture or a video to show their item and next to it a couple of fields with information like,

Description:
Contact name:
Phone:
E-mail:
Price:

Fields shouldn't be mandatory of course and people should be able to easily delete the advert if they're not satisfied with it and start over again. Who can help me create such a thing? I've got no experience whatsoever in doing so.
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12253
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Fri 23 Dec 2016, 11:50

Something similar to this, but in a button on the editor, right ?
Anonymous
Guest
Guest

PostGuest Fri 23 Dec 2016, 12:01

Ange Tuteur wrote:Something similar to this, but in a button on the editor, right ?

Yeah, in a way it's a smart table, but styled like the postcards. The avatars in the postcards, well in this case, replace them with the pics of the items to be sold the members can upload (hovering over it should enable a member to upload a pic, or just add a link to enable the option), and then the info next to the pic. Wink

I've got no idea how to approach this and I've got totally no experience & idea how to complete this. Perhaps you can write something up for me pls? ty Crazy Dance
Anonymous
Guest
Guest

PostGuest Mon 26 Dec 2016, 20:54

@Ange Tuteur: I found this on the ESF:

http://help.forumotion.com/t131789-add-a-form-on-creation-of-a-new-topic#884013

which basically covers my request. I've got 2 questions about the tuto though:

- How to add multiple forums in the script?

The script says to use this code for a forum:

Code:
        $(function() {
            if (location.pathname == '/post' && location.search == '?f=FORUM_ID&mode=newtopic') {
              $('#text_editor_textarea').val('FORM');
            }
        });

to add multiple forums, should I do something like this?

Code:
        $(function() {
            if (location.pathname == '/post' && location.search == '?f=FORUM_ID1&mode=newtopic' || location.search == '?f=FORUM_ID2&mode=newtopic' || location.search == '?f=FORUM_ID3&mode=newtopic') {
              $('#text_editor_textarea').val('FORM');
            }
        });

- And, to be able to add a picture, it would be nice to have an 'Add Picture' button in one of the text areas in this script:

Code:
        $(function() {
            if (location.pathname == '/post' && location.search == '?f=1&mode=newtopic') {
              $('#text_editor_textarea').val('[b]Add a picture[/b]:<picturebuttongoeshere>\n[b]Field 1[/b]:\n[b]Field 2[/b]: Don\'t fill this field in\n[b]Field 3[/b]:');
            }
        });
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum