inherit
237817
0
Jul 15, 2017 1:30:54 GMT -8
seaturtle
63
October 2016
seaturtle
|
Post by seaturtle on Feb 28, 2017 10:32:36 GMT -8
I would like to use the hide recent edits plugin but it just does not work for me.
I am just wondering if it is possible to use code rather than that plugin, because it's bugged or something. From reading around, I think that the area I need to target is in Layout Templates > Thread > Post List
This is what I currently have on line 34:
{if $[post.edited] && $[post.created_by.id] != 1} <span class="edited_by">Edited by $[post.edited.by_user] $[post.edited.date] {if $[post.edited.reason]}: $[post.edited.reason]{/if}</span> {/if} So yes I have made it so the admin's edits are invisible. But I want everyone to have a countdown timer of 5 minutes where the edited message does not appear. Is this possible through html code?
|
|
Kami
Forum Cat
Posts: 40,034
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,034
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Feb 28, 2017 11:39:12 GMT -8
You cannot do that through HTML, no. You'd have to use some javascript component at least. Since the above plugin is an official ProBoards plugin, I'll tag Brian for you to see if there's something PB can do as there isn't a support thread for it.
|
|
#eb7100
33409
0
1
May 3, 2024 16:38:41 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Feb 28, 2017 11:45:39 GMT -8
Hi, seaturtle. From what I can tell the plugin is working correctly based on my tests on my own forum. In Plugins > Manage > Hide Recent Edits you currently have the time set to 30 minutes. This means that if an edit was made at least 30 minutes after the original time of the post that edit will show, as the plugin only hides edits that took place before that 30 minutes transpired. Assuming it's not working correctly based on my explanation above can you link to a post that shows an example of it not working?
|
|
inherit
237817
0
Jul 15, 2017 1:30:54 GMT -8
seaturtle
63
October 2016
seaturtle
|
Post by seaturtle on Mar 1, 2017 10:44:23 GMT -8
Hi, seaturtle . From what I can tell the plugin is working correctly based on my tests on my own forum. In Plugins > Manage > Hide Recent Edits you currently have the time set to 30 minutes. This means that if an edit was made at least 30 minutes after the original time of the post that edit will show, as the plugin only hides edits that took place before that 30 minutes transpired. Assuming it's not working correctly based on my explanation above can you link to a post that shows an example of it not working? Hi Brian, Yes I set it to 30 because the 3 value wasn't doing anything. So I was thinking 30 might do the trick. But it didn't, so I just went ahead and did this as a temporary solution (to stop all edits from appearing): <!--{if $[post.edited] && $[post.created_by.id] != 1} <span class="edited_by">Edited by $[post.edited.by_user] $[post.edited.date] {if $[post.edited.reason]}: $[post.edited.reason]{/if}</span> {/if} --> Okay, so now I have made a duplicate theme for testing (called Test), and I have enabled the edits appearing on that theme: Could there be something wrong with the HTML code? Do you detect something awry below? I can send you a link to a post here, but will my forum get infested with spambots? Also my default theme has all edits invisible. So nobody can see the "last edited" thing. I have only now allowed the last edits to be visible using my Test theme.
|
|
#eb7100
33409
0
1
May 3, 2024 16:38:41 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Mar 1, 2017 11:07:54 GMT -8
There's no guarantee that spammers won't eventually find their way to your forum, but you're more than free to PM people the link if they request it if you wish to mitigate that possibility. For the record, when we positively identify a spammer their posts get deleted service-wide.
Based on the source code of the plugin the problem is due to how the theme is designed. It's just about impossible to make a plugin that edits existing content able to account for every single HTML layout possible through the layout templates so most are designed around the classes that exist in the default theme.
In this case the problem is this line near the beginning of your last screenshot:
The default theme usually has this variable surrounded by a span with the class date which is what the plugin is looking for: So the easiest solution in this case is to do precisely that to the $[post.created_on] variable on that line of your Post List template.
|
|
inherit
237817
0
Jul 15, 2017 1:30:54 GMT -8
seaturtle
63
October 2016
seaturtle
|
Post by seaturtle on Mar 1, 2017 12:10:46 GMT -8
There's no guarantee that spammers won't eventually find their way to your forum, but you're more than free to PM people the link if they request it if you wish to mitigate that possibility. For the record, when we positively identify a spammer their posts get deleted service-wide. Based on the source code of the plugin the problem is due to how the theme is designed. It's just about impossible to make a plugin that edits existing content able to account for every single HTML layout possible through the layout templates so most are designed around the classes that exist in the default theme. In this case the problem is this line near the beginning of your last screenshot: The default theme usually has this variable surrounded by a span with the class date which is what the plugin is looking for: So the easiest solution in this case is to do precisely that to the $[post.created_on] variable on that line of your Post List template. Oh wow, excellent, that did it! And cheers for the reassurance about the spammers Thanks Brian!
|
|