Page 1 of 2

Create an ads to the right side of viewforum/viewtopic

Posted: Thu Jun 14, 2007 5:51 pm
by Leon
I want to create an ad place (with same style as prosilver around it)

Just like in this image below:

I do not want to edit it in the header/footer
so all pages get it, only viewforum/viewtopic

Inex page gona have another similar thing in it so :)

Image

Posted: Sat Jun 16, 2007 11:29 am
by battye
Would you be happy with putting it in a table, or do you wish to maintain the tableless CSS which IIRC is in place in proSilver?

Posted: Sat Jun 16, 2007 12:18 pm
by Grinch
I may be able to come up with something if I can get some free time.

Posted: Sun Jun 17, 2007 3:58 am
by Leon
battye wrote:Would you be happy with putting it in a table, or do you wish to maintain the tableless CSS which IIRC is in place in proSilver?
Any way is fine, but the closer to original phpBB code the better...


Also, i think this mod has "the box code"
http://startrekguide.com/forum/viewtopi ... =84&t=2711

Posted: Sun Jun 17, 2007 4:09 pm
by battye
Okay, if you don't mind a table (it will be borderless, so you won't know the difference at a glance) it should be fairly easy.

Would you be able to PM me the contents of these files?

styles/proSilver/templates/viewforum_body.html and styles/proSilver/templates/viewtopic_body.html

Thanks :)

Posted: Sun Jun 17, 2007 11:33 pm
by Leon
Done

Posted: Tue Jun 19, 2007 2:10 pm
by battye
Okay, we'll experiment with viewforum.

Find

Code: Select all

<!-- IF S_HAS_SUBFORUM -->
<!-- IF not S_IS_BOT -->
<ul class="linklist">
      <li class="rightside"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></li>
</ul> 
BEFORE ADD

Code: Select all

<table border="0">
<tr>
<td>
FIND

Code: Select all

<!-- IF .topicrow and not S_DISPLAY_ACTIVE -->
   <div class="topic-actions">
      <!-- IF S_IS_POSTABLE and not S_IS_BOT -->
      <div class="buttons"> 
BEFORE ADD

Code: Select all

</td>
<td>####AD CODE HERE####</td>
</tr>
</table>
Let me know how that goes :)

Apologies if the layout doesn't work, simply undo the changes if that is the case :oops:

Posted: Fri Jun 22, 2007 12:22 pm
by battye
How did this work out?

Posted: Thu Jun 28, 2007 7:26 pm
by Leon
One of my HDD has crached at home,
or it is begining to.

So i test this in the comming week when my
home computer is up and running again...

Lycky me that it is one the c: disk with no
importent things on it anymore =P

Posted: Fri Jun 29, 2007 8:14 am
by battye
Ouch, bad luck mate! :shock:

Glad to hear there was no important information on your C: drive.

Posted: Sun Jul 08, 2007 2:58 am
by Leon
It almost worked, as you can see it dosen't uses the full width then :?

Image

Posted: Sun Jul 08, 2007 5:36 am
by battye
Instead of

Code: Select all

<table border="0">
<tr>
<td>
Try

Code: Select all

<table width="100%" border="0">
<tr>
<td>

Posted: Sun Jul 08, 2007 4:26 pm
by Leon
Yes it seems to work now, i gona test it for a few days with different browsers etc,

and then i tell you the results, and you can publish it as a full RC2 mod at phpbb.com or something :)

Posted: Sun Jul 08, 2007 5:33 pm
by Leon
Some changes:

Code: Select all

Find:
<!-- BEGIN topicrow -->

Before add:

<table width="100%" border="0"> 
<tr> 
<td VALIGN="TOP">

-----------------------------------------------

Find:
<!-- END topicrow -->

After add:

</td> 
<td VALIGN="TOP" WIDTH="170" ALIGN="CENTER">

<!-- Banner Start -->

### YOUR BANNER HERE ###

<!-- Banner END -->

</td> 
</tr> 
</table>

Posted: Sun Jul 08, 2007 5:37 pm
by Leon
That works greate on the normal viewforum.php

But if you look at the category, it dosen't look so good =/

Like this:

Normal viewforum:
http://www.adminklubben.se/viewforum.php?f=2
Works fine

Looking at the categories:
http://www.adminklubben.se/viewforum.php?f=28
Ads gets under

Is it possibly to exclude the ads to be shown in the categories ?
like:
<!-- if_category_dont_show --> <!-- end if -->
something like all other strange new code bb3 has...