PDA

View Full Version : New Posting Features - New Thread/Post Reminder Message


MarkFL
10-25-2016, 09:00 PM
Overview:

This product allows you to define a message that can be displayed above the ckeditor anywhere new posts are created and edited. We know our users read our carefully constructed rules about as carefully as people read instruction manuals in general. This product can be used to display a message or even list of reminders for proper posting conduct on our sites, which will make it more likely that your users are actually aware of what is allowed and expected when posting.

You may select the forums in which this product is active and the active areas in those forum from showing it only when new threads are created to everywhere new posts are created/edited. You may select certain usergroups to be exempt from seeing the message, and for those users set to see the message, you may decide to stop showing the message once they reach a certain post count, or have started a certain number of threads. You may decide whether the message element is collapsible or not and you may set a maximum height for the message element in case you message takes up a lot of vertical space and you don't want it taking up too much space on your pages.

New Thread/New Reply (Advanced)/Edit Post (Advanced):

https://vborg.vbsupport.ru/attachment.php?attachmentid=155422&stc=1&d=1477452408

Quick Reply:

https://vborg.vbsupport.ru/attachment.php?attachmentid=155423&stc=1&d=1477452408

Quick Edit:

https://vborg.vbsupport.ru/attachment.php?attachmentid=155424&stc=1&d=1477452408

Updates:

Version 1.1:


Updated query for thread count to only include the active forums.


Version 1.2:


Declared $foruminfo array global in plugins that render custom template.


Version 1.3:


Now allows for different messages/titles to be displayed in different forums.


For example, if you edit your message to read:

BEGINFORUMIDS 2,3,4 ENDFORUMIDSMessage 1...BEGINFORUMIDS 5,6,7 ENDFORUMIDSMessage 2...

Then (given that forums with forumids 2-7 are in the "Active Forums"), forums with a forum id of 2, 3 or 4 will display "Message 1..." and forums with a forumid of 4, 6 or 7 will display "Message 2..."

Messages may be stacked as well, that is you can define a message that appears in all forum messages, and then have additional messages that are specific to certain forums that will get added to any previous messages that apply to the forum.

For example, if you edit your message to read:

BEGINFORUMIDS 2,3,4,5,6,7 ENDFORUMIDSMessage 1...BEGINFORUMIDS 2,3,4 ENDFORUMIDSMessage 2...BEGINFORUMIDS 5,6,7 ENDFORUMIDSMessage 3...

Then (given that forums with forumids 2-7 are in the "Active Forums"), forums with a forum id of 2, 3 or 4 will display "Message 1...Message 2..." and forums with a forumid of 4, 6 or 7 will display "Message 1...Message 3..."

The stacked messages will appear in the order in which they are defined.

Block titles work the same way.

Version 1.4:


Added setting for header CSS.
Added setting for content CSS.


Version 1.4.1:


Resolved issue with activity stream.


Compatibility:

Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:


Download and extract the attached .zip file.
Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
Click "Import."
You MUST enable the product in the settings before it will function.
Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.


https://vborg.vbsupport.ru/attachment.php?attachmentid=155421&stc=1&d=1477452408

Support for this product can be found here:


MHB - New Thread/Post Reminder Message (http://mathhelpboards.com/vbulletin-products-61/new-thread-post-reminder-message-21782.html)
TAZ - New Thread/Post Reminder Message (https://theadminzone.com/threads/new-thread-post-reminder-message.145009/)

Stratis
10-26-2016, 04:01 AM
I had my own code in all templates for each skin.
Now with this mod all is easy and clean.


Tested in vb4.2.0 & vb4.2.3
Works fine as all tests i could make.


Thank you very much. :)

MarkFL
10-26-2016, 04:07 AM
I had my own code in all templates for each skin.
Now with this mod all is easy and clean.


Tested in vb4.2.0 & vb4.2.3
Works fine as all tests i could make.


Thank you very much. :)

Thank you for letting me and others know it works with vB 4.2.0...I tested on vB 4.2.1-4.2.3, but don't have vB 4.2.0 to test. :)

