How to change the homepage..add new boxes/content |
| |||
Hey, I want to add some new things on the homepage only. Can anyone tell me where to place my code please? I want to put my content under the "Quick share" box. Thanks very much
|
| |||
what do you mean with homepage ? there is no file called home.tpl.php
|
| |||
I think he means dashboard
|
| |||
Yep the dashboard/homepage, what would normally be index. home.tpl.php is in the themes/blue folder that is included in the download.
|
| |||
the quick share form you find in dashboard.module.php [code]
|
| |||
Thanks for the quick reply :) Unfortunately I dont know PHP :( Thanks again :)
|
| |||
Like this [img]http://indexjunkie.com/images/91453288148857412920.png[/img]
|
| |||
Hey, Yeah thats exactly what I mean :) If I knew PHP Im sure I could easily do it but I dont know how to put in PHP, I had a look at the code and tried a few things but couldnt get it working.
|
| |||
Ok I dont know if this is the right way to do it or not I'm a newb at this too hehe ,but it works for me ,give it a go... Put this [code]$lblocks[] = array('title' => t('YOUR TITLE HERE'),'content'=>'<div>...Put Stuff Here...</div>');[/code] above or below this [code]$lblocks[] = array('title' => t('Quick share'),'content'=>stream_form($client['id']).'<div style="height:7px"></div>');[/code] in your dashboardmod.php file...
|
| |||
[code] [/code] or [code] [/code]
|
| |||
there you go johnd done Cheers Falcone :)
|
| |||
Thank you both very much! It is working on my site :) What I am wanting to do is add in an RSS news feed in the dashboard (And also the home page for users not logged in). I have already added in a box with normal text and that worked great :) Thanks once again for the help, really appreciated.
|