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 Problems.../...Pages w/ Forum Look

2

Comments

  • edited November 2006
    yep there's a quick fix that you can use in all your extensions that require you to add the pages you want it to show up on manually. Here's a link to a discussion I made about it that explains how to do it. http://lussumo.com/community/discussion/4399/applying-extensions-to-multiple-custom-pages-with-ease/#Item_11

    btw: is that my improved sidepanel extension I see on your vanilla board? ^.^
  • SirNot, I think there's a little bug in your last Page Manager release. When you create a new page with custom content (not an external link) its URL appears to be the one of the tab you're currently viewing + the name of the actual custom page.

    For example, if I'm on the search tab, here's where the custom tab points to:
    http://mysite.com/search.php?Page=custompage

    Which means when you click on the custom tab, it displays the page you are coming from, except for the discussion page.
  • weird I don't have that problem with my custom pages.
  • I know you can do the extensions on just the pages your want... but I thought at least the extension that was making the list of pages that I didnt want as tabs would be able to put that list in the panel of its own pages lol... Cant it just display the same ones that the discussions tab does? No, he added the improved sidepanel look if you didnt want it to be a tab.
  • the sidepanel isn't connected to the page manager extension they are separate.

    So are you saying that you want to have the same links in your sidepanel on your discussions page be displayed on your custom pages too?
  • Yes, I would like the same content in the custom page panel, as is in the panel on the discussions page. The last release allowed this... but these pages I chose to not have a tab but a link.
    Example
  • edited November 2006
    Hmm guess you missed my comment above I told you how to do this lol.


    * Crazyotaku
    * CommentTime20 hours ago edited

    yep there's a quick fix that you can use in all your extensions that require you to add the pages you want it to show up on manually. Here's a link to a discussion I made about it that explains how to do it. http://lussumo.com/community/discussion/4399/applying-extensions-to-multiple-custom-pages-with-ease/#Item_11
  • that seems like a very complicated way of doing things(changing multiple files), wouldnt it just be simpler to have a change to the extension that is making the page to display the same thing in the panel that it used to... it worked in the old version.
  • edited November 2006
    I dont' see how it is complicated, all you do is replace one line of code in each of the default.php files in the extensions you want displayed and it's a one time deal, after that they will display everything you want on all future custom pages and i'm not sure what this older version that you speak of is.
  • edited November 2006
    and what about the page manager extension pages? I want the list of the custom pages to be displayed in the panel, which they do but just not in the custom pages. River City Waterski Show Team Website, when you are on the welcome page - there is nothing in the panel, when you are on the discussions page for example- everything normal appears in the panel.

    "i'm not sure what this older version that you speak of is." Hello... the old pagemanager version, it was just updated on November 24th to 2.4.1. The old version is from September 30th which was 2.3.1.
  • ah pagemanager, well I havne't upgraded so I don't know if there are any issues with the newest version of pagemanager, since the older one im using automatically displays the sidepanel on my custom tabs. If it's not doing that on the newer version then just go back to the older version that did what you wanted it to do.
  • The new version displays a list of the custom pages in the panel... I guess I will just downgrade...
  • edited November 2006
    I got the ones I wanted to display by removing/commenting off the following lines from 822 on...

    $BadPanelItems = array($Context->GetDefinition('Feeds'), $Context->GetDefinition('DiscussionFilters')); while(list($ky, $v) = each($Panel->PanelElements)) if(in_array($v['Key'], $BadPanelItems)) unset($Panel->PanelElements[$ky]); reset($Panel->PanelElements);

    Maybe this is just a temp fix, I dont have any more time right now to mess with it

    ((((EDITED DISCUSSION NAME TO WHAT IT REALLY IS))))
  • So I get a call from a member of one of the websites that I have vanilla on and she says that when she goes on the site it doesnt show any tabs... and I said, well that doesnt sound right are you sure, and she said yep... so i looked, sure enough, no tabs... I deleted the page manager line from extensions.php and boom tabs... but it seems that CustomPages.php from the page manager extension ate itself, by that I mean that there is nothing in it, or should I say, nothing of any value... all the pages I had made nolonger work when I plug the CustomPages.php page back in.

    <?php return array(0 => array('tab' => 'Welcome', 'page' => 'welcome', 'url' => '', 'html' => '<br><p align="center"><font size="4" color="#3366CC">A Big Thank You To Everyone Who Has Come Up To The Airport Beach To Watch Our Wednesday Night Shows</font></p> <center> <script src="http://voap.weather.com/weather/oap/54601?template=GENXH&par=null&unit=0&key=849ed6e17cdf728d8743875c1d33e868"> </script> </center> <p align="center"> <a href="http://www2.mvr.usace.army.mil/WaterControl/stationinfo2.cfm?sid=LACW3&fid=LACW3&dt=S"> <font color="#FF0000">Click Here for the La Crosse Area River Stage</font></a></p> <p align="center" style="margin-top: 0; margin-bottom: 0"> <font size="4" color="#3366CC">Welcome to the New Website</font></p> <p align="center" style="margin-top: 0; margin-bottom: 0"><font face="Arial" color="#3366CC">It will allow for easier updating and access...</font></p> <p align="center" style="margin-top: 0; margin-bottom: 0"><font color="#3366CC"> I would be glad to hear your input</font></p>', 'point' => 0, 'custom' => 1, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4)), 1 => array('tab' => 'Discussions', 'page' => 'discussions', 'url' => 'http://rivercity.waterski.org/Forum/', 'html' => '', 'point' => 1, 'custom' => 0, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4)), 2 => array('tab' => 'Categories', 'page' => 'categories', 'url' => 'http://rivercity.waterski.org/Forum/categories.php', 'html' => '', 'point' => 1, 'custom' => 0, 'attribs' => '', 'roles' => array(0 => 3, 1 => 4)), 3 => array('tab' => 'Search', 'page' => 'search', 'url' => 'http://rivercity.waterski.org/Forum/search.php', 'html' => '', 'point' => 1, 'custom' => 0, 'attribs' => '', 'roles' => array(0 => 3, 1 => 4)), 4 => array('tab' => 'Settings', 'page' => 'settings', 'url' => 'http://rivercity.waterski.org/Forum/settings.php', 'html' => '', 'point' => 1, 'custom' => 0, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4)), 5 => array('tab' => 'Account', 'page' => 'account', 'url' => 'http://rivercity.waterski.org/Forum/account.php', 'html' => '', 'point' => 1, 'custom' => 0, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4)), 6 => array('tab' => 'Members', 'page' => 'Members', 'url' => 'http://rivercity.waterski.org/Forum/extension.php?PostBackAction=Members', 'html' => '', 'point' => 1, 'custom' => 0, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4)), 7 => array('tab' => 'Sponsors', 'page' => 'sponsors', 'url' => '', 'html' => '<br><center><a href="http://www.usawaterski.org/"> <font size="5"><img border="0" src="http://rivercity.waterski.org/images/USAwaterskilogo.jpg" width="218" height="103"></font></a> <a href="http://wwsf.waterski.org/"><font size="5"> <img SRC="http://rivercity.waterski.org/images/WWSFLogo.gif" ALT BORDER="0" width="282" height="115"></font></a></p> <p><a href="http://www.tranefcu.org"> <><><>Page Content Removed to lower character count<><><> <img height="88" src="http://rivercity.waterski.org/logo4.gif" width="279" border="0"></a></font></p> <p align="center">&nbsp;</td> </tr> </table> <p align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<a href="http://mercurymarine.com"><img border="0" src="http://rivercity.waterski.org/images/MercuryLogo.jpg" width="500" height="151"></a></p>', 'point' => 0, 'custom' => 1, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4)), 8 => array('tab' => 'History', 'page' => 'history', 'url' => '', 'html' => '<br><p><font size="5" color="#3366CC" face="Arial"><b>The Beginning 1972...</b></font></p> <p><font color="#3366CC" face="Arial"><b><font size="5">In June of 1972, a group of La Crosse area skiers, interested in promoting the sport of water skiing,&nbsp; decided to form a team that was, and still is, known as the River City Water Ski Show Team. Their main goal was to <><><>Page Content Removed to lower character count<><><> Our community has been very good to us over the last 33 years and anything we can do to promote the La Crosse Area is just our way of telling the community how thankful we are.</b></font></p>', 'point' => 0, 'custom' => 1, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4)), 9 => array('tab' => 'OLD Site', 'page' => 'old_site', 'url' => 'http://rivercity.waterski.org', 'html' => '', 'point' => 1, 'custom' => 1, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4)), 10 => array('tab' => 'Contacts', 'page' => 'contacts', 'url' => '', 'html' => 'To be added', 'point' => 0, 'custom' => 1, 'attribs' => '', 'roles' => array(0 => 0, 1 => 2, 2 => 3, 3 => 4)), 10; ?>
  • NickENickE New
    edited November 2006
    Wow, you seem to be having a lot of trouble with this...

    For some reason or other the Custom Pages file looks like it was corrupted slightly. At the end, the )), 10; ?> is screwing it up. That last bit should be ))); ?> (note the extra parenthesis instead of the , 10 part). That shouldn't be happening, though... Did she/you do anything to the site/extension right before this happened?

    EDIT: And the newer version should only display pages in the side panel that are hidden. If it's displaying all of them and none are hidden then something's wrong...
  • well it "crashed" and I lost all my custom pages (it made all the other tabs disappear that the top during this time), but like you said it was corrupted somehow... How can you make it display the list of hidden pages in the panel of the custom pages? currently only select things are making it to the panel on the custom pages...
  • NickENickE New
    edited December 2006
    The list of hidden pages is by default only available on the discussions page, but to make it shown on custom pages as well move this block of code:
    if(PAGE_LIST_LOC)
    {
        ...
    }
    to right under this:
    if($Context->SelfUrl == 'index.php')
    {
    so it will execute before any custom page is created.

    But was the 'crash' completely spontaneous? Did it just one day decide to not work? Surely there was some sort of cause...
  • nice, now that I made a banner that goes across the top with a list of all my pages... how can I make it so it doesnt display it at all? delete the line entirely?
  • Really all you have to do is set the PAGE_LIST_LOC definition to 0, but deleting the entire conditional block would work as well...
  • ok, so you were asking what it does when it doesnt work... it ate itself again, I didnt change anything other than the usual editing pages... and now the custompages.php and all it has in it is <?php return array(); ?> why does it do that?
This discussion has been closed.