Forum

Notifications
Clear all

Editing viewstory.tpl

TwifanUK
(@twifanuk)
Eminent Member

HI I am trying to add an advert to the viewstory page @  http://www.gigglesnort.net/fiction/viewstory.php?sid=172 above the author name and story name. I want it to be the same one as on the main page at the top http://www.gigglesnort.net/fiction/index.php

I tried to edit viewstory.tpl the same way I did with index.tpl on the main page but it's not working.

This is what I have on viewstory.tpl

<!-- INCLUDE BLOCK : header -->

<div class="block">
<div class="content" align="center">
  <!-- Begin BidVertiser code -->
<SCRIPT LANGUAGE="JavaScript1.1" SRC="" http://bdv.bidvertiser.com/BidVertiser.dbm?pid=511798&bid=1285552" ;" type="text/javascript"></SCRIPT>
<noscript><a href="" http://www.bidvertiser.com/bdv/BidVertiser/bdv_advertiser.dbm">advertising</a></noscript> ;"
<!-- End BidVertiser code -->


</div>
</div>

<div id="skinny">
<div id="pagetitle">{title} by {author}</div>
<div class="storyinfo"> [{reviews} - {numreviews}]<br />
{toc} {reportthis}<br />
{printicon} <br />
{adminlinks} </div>
<div class="jumpmenu">{textsizer}{jumpmenu}</div>
<!-- START BLOCK : storynotes -->
<div class='notes'>
<div class='title'><span class='label'>Story Notes:</span></div>
<div class='noteinfo'>{storynotes}</div>
</div>
<!-- END BLOCK : storynotes -->
<!-- START BLOCK : notes -->
<div class='notes'><div class='title'><span class='label'>Author's Chapter Notes:</span></div><div class='noteinfo'>{notes}</div></div>
<!-- END BLOCK : notes -->
<div id="story">{story}</div>
<!-- START BLOCK : endnotes -->
<div class='notes'><div class='title'><span class='label'>Chapter End Notes:</span></div><div class='noteinfo'>{endnotes}</div></div>
<!-- END BLOCK : endnotes -->
<div id="prev">{prev}</div><div id="next">{next}</div>
{storyend}
<div class="jumpmenu2">{jumpmenu2}</div>
<div class="respond">{addtofaves} {roundrobin}</div>
{reviewform}
</div>
<!-- INCLUDE BLOCK : footer -->

As you can see, I copied the advert div from index.tpl thinking it would work. What would I need to do to fix this problem and have the advert appear at the top of pretty much all pages on the site?

Quote
Topic starter Posted : 22/02/2013 3:25 pm
kali
 kali
(@kali)
Reputable Member

When I want an ad to appear across the whole site 99% of the time I put it in the header.tpl.

Are you using storyindex? If so, you might need to add it there instead.

Skins made by Kali are no longer supported!

ReplyQuote
Posted : 22/02/2013 7:05 pm
TwifanUK
(@twifanuk)
Eminent Member

Thanks. That worked great. 🙂

Kali, I had a look at your fanfiction directory (link in your signature) and most of the sites listed/linked no longer exist. Just thought I'd let you know.

ReplyQuote
Topic starter Posted : 23/02/2013 5:00 pm
Share: