Uutiset:

Join the Facebook Fan Page.

Main Menu
Advertisement:

Adding code to SMF

Aloittaja MadMick, kesäkuu 09, 2019, 11:27:29 IP

« edellinen - seuraava »

MadMick

Hi Guys,

Not been on much lately as our SMF 2.0.15 is rock solid and runs like a dream, so thanks to all the members that made that happen.

I do have a request to be thought on though, please move this if its in the wrong section too :).

We have a fairly busy classifieds section on our forum, and with the amount of people joining and the older lazy members, the classifieds section gets fairly messy and the mods have started hammering it to keep is friendly and usable for all. We do have a "for Sale" template (posted below) that we would like to be put into every new post that gets put into the For Sale section. Just the original post and not replies, most replies get ****** canned anyway because we have basically banned that to keep the section clean, its worked so so, but there are still many people that refuse to comply and so in the end they are locked out of the classifieds section, and so of course they then go and post their sook story all over the forum  :-\

So, we created an easy template that the members have been asked to use, but many say they can't work out how to copy/paste and then fill it in, when you see it, you too will roll your eyes in disbelief lol. Anyway, so what we would love, is for this template to be auto inserted into any for sale post in the classifieds section. I have had a quick look and play, but this is light years above my pay grade :)

[color=blue][i]Item:[/i][/color]
[color=blue][i]Price:[/i][/color]
[url=http://www.australianhunting.net/index.php?topic=65.msg197214#msg197214][i][u]AHN Condition:[/u][/i][/url]
[color=blue][i]Serial number:[/i][/color]
[color=blue][i]License Number:[/i][/color]
[color=blue][i]Transfer Through:[/i][/color]

[color=blue][i]Description:[/i][/color]
[color=blue][i]Images:[/i][/color]


Looks like this when posted

Item: Husqvarna Carl Gustav Rifle, 270, including Leupold VXII 3-9 scope
Price: AU$1500.00
AHN Condition: Excellent
Serial number: 123456
License Number: 654321
Transfer Through: Any firearms dealer, they will then take care of sending the firearm interstate or wherever requested

Description: Great deer hunting rifle, not too heavy for carrying up and down hills all day, shoots very well and only had a max of 400 rounds through it.
Images: as seen below



And this is what it should looke like when they fill it out, most of the things we ask for are requirements of the Australian Firearms Registry and also the Police, they are very tough on selling firearms privately and in fact you can't do it without the transfer is done via a firearms dealer or Police officer, that's a whole other subject that can be discussed in another topic .
Regards,

Mick.

AHN Moderators - Can explain it to you, but they can't understand it for you"

br360

This mod should do what you are looking for- https://custom.simplemachines.org/mods/index.php?mod=2233

You can create new pre-filled templates that when clicked, will fill the content of that template into any new topic of a specific board (or boards) you choose.

MadMick

Lainaus käyttäjältä: br360 - kesäkuu 10, 2019, 01:11:24 AP
This mod should do what you are looking for- https://custom.simplemachines.org/mods/index.php?mod=2233

You can create new pre-filled templates that when clicked, will fill the content of that template into any new topic of a specific board (or boards) you choose.

Thanks so much for your reply, I'll try it out and let you know how it goes :)

Cheers mate,

Mick
Regards,

Mick.

AHN Moderators - Can explain it to you, but they can't understand it for you"

MadMick

#3
Lainaus käyttäjältä: br360 - kesäkuu 10, 2019, 01:11:24 AP
This mod should do what you are looking for- https://custom.simplemachines.org/mods/index.php?mod=2233

You can create new pre-filled templates that when clicked, will fill the content of that template into any new topic of a specific board (or boards) you choose.

Ok, so I installed it and that went fine. I have chosen GlobalMods as the only ones to be able to use it while I test it, obviously the admin will be able to use it yes? anyway, it doesn't appear to be working, what its done is remove all the emoticons from the post window and there is no option anywhere to click on another new drop down menu to choose the text I needed?

I'll take a couple of screen grabs and show you what I mean, stand by

Ok, edit to add images;

Firstly with the boilerplate box unticked in the Bolierplate section of the Posts and Topics section


Secondly with the boilerplace box ticked in the boilerplate section of the Posts and Topics section


And finally the boilerplate option section


Any ideas?
Regards,

Mick.

AHN Moderators - Can explain it to you, but they can't understand it for you"

Kindred

Support for specific mods should be requested in the thread dedicated to that mod.
https://www.simplemachines.org/community/index.php?topic=345030.0
it sounds like you had a bad install that conflicted with the existing editor window.... or you have a javascript conflict. (both will result in the described problem) -- please follow up in the mod support thread.


however...   the custom forms mod might be better suited to classifieds...
https://custom.simplemachines.org/mods/index.php?mod=1279
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

landyvlad

Lainaus käyttäjältä: Kindred - kesäkuu 10, 2019, 07:25:00 AP
Support for specific mods should be requested in the thread dedicated to that mod.
https://www.simplemachines.org/community/index.php?topic=345030.0
except that in this case the author of that mopd hasn't logged on since 2015, so that will be problematic.

Lainaus käyttäjältä: Kindred - kesäkuu 10, 2019, 07:25:00 AP
however...   the custom forms mod might be better suited to classifieds...
https://custom.simplemachines.org/mods/index.php?mod=1279

That looks promising. Give that a crack Mick.

"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Kindred

Lainaus käyttäjältä: landyvlad - kesäkuu 11, 2019, 08:29:42 IP
Lainaus käyttäjältä: Kindred - kesäkuu 10, 2019, 07:25:00 AP
Support for specific mods should be requested in the thread dedicated to that mod.
https://www.simplemachines.org/community/index.php?topic=345030.0
except that in this case the author of that mopd hasn't logged on since 2015, so that will be problematic.

Which doesn't actually matter or change the rule....
(and users other than the author may respond in that support thread)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

landyvlad

Lainaus käyttäjältä: Kindred - kesäkuu 12, 2019, 06:57:36 AP
(and users other than the author may respond in that support thread)


Good point.
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Advertisement: