sjeeps. i changed the ID to numeric. so now if ur using foreign language the ID won't create problems like they were for Zero. those are the only changes. Oh wait don't upload the nuggets.php file. damn i forgot to remove it
circuit thats something needs to be changed in Private messages extension. It uses different names for the postback and Tab name. that why the nugget isn't showing.
in Line 595 and 601 Search for privatemessages and replace it with PrivateMessages.
also change inside Nuggets.php file if you already have a nugget set to display in Private Messages tab
also, i tried to add a nugget including a file like this
{ include(TEMPLATEPATH . '/single1.php'); }
and got this error
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/.lock/circuitron2/www.copsandrobbers.net/messageboard/extensions/Nugget/nugget.php on line 1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/.lock/circuitron2/www.copsandrobbers.net/messageboard/extensions/Nugget/nugget.php on line 1
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/.lock/circuitron2/www.copsandrobbers.net/messageboard/extensions/Nugget/nugget.php on line 1
i guess that's cos of the quotes in the PHP... i wasn't sure how else to include a file though?
Hello all,
Has anyone had any luck limiting a particular nugget to a specific category?
I see each category has an id, CategoryID = #. It shows as a passed variable, URL/?CategoryID = 1, when clicking on a particular category from the categories page. Is this var accessible from the discussions page or elsewhere?
Using "print_r(array_keys(get_defined_vars()));", I get the array of defined variables as:
Array ( [0] => phpHTML [1] => Context [2] => Matches [3] => MatchCount [4] => HTML [5] => FullString [6] => i [7] => CurHTML )
If I can locate and parse CategoryID, I was thinking of something like:
If ( isset (CategoryID) && CategoryID == 1) {
nugget code;
}
If anyone has some var hunting info, or code suggestions I'd appreciate it. Thank you.
I recently installed this extension and have found it incredibly useful and easy to use. (I really should have known...MySchizoBuddy always delivers the stuff...)
I notice that Nuggets can contain PHP code which can actually interface with the Vanilla framework. For example one could display a user's name by adding to any particular Nugget: <?php global $Context; echo $Context->Session->User->Name; ?> I'm wondering if it's possible to add some PHP code that could list the last 5 discussion topics of a specific (hardcoded) Category? Anyone? Anyone? Bueller?
there is a code here that shows Latest 5 blog posts
u can change that to show latest 5 forum posts
not hard at all.
that code is mentioned in the Blog extension.
Category Specific Nuggets. yeah that can be done. I'm back home and I cannot run my comp which requires 110V. So when I'll buy a converter to 220V I'll add this to nuggets.
I've a problem with a particular role, I'm not sure where it comes from. One of my users has moderation privileges so he can access the setting panel to review new applicants. It's the only setting he's supposed to have access to. He gets this error at the top of the page when he goes to the settings tab : Notice: Undefined variable: NuggetForm in ../extensions/Nugget/default.php on line 85
Anyone else having a hard time getting Google Analytics installed with Nuggets? I've tried to put it into my footer and it keeps coming up with uninstalled.
Hey all, this seems like an genius Add-On, one thing I'm having trouble with is when I add a nugget to the side panel, it seems to add a <ul> around everything. So instead of being a proper <ul> in the side panel I get a mess of nested lists that messes up my margins and layout. Any insight in how this works so I can modify would be amazing. Thanks!!
Even when I remove all the html formatting from my content there are additional list tags, so I'm thinking it must be a default with the Add-On, is there any way to remove the <ul> tags
Fixed my other problem. I was being an imbecile - as my brother pointed out. BUT I have a new question, I have added some extra pages using this technique:
But now I can't get anything in the sidebar to show up except the "Start new discussion" button. I'd like to have the nugget menu to appear on these pages, so I guess I don't have a firm understanding of how the sidepanel works, if anyone can help me that'd be great.
nuggets in the panel are given an extra <ul> tag which causes them to indent further than my other panel items. can anyone suggest which part of the stylesheet and/or code i can edit to get everything to align? either by altering the margin, or getting rid of the extra <ul> tags...
All you really need to do is wrap your nugget in a DIV tag with a unique ID. Then use that to write your CSS off. You can add CSS in any number of different ways, the easiest being to exit your theme... Or you can use inline CSS in the nugget... so many different ways to do things ;)
@circuit yeah nuggets in the panel have a ul tag, thats cause all links in the panel are that way, thats why I added it. Its hardcoded. whether u add a list or a link in the panel, they are all surrounded by a ul tag. @TilesOne Post ur php code that ur using.
I think the cleanest way to style the nugget would be to include a stylesheet by calling the appropriate delegate in php. I was hoping someone would point me in the right direction since I'm not very familiar with the APIs yet...
Comments
those are the only changes.
Oh wait don't upload the nuggets.php file. damn i forgot to remove it
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •in Line 595 and 601
Search for privatemessages and replace it with PrivateMessages.
also change inside Nuggets.php file if you already have a nugget set to display in Private Messages tab
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •i noticed i couldn't get private messages to sit above the panel nuggets, no matter what weight i gave them. i just solved this by changing
$Panel->AddList($Title, 100);to
$Panel->AddList($Title, 001);in the private messages' default.php.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •{ include(TEMPLATEPATH . '/single1.php'); }and got this error
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/.lock/circuitron2/www.copsandrobbers.net/messageboard/extensions/Nugget/nugget.php on line 1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/.lock/circuitron2/www.copsandrobbers.net/messageboard/extensions/Nugget/nugget.php on line 1
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/.lock/circuitron2/www.copsandrobbers.net/messageboard/extensions/Nugget/nugget.php on line 1
i guess that's cos of the quotes in the PHP... i wasn't sure how else to include a file though?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •i have pulled my wordpress functions into vanilla so i was using that to pull in a template file.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Any insights?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I notice that Nuggets can contain PHP code which can actually interface with the Vanilla framework. For example one could display a user's name by adding to any particular Nugget:
<?phpglobal $Context;
echo $Context->Session->User->Name;
?>
I'm wondering if it's possible to add some PHP code that could list the last 5 discussion topics of a specific (hardcoded) Category? Anyone? Anyone? Bueller?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I've a problem with a particular role, I'm not sure where it comes from. One of my users has moderation privileges so he can access the setting panel to review new applicants. It's the only setting he's supposed to have access to. He gets this error at the top of the page when he goes to the settings tab :
Notice: Undefined variable: NuggetForm in ../extensions/Nugget/default.php on line 85- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Didn't I fix this in the new release? somone else had the same problem as well
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •http://lussumo.com/community/discussion/3507/adding-html-to-php-pages/
But now I can't get anything in the sidebar to show up except the "Start new discussion" button. I'd like to have the nugget menu to appear on these pages, so I guess I don't have a firm understanding of how the sidepanel works, if anyone can help me that'd be great.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •yeah nuggets in the panel have a ul tag, thats cause all links in the panel are that way, thats why I added it. Its hardcoded. whether u add a list or a link in the panel, they are all surrounded by a ul tag.
@TilesOne
Post ur php code that ur using.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •