LiveZilla Live Help
 


Go Back   Chime Host - Web Hosting Forum > Web Hosting Section > Knowledge Base > Tutorials
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Tutorials Contribute only full How-To\'s and Tutorials here. Submit Tutorials, Guides and Hints. ALL TUTORIALS ARE MODERATED AND YOUR TUTORIAL WILL *NOT* BE *VISIBLE* UNTIL IT IS ACCEPTED.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-10-2007, 09:49 PM
Administrator
 
Join Date: Sep 2005
John has disabled reputation
Default How to insert ads in Drupal?

This tutorial focuses on the default skin "garland" for Drupal CMS.

1. Either log into your ftp or have a Drupal installation file on your computer.
2. Browse to "themes/garland" and open up node.tpl.php
3. Locate
Quote:
<div class="content">
4. After add our ad code "728x90". You can pick black or white background depending on your site design.

5. For footer, look up
Quote:
<?php print $content ?>
6. After add the footer code
5. Save the file and upload it back to "themes/garland"

You can see the demo here - Cheap Domain Name For Your Website | Drupal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-11-2007, 12:00 PM
Junior Member
 
Join Date: Dec 2007
z7online is on a distinguished road
Default

This is my code (original code, non edited)
Quote:
<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
<?php if ($picture) {
print $picture;
}?>
<?php if ($page == 0) { ?>
<h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2>
<?php }; ?>
<span class="submitted"><?php print $submitted?></span> <span class="taxonomy"><?php print $terms?></span>
<div class="content"><?php print $content?></div>
<?php if ($links) { ?>
<div class="links">&raquo; <?php print $links?></div>
<?php }; ?>
</div>
I tried inserting as you said, but the ads failed to come up. I think i'm doing something wrong, so could u give me back the ready code.

Thanx
Div
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-11-2007, 07:47 PM
Administrator
 
Join Date: Sep 2005
John has disabled reputation
Default

Well i'll place the locations on the code where you need to place our ad code. This way you will know where to edit in the future. If you are still confused, please reply here.

Quote:
<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
<?php if ($picture) {
print $picture;
}?>
<?php if ($page == 0) { ?>
<h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2>
<?php }; ?>
<span class="submitted"><?php print $submitted?></span> <span class="taxonomy"><?php print $terms?></span>
<div class="content">728x90 AD CODE GOES HERE<?php print $content?>FOOTER CODE GOES HERE</div>
<?php if ($links) { ?>
<div class="links">&raquo; <?php print $links?></div>
<?php }; ?>
</div>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-12-2007, 08:29 AM
Junior Member
 
Join Date: Dec 2007
z7online is on a distinguished road
Default

I inserted the code exactly the way you have stated, but no ads seem to come up.
Even in the Demo, there are no ads anywhere...
So wats the problem?
I dont think i'm doing anything wrong this time, hopefully....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-12-2007, 10:13 AM
Administrator
 
Join Date: Sep 2005
John has disabled reputation
Default

please give me url of your drupal installation. I just checked the demo url and I am able to see the ad and footer without any problems. What kind of browser are you using? Are you sure you have javascript enabled?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-12-2007, 01:38 PM
Junior Member
 
Join Date: Dec 2007
z7online is on a distinguished road
Default

Ya, my javascript is enabled.
URL: Z7 Online HOME | Z7 Online (still developing it)
I havent changed the theme yet, coz i have only edited one theme till now.
I use netscape navigator (9.x)
I tried on other browsers and on my frenz computer elsewhere. It didnt work there either. my site and the demo site...both showed no ads.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 12-12-2007, 01:55 PM
Junior Member
 
Join Date: Dec 2007
z7online is on a distinguished road
Default

Ads for the demo site work on IE, so now i'll be checking for my site...
But i think, something should be done so that they also appear in netscape, to increase exposure of the ads.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-23-2008, 02:31 PM
Junior Member
 
Join Date: Dec 2007
z7online is on a distinguished road
Default I found an easier and safer way....

1) Go to the Drupal Admin Page
2) Click “Blocks”
3) Click “Add block”
4) For “Block description:” type in “xxxxx(wat da admins here think is best)”
5) In “Block body: Paste an appropriate code
6) Click “Input format” and select “Full HTML”
7) Click “Save Block”
8) Find “xxxxx” in the list of blocks
9) Click the drop down box next to it and select “(One of the locations the admin think is appropriate)”
10) Click “Save Blocks”

Hope its cool!
Cheerz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fix javascript errors in my windows vista computer? Gloria Javascript 1 02-18-2010 06:48 AM
I wanted to place an advert? Lekan SEO - Search Engine Optimization 1 02-14-2010 08:45 PM
Does anyone know a program that can put numbers in order ? primet21 Programming / Scripting / Coding Forum 0 01-23-2010 07:09 PM


All times are GMT +1. The time now is 02:43 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ChimeHost, a Profuse Solutions LLC company