Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: peterwaalker on July 23, 2014, 05:13:22 PM

Title: New Topic Warning or Reminder
Post by: peterwaalker on July 23, 2014, 05:13:22 PM
I need a mod that can remind my forum users that they should abide by the forum rules or anything.
The it has to be box-like.
see exactly what i meas below. Which mod would actually help me to actualize that.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.upload.ee%2Fimage%2F4171681%2Fpostwarning.JPG&hash=84754f4a6e075a3d4a384e7e39329f602ff837cb)
Title: Re: New Topic Warning or Reminder
Post by: margarett on July 23, 2014, 05:15:14 PM
I actually gave the code to do something like that not long ago. If only I could find it... :(

Do you want that in the Post template as you show or throughout the forum?
Title: Re: New Topic Warning or Reminder
Post by: peterwaalker on July 23, 2014, 05:24:26 PM
Quote from: margarett on July 23, 2014, 05:15:14 PM
I actually gave the code to do something like that not long ago. If only I could find it... :(

Do you want that in the Post template as you show or throughout the forum?
In the post template so that it appears whenever users want to reply on topic or open new one
Always thankful.
Title: Re: New Topic Warning or Reminder
Post by: Kindred on July 23, 2014, 05:33:21 PM
there are at least two mods that do something like this...

I think one is called something like "rules on posting"
the other was an ADK mod.
Title: Re: New Topic Warning or Reminder
Post by: margarett on July 23, 2014, 05:45:02 PM
Actually when I was searching for my post about that I found another topic of yours asking the same question :P

Kindred, I only find this
http://custom.simplemachines.org/mods/index.php?mod=2696

And 2 removed from ADK and SSimple
Title: Re: New Topic Warning or Reminder
Post by: Steve on July 23, 2014, 09:42:51 PM
I use this one:

http://custom.simplemachines.org/mods/index.php?mod=163
Title: Re: New Topic Warning or Reminder
Post by: peterwaalker on July 24, 2014, 02:09:32 PM
Quote from: Steve on July 23, 2014, 09:42:51 PM
I use this one:

http://custom.simplemachines.org/mods/index.php?mod=163

Yet it is not exactly what i want. It something like the image i posted above. It only appears in new posts/post reply area.
I saw it on a SMF forum.
Title: Re: New Topic Warning or Reminder
Post by: Arantor on July 24, 2014, 02:18:57 PM
Just because you saw it on an SMF forum doesn't mean it's guaranteed to be available as a ready made mod or even suitable for your site.
Title: Re: New Topic Warning or Reminder
Post by: Steve on July 24, 2014, 03:25:44 PM
Quote from: peterwaalker on July 24, 2014, 02:09:32 PMYet it is not exactly what i want. It something like the image i posted above. It only appears in new posts/post reply area. I saw it on a SMF forum.

Oops, I misunderstood. Sorry about that.
Title: Re: New Topic Warning or Reminder
Post by: margarett on July 25, 2014, 08:07:24 AM
So, finally a computer ;D

Picking up the existing warning box in Post.template.php, find:
// If an error occurred, explain what happened.
Add before:
echo '
<div class="errorbox">
<dl>
<dt>
<strong style="serious">This is a warning</strong>
</dt>
<dt class="error" id="error_list">
<strong>I warned you.<br />Consider yourself warned of the warning you were given.</strong>
</dt>
</dl>
</div>';


And there ya go ;)
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=525572.0;attach=233720;image)
Title: Re: New Topic Warning or Reminder
Post by: peterwaalker on July 25, 2014, 03:57:54 PM
Quote from: margarett on July 25, 2014, 08:07:24 AM
So, finally a computer ;D

Picking up the existing warning box in Post.template.php, find:
// If an error occurred, explain what happened.
Add before:
echo '
<div class="errorbox">
<dl>
<dt>
<strong style="serious">This is a warning</strong>
</dt>
<dt class="error" id="error_list">
<strong>I warned you.<br />Consider yourself warned of the warning you were given.</strong>
</dt>
</dl>
</div>';


