Latest topics
» Recent Topic with Avatar problem
by Wolfuryo Today at 08:27

» Nicknames for @Mentions
by jucarese Today at 08:24

» FM Themes
by SLGray Yesterday at 21:48

» User - Made Creations
by SLGray Yesterday at 21:47

» Modify Category Tabs lead to a desired position and auto scroll click
by djblah Yesterday at 19:19

» [Bug] Missing username in Notifications
by Ape Yesterday at 17:44

» Dark Mode + Another Question
by Haggis Wed 16 Aug 2017, 18:11

» IconSkouliki
by skouliki Wed 16 Aug 2017, 14:52

» make the topic a color
by mr.blake214 Wed 16 Aug 2017, 12:06

» Forum text has changed to bold
by tillytiger99 Wed 16 Aug 2017, 05:02

» Request a Username Change
by mr.blake214 Wed 16 Aug 2017, 01:30

» Display a preview of the user profile on hover
by HoeGy48 Tue 15 Aug 2017, 16:51

» Hai Guys~
by mr.blake214 Tue 15 Aug 2017, 13:48

» Forumactif Messenger - Instant Message Application for Forumotion
by DDril Tue 15 Aug 2017, 10:25

» Donation Box
by Ange Tuteur Tue 15 Aug 2017, 09:59

Recent Tutorials
Who is online?
In total there are 6 users online :: 1 Registered, 0 Hidden and 5 Guests :: 1 Bot

snows

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

[REQUEST] Advertisement form

View previous topic View next topic Go down

avatar
Guest
Guest
View all awards

PostGuest on 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.
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4675
Points : 9685
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Fri 23 Dec 2016, 11:50

Something similar to this, but in a button on the editor, right ?
avatar
Guest
Guest
View all awards

PostGuest on 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
avatar
Guest
Guest
View all awards

PostGuest on 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]:');
            }
        });

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