Hey Guys I have a tennis site and I want to put in live scores. I Know where to get the live scores from but it requires me to do somethings I just don't know how to do. It says
"To verify your account and enable full livescore functionality on your website, you need to place a link on your homepage according to below instructions.
Please copy and paste the following HTML code into your homepage source code on a well visible place."
Then they give me something that i need to copy and paste I know where i want it to go. i want it to show up in the live scores section in my primary links. But how would i make it show up there? would I have to create a page then put the code on the page? i'm so confused any help would be greatly appreciated.
Comments
Hiya,First I would go to
Hiya,
First I would go to Administer > Site configuration > Input Formats
and make sure that the Full HTML is the default.
Putting the scores on the homepage > node
Then create content and choose Page. In the body section right click and paste your code in. (if you are using FckEditor or TinyMCE click 'Switch to plain text editor' just below the body input box)
This bit is very important go down to Publishing options and make sure
Published (this will publish the page)
Promoted to front page (this will promote it to the front page: node)
Sticky at top of list (this will make sure its at the top of the page)
are all ticked and click save.
All done now this page will be on your homepage and at the top.
To get you scores in the header section
Administer > Site building > Blocks
Add block
Now give the block a description and a Block Title
In the body section right click and paste your code in. (if you are using FckEditor or TinyMCE click 'Switch to plain text editor' just below the body input box)
Save block
Administer > Site building > Blocks
You should now see your block listed click on its dropdown and select 'header'
Save Blocks
Now the custom block will be in the header section.
You can put this block wherever you want it to in the block section.
Robert.
But What if for my particular
But What if for my particular theme I don't have a headers region. The only thing that goes to the top of my site is my primary links. This makes things very difficult for me. I know some people may be saying well just change the theme but this a drupal template that i bought and i love the theme. I also have troubles with drop down menus as well. Will one particular module help with all this?
Make a Header Region
Go into your theme main folder and you should see a
'whatever-your-theme-is-named'.info file (right click copy and paste (to make a backup))
Now open it and insert the following
regions[header] = Header
below one of the other entrys which looked similar
and save
now right click on page.tpl.php and copy and paste (to make a backup)
Then open it and insert the following code
<div id="header-region" class="clear-block"><?php print $header ?></div>just under the /div on the last entry for the primary.
save
now go into your blocks and you will find a new block called header.
All Done
Remember to always make backup of the files you are changing
Yeah i made to back
Yeah i made to back page.tpl.php's because i didn't have a clue what i was doing. i've had to revert to the back ups quite a bit lol. I will try this and hopefully i do it right. Thank you for your responses I really appreciated. Drupal can be so complicated to people who are just getting started.
Thanks it worked the only
Thanks it worked the only problem is that the space that I am given for the header region is not nearly enough space can i edit the them in like photoshop or something? I see the header at the block page but the space given is way to small for anything to be seen there.
Should be fine
The space shown is only to show you where the block region is, once you add your code into a new block it should resize itself you can always use css to make it bigger. Just add something to the block to test it first.
Robert