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.
Stuff Displayer
Stuff Displayer
0
This discussion has been closed.
Comments
1) How about adding Stuffy to the sidebar
2) I'm thinking of adding a Stuffy.html file that has the code for various services. Like Goolge ads, or ilike.com top music etc. All people have to do is copy paste them with minor changes. call it Stuffy Repository
3) leave out the banners, users should add their own code of how the banners should display. whether they want 3 ads in the middle, just like 9rules.com or whatever. will make for a simpler extension. just placeholders nothing else. Plus ur header is OUTSIDE the html tag. replace one of the banner with the header so its inside the body tag
4) New interface. like that of Drupal 5. that will allow u to add as many Stuffy's as u wish
Sure, that would make sense. I just need to find how, but it shouldn't be too hard.
2) I'm thinking of adding a Stuffy.html file that has the code for various services.
Personally I'd rather prefer to avoid this. I rewrote the second version in order to allow users to enter their content without modifiying anything. But since I didn't find a real solution to the line breaks problem, an external file would probably help.
3) leave out the banners, users should add their own code of how the banners should display.
Well I added banners for lazy people who don't want to code anything. In fact I even wanted to make the stylesheet editable via the administrative settings, but didn't figure out how to do. People who want a highly customizable banner can use the above-header-stuff-displayer, and others can just use the banners items. Need to have a look to this HTML tag though, thanks for pointing this.
4) New interface. like that of Drupal 5.
Looks cool, but I've no idea how to do that. I still need to dramatically improve my PHP skills...
I've tried various things and well, they worked...
At the moment I'm writing a new version which works almost the same way than the current one (checkboxes in the administrative settings) but where you put your content in external HTML files. And guess what ? There's no problem with Google Adsense
it works pretty well
avcourse the best option will be to put all of it in the database.
don't worry about line breaks
u can use preg_replace. i tested it and it will add line breaks to javascript as well
so anyone wanting a line break should use the br tag
I'll just need to test it on Vanilla 1.1.1 now (or 1.1.2...)
Using the database would be cool, I'll give it a try when I'll be more confident with my MySQL skills. I'm still thinking about settings for displaying stuff separately on each tab, and side panel support. I guess I'll try this for a next version.
Now, the bad news: I bought a Wii.
So, if I don't have the time... you'll now why
Extension Options
use this code
$ExtensionOptions = $Context->GetDefinition('ExtensionOptions'); $Panel->AddList($ExtensionOptions, 10); $Panel->AddListItem($ExtensionOptions,$Context->GetDefinition('StuffDisplayerSettings'),GetUrl($Context->Configuration, 'settings.php', '', '', '', '', 'PostBackAction=StuffDisplayer')); }
1 - Open extensions /StuffDisplayer/style.css, copy then delete these lines:
#LeftBannerStuffDisplayer { display:block; width: 256px; height: 64px; background: url(images/left-banner.gif) no-repeat; margin-left: 0px; } #RightBannerStuffDisplayer { display:block; width: 256px; height: 64px; background: url(images/right-banner.gif) no-repeat; position:absolute; right:0px; }
2 - Open your style's vanilla.css file then paste what you just copied before and change the background for the banners. Do that for each style you have in stock.