Resource icon

[SurreyForum] XenKingDir: Link / Business Directory (Directory) 1.2.0.8

No permission to download
I have a strange issue... I was deleting default directories, I deleted 3/4 of them and now If I try to view inside one of the non-deleted or new directory I get the "permission error". I get also the permission error if I try to enter in the directory node. I'm trying with the admin user.

I didn't touched permission's nodes.

Another thing I've done was only translate 2/3 phrases to test them but even if in the ACP phrases are translated in the public view are still in english... :confused:

The first issue, I've no idea... Do you have any errors in the admin control panel. I've tried to reproduce it, but can't
Did you make the "directory forum" hidden and did you change anything else with the directory forum?

For the 2nd issue, which phrases did you change?
 
...the first issue, I don't know either. After the update of the directory node permission all works normally.
For the second problem maybe is because there're many hardcoded phrases. I sent you a private conversation about that.
 
Okay, I've gone ahead and installed it on my board!

The bad news is that it deleted the permission settings for my secret moderator forum. (I guess similar to what has been reported by a few other users of this add-on.)

The good news is that I may be able to help work out where the problem occurred. As far as I can tell, it didn't have to do with the actual installation. Since the "delete-permissions-from-a-random-forum" issue is a known bug, the first thing I did after installing the add-on was go to the ACP and use the "Test Permissions" feature to see what one of my non-privileged users could see, and at that point it was all fine. It seems it was only later the problem occurred when I started deleting unwanted categories under ACP -> Applications -> Link Directory.

And just to emphasise, what happened was that all the permission settings for one of the forums on my board were simply erased. I do have other forums with permission settings on the board, but they were not affected, fortunately.

I hope this was helpful, and I'm not sending you down the wrong path ...
 
Okay, I've gone ahead and installed it on my board!

The bad news is that it deleted the permission settings for my secret moderator forum. (I guess similar to what has been reported by a few other users of this add-on.)

The good news is that I may be able to help work out where the problem occurred. As far as I can tell, it didn't have to do with the actual installation. Since the "delete-permissions-from-a-random-forum" issue is a known bug, the first thing I did after installing the add-on was go to the ACP and use the "Test Permissions" feature to see what one of my non-privileged users could see, and at that point it was all fine. It seems it was only later the problem occurred when I started deleting unwanted categories under ACP -> Applications -> Link Directory.

And just to emphasise, what happened was that all the permission settings for one of the forums on my board were simply erased. I do have other forums with permission settings on the board, but they were not affected, fortunately.

I hope this was helpful, and I'm not sending you down the wrong path ...
Same thing happened to me.
Permission reset in the directory forum (testing it in a private) and in another public deleting unwanted categories.
In my case affected forums after the issue were inaccessible until I update permissions in the ACP.

Tenants are missing some other phrases, I will tell you in the next days so when you have same time you can add it. The most of them are now phrased.
 
Same thing happened to me.
Permission reset in the directory forum (testing it in a private) and in another public deleting unwanted categories.
In my case affected forums after the issue were inaccessible until I update permissions in the ACP.

Tenants are missing some other phrases, I will tell you in the next days so when you have same time you can add it. The most of them are now phrased.

Yes, this is a known bug I need to fix next version.

Cool, let me know any other phrases
 
I was changing the values in the "display order" fields of two top-level categories when I discovered it had deleted the permissions on another forum :( It had also deleted the forum moderator.

I checked the admin log just to be sure, and I haven't deleted any categories today, just changed the display order as I described above. So maybe that's the bug trigger, not the deletion of categories. Or maybe it's both.
 
Okay, the more information I know about this the better, thanks karll.

I'll try to fix next version (2 weeks to finish off other plug-ins 1st)
 
Is there a way to hide, on the directory home page only, the left sidebar listing the categories? I have all of my categories in the main section in a much more presentable manner so I don't need that sidebar there and would like to have that main section extended all the way to the left margin of the page if possible.
You could do this with a template edit... you would also need to do it to the sub forums too

find the templates:
sfdirectory_index (the main directory page)
sfdirectory_sub_index (the sub directory pages)

then remove this section:

Code:
        <div class="accountSideBar">
            <ul>
                <xen:hook name="dir_wrapper_sidebar">
                <li class="section"><h4 class="heading">CATEGORIES</h4>
                    <!--<h4 class="subHeading">{xen:phrase alerts}</h4>-->
                    <ul>
                    <xen:hook name="dir_wrapper_sidebar_your_account">
                    <xen:foreach loop="$category_list" value="$category">
                        <li>
                            <a class="{xen:if "{$selectedKey} == 'alerts/latest'", 'secondaryContent', 'primaryContent'}"
                            href="{xen:link directory}{$category.url}">{$category.title} </a>
                        </li>
                    </xen:foreach>
                    </xen:hook>
                    </ul>
                </li>
                </xen:hook>
            </ul>
        </div>

I haven't tested doing this, so I'm not certain it will look cosmetically correct.. .but give it a go and let me know how you get on

It looks cosmetically correct when testing with firebug.. so it should work

Is it possible to integrate this sidebar with the "normal" XenForo sidebar? My layout was too cramped with the accountSideBar, so I removed it as per the above, but I would love it if I could display it in the main sidebar*, above Business Directory Statistics in this screenshot:

[edit: screengrab removed as no longer relevant]

I have literally just added the Directory by the way, hence there only being 1 listing! :p

Thanks.


* For info, I have moved the main sidebar to the left, as per this template mod, hence it appearing on the left.
 

Attachments

  • XenKingDir_no_sidebar.webp
    XenKingDir_no_sidebar.webp
    50.6 KB · Views: 25
Oh, and is there any way I can remove the avatar/userstats block from the top of the sidebar? Seems a bit redundant there - the only place it should appear is the main Forum Index, imo!

Thanks. :)
 