MarkFL
10-26-2016, 04:40 AM
Sorry for such a quick update, but I realized when counting new threads for a user, only those threads started in the product's active forums should be counted. :o

Update - Version 1.1:


Updated query for thread count to only include the active forums.

Sforums
10-26-2016, 05:06 AM
Not compatible with 4.1?

Stratis
10-26-2016, 05:57 AM
Not compatible with 4.1?


Compatibility:
Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.

Thank you for letting me and others know it works with vB 4.2.0...I tested on vB 4.2.1-4.2.3, but don't have vB 4.2.0 to test. :)

Sorry for answering, but needed to be tested.

MarkFL
10-26-2016, 04:35 PM
Not compatible with 4.1?

I don't have vB 4.1.x with which to test, and so I don't know whether it will work with those versions or not. In order for me to be more specific about which version are compatible, I depend on those with versions to which I don't have access to let me know if it works on their version or not. :)

scottkoz20
10-27-2016, 05:31 PM
Mark -

Would I be able to modify the checklist to suit my sites needs?

Scott

MarkFL
10-27-2016, 05:56 PM
Mark -

Would I be able to modify the checklist to suit my sites needs?


Scott

Yes, there are links in the settings to modify the title of the block and the contents of the block. You can use whatever you like there, and if you want help using HTML to make it look exactly like you want, let me know and I will be glad to assist. :)

Alan_SP
10-27-2016, 05:58 PM
In what way you want to edit it?

scottkoz20
10-27-2016, 08:42 PM
Yes, there are links in the settings to modify the title of the block and the contents of the block. You can use whatever you like there, and if you want help using HTML to make it look exactly like you want, let me know and I will be glad to assist. :)

Thank you sir -

will evaluate tonight

Bulent Tekcan
10-28-2016, 04:46 AM
Intersting..My forum 4.2.3 product active but I didn't see message box anywhere

MarkFL
10-28-2016, 04:50 AM
Did you select the active forums/areas?

Bulent Tekcan
10-28-2016, 05:02 AM
Did you select the active forums/areas?

Selected ALL forums. But also tested one test forum.

MarkFL
10-28-2016, 05:11 AM
Selected ALL forums. But also tested one test forum.

What did you select under "Active Areas?"

Bulent Tekcan
10-28-2016, 05:14 AM
What did you select under "Active Areas?"

All box is selected,but tested one by one also. I installed my completely empty and %100 original 4.2.3 test forum result is same. Any problem with php 5.6.x ?

MarkFL
10-28-2016, 05:22 AM
There shouldn't be any issues with that PHP version that I know of.

Are you certain you have not exempted a usergroup to which you belong?

If not and if you wish, please PM me the login credentials for an admin account and I will come investigate. :)

MarkFL
10-28-2016, 06:12 AM
Okay, the issue at Bulent's site was that the variable $foruminfo needed to be declared global in the two plugins that render the custom message template.

If/when I publish an upgrade to this product, I will include this in the update unless others report this same issue before then and if so, I will publish an update for this issue by itself.

Bulent Tekcan
10-28-2016, 06:52 AM
Okay, the issue at Bulent's site was that the variable $foruminfo needed to be declared global in the two plugins that render the custom message template.

If/when I publish an upgrade to this product, I will include this in the update unless others report this same issue before then and if so, I will publish an update for this issue by itself.

Thanks so much again from here :)

scottkoz20
10-28-2016, 10:01 AM
hey Mark - I am seeing the same issue on my dev site that Bulent was having

where is the $foruminfo variable?

MarkFL
10-28-2016, 02:12 PM
Update - Version 1.2:


Declared $foruminfo array global in plugins that render custom template.

scottkoz20
10-28-2016, 03:01 PM
thanks Mark - makes it easier

Stratis
11-10-2016, 08:16 PM
Mark I have an issue with the update v1.2, I will try to describe it...


