umm i have to edit nugget.php each time i have a new application that i want to be on stuff like news blog and contact me i edit it and put extension.php in the list of the pages that the pages that the panel will come on it is getting old so i was wondering if there was something to edit.. so that extension.php automatically comes up as one of the pages to select for the panel to show up on
there are a few post integration addons that allow you to do what you want (designed for external pages). It should be pretty easy to modify it to be in a nugget.
i found a way to fix my prob for anyone who has a similar problemo
umm what do i edit to make it so that any panel i add will automatically be added to the extension.php as well? cuz that is now how it is now and so panels don't show up on stuff like news blog and contact me ---- umm i have to edit nugget.php each time i have a new application that i want to be on stuff like news blog and contact me i edit it and put extension.php in the list of the pages that the pages that the panel will come on it is getting old so i was wondering if there was something to edit.. so that extension.php automatically comes up as one of the pages to select for the panel to show up on
all you have to do is make a page with page manager, called it extension or something and link it to extension.php (make sure you don't click tab hidden until the last step is done) after you do that if you go to edit the nugget a place appears and is unchecked for extension of whatever you named the page (and now you can go and check the box that says tab is hidden from view)
Hi all, I couldn't find a way to link a specific nugget to a specific category & discussion, so here is what i came up with.
- create the category (get the http address and substitute with /?CategoryID=14)
- create the first discussion (get the http address and substitute with /comments.php?DiscussionID=53)
- then just embed the html code that you want.
- copy and paste into the nugget html box.
<?php
$url=explode('&',$_SERVER['REQUEST_URI']);
$category='/?CategoryID=14';
$discussion='/comments.php?DiscussionID=53';
if (($url[0]==$category) OR ($url[0]==$discussion))
{
echo '<p><div align="center"><img src="Law.jpg" width="124" height="143"></div></p>';
}
?>
Hope this helps someone.....oh and before I forget, GREAT Extension.
Has the author thought about making the messages collapsable/closable if the admin so chooses? That would add a whole new dimension to this extension, allowing to display messages to be minimized by the user if he/she wishes to have the information at another time, or close it altogether.
I get the following PHP Notice when I use Nuggets:
Notice: Undefined index: WEBROOT in /var/www/hms/extensions/Nugget/library/Function.Nugget.php(61) : eval()'d code on line 8
How can I fix that?
//EDIT: Ok, I fixed it. One of my nuggets tryed to read $Context->Configuration['WEBROOT']. Must be $Context->Configuration['WEB_ROOT'].
elm
Does anyone know if the "in comments" weights have been changed? I'd like to put one right at the top of comments. Putting a nugget above the content makes the tables shift when the window gets to small in Internet Explorer.
Also it would be cool to have an algorithm that would put one at the bottom of all the comments (because the footer messes up the tables when in IE too).
extension.php should work. nuggets should detect it.
i think you have to enable pages before you enable nuggets then i think it can see it. somewhere on this thread there is mention of extension.php
How would I fix this to add the # of comments? There is only a (0) next to the Top Discussions links.
<?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>';
?>
I have installed and uploaded the Nuggets extension. When I "cook a nugget", then hit the save button - nothing happens. It just takes me back to the main nugget management pagfe. My nugget does not seem to appear anywhere. I have tried to put a nugget on the "inside panel" and a graphic "above the banner". Am I missing something?
When I first installed the extension, it did not have the nugget.php file (it only had the nugget.css file). I set the folder, as per the instructions, to writable (777). I did a fresh install of the extension. I went to try it and got the same results. Now when I go to my FTP program, I see the nugget.php file there, with permission set to 644. I changed it to permission 777, but it reverts back to the 644 - it will not keep the writable permission of 777.
All it is doing when I try to "cook a nugget" is take me back to the Mugget Management page - with no nugget showing. Any help wpuld be appreciated.
TIP: ISSUES WITH PAGE MANAGER
I've just spent 4 hours trying to figure out why some pages created in page manager did not show up in the list of pages where nuggets are allowed. The reason turned out to be simple: Nuggets only loops over the VISIBLE TABS. So... if you HIDE a page from the tabs in page manager, it will not show up in this list.
Hence, to set the pages where a particular nugget appears, first SHOW all hidden pages in page manager, set the nugget permissions, and then you may HIDE the pages again in page manager.
Ideally this add-on would be changed to loop over all pages created in page manager, and list those, not just the visible tab set.
Hey, I am having the same problem as WebChap above where after cooking a nugget nothing happens it just takes me back to the Nugget Extension Page. Does anyone know how he got his to work or possible fixes I can try. Thanks
Comments
- Spam
- Abuse
0 · Insightful Awesome LOL ·i have to edit nugget.php each time i have a new application that i want to be on stuff like news blog and contact me
i edit it and put extension.php in the list of the pages that the pages that the panel will come on
it is getting old
so i was wondering if there was something to edit.. so that extension.php automatically comes up as one of the pages to select for the panel to show up on
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·Cheers for the help!
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·all you have to do is make a page with page manager, called it extension or something and link it to extension.php (make sure you don't click tab hidden until the last step is done) after you do that if you go to edit the nugget a place appears and is unchecked for extension of whatever you named the page
(and now you can go and check the box that says tab is hidden from view)
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·could someone please suggest why this doesn't work in a panel nugget?
<script type="text/javascript" src="http://w.sharethis.com/widget/?tabs=web,post,email&amp;charset=utf-8&amp;services=,facebook,myspace,google_bmarks,delicious,stumbleupon,digg&amp;style=rotate&amp;publisher=0b6855b6-73ee-4633-8e89-5e6e68b218e9"></script>- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·I am having the same problem as WebChap above where after cooking a nugget nothing happens it just takes me back to the Nugget Extension Page. Does anyone know how he got his to work or possible fixes I can try. Thanks
- Spam
- Abuse
0 · Insightful Awesome LOL ·