You are not logged in.

Majdi 2.0

Intermediate

  • "Majdi 2.0" started this thread

Posts: 83

Location: Bordeaux - France

  • Send private message

1

Thursday, April 23rd 2009, 6:31pm

advertissement

i need to put a skyscraper banner on the right side of my forum like on webhostingtalk.com
which templates should i modify?

[PixeL]

Community Team

Posts: 2,359

Location: Essen

  • Send private message

2

Thursday, April 23rd 2009, 6:33pm

Hello,

this should help you: Wie Banner einfügen? . If not, feel free to ask ;)
Mit freundlichen Grüßen
Okan Esen
-------------------------------------
Ich beantworte keine Supportfragen per PN, IM (MSN, ICQ) und/oder E-Mail!
-------------------------------------

Ab dem 15. Juli - 28. August nur sporadisch bis kaum erreichbar!

Majdi 2.0

Intermediate

  • "Majdi 2.0" started this thread

Posts: 83

Location: Bordeaux - France

  • Send private message

3

Thursday, April 23rd 2009, 6:38pm

thank you
that explains how to add a banner to the header, i need to add it on the right of the forums listings, i dont know which template to edit

[PixeL]

Community Team

Posts: 2,359

Location: Essen

  • Send private message

4

Thursday, April 23rd 2009, 6:40pm

Hello,

that's exactly, what you want. I've used the header, because that ist the template, that is implemented in all pages in your board ;)
Mit freundlichen Grüßen
Okan Esen
-------------------------------------
Ich beantworte keine Supportfragen per PN, IM (MSN, ICQ) und/oder E-Mail!
-------------------------------------

Ab dem 15. Juli - 28. August nur sporadisch bis kaum erreichbar!

Majdi 2.0

Intermediate

  • "Majdi 2.0" started this thread

Posts: 83

Location: Bordeaux - France

  • Send private message

5

Thursday, April 23rd 2009, 6:58pm

then i didnt understand the code well
can you please explain it in english

[PixeL]

Community Team

Posts: 2,359

Location: Essen

  • Send private message

6

Thursday, April 23rd 2009, 7:23pm

Hello,

okay, but my english is not very well ;)

Create a folder in the directory "/wcf/images/your-folder-name" - I took the name advertisement-banners.

Template

Create a new template with the title "advertisementBox" and this content:

Template source code

1
2
3
4
5
<div id="advertisementBox">
   <div class="banner">
  	<a href="#"><img src="{@RELATIVE_WCF_DIR}images/advertisement-bannersr/bannername.png" alt="Advertisement" /></a>
   </div>
</div>



CSS:
Put this code into your CSS-Declerations:

Cascading style sheet

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#advertisementBox {
   width: 500px; /* Customize value */
   height: 100px; /* Customize value */
   background: #ccc;
   border: 1px solid #09f;
   position: relative;
   float: right;
   z-index: 90;
   margin-top: 100px; /* Customize value */
}

#advertisementBox img {
   width: 468px; /* Customize value */
   height: 68px; /* Customize value */
}


Template edit:
Edit the template header and search for:

Template source code

1
{* user messages system*}


And add below it:

Template source code

1
{include file=advertisementBox}


P.S. I hope, you understand it.
Mit freundlichen Grüßen
Okan Esen
-------------------------------------
Ich beantworte keine Supportfragen per PN, IM (MSN, ICQ) und/oder E-Mail!
-------------------------------------

Ab dem 15. Juli - 28. August nur sporadisch bis kaum erreichbar!

Majdi 2.0

Intermediate

  • "Majdi 2.0" started this thread

Posts: 83

Location: Bordeaux - France

  • Send private message

7

Thursday, April 23rd 2009, 7:38pm

first of all your english is fine, better than my german :p
i made the changed you recommended but finished with a bad result, the banner was added under the header and not next to the forums listing as i expected
maybe i did something wrong, can you please assist me?
check the screenshot for a better explanation

[PixeL]

Community Team

Posts: 2,359

Location: Essen

  • Send private message

8

Thursday, April 23rd 2009, 7:46pm

Hello,
first of all your english is fine, better than my german :p
thank you :)

Replace this:

Cascading style sheet