In the Activity stream, all threads posts shows - redirect to the same forum.
Code at thread phrase is:
<a href="{1}" class="username">{2}</a> started a thread <a href="{3}">{4}</a> in <a href="{5}">{6}</a>


This <a href="{5}">{6}</a>
always shows, example: Mydomain/forumdisplay.php?7
--------------------------------------------------------------------------
Same with posts
<a href="{1}">{2}</a> replied to a thread <a href="{3}">{4}</a> in <a href="{5}">{6}</a>




This <a href="{5}">{6}</a> shows the same forumdisplay as above.


When I put OFF the modification does not fix, only fixes when disable from Plugins & Products

Maybe I did not manage to describe well, sorry for my bad English. :)

MarkFL
11-11-2016, 12:07 AM
Hello Stratis,

This product doesn't do anything with the activity stream. None of the sites on which I have installed this have had the activity stream affected at all from what I can tell. :)

Stratis
11-11-2016, 07:03 AM
Maybe so for you and others :)

For me what I did:
I uninstalled v1.2 and installed v1.1 All works fine.
To test I installed again v1.2 and voila problem came up again.
Return now to 1.1 and I am staying here. Just have it in mind.
Probably something happens only to my forum.


Thanks Mark

MarkFL
11-11-2016, 06:26 PM
Thank you Stratis, for the information...I appreciate it. I guess declaring $foruminfo as global in this product's plugins is interfering with your Activity Stream somehow. :)

Stratis
11-12-2016, 05:22 AM
Yes, actually yesterday I found wich piece of code makes the problem to me.

Plugin "Add Message To Quick Edit (If Applicable)"
This on top ( global $vbulletin, $foruminfo; )

Deleting $foruminfo like this ( global $vbulletin; ) problem does not exists, but I did not leave v1.2 because I do not know if excepting it having other issues.


:)

MarkFL
11-12-2016, 05:25 AM
That's the only difference between v1.1 and v1.2, and I only added it because it wouldn't work for Scott without it, and adding it didn't cause me any issues on several sites. :)

unrealbaz27
11-18-2016, 09:11 AM
Love this addon and thanks buddy.
Is there anyway thoe...we can set different text for different parts of forum?

example..ive added this as thread format rules for requests,,,,but would be great to have different text and assign to our troubleshhoting area etc

MarkFL
11-19-2016, 05:56 AM
Love this addon and thanks buddy.
Is there anyway thoe...we can set different text for different parts of forum?

example..ive added this as thread format rules for requests,,,,but would be great to have different text and assign to our troubleshhoting area etc

I will certainly consider that for a future update. :)

MarkFL
11-23-2016, 02:28 AM
Update - Version 1.3:


Now allows for different messages/titles to be displayed in different forums.


For example, if you edit your message to read:

BEGINFORUMIDS 2,3,4 ENDFORUMIDSMessage 1...BEGINFORUMIDS 5,6,7 ENDFORUMIDSMessage 2...

Then (given that forums with forumids 2-7 are in the "Active Forums"), forums with a forum id of 2, 3 or 4 will display "Message 1..." and forums with a forumid of 4, 6 or 7 will display "Message 2..."

Messages may be stacked as well, that is you can define a message that appears in all forum messages, and then have additional messages that are specific to certain forums that will get added to any previous messages that apply to the forum.

For example, if you edit your message to read:

BEGINFORUMIDS 2,3,4,5,6,7 ENDFORUMIDSMessage 1...BEGINFORUMIDS 2,3,4 ENDFORUMIDSMessage 2...BEGINFORUMIDS 5,6,7 ENDFORUMIDSMessage 3...

Then (given that forums with forumids 2-7 are in the "Active Forums"), forums with a forum id of 2, 3 or 4 will display "Message 1...Message 2..." and forums with a forumid of 4, 6 or 7 will display "Message 1...Message 3..."

The stacked messages will appear in the order in which they are defined.

Block titles work the same way.

Stratis
12-03-2016, 06:14 PM
The stacked messages will appear in the order in which they are defined.

