Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - MOD Approved answer
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MOD Approved answer

 Post Reply Post Reply
Author
AllMor View Drop Down
Groupie
Groupie
Avatar

Joined: 16 April 2010
Location: Denmark
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote AllMor Quote  Post ReplyReply Direct Link To This Post Topic: MOD Approved answer
    Posted: 21 July 2016 at 11:57am

I have made a small change in Web Wiz Forums 'Answer posts' feature.
My need was to create an icon at the top of each post, so the threads author easily can set a post as an answer.

I added a few lines in the file forum_post.asp to do the trick.
 
In this example, my languagefile is Danish, but of course it uses the languagefiles wording and the default icons.

The icon on top of each post looks like this
Translated to English: This post answered my question
 
On an answer-post, it looks like this:

Translated to English: Approved answer.
Click here to remove this tag 
 

A user can only use the function if:
1. It is the logged in user who created the post.
2. It is NOT the users own answer
3. The post not is locked

There can only be one 'approved answer' in one thread.
If the user wants to set another post as answer, then they have to click 'Remove...' before adding it to another post.

This Mod also changes the behavior of the 'Set as / Remove as answer' in the dropdown i the specific post to the same set of rules as above.

Se the mod'ed file (txt file) here http://www.excel-regneark.dk/temp/forum_posts.txt
You can find the modifications by searching the wording "MOD Set post as Answer"
For implementation: Just rename the file to .asp and overwrite the existing forum_post.asp file

Have fun

//Allan


https://forum.excel-regneark.dk
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.