1
2
3
4
5
6
7
8
9
10
#advertisementBox {
   width: 500px; /* Customize value */
   height: 100px; /* Customize value */
   background: #ccc;
   border: 1px solid #09f;
   position: relative;
   float: right;
   z-index: 90;
   margin-top: 100px; /* Customize value */
}


With:

Cascading style sheet

1
2
3
4
5
6
7
8
9
10
#advertisementBox {
   width: 500px; /* Customize value */
   height: 100px; /* Customize value */
   background: #ccc;
   border: 1px solid #09f;
   position: absolute;
   right: 50px; /* Customize value */
   z-index: 90; 
   margin-top: 100px; /* Customize value */
}
Mit freundlichen Grüßen
Okan Esen
-------------------------------------
Ich beantworte keine Supportfragen per PN, IM (MSN, ICQ) und/oder E-Mail!
-------------------------------------

Ab dem 15. Juli - 28. August nur sporadisch bis kaum erreichbar!

Majdi 2.0

Intermediate

  • "Majdi 2.0" started this thread

Posts: 83

Location: Bordeaux - France

  • Send private message

9

Thursday, April 23rd 2009, 8:05pm

that worked but there is a problem
the banner placement is different according to the screen resolution :s

[PixeL]

Community Team

Posts: 2,359

Location: Essen

  • Send private message

10

Thursday, April 23rd 2009, 8:23pm

Hello,

try it with percentages ;)
Mit freundlichen Grüßen
Okan Esen
-------------------------------------
Ich beantworte keine Supportfragen per PN, IM (MSN, ICQ) und/oder E-Mail!
-------------------------------------

Ab dem 15. Juli - 28. August nur sporadisch bis kaum erreichbar!

Majdi 2.0

Intermediate

  • "Majdi 2.0" started this thread

Posts: 83

Location: Bordeaux - France

  • Send private message

11

Thursday, April 23rd 2009, 9:08pm

its working
thanks :)

Majdi 2.0

Intermediate

  • "Majdi 2.0" started this thread

Posts: 83

Location: Bordeaux - France

  • Send private message

12

Sunday, November 22nd 2009, 12:57am

Hello,

I have applied the same codes to wbb v3.1 and it didn't work. How can I fix it?

[PixeL]

Community Team

Posts: 2,359

Location: Essen

  • Send private message

13

Sunday, November 22nd 2009, 2:16pm

Hello,

what didn't work? More informations please.
Mit freundlichen Grüßen
Okan Esen
-------------------------------------
Ich beantworte keine Supportfragen per PN, IM (MSN, ICQ) und/oder E-Mail!
-------------------------------------

Ab dem 15. Juli - 28. August nur sporadisch bis kaum erreichbar!

Majdi 2.0

Intermediate

  • "Majdi 2.0" started this thread

Posts: 83

Location: Bordeaux - France

  • Send private message

14

Sunday, November 22nd 2009, 2:49pm

the whole thing, the banner didn't show as it did on wbb 3.0

[PixeL]

Community Team

Posts: 2,359

Location: Essen

  • Send private message

15

Sunday, November 22nd 2009, 3:05pm

Hello,

it should work. Can you give me a link to your board?
Mit freundlichen Grüßen
Okan Esen
-------------------------------------
Ich beantworte keine Supportfragen per PN, IM (MSN, ICQ) und/oder E-Mail!
-------------------------------------

Ab dem 15. Juli - 28. August nur sporadisch bis kaum erreichbar!

[PixeL]

Community Team

Posts: 2,359

Location: Essen

  • Send private message

16

Sunday, November 22nd 2009, 3:11pm

Hello,

okay, I get your link, but i can't see the code, which you should add into the template?
Mit freundlichen Grüßen
Okan Esen
-------------------------------------
Ich beantworte keine Supportfragen per PN, IM (MSN, ICQ) und/oder E-Mail!
-------------------------------------

Ab dem 15. Juli - 28. August nur sporadisch bis kaum erreichbar!

Majdi 2.0

Intermediate

  • "Majdi 2.0" started this thread

Posts: 83

Location: Bordeaux - France

  • Send private message

17

Sunday, November 22nd 2009, 3:14pm

i found the problem :)
the template was there but i forgot to set the style to use the modified template pack
thanks