Block titles work the same way.


If I do not make any mistake?
I see this line of Block titles, when forumids is only in messages field and not in titles.

https://vborg.vbsupport.ru/attachment.php?attachmentid=155521&stc=1&d=1480795706


I see this line of Block titles, when forumids is not in messages field and not in titles.

https://vborg.vbsupport.ru/attachment.php?attachmentid=155522&stc=1&d=1480795706


:)

MarkFL
12-04-2016, 07:49 AM
Hmm...when I have no forumids in neither the "Reminder Message Block Title" nor the "Reminder Message Content" I still see the title as expected.

What do you have for the two phrases?

Stratis
12-04-2016, 08:47 AM
Hmm...when I have no forumids in neither the "Reminder Message Block Title" nor the "Reminder Message Content" I still see the title as expected.
Why you must see the title if there is no forumids in both messages?
Probably some thing I do not get it :D

Hmm...when I have no forumids in neither the "Reminder Message Block Title" nor the "Reminder Message Content" I still see the title as expected.

What do you have for the two phrases?
I try many combinations, its not one to write it

Test i made just now:

No forumids no title, blank as default
I see this in all selected Active forums by the mod.
155523

If i put forumids in title, i see the above image only in the forumids i have put, it is as supposed to be.
But i see this image in all other selected Active forums by the mod,
155524
;)


So, if there is forumids in title. I must not see this image to all other forums that are sellected but there ids are not in the field of titles
155524

:)


Just remind that i work this as it is here (https://vborg.vbsupport.ru/showpost.php?p=2578122&postcount=27)

MarkFL
12-04-2016, 09:05 AM
If you want a block title to show up, you either have to have a block title for all active forums (that is, without forumids in the phrase), or you have to have a title defined for all the active forums by using forumids in the phrase.

jagtpf
02-06-2017, 09:05 AM
Installed , Thanks Mark .

4.2.3 Cand 1 .

Can only view the Block Title ( which I have edited ) .

Cannot view Message Content which is , currently , un-edited ...


BEGINFORUMIDS 2,10 ENDFORUMIDS<div style="margin-top: 10px;">To get the absolute best help you can from <div title="Math Help Boards" style="display: inline-block; border-bottom: 1px dotted #000; cursor: help">MHB</div>, please go through this checklist:</div>
<ul>
<li>Have you chosen the subforum best suited to your question? (If unsure, please report your post after posting.)</li>
<li>Have you shown the nature (at least one level more specific than the subforum name) of your question in your question's title?</li>
<li>Have you posted your entire question in the post itself?</li>
<li>Have you shown what work you've already done on the problem, and exactly where you're stuck? (It's perfectly fine not to know how to start, in which case please tell us that!)</li>
<li>Have you kept your new question to at most two problems?</li>
</ul>
BEGINFORUMIDS 15,18,19 ENDFORUMIDS
Just have fun!!


Settings :
Active
One Staff Forum ( to test )
Active - New Threads only
None - Exempt usergroups
Count - New Threads
Threshold - 0
Collapsible - No
Max Height - 0

MarkFL
02-06-2017, 09:25 AM
You need to edit the phrase "markfl_newthreadmessage" so that it pertains to your site. :)

jagtpf
02-06-2017, 11:06 AM
You need to edit the phrase "markfl_newthreadmessage" so that it pertains to your site. :)

Exactly what my brain was telling me as I walked the dogs after lunch . And it now works .

Apologies Mark .....:o

MarkFL
02-06-2017, 03:15 PM
Exactly what my brain was telling me as I walked the dogs after lunch . And it now works .

Apologies Mark .....:o

No worries! :up:

jagtpf
02-20-2017, 07:32 AM
Something in this mod is affecting the Activity Stream . I've narrowed the issue down to this particular mod .

Default Activity Stream provides detail entries such as

20-02-2017, 08:47 AM
Username started a thread blah blah blah blah in Subforum

I've discovered that with the mod enabled we get

