The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Bottom Text in PhpBB3

3 posters

Go down

Solved Bottom Text in PhpBB3

Post by !_NICK_! Sat 19 Nov 2011 - 8:02

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_!
!_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 Sat 19 Nov 2011 - 9:14

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()">
avatar
Guest
Guest


Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by LGforum Sat 19 Nov 2011 - 12:25

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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by Guest Sat 19 Nov 2011 - 12:36

Yeah LGforum, but my code works too. Razz
avatar
Guest
Guest


Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by LGforum Sat 19 Nov 2011 - 12:42

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

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by !_NICK_! Sat 19 Nov 2011 - 19:00

I need the CSS codes to do this. I can't edit templates with PhpBB3.
!_NICK_!
!_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 Sat 19 Nov 2011 - 19:02

! 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
avatar
Guest
Guest


Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by Guest Sat 19 Nov 2011 - 22:43

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.
avatar
Guest
Guest


Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by !_NICK_! Sun 20 Nov 2011 - 4:05

That Java code don't work.
!_NICK_!
!_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 Sun 20 Nov 2011 - 7:14

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


Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by ankillien Sun 20 Nov 2011 - 7:22

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
ankillien
Energetic

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

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by !_NICK_! Sun 20 Nov 2011 - 7:43

Yes it works, but how could I have a link inserted into and and break a line?
!_NICK_!
!_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 Sun 20 Nov 2011 - 7:46

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
ankillien
Energetic

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

Back to top Go down

Solved Re: Bottom Text in PhpBB3

Post by !_NICK_! Sun 20 Nov 2011 - 7:56

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? https://help.forumotion.com/t99533-how-to-make-an-iframe-open-by-clicking-an-image
!_NICK_!
!_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 Sun 20 Nov 2011 - 8:02

Glad I could help out Very Happy

Topic Solved
ankillien
ankillien
Energetic

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

Back to top Go down

Back to top

- Similar topics

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