Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Page Manager - Tab display quirk

2

Comments

  • Dangit, that array_merge in the Delegation class over-writes delegates previously added to that class directly, and for some reason the arrays aren't merged when a custom page is displayed...

    I think I fixed it though, try it now.
  • edited July 2006
    Seems to work now, thanks! SirNot, can you please tell me how to make one of the custom pages the default page, rather than "Discussions"?
  • Yep, this worked for me too. Thanks!
  • SirNot, can you please tell me how to make one of the custom pages the default page, rather than "Discussions"?

    It should be as simple as just showing your custom page when there are no GET variables in the url, then adding a bogus GET variable to the url(s) that should be pointing to the discussions page. You could do a redirect, but it'd be cleaner to just add a small bit of code to the extension to do it. I suppose the functionality could be added to the extension as an extra option...
  • edited July 2006
    I suppose the functionality could be added to the extension as an extra option...

    Sounds like a really great idea. May I ask if you plan to release it soon?
  • This morning my tabs disappeared. I searched this forum and found this topic and wondered if anyone else is experiencing this now. I disabled the Page Management plus 2.4.1 and I have the new Vanilla version 1.0.3 installed. Any suggestions? Thanks
  • NickENickE New
    edited December 2006
    Could you post/link to your custom pages file (assuming it still exists)? Did they disappear just randomly, or did someone try to edit them? Did you happen to have a lot of html in there?
  • SirNot, I had added a direct link to the Home Page of the Site, a link that had a link to another page, a direct link to my old forum and I had added a Gabber chat script to one page within a forum page. Everything worked good for about 4-5 days then this morning the tabs disappeared. None of these pages are there now. Thanks.
  • I downloaded the CustomPages.php and then deleted it. This was the only thing in that file. <?php return array(); ?> I have no addition pages now and now the folders display properly. But before I deleted the CustomPages.php even though my added tabs/pages were gone my folders would disappear. Are there any quide lines on what can be included as far as html in the pages? Should I try to add pages again to see how it would work? Suggestions? thanks for your help. I am not a programmer but I have been successful in installing the forum and getting it up and running with a number of extensions. I sure love Vanilla. You can view my page at www.pasopedigree.com/Forum/ if you wish to offer any suggestions or comments that might help.
  • edited December 2006
    Silencio I no longer include any HTML directly in Page Manager.

    Instead I use...
    <?php include("extrapages/podcast.htm"); ?>
    ...which works great.

    Also has the added benefit that I am able to edit the external pages in my favorite application instead of by hand.

    Credit: Thanks to Minisweeper for this tip.
  • Wanderer, Can you explain just a bit more for the novice in me....Where do you use this include? In the page manager setup for a new page? Or some place else? and is podcast.htm just the name of the page "newpage.htm" that you are redirecting to? What if I just need an "http://www.newpage.htm" link added to the folder? Thanks Much!!!
  • Well I'm sorry Silencio that your tabs are lost, but I'm afraid I'm rather at a loss as to why they disappeared. But sure, you might as well try again, just to stay on the safe side though I wouldn't put anything too important/non-reproducable in them.
  • Create the page that you want displayed. (we'll call it "newpage.htm" in a folder called "extrapages")

    In the Page Manager Page HTML box simply insert this...
    <?php include("extrapages/newpage.htm"); ?>
    That's it!
  • Wanderer, Thanks, that is what I needed to know and I understand that.... Thank You! I do appreciate your help.
  • SirNot, Thanks, Can you confirm for me that is all there should have been in the CustomPages.php file? I can only guess it had to do with the code that I added to the chat page in this Iframe <iframe src='http://cw.gabbly.com/gabbly/cw.jsp?e=1&t=http://www.webpage.com/Forum' scrolling='no' style='width:500px; height:450px' frameborder='0'></iframe> I will put it on a new page and get it working with a link. Thanks. I like this extension and didn't realize how much I missed it already.....but I missed my folder tabs more..:)) Thanks.
  • I have lots more in the CustomPages.php file Silencio, I do think somehow yours got corrupted.

    And yes I have an iframe which does not cause a problem.

    That reminds me, I'll make the HTML containing the iframe an external page, following my own suggestion!
  • Wanderer,

    Thanks much. I have a question for you. Do you think that I could use an include to redirect to an outside url ? and http: in stead of a file on my site? If so can you suggest how to do that? Also have your tried having your tabs open pages in a new window? That is really what I need to do on one of the pages/tabs. Thanks again for your help.
  • While it's possible (under most server configurations) to use an include for an external site, it's not entirely recommended as it may create a security hole (if you manage the external site you want to link to it's not such an issue) - you can read about how include() works here
    You might find it easier to include a html document which is merely a meta refresh. I'm not sure if that would work though.
  •  Quote: Silencio  Do you think that I could use an include to redirect to an outside url ? and http: in stead of a file on my site?
    This does not work, it expects a path to a local file, not an external http://etc...
    As Minisweeper said, I would not recommend this, even if you did control the external site.

     Quote: Silencio  Also have your tried having your tabs open pages in a new window?
    No I have not tried this, interface-wise it would not make sense. These tabs are for navigation within the current site. If you want to point to an external site, create a page with a tab and put your links there.
  • Thanks! Everyone for your help! I understand and I will do as you recommend! Happy Holidays!
This discussion has been closed.