20-02-2017, 08:47 AM
Username started a thread blah blah blah blah in

( relevant phrase in vB "x_started_a_thread_y_in_z"

<a href="{1}" class="username">{2}</a> started a thread {4} <a href="{3}">{5}</a> in <a href="{6}">{7}</a> )

Can you help Mark - thanks in antic ...

MarkFL
02-20-2017, 12:23 PM
Something in this mod is affecting the Activity Stream . I've narrowed the issue down to this particular mod .

Default Activity Stream provides detail entries such as

20-02-2017, 08:47 AM
Username started a thread blah blah blah blah in Subforum

I've discovered that with the mod enabled we get

20-02-2017, 08:47 AM
Username started a thread blah blah blah blah in

( relevant phrase in vB "x_started_a_thread_y_in_z"

<a href="{1}" class="username">{2}</a> started a thread {4} <a href="{3}">{5}</a> in <a href="{6}">{7}</a> )

Can you help Mark - thanks in antic ...

I have this product running on my local dev site and a live production site, with no effect on the activity stream. I would need to come to your site to investigate. Please PM me the login credentials to an admin account, including a link to your site. :)

gajinoz
02-22-2017, 03:01 AM
It's in and working, nice mod. Two things that I'd like to be able to do though, perhaps you can tell me if they're possible and how to do them.

1. Change the background colours of the heading and text boxes.
2. Insert hyperlinks into the text box.

Other than that, I'm happy with it. :up:

MarkFL
02-22-2017, 03:39 AM
It's in and working, nice mod. Two things that I'd like to be able to do though, perhaps you can tell me if they're possible and how to do them.

1. Change the background colours of the heading and text boxes.

Update - Version 1.4:


Added setting for header CSS.
Added setting for content CSS.


2. Insert hyperlinks into the text box.

Other than that, I'm happy with it. :up:

You may use HTML in the content, so just enter the appropriate anchor tag there. :)

jagtpf
02-22-2017, 08:48 AM
I have this product running on my local dev site and a live production site, with no effect on the activity stream. I would need to come to your site to investigate. Please PM me the login credentials to an admin account, including a link to your site. :)

Hi Mark ,

Did you discover anything ?

MarkFL
02-22-2017, 02:01 PM
Hi Mark ,

Did you discover anything ?

I logged on to your site using the credentials you provided, and I see no issues with your activity stream. :confused:

jagtpf
02-22-2017, 02:03 PM
I logged on to your site using the credentials you provided, and I see no issues with your activity stream. :confused:

Could be because the product was disabled :D

MarkFL
02-22-2017, 02:09 PM
Could be because the product was disabled :D

I checked the Product Manager and the product settings, and it was fully enabled.

jagtpf
02-22-2017, 02:14 PM
Just now ? I noticed you on board - I've enabled it after seeing your previous ^^^^ Activity stream is showing lack of Sub-Forum .

jagtpf
02-22-2017, 02:16 PM
Just checked using MS Edge to see if it's a browser issue - and it's the same as with Firefox .

MarkFL
02-22-2017, 02:24 PM
Just checked using MS Edge to see if it's a browser issue - and it's the same as with Firefox .

Okay, you must have enabled it just after I checked...anyway, I now see the issue, and will be working on a fix. :)

jagtpf
02-22-2017, 02:30 PM
Okay, you must have enabled it just after I checked...anyway, I now see the issue, and will be working on a fix. :)

Yeah !

erm - wot ! You mean I broke it :erm:

Sorry Mark .... apologies

MarkFL
02-22-2017, 02:50 PM
Update - Version 1.4.1:


Resolved issue with activity stream.


Yeah !

erm - wot ! You mean I broke it :erm:

Sorry Mark .... apologies

No worries, my friend! :D

I found the issue, and it turned out it was affecting my sites as well, I just didn't notice. I have already updated your site to the latest version. :)

jagtpf
02-22-2017, 02:59 PM
Thank you Sir ....

