The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Bottom Text in PhpBB3

View previous topic View next topic Go down

Solved Bottom Text in PhpBB3

Post by !_NICK_! on November 19th 2011, 8:02 am

I need the CSS code to be able to put text at the bottom of the forum such as, Skin Created by ! NICK !. What's the CSS code I need?

!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by Guest on November 19th 2011, 9:14 am

Try to add this code in Announcements:
Code:
<script>function footer () {a = document.getElementById("page-footer").innerHTML;document.getElementById("page-footer").innerHTML = a + '
<center><b>CONTINUTUL IN FOOTER!</b></center>';}</script><body onload="footer()">

Guest
Guest


Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by LGforum on November 19th 2011, 12:25 pm

The code above could be written:

Code:

        <script>function footer () {document.getElementById("page-footer").innerHTML += '<center><b>CONTINUTUL IN FOOTER!</b></center>';}</script><body onload="footer()">

Also, you can't put a new body tag in the page.
Just enclose it in jQuery function:
Code:

jQuery(function() {
document.getElementById("page-footer").innerHTML += '<b>CONTINUTUL IN FOOTER!</b>';
});

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by Guest on November 19th 2011, 12:36 pm

Yeah LGforum, but my code works too. Razz

Guest
Guest


Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by LGforum on November 19th 2011, 12:42 pm

Shorter is better for execution times though Wink
And still, the page should only have one body tag.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by !_NICK_! on November 19th 2011, 7:00 pm

I need the CSS codes to do this. I can't edit templates with PhpBB3.

!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by Guest on November 19th 2011, 7:02 pm

! NICK ! wrote:I need the CSS codes to do this. I can't edit templates with PhpBB3.
U should paste the code in your JS management. Very Happy

Guest
Guest


Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by Guest on November 19th 2011, 10:43 pm

@LGforum wrote:Also, you can't put a new body tag in the page.
While it's TERRIBLE programming practice, every current browser will allow this.

Guest
Guest


Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by !_NICK_! on November 20th 2011, 4:05 am

That Java code don't work.

!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by Guest on November 20th 2011, 7:14 am

Have you tried dion's second code?
Code:
jQuery(function() {
document.getElementById("page-footer").innerHTML += '<b>Helooo!</b>';
});

Guest
Guest


Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by ankillien on November 20th 2011, 7:22 am

Hi,

Here is the jQuery code...

Code:
$(function(){
$('#page-footer .navbar').append('<p>Theme Created By NICK!</p>');
});

It is tested and works. Add it via javascript code management for all pages.

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by !_NICK_! on November 20th 2011, 7:43 am

Yes it works, but how could I have a link inserted into and and break a line?

!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by ankillien on November 20th 2011, 7:46 am

You can do it by HMTL...

Code:
$(function(){
$('#page-footer .navbar').append('<p>LINE 1 GOES HERE</p><p>LINE 2 GOES HERE. <a href="http://google.com">Link to Google</a></p>');
});

Just edit this part...

Code:
<p>LINE 1 GOES HERE</p><p>LINE 2 GOES HERE. <a href="http://google.com">Link to Google</a></p>

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by !_NICK_! on November 20th 2011, 7:56 am

Oh, thanks! Your the best Coder I've ever seen. You need to be on the Officials Group. The people who help run Forumotion and get paid. Wink

Solved!

PS: You think you can stop by this topic? http://help.forumotion.com/t99533-how-to-make-an-iframe-open-by-clicking-an-image

!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by ankillien on November 20th 2011, 8:02 am

Glad I could help out Very Happy

Topic Solved

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum