inherit
249732
0
May 7, 2024 12:28:05 GMT -8
Sam
Typing...
135
October 2017
samzi
|
Post by Sam on Mar 24, 2019 8:42:20 GMT -8
Forum URL: legomessage.boards.netHi, I'm having a couple of problems with the Post Quarantine plugin not working whatsoever on a particular theme. Now the first response would be 'it's not enabled for the theme' however it seems this is not the case. It's enable for the particular theme and it works on other themes, so I have no idea why it isn't working. I've tested to see whether it's just the 'approve' banner not appear but it also seems that it's not hiding posts when it should be. (;-;) In the link below is the 'Post List' code from 'Thread' in layout templates. However I'm not sure this will help as I have copied code in from other themes without it working. So I have no idea why this isn't working and hope someone will be able to help. Thanks. Post List Code
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,783
January 2015
msg
|
Post by Lynx on Mar 24, 2019 9:38:28 GMT -8
Forum URL: legomessage.boards.netHi, I'm having a couple of problems with the Post Quarantine plugin not working whatsoever on a particular theme. Now the first response would be 'it's not enabled for the theme' however it seems this is not the case. It's enable for the particular theme and it works on other themes, so I have no idea why it isn't working. I've tested to see whether it's just the 'approve' banner not appear but it also seems that it's not hiding posts when it should be. (;- In the link below is the 'Post List' code from 'Thread' in layout templates. However I'm not sure this will help as I have copied code in from other themes without it working. So I have no idea why this isn't working and hope someone will be able to help. Thanks. Post List Code
Typically, the reason a plugin works on some themes and not others is due to the PB default classes being removed on the themes that it doesn't work on, whereas those classes are present in the themes the plugin does work on.
|
|
inherit
249732
0
May 7, 2024 12:28:05 GMT -8
Sam
Typing...
135
October 2017
samzi
|
Post by Sam on Mar 24, 2019 13:23:43 GMT -8
Forum URL: legomessage.boards.netHi, I'm having a couple of problems with the Post Quarantine plugin not working whatsoever on a particular theme. Now the first response would be 'it's not enabled for the theme' however it seems this is not the case. It's enable for the particular theme and it works on other themes, so I have no idea why it isn't working. I've tested to see whether it's just the 'approve' banner not appear but it also seems that it's not hiding posts when it should be. (;-;) In the link below is the 'Post List' code from 'Thread' in layout templates. However I'm not sure this will help as I have copied code in from other themes without it working. So I have no idea why this isn't working and hope someone will be able to help. Thanks. Post List Code
Typically, the reason a plugin works on some themes and not others is due to the PB default classes being removed on the themes that it doesn't work on, whereas those classes are present in the themes the plugin does work on. Yes but I pasted code from other themes that I know work, and it still doesn't like it.
|
|
Former Member
inherit
guest@proboards.com
253222
0
May 7, 2024 16:42:35 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 24, 2019 13:30:24 GMT -8
Typically, the reason a plugin works on some themes and not others is due to the PB default classes being removed on the themes that it doesn't work on, whereas those classes are present in the themes the plugin does work on. Yes but I pasted code from other themes that I know work, and it still doesn't like it.You pasted it code from the style sheets?
|
|
inherit
249732
0
May 7, 2024 12:28:05 GMT -8
Sam
Typing...
135
October 2017
samzi
|
Post by Sam on Mar 24, 2019 23:47:36 GMT -8
Yes but I pasted code from other themes that I know work, and it still doesn't like it. You pasted it code from the style sheets? Not from the style sheets, no.
|
|
Former Member
inherit
guest@proboards.com
253222
0
May 7, 2024 16:42:35 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 25, 2019 13:46:39 GMT -8
You pasted it code from the style sheets? Not from the style sheets, no.Maybe some deleted CSS affected the thing?
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,783
January 2015
msg
|
Post by Lynx on Mar 25, 2019 21:48:33 GMT -8
Typically, the reason a plugin works on some themes and not others is due to the PB default classes being removed on the themes that it doesn't work on, whereas those classes are present in the themes the plugin does work on. Yes but I pasted code from other themes that I know work, and it still doesn't like it.You pasted what code? Template code? If so, that won't fix it if a plugin isn't working on a theme. Most plugins rely on PB's default ID's and Classes - of which are found in the HTML and CSS of a theme. As stated above, you'd need to compare the stylesheet from a theme the plugin works on to a stylesheet of a theme it doesn't work on - and find out which ID(s) and / or class(es) have been removed from the non-working theme. Plugins cannot use template variables, so they have to look at the actual ID's and Classes. EDIT: Take note that a rename of a class, like from .mini-profile (with a hyphen) to .mini_profile (with an underscore) is basically the same thing as removing the default class - which would stop the plugin from working.
|
|
inherit
249732
0
May 7, 2024 12:28:05 GMT -8
Sam
Typing...
135
October 2017
samzi
|
Post by Sam on Mar 25, 2019 23:53:49 GMT -8
Yes but I pasted code from other themes that I know work, and it still doesn't like it. You pasted what code? Template code? If so, that won't fix it if a plugin isn't working on a theme. Most plugins rely on PB's default ID's and Classes - of which are found in the HTML and CSS of a theme. As stated above, you'd need to compare the stylesheet from a theme the plugin works on to a stylesheet of a theme it doesn't work on - and find out which ID(s) and / or class(es) have been removed from the non-working theme. Plugins cannot use template variables, so they have to look at the actual ID's and Classes. EDIT: Take note that a rename of a class, like from .mini-profile (with a hyphen) to .mini_profile (with an underscore) is basically the same thing as removing the default class - which would stop the plugin from working. Oooooooohhh...Thank you so much. That makes sense now.Is there any way we can tell what classes or id's the post quarantine plugin uses?
|
|
inherit
249732
0
May 7, 2024 12:28:05 GMT -8
Sam
Typing...
135
October 2017
samzi
|
Post by Sam on Mar 26, 2019 5:55:31 GMT -8
It's no use Lynx @smithj ... I've replace the whole style sheet, the thread, post list, and forum wrapper template code, and it just doesn't work. ;-; What could possibly going on!?! I'm just triple checked the plugin to make sure it was enabled for the theme just in case I'm going blind.
EDIT: I'm an idiot..... So I took a look at the JS of the plugin and near the beginning it says:
var postAuth=$(this).find('div.mini-profile a.user-link');
var postCount=$(this).find('div.mini-profile').html().replace(/\s*/g,'').match(/posts:(.*?)</i); Which is all technological rubbish that will prove that it's relying on the whole miniprofile template code.
Again:
I'm an idiot. I replaced the mini profile code and now it works a treat, I've just got to figure out how to include those classes mentioned in the code. Sorry guys....
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,783
January 2015
msg
|
Post by Lynx on Mar 26, 2019 7:33:26 GMT -8
Sam, I'm not 100% sure on this, but I believe the $[miniprofile_class] template variable holds the proper mini-profile classes if you're looking in the mini-profile template. It should look something like this: <div class="$[miniprofile_class]">
That's on the first line in a vanilla theme in Admin > Themes > Layout Templates > Mini Profile. If that's missing, or altered, try adding that in.
|
|
inherit
249732
0
May 7, 2024 12:28:05 GMT -8
Sam
Typing...
135
October 2017
samzi
|
Post by Sam on Mar 26, 2019 13:20:15 GMT -8
Sam , I'm not 100% sure on this, but I believe the $[miniprofile_class] template variable holds the proper mini-profile classes if you're looking in the mini-profile template. It should look something like this: <div class="$[miniprofile_class]">
That's on the first line in a vanilla theme in Admin > Themes > Layout Templates > Mini Profile. If that's missing, or altered, try adding that in. Well all I had to add was
<div class="mini-profile"></div> It's fixed now, thanks for all your help.
|
|