Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


Nuggets

12357

Comments

  • That worked great. Thanks. If I edit a nugget now, will the pages array get overwritten?
  • Hi, How can I "manually add the *page* in the pages array inside, nuggets.php"? I've downloaded 1.1.5 and there isn't any nuggets.php... I was trying to display nuggets here: http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=266 Thanks. :)
  • nuggets.php is created once you create a new nugget(twice, their is a bug that the file isn't created the first time. you can create it manually as well
  • is there a special trick to enable nuggets on a pagemanager driven page?

    thanks in advance :D
  • no pagemanager should work, you will see page manager pages in the nuggets list. i think you have to enable page manager before you enable nuggets for it to see the pages
  • no success with your hint schizo :/

    but if you say it works on other pages/sites very well, then i'll try to figure it out.

    thanks anyways :)
  • show me your nuggets.php and what your page manager page is called
  • ok if you enable nuggets before pagemanager you will be add nuggets in the panel of pagemanager pages. else it won't work.
  • ok, i had no luck.

    but however ..... thanks for your support schizo :D
  • Does anyone have insights for making Private Messages work with Nuggets?

    I have both installed and, when I click into the "Inbox" tab provided by Private Messages, none of the baked nuggets in any of the various nugget panels appear.

    I have tried implementing Schizo's fix Described here and messing with the order of extensions in the conf/extensions.php file, but neither tactic changes the problem.

    I would love to use Private Messages because it seems cool, but Nuggets is more important to me.
  • check your nuggets.php file the page name should be 'PrivateMessages' not 'privatemessages'
    i just tested it and it works
    Also make sure there are no privatemessages in the private mesages default.php file
  • MySchizoBuddy whispered to me what I've done wrong, but I'll repeat it here just in case it helps any other wayward souls.

    If you've added Private Messages AFTER you set up some site nuggets, you'll have to go back into Nuggets admin and enable the "Inbox" page for each of those nuggets.

    I suppose this would be true of installing an extension that adds Pages to the tabs. Go back into nuggets and make sure your nuggets are enable for the new tab.
  • For anyone that's interested, I used this little bit of code to throw a set of "permalinks" to threads I wanted to easily reference below the top tabs, without having to make them sticky. Might be useful as an extension on its own at some point, but this works well as a nugget. A /ton/ of thanks to MySchizoBuddy for the pointers...

    image


    <?php
    $DiscussionIDs = array(4990,4991,19,2,745); // insert your thread ids here
    $DiscussionManager = $Context->ObjectFactory->NewContextObject($Context, 'DiscussionManager');
    echo '<center><div>Top Discussions: ';
    for ($i=0; $i<count($DiscussionIDs); $i++){
    $Discussion = $DiscussionManager->GetDiscussionById($DiscussionIDs[$i]);
    $UnreadUrl = GetUnreadQuerystring($Discussion, $Context->Configuration, 1);
    echo '<span><a href="'.$UnreadUrl.'">'.$Discussion->Name.'</a> ('.$Discussion->NewComments.')</span> ';
    }
    echo '</div></center>';
    ?>
  • this could be optimized to do just one query which will be lot faster, and long code.
  • Still regarding Contact Form (http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=266) and Nuggets.

    Step 1 - I've checked the box in the nugget management for Contact Form.

    Step 2 - I go to the Contact Form url and I get no nugget

    Step 3 - I go to the nugget management and uncheck the box

    Step 4 - I go to the Contact Form url and I get no nugget

    Step 5 - I've downloaded nugget.php with Contact Form box checked and unchecked

    Step 6 - Running a diff I get this:

    </script></li>', 'weight' => 2, 'roles' => array(0 => 0), 'pages' => array(0 => 'comments.php', 1 => 'index.php', 2 => 'settings.php', 3 => 'account.php', 4 => 'post.php', 5 => 'search.php', 6 => 'categories.php')),
    9 => array('name' => 'Pesquisa de temas relacionados com o Fórum da Casa', 'id' => 10, 'description' => '', 'position' => 'PANEL', 'status' => 1, 'hideName' => 0, 'html' => '<li><!-- Search Google -->


    </script></li>', 'weight' => 2, 'roles' => array(0 => 0), 'pages' => array(0 => 'comments.php', 1 => 'index.php', 2 => 'settings.php', 3 => 'account.php', 4 => 'post.php', 5 => 'search.php', 6 => 'categories.php',
    7 => 'contact', 8 => 'extension.php')),
    9 => array('name' => 'Pesquisa de temas relacionados com o Fórum da Casa', 'id' => 10, 'description' => '', 'position' => 'PANEL', 'status' => 1, 'hideName' => 0, 'html' => '<li><!-- Search Google -->


    Step 7 - Well, it's there

    Step 8 - The Contact Form url is: http://forumdacasa.com/extension/?PostBackAction=ContactForm

    Conclusion: the nugget saves the configuration but it isn't displayed. Anything to do with friendly urls?
  • hello, still having problems nuggets appearing on pages create with Page Manager 2.5.3 and Nuggets 1.1.5, http://253hiphop.com/?Page=store Ive tried enabling both and disabling both, any ideas to get nuggets to appear? bug?
  • hello, still having problems nuggets appearing on pages create with Page Manager 2.5.3 and Nuggets 1.1.5, http://253hiphop.com/?Page=store Ive tried enabling both and disabling both, any ideas to get nuggets to appear? bug?
  • when 'cooking' a nugget, the 'pans' in the drop-down should be sorted by their relative location on the page. (above banner, menu, below banner, ..., below content, footer) right now I think they're alphabetical. It's kinda subjective with the panel nuggets, but nonetheless, it's better than alphabetical. (I found myself looking for one called header, and it wasn't there)

    Also it's not exactly working on my site at all. I chmod 777 the nugget dir, but still nothing. I'm in vanilla 1.1.4, I have page manager, but the nuggets don't show up an any pages, or even on the nugget cookin' page as a nugget. No error, just fails to do anything. Any ideas? Edit: Fixed it by deleting the '.DS_STORE' file in the /extensions/Nugget/library/ folder

    [wow I feel stupid saying "nugget", "cooking", "pans", "nugget cookin' page" (came up w/ that one myself) etc., but, then again, isn't that the idea?]
  • woah how did you make that store?
  • what do you mean? Edit: you mean when I was looking for the one called header? that was my point, it wasn't there. that's why the nugget locations should be sorted by relative location instead of alphabetical.
  • [quote]woah
    how did you make that store?[/quote]

    page management/iframe

    its actually a amazon store
  • Hi I'm trying to use phpads code (javascript) and nothing is showing up. Any thoughts? All i'm putting in is: <div align="center"><script language='JavaScript' type='text/javascript' src='http://victorybriefsdaily.com/phpads/adx.js'></script>; <script language='JavaScript' type='text/javascript'> <!-- if (!document.phpAds_used) document.phpAds_used = ','; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language='JavaScript' type='text/javascript' src='"); document.write ("http://victorybriefsdaily.com/phpads/adjs.php?n=" + phpAds_random); document.write ("&what=zone:17"); document.write ("&exclude=" + document.phpAds_used); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); document.write ("'><" + "/script>"); //--> </script><noscript><a href='http://victorybriefsdaily.com/phpads/adclick.php?n=a531e164'; target='_blank'><img src='http://victorybriefsdaily.com/phpads/adview.php?what=zone:17&n=a531e164'; border='0' alt=''></a></noscript>
  • How do I make a list in the Inside Panel, and have it retain the same style sheets the rest of the panel has? (i.e. the links attributes and text font and style)
  • powermanafHow do I make a list in the Inside Panel, and have it retain the same style sheets the rest of the panel has? (i.e. the links attributes and text font and style)
    Is the Nugget actually executed *inside* the Panel? If so, you can use this format:
    <ul><li>
    <h2>List Title</h2>
    <ul><li>
    <a href="http://www.LinkAddress1.com">Link1</a>;
    <a href="http://www.LinkAddress2.com">Link2</a>;
    </li></ul>
    </li></ul>
  • Ah, ok, all I needed was the 'li' tag. Thanks!
  • Hi Schizo,

    I noticed there's a small problem when it comes to disussions displayed in a single category page (maybe Page Manager has something to do with that.) For some reason, nuggets don't seem to display on pages like http://www.yoursite.com/?CategoryID=1.

    However in my case each page pointing to a given category was checked in the nugget settings. The only nuggest displayed on these pages seem to be those of "Discussion List". The problem is I'd like to use different nuggets for each category page. Is it possible to do this?
  • First Off, I think this is an EXCELLENT extension. Great Job!

    A couple have mentioned that they are not getting nuggets on their pages.

    One thing I noticed is you might need to edit and add the pages manually from extensions. In the extentions/Nugget/library/Class.NuggetManagement.php file there is an array of pages near the end of the file. One thing I've had to do is add my custom pages to the that array. now, I can go into the Nugget Manager and enable the extensions.

    I like the suggestion of
    * sashae
    * Comment Time Dec 10th 2007

    of the Top 5 discussions as a submenu, I just think it should be dynamic. It appears to me, you have to manually pick the discussions that you want as a submenu. It would very cool, if it would query the database, and find the top extensions for you. Maybe I'm off on this, I have not enabled that fix.
  • I've a little problem with nuggets and PageManagement :( The nugget is not displayed when I put in one of the panel pans but the other pans work. Is there some sort of trick to get it working inside the panel?
  • umm waht do i edit to make it so that any panel i add will automatically be added to the extension.php as well?
    cuz tha tis now how it is now
    and so panels don't show up on stuff like news blog and contact me
Sign In or Register to comment.