And there ya go ;)
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=525572.0;attach=233720;image)

Yes this is what i want. Let me give it shot and report back immediately.
Title: Re: New Topic Warning or Reminder
Post by: Mstcool on July 26, 2014, 04:51:10 AM
I use a mod that does that but I don't remember which mod it was


This might work: http://custom.simplemachines.org/mods/index.php?mod=1484
Title: Re: New Topic Warning or Reminder
Post by: peterwaalker on July 26, 2014, 08:59:04 AM
Quote from: Mstcool on July 26, 2014, 04:51:10 AM
I use a mod that does that but I don't remember which mod it was


This might work: http://custom.simplemachines.org/mods/index.php?mod=1484
All Thanks @Mstcool
This mod worked like charm. It installs flawlessly without problems.


Not forgetting to thank everyone here on this thread who contributed immensely to the development that brought the final solution.
Title: Re: New Topic Warning or Reminder
Post by: Mstcool on July 26, 2014, 09:40:49 PM
Anytime. :)
Title: Re: New Topic Warning or Reminder
Post by: peterwaalker on August 16, 2014, 01:26:58 PM
Hello Sir. I was using this mod till recently i restored database of my forum due hack attempts.
When i tried to Configure it back to initial settings by following Admin-Main-Configuration-Modification settings nothing relevant showed up. So i decided to uninstall the mod so as to reinstall it back afresh but the uninstall test failed completely in all showing red with warning that i should not go ahead with uninstalling of the mod.
Please i enough support. Please break it down i am not expert.
Thank you sir.

Sorry i forgot im using smf2.0.8
Title: Re: New Topic Warning or Reminder
Post by: Biology Forums on August 16, 2014, 02:52:54 PM
This is where tinyportals or simpleportals really comes in handy.

Quote from: Steve on July 23, 2014, 09:42:51 PM
I use this one:

http://custom.simplemachines.org/mods/index.php?mod=163

That's cool too.
Title: Re: New Topic Warning or Reminder
Post by: Mstcool on August 16, 2014, 08:36:26 PM
Quote from: peterwaalker on August 16, 2014, 01:26:58 PM
Hello Sir. I was using this mod till recently i restored database of my forum due hack attempts.
When i tried to Configure it back to initial settings by following Admin-Main-Configuration-Modification settings nothing relevant showed up. So i decided to uninstall the mod so as to reinstall it back afresh but the uninstall test failed completely in all showing red with warning that i should not go ahead with uninstalling of the mod.
Please i enough support. Please break it down i am not expert.
Thank you sir.

Sorry i forgot im using smf2.0.8

When you restore a forum, all mods get uninstalled automatically. So, just uninstall the mod (let it show the warning) and install it again, if there are no errors. The reason I am saying to uninstall it is cuz you just restored a forum, if your forum breaks again, just restore it again.

Nevermind. :p
Title: Re: New Topic Warning or Reminder
Post by: Kindred on August 16, 2014, 09:18:48 PM
Mstcool...

Be careful with those suggestions, because what you are saying and what you mean are two very different things.

Restoring a forum from a backup will NOT remove mods,,, unless the backup was taken before the mods were installed.

Resetting a forum to a clean install, on the other hand, will remove mods which change source code, but will not remove mods with hooks
Title: Re: New Topic Warning or Reminder
Post by: Mstcool on August 16, 2014, 11:47:36 PM
Quote from: Kindred on August 16, 2014, 09:18:48 PM
Mstcool...

Be careful with those suggestions, because what you are saying and what you mean are two very different things.

Restoring a forum from a backup will NOT remove mods,,, unless the backup was taken before the mods were installed.

Resetting a forum to a clean install, on the other hand, will remove mods which change source code, but will not remove mods with hooks

I must be going crazy then! Sorry about that. I haven't done a restore for a while now so I thought that it would. My bad. :p