Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.
Whats wrong with this code?

public function Base_Render_Before($Sender) { $Sender->AddCssFile($this->GetResource('design/custom.css', FALSE, FALSE)); }
Need help, http://dragonx.net/community
0
Comments
I'm afraid that, without the context, it's hard to figure out what's wrong.
My shop | About Me
A wild stab in the dark is that the function declaration isn't in the scope of a class. Have you modified the WhosOnline plugin at all?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
best not work on a live site.
grep is your friend.
@Srggamer
parse error - indicates problems with {};, etc.
I suspect it is the lines above it causing the problem -
I bet:
T_PUBLIC happens
you missed closing bracket "}" on a previous function or put too many {} in. Usually a bracket mismatch
T_STRING errors
happens when you mess up your quotes " ' . or mismatch them
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
What I am trying to do, is make a modification of the Whosonline plugin to make it instead of names, Profile pictures, What I am trying now to implement is the Custom CSS, that Includes the showing of the images the layout and so on. Because I do not wish to add the Custom CSS, into my theme.
http://pastebin.com/QaruHHyh
This Is how the code looks like.
Thats what I am currently trying to do.
Yes I agree, but working on a live site allows me to be able to see it with other plugins in operation. Though installing a LocalHost Vanilla Forum may be the way to go with Plugin development, or modification which I am currently trying to learn.
@Srggamer
That square bracket, ], on the line 5 is causing the parsing error. Looks like it should be a closing curly brace instead }.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
around line 29
// why the ]
] public function Base_Render_Before($Sender) {
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
For large code pastes like this, I would suggest a service like pastebin.com and just linking it
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
http://pastebin.com/QaruHHyh
Uploaded to this, thanks for tip.
Removed it still causing error. On anew line of course.
http://gyazo.com/1b483dfd90dbab0bfdfa12a7c0333a06
if you leave the top line out with the php it is easier to paste the complete code.
or use
for <
and hgtonight beat me to the bracket.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
In your pastebin link, you should just remove that curly brace.
peregrine already mentioned this
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Okay. I decide to download the official version. Can someone tell me how I can make a CSS request?
the way you did it, just don't add syntax errors. Your routine you posted at the top was fine, you just messed up the code above it. to produce the error you got.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Finished made, it work. I wonder am I allowed to release this plugin, even though I did not fully code it?
yeah just give attribution to the other coder within the about.php
There was an error rendering this rich post.
Thanks!
/default.php: The addon's key is not the same as its folder name.
Any thing I can read somewhere? About this.