Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   Profuse Host Forum > Hosting Section > Knowledge Base > Tutorials

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, 02:49 PM
John
Status: Online
Administrator
 
Join Date: Sep 2005
Posts: 439
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
Reply With Quote

  #2 (permalink)  
Old 12-11-2007, 05:00 AM
z7online
Status: Offline
Junior Member
 
Join Date: Dec 2007
Posts: 5
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
Reply With Quote

  #3 (permalink)  
Old 12-11-2007, 12:47 PM
John
Status: Online
Administrator
 
Join Date: Sep 2005
Posts: 439
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>
Reply With Quote

  #4 (permalink)  
Old 12-12-2007, 01:29 AM
z7online
Status: Offline
Junior Member
 
Join Date: Dec 2007
Posts: 5
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....
Reply With Quote

  #5 (permalink)  
Old 12-12-2007, 03:13 AM
John
Status: Online
Administrator
 
Join Date: Sep 2005
Posts: 439
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?
Reply With Quote

  #6 (permalink)  
Old 12-12-2007, 06:38 AM
z7online
Status: Offline
Junior Member
 
Join Date: Dec 2007
Posts: 5
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.
Reply With Quote

  #7 (permalink)  
Old 12-12-2007, 06:55 AM
z7online
Status: Offline
Junior Member
 
Join Date: Dec 2007
Posts: 5
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.
Reply With Quote

  #8 (permalink)  
Old 01-23-2008, 07:31 AM
z7online
Status: Offline
Junior Member
 
Join Date: Dec 2007
Posts: 5
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
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
Insert Multiple Audio into DVD seghwa Windows Operating System and Software 0 11-02-2008 05:44 AM
wat does it mean on ps2 if the ps2 says pls insert ps2 or ps1 game, and their is Richie G Playstation 1 07-14-2008 09:51 AM
C# OLE Insert Into Statement zztech Programming / Scripting / Coding Forum 1 06-24-2008 06:54 PM
I'm Having trouble inserting your codes in Drupal. z7online Free Web Hosting Support 3 12-10-2007 02:52 PM


All times are GMT -7. The time now is 08:18 PM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80