Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
copyrhight
Topic Started: Jul 11 2008, 08:39 PM (792 Views)
miss_titbasket
Member
 *  
how can i put more credits in the actual copyright bar?
Offline Profile Quote Post Goto Top
 
IceMetalPunk
Member Avatar
We are all IMPerfect. Be proud!
 *   *   *   *   *   *  
It's untested, but this should work (in the FOOTERS):

Quote:
 
<script>

credits="Extra Credits Here";

divs=document.getElementsByTagName("div");
for (p=0; p<divs.length; p++) {
c=divs[p].className;
html=divs[p].innerHTML;

if (c.toLowerCase()=="row4" && (html.match(/© 200[0-9]/ig) || html.match(/© 200[0-9]/ig))) {

divs[p].innerHTML=divs[p].innerHTML.replace(/<br \/>Page creation time: <b>/i," | "+credits+"<br />Page creation time: <b>");

}
}
</script>


change the BOLD RED text to whatever credits you want to add. All HTML should work.

The only restriction is that if you need to use a double-quote (the " character), use \" instead or the code will break.

-IMP ;) :)
Edited by IceMetalPunk, Jul 11 2008, 10:50 PM.
Offline Profile Quote Post Goto Top
 
miss_titbasket
Member
 *  
unfortunately it doesn't show up at all. I copied the code exactly the way you posted it but doesn't work
Offline Profile Quote Post Goto Top
 
Tony
Member Avatar
If found, please report missing.

@Ice The line breaks in the IF footer don't use the closing / :P

Quote:
 
<script>
credits="designed for cookies!";

divs=document.getElementsByTagName("div");
for (p=0; p<divs.length; p++) {
c=divs[p].className;
html=divs[p].innerHTML;

if (c.toLowerCase()=="row4" && (html.match(/© 200[0-9]/ig) || html.match(/© 200[0-9]/ig))) {

divs[p].innerHTML=divs[p].innerHTML.replace(/<br>Page creation time: <b>/i," <br /> "+credits+"<br>Page creation time: <b>");

}}
</script>

This will append your text to a new line. If you wish to have it follow the official copyright replace the <br /> with | again.

To add extra lines between your text, use:
Quote:
 
<script>
credits="designed for cookies!";

divs=document.getElementsByTagName("div");
for (p=0; p<divs.length; p++) {
c=divs[p].className;
html=divs[p].innerHTML;

if (c.toLowerCase()=="row4" && (html.match(/© 200[0-9]/ig) || html.match(/© 200[0-9]/ig))) {

divs[p].innerHTML=divs[p].innerHTML.replace(/<br>Page creation time: <b>/i," <br /><br /> "+credits+"<br /><br>Page creation time: <b>");

}}
</script>
Online Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · zIFBoards - Skinning & Code Support · Next Topic »
Add Reply