Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-31-2007, 10:15 PM
New Pligger
Pligg Version: 9.8.1
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Montreal, QC
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Add text ads to story content area

Hi All,

I would like to add text based ads to the main story area of my site, as well as the other content areas. I suppose this would mean on the Published, Upcoming and Story pages.

I'm not using Google Adsense as my site is poker themed and therefore goes against the TOS of Google.

I'm using AdBrite but i suppose the concept is the same. I simply want to put my script so that it appears above the story link. I'd just like to know the correct location to insert my code.

Please see the link for a visual.

CheckRaise / Latest News

Also, a while back, I thought I saw a thread about inserting small ads between every 2 or 3 story links throughout the content area. I can't seem to find it now though. If anyone can link to that it would be much appreciated.

Thx!

knuckle05
Reply With Quote
  #2 (permalink)  
Old 10-31-2007, 10:27 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,367
Thanks: 169
Thanked 437 Times in 276 Posts
To have them appear directly above the story title open link_summary.tpl

and find the following
Code:
<div class="top"> 
        <div class="toptitle" id="ls_thetitle-{$link_shakebox_index}">
            {if $use_title_as_link eq true}
                {if $url_short neq "http://" && $url_short neq "://"}
                    <a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if}>{$title_short}</a>
                {else}
                    <a href="{$story_url}">{$title_short}</a>
                {/if}
             {else}
                {if $pagename eq "story"}
                    <a href="{$url}">{$title_short}</a>
                {else} 
                  <a href="{$story_url}">{$title_short}</a>
                {/if}
            {/if}        
        </div>
Place your code in between, for example:
Code:
<div class="top">
<adbright code >
Code:
<div class="toptitle" id="ls_thetitle-{$link_shakebox_index}">
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
The Following User Says Thank You to chuckroast For This Useful Post:
  #3 (permalink)  
Old 10-31-2007, 11:30 PM
New Pligger
Pligg Version: 9.8.1
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Montreal, QC
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Thanks chuckroast, much appreciated.
Reply With Quote
  #4 (permalink)  
Old 11-01-2007, 07:52 AM
New Pligger
 
Join Date: Mar 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
did this solution work ?
Reply With Quote
  #5 (permalink)  
Old 11-01-2007, 08:35 PM
New Pligger
Pligg Version: 9.8.1
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Montreal, QC
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
It works, but actually, it displays an ad over EVERY story title. Could someone recommend a way to make it only appear at the top of the first story, and perhaps a suggestion in order to have it appear after only every 3 or 4 stories?

Thx
Reply With Quote
  #6 (permalink)  
Old 11-01-2007, 09:27 PM
New Pligger
Pligg Version: 9.8.1
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Montreal, QC
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
I found an answer...

Ajax-Source.com
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

BB code is On
Smilies are Off
[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
Story content for Editorial? glmedia General Help 1 04-22-2008 04:46 PM
Problem with clicked Story content and Categories rediff200 General Help 3 01-10-2008 05:14 PM
How do I change the CSS text color in this area? ufoman Template Support 2 10-26-2007 07:36 PM
Story status change text pligger2 General Help 2 01-16-2007 02:32 PM
How show a short content in homepage,and show the full content in story page? iweb General Help 5 05-07-2006 08:22 PM


Search Engine Friendly URLs by vBSEO 3.2.0