Create an ads to the right side of viewforum/viewtopic

All web design discussion, including Ultimate Quiz MOD support.

Moderator: CricketMX Forum Moderators

Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

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
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

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?
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
Grinch
Site Admin
Site Admin
Posts: 2170
Joined: Sat Jan 24, 2004 2:02 pm
Location: Martinsburg, WV

I may be able to come up with something if I can get some free time.
Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

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
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

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 :)
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

Done
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

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:
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

How did this work out?
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

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
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

Ouch, bad luck mate! :shock:

Glad to hear there was no important information on your C: drive.
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

It almost worked, as you can see it dosen't uses the full width then :?

Image
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

Instead of

Code: Select all

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

Code: Select all

<table width="100%" border="0">
<tr>
<td>
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

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 :)
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

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>
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
Leon
Know-It-All
Know-It-All
Posts: 282
Joined: Tue Feb 07, 2006 11:09 am
Contact:

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...
Talk, discuss or debate everything about Volunteer 'ing at this forum!
Volunteer Forum Community
Post Reply