Disable certain 'virtual' pages in the plugin Directory?

How do you disable certain 'virtual' pages in the plugin Directory?

ex: I don't want the 'Signup' page anywhere on my site (I use an external sign-up process for my site).

Better yet, Directory should use short-codes for all it's pages to allow the site admin a little more control of what pages are used and where they are used. Using short-codes also allows better customization and integration into the site it will be used in.

ex: I use custom page titles for my site pages, however because Directory uses 'virtual' pages, I cannot use custom page titles with it.

  • aecnu

    Greetings netwarden,

    Thank you for the great question in which I do not know how to disable the "virtual" pages within Directory as you have mentioned you want to do, but I do know somebody who does know if there is indeed a way.

    With that said, I will see if I can get the lead developer in here with his invaluable insight into this plugin for his advice/advise for us.

    Though this may take a bit longer then a normal ticket, I will try to get him in here asap.

    Cheers, Joe

  • Arnold

    Problem is that in several places where a page can only be viewed if the user is logged in would fail because it redirects to the login page and it wouldn't know where to find it. Same problem with shortcodes. how does it figure out what pages you have the shortcodes on and if it did and you put it on more than one page, how would it decide which one to use.

    As for custom titles, just go to the page and change the title.

  • netwarden


    I don't understand why would the plugin need to know/do any of the above mentioned?

    1 - If a user goes to a page with a short-code, the short-code calls the function (plugin) and outputs to the page the short code is on. A competing plugin 'Business Directory' uses this method, however I did not like the posting form/process.

    2 - Having the same short code on more than one page, even if by accident or not it still would not matter - See #1.

    3 - If a non-logged in user visits a page that requires to be logged in and are redirected to the log-in page, WP would handle it just the same as if the page did not have a short-code. Even if the user is not returned after logging in, the user can still navigate back to that page. Also if the short code is activated without the user logged-in, the short code can simply output a link to the log-in page and/or a 'go back' link. (I also have a plugin that allows/disallows access to pages based on log-in status)

    Even if this plugin don't go the way of short codes, there should be at least an option of turning off/disabling the 'sign-up' page. My sign-up process on my site does not use the WP registration thus no need for this feature.

    As for the custom titles... no it does NOT work, as the virtual page states in the editor - "Virtual page. Editing this page won't change anything".

    The plugin custom titles allows me to insert any HTML in place of each page title, this does not happen with the Directory 'virtual' pages.

  • netwarden

    That is weird, it is not working on http://www.807area.ca/directory/listings/

    I am using WP Custom Titles Version 0.1 and it works on all my other regular pages (not BP pages, had to mod that), not the directory virtual pages. I did double check what you mentioned above. I don't even have an option to see 'CustomPress fields' however Custom fields is in the list and already checked.

    Under Custom Fields I have

    Name -> directory_page
    Value -> listings

    Name -> custom_title
    Value -> <img src="/wp-content/images/150-logo-b.gif" style="vertical-align: middle; height: 75px;"> Listings

    What shows at top of the listings page is:

    Listings (in large bold, which is normal) and ListingsListings (in regular text under it) and No logo image anywhere.

    BTW: I used Quick Page/Post Redirect to redirect the 'sign-up' page to where they need to go to sign-up. It is a viable work around for now.

  • netwarden

    Where do you go to check on or do that?

    The only place I see that sound like what you are saying is:

    CustomPress -> Post Types -> (one row table)

    Post Type -> directory_listing
    Name -> Listings
    Description -> Directory Listing post type.
    Menu Icon -> No IconSupports -> title editor author thumbnail excerpt custom-fields comments revisions
    Capability Type -> listing
    Public -> Yes
    Hierarchical -> No
    Rewrite -> Yes

  • aecnu

    Greetings netwarden,

    Considering the lead developers last post, it appears this particular topic is now resolved/closed, if you need any further assistance please let us know.

    If it wasn't resolved, or you have any more questions related to this thread, please feel free to post them below including any new symptoms or errors and tick the 'Mark as Not Resolved (re-open)' box below the post area (or else we'll miss it!)

    Thank you for being a WPMU Dev Community Member!

    Cheers, Joe

  • netwarden

    RE: "It's in the Custom Fields tab. Multi Select box called Post Type. Any custom fields you've made are there and if you want to display them on a "Page" post type they need to be added to the list "

    Are you referring to the CustomePress? If so that table in CustomPress -> Custom Fields is empty.

    In the post where I said I was using WP Custom Titles Version 0.1, the 'Custom Fields' I was referring to are on the page itself (not the CustomPress).

    This is really confusing, please be more detailed in your instruction as I am very new to this.

  • Arnold

    Hi netwarden,

    I think I see what's happening. Your using the wp custom title plugin and putting custom titles on the Listings. When you do that on an archive page there is more than the just the Listing titles. There is the Archive page title ("Listing") followed by a list for listings.

    What seems to be happening is that the priority on the filter that the WP custom title plugin puts on 'the_title' filter is set to 9999. So it's overriding all the titles. In the case of the Archive pages title it uses the custom title from the first post in the post list. It prints the Archive title and then the Custom title so both appear.

    I find if I change the priority in the WP Custom Title to 9 or 10. I get it to only affect the posts.

    add_filter('the_title', 'wpct_the_title', 10);

    As to the accuracy of your html I can't tell. I was able to display images from the custom titles.

  • aecnu

    Greetings netwarden,

    We have not heard back from you as to the status of this issue.

    If you are still having an issue please let us know so that we may try to get you fixed up as soon as possible by choosing to check mark this ticket as unresolved below and posting any new errors or symptoms you are noticing.

    This action will also bring your ticket up front back in plain view again within the ticket system.

    Thank you for being a WPMU DEV Community Member!

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.