Is it possible to integrate this sidebar with the "normal" XenForo sidebar?.

I'm not entirely sure what you mean, the sidebar on the front page?
That would be just the "share options", unless you have other addon's that use the sidebar template

You could try adding
<xen:include template="sidebar_share_page"/>


But if other add-ons use the above template, the params will need to be passed in (otherwise you may get errors)
This will usualy require a change to the php, unless they are simple params you can include with:

<xen:include template="sidebar_share_page">
<xen:set var="$param1">1</xen:set>
<xen:set var="$param2">2</xen:set>
</xen:include>
 
I'm not entirely sure what you mean, the sidebar on the front page?
That would be just the "share options", unless you have other addon's that use the sidebar template
No, I mean is there any way that I can include your accountSideBar (which lists all the categories vertically, and I have removed as per the edit your showed Geoffrey) in the sidebar from my screenshot - i.e. incorporate it into the XenForo sidebar, only on the Directory page?

So the screenshot that you see above, I'd love to have a list of all the categories, vertically, above the box that says Business Directory Statistics. :)

Thanks.
 
have you tried pasting the above accountSideBar block into the sfside_main_sidebar_share_page template?
 
have you tried pasting the above accountSideBar block into the sfside_main_sidebar_share_page template?
No; I'm not particularly good at coding/styling, so don't like doing things by trial & error in case I mess something up and can't fix it (as I have done in the past)!

Not to worry - my users didn't like the way I had moved the XenForo sidebar to the left, so I have put it back on the right, and re-instated your sidebar as originally designed.

Thanks anyway.
 
I have just installed Arty's excellent Soft Responsive style, and it seems to have shifted the sidebar to above the listings:

xenkingdir_responsive.webp

Is there anyway to fix this? I wasn't sure whether to ask in here, or in Arty's thread - if it's the latter, then please accept my apologies & let me know. :)
 
The problem is that many of the css classes no longer exist in the css on your page

for instance if you check account.css, it no longer includes this:
.accountSideBar {width: 150px;display: table-cell;vertical-align: top; *float: left;}#

I believe it has been renamed to this (I could be wrong, I only had a quick look):
.containerSideBar

There is not much I can do, did you manually remove this from that style (search you templates for the account.css template and see if you can find .accountSideBar...
If not, then something is changing the .css and removing accountSideBar (the directory plugin requires the core css)

You could find out each of the classes that have had name changes and then update the sfdirectory_index template (so change class="accounrSideBar" to class="containerSideBar"), but you'll have to find out all of the core css names that have changed.

I dont think this is a directory issue (dependency on core should be fine, renaming core will cause other plugins to fail)
 
The problem is that many of the css classes no longer exist in the css on your page

for instance if you check account.css, it no longer includes this:
.accountSideBar {width: 150px;display: table-cell;vertical-align: top; *float: left;}#

I believe it has been renamed to this (I could be wrong, I only had a quick look):
.containerSideBar

There is not much I can do, did you manually remove this from that style (search you templates for the account.css template and see if you can find .accountSideBar...
If not, then something is changing the .css and removing accountSideBar (the directory plugin requires the core css)

You could find out each of the classes that have had name changes and then update the sfdirectory_index template (so change class="accounrSideBar" to class="containerSideBar"), but you'll have to find out all of the core css names that have changed.

I dont think this is a directory issue (dependency on core should be fine, renaming core will cause other plugins to fail)
Ah, yes, I removed the sidebar for a while by modifying sfdirectory_index and sfdirectory_sub_index as per this post. I just made the edits mentioned there though; as far as I know, I didn't modify account.css.

Is there a way to reset all modifications (i.e. re-install your Add-on, and remove all such customisations as the above)? Perhaps I have messed something up, so it would be better to start with a 'clean' version of your Add-on. :confused:
 
There is not much I can do, did you manually remove this from that style (search you templates for the account.css template and see if you can find .accountSideBar...

For info, I just clicked 'Customized Style Components' in ACP (so that it would show me all elements that I have modified), and account.css is not listed, which would suggest that I haven't changed it in any way.

I had a quick look through account.css as well, and I don't recognise it (i.e. if I had modified it/interacted with it in the past, I would probably remember seeing it).

Not sure if any of that helps, but thought I would mention it anyway!
 
don't reisntall it, if you havent changed the core css (since you will need to re-configure the directory nodes), wait for Arty's response, since I have a feeling it might be something his plugin does to rename the core css from .accountSideBar to .containerSideBar (and other core css class renames)

As a test for this, can you just update the sfdirectory_index template (and change class="accounrSideBar" to class="containerSideBar")

The css class accounrSideBar exists in the core css (so in theory should always exist)
The css class containerSideBar doesn't exsit in the core css (and may have come from another plugin)
 
  • Like
Reactions: DRE
Back
Top Bottom