Stratis
02-22-2017, 06:12 PM
Update - Version 1.4.1: Resolved issue with activity stream.


I was using v1.1 even there were updates, thanks for the update and fix for activity stream. Works fine :)

gajinoz
02-23-2017, 04:49 AM
Update - Version 1.4:


Added setting for header CSS.
Added setting for content CSS.




You may use HTML in the content, so just enter the appropriate anchor tag there. :)

OK, great stuff. I can see the new additional settings for CSS, unfortunately I'm not familiar with that sort of thing. Could you possibly give me an example of what I might put in there if I wanted to turn the background of the message box yellow.

Thanks.

MarkFL
02-23-2017, 05:19 AM
OK, great stuff. I can see the new additional settings for CSS, unfortunately I'm not familiar with that sort of thing. Could you possibly give me an example of what I might put in there if I wanted to turn the background of the message box yellow.

Thanks.

For a light yellow, into the "Content CSS" setting, add:

background: #FFFFCC;

gajinoz
02-24-2017, 10:24 PM
For a light yellow, into the "Content CSS" setting, add:

background: #FFFFCC;

Excellent, simple as that, thanks. :)


:up:

gajinoz
02-24-2017, 10:44 PM
I just noticed something interesting, no big deal, just interesting. I've set the background of the header to be red. Works perfectly when you start a new thread, however if you reply to the thread the background reverts to the default dark grey.

As I say, no biggie, just a curiosity.

The text box remains yellow in both instances.

MarkFL
02-24-2017, 10:51 PM
I am assuming you are referring to "quick reply?" I will look into that, as it is definitely undesirable behavior. :)

Stratis
03-08-2017, 08:19 AM
Find Updated Phrases

markfl_newthreadmessage_title (GLOBAL)
Default Phrase Updated in MarkFL: New Thread/Post Reminder Message 1.3 by MarkFL
Your Custom Phrase Last Edited in MarkFL: New Thread/Post Reminder Message 1.2 by Stratis

How to fix this Mark? It is the only phrase that shows up.
or it does not matter?

MarkFL
03-08-2017, 12:14 PM
You should see two global phrases associated with this product:


markfl_newthreadmessage
markfl_newthreadmessage_title

MarkFL
03-08-2017, 01:02 PM
I just noticed something interesting, no big deal, just interesting. I've set the background of the header to be red. Works perfectly when you start a new thread, however if you reply to the thread the background reverts to the default dark grey.

As I say, no biggie, just a curiosity.

The text box remains yellow in both instances.

Oddly, I am unable to replicate this issue on my end. :confused:

Stratis
03-08-2017, 03:21 PM
You should see two global phrases associated with this product:

markfl_newthreadmessage
markfl_newthreadmessage_title

Maybe I wasn't clear. Any way "Find Updated Phrases"
I pressed "Edit" and than "save" so now...

"The phrases shown on this page have been updated in the default language since you customized them."

So I am ok now :)

gsk8
10-08-2018, 02:25 AM
Love this mod. Thank you so much!

I have a number of forums and wish I could use a separate phrase....I could use three :) Would definitely be willing to donate!

MarkFL
10-08-2018, 03:32 AM
Love this mod. Thank you so much!

I have a number of forums and wish I could use a separate phrase....I could use three :) Would definitely be willing to donate!

Block titles can be set on a per forum basis, in the same way the block messages can be. If you're interested in version 1.4.2 of this product, then you can find them at either of the two sites in my signature. :)

gsk8
10-08-2018, 03:53 AM
I'm not sure I understand :) Is this a separate mod? Or the same but just an upgrade that allows you to have certain "New Thread/Post Reminder Message" for different forums?

MarkFL
10-08-2018, 04:17 AM
It's just a slightly newer version (upgrade) of the same product offered here, that addresses a minor bug that was found in this one, but unrelated to the issue you were asking about.

The version you got here will allow you to have different block titles and block messages on a per forum basis.

In the product description, take a look at the update for version 1.3 section and it describes how to define the phrase(s) for multiple forums.