|
Author | Topic: Add a Copyright to every Post (Read 11,058 times) |
california
![[image] [image]](http://iycatacombs.com/socal/neon/images/ranks/admin.gif) I'm not here... member is offline
![[avatar] [avatar]](http://img241.echo.cx/img241/6917/california7bk.gif)
Joined: Nov 2004 Gender: Male  Posts: 6,425
|  | Add a Copyright to every Post « Thread Started on May 21, 2005, 1:58am » | |
This code will add a copyright message including the poster's name after each post, right above the signature area. It works for guests too.
<script type="text/javascript"> <!-- /* add a copyright to every user's post by california */
var copyright="©2005, <i>#username#</i>, All Rights Reserved.";
var td=document.getElementsByTagName("td"); if(location.href.match(/action=(display|search2)/)){ for(i=0;i<td.length;i++){ var tda=td[i].getElementsByTagName("a"); if(td[i].width=="20%" && td[i].className.match(/windowbg/)){ if(tda.length>2){ if(tda[1].name) dname = tda[2].innerHTML; else dname = tda[1].innerHTML; }else{ var dname = (td[i].innerHTML.match(/<\/a>\s?(\w+)\s?</i)) ? RegExp.$1 : 'guest'; } } if(td[i].colSpan=="3" && td[i].vAlign=="bottom"){ td[i].innerHTML=copyright.replace(/#username#/gi,dname)+td[i].innerHTML; } } } // --> </script>
Board Footers, global okay
Edit the message in cyan. The red will be replaced with the user's display name, so make sure it appears somewhere in the message as #username#, and do not change it.
|
|
|
Sharon
![[image] [image]](http://www.iycatacombs.com/socal/neon/images/ranks/new_member.gif) member is offline
![[avatar] [avatar]](http://img143.imageshack.us/img143/2119/pussnboots3tw.gif)
ooo feel the power of the sad eyes
![[homepage] [homepage]](http://www.sz-ex.com/socal/neon/images/icons/www_sm.gif) Joined: Apr 2005 Gender: Female  Posts: 39 Location: texas
|  | Re: Add a Copyright to every Post « Reply #1 on Jul 20, 2005, 7:35pm » | |
what happens when 2006 rolls around?
|
|
|
Soumak
![[image] [image]](http://iycatacombs.com/socal/neon/images/ranks/graphics_mod_soumak.gif) member is offline
![[avatar] [avatar]](http://img500.imageshack.us/img500/4446/avatar2rh.gif)
Dreams are Ment to be Lived
Joined: Feb 2005 Gender: Male  Posts: 2,082 Location: Austin, Texas
|  | Re: Add a Copyright to every Post « Reply #2 on Jul 20, 2005, 7:58pm » | |
lol change it to 2006
|
![[image] [image]](http://img328.imageshack.us/img328/282/memoryofcali2nm.gif) -----------------------------------------------------------------------------------------------------------
![[image] [image]](http://img500.imageshack.us/img500/1916/rollingballsig0oe.gif) |
|
california
![[image] [image]](http://iycatacombs.com/socal/neon/images/ranks/admin.gif) I'm not here... member is offline
![[avatar] [avatar]](http://img241.echo.cx/img241/6917/california7bk.gif)
Joined: Nov 2004 Gender: Male  Posts: 6,425
|  | Re: Add a Copyright to every Post « Reply #3 on Jul 21, 2005, 12:44am » | |
Quote:| what happens when 2006 rolls around? |
|
That's why I made the copyright message edittable...
|
|
|
pharmerphil
![[image] [image]](http://www.iycatacombs.com/socal/neon/images/ranks/new_member.gif) member is offline
Joined: Nov 2004 Posts: 16
|  | Re: Add a Copyright to every Post « Reply #4 on Jul 23, 2005, 3:30am » | |
can this be edited to just add a copyright to admin posts?
| |
|
california
![[image] [image]](http://iycatacombs.com/socal/neon/images/ranks/admin.gif) I'm not here... member is offline
![[avatar] [avatar]](http://img241.echo.cx/img241/6917/california7bk.gif)
Joined: Nov 2004 Gender: Male  Posts: 6,425
|  | Re: Add a Copyright to every Post « Reply #5 on Jul 24, 2005, 12:33am » | |
if(td[i].colSpan=="3" && td[i].vAlign=="bottom" && dname.match(/(displayname1|displayname2)/i)){
|
|
|
pharmerphil
![[image] [image]](http://www.iycatacombs.com/socal/neon/images/ranks/new_member.gif) member is offline
Joined: Nov 2004 Posts: 16
|  | Re: Add a Copyright to every Post « Reply #6 on Jul 27, 2005, 2:25am » | |
Thanks Cali....but ...SWOOSH, over my head, where do I subtitute for that line? edit the red?
| |
|
detectiveunknown
![[image] [image]](http://www.iycatacombs.com/socal/neon/images/ranks/senior_member.gif) member is offline
Joined: Dec 2004 Gender: Male  Posts: 326
|  | Re: Add a Copyright to every Post « Reply #7 on Jul 27, 2005, 3:22pm » | |
No..add the red.. from here
if(td[i].colSpan=="3" && td[i].vAlign=="bottom"){
The new code will be..
Code: <script type="text/javascript"> <!-- /* add a copyright to every user's post by california */
var copyright="©2005, <i>#username#</i>, All Rights Reserved.";
var td=document.getElementsByTagName("td"); if(location.href.match(/action=(display|search2)/)){ for(i=0;i<td.length;i++){ var tda=td[i].getElementsByTagName("a"); if(td[i].width=="20%" && td[i].className.match(/windowbg/)){ if(tda.length>1){ var dname=tda[1].innerHTML; }else{ var dname = (td[i].innerHTML.match(/<\/a>\s?(\w+)\s?</i)) ? RegExp.$1 : 'guest'; } } if(td[i].colSpan=="3" && td[i].vAlign=="bottom" && dname.match(/(displayname1|displayname2)/i)){ td[i].innerHTML=copyright.replace(/#username#/gi,dname)+td[i].innerHTML; } } } // --> </script>
|
|
| |
|
daspokenone Guest
|  | Re: Add a Copyright to every Post « Reply #8 on Sept 2, 2005, 5:04pm » | |
can this code be modified to put the real names instead of the user names
| |
|
california
![[image] [image]](http://iycatacombs.com/socal/neon/images/ranks/admin.gif) I'm not here... member is offline
![[avatar] [avatar]](http://img241.echo.cx/img241/6917/california7bk.gif)
Joined: Nov 2004 Gender: Male  Posts: 6,425
|  | Re: Add a Copyright to every Post « Reply #9 on Sept 2, 2005, 9:12pm » | |
Quote:can this code be modified to put the real names instead of the user names |
|
It already uses the display names (as opposed to user names). So for me it would say '© california' and not '© admin' which is what I'd prefer...
|
|
|
daspokenone Guest
|  | Re: Add a Copyright to every Post « Reply #10 on Sept 6, 2005, 11:51am » | |
well the folks on my boards are posting poetry and would like to use the real names of the people who wrote it for me it would be copywite jason banks instead of da spoken one
| |
|
detectiveunknown
![[image] [image]](http://www.iycatacombs.com/socal/neon/images/ranks/senior_member.gif) member is offline
Joined: Dec 2004 Gender: Male  Posts: 326
|  | Re: Add a Copyright to every Post « Reply #11 on Sept 6, 2005, 2:13pm » | |
You will have to manually do that. You don't want every single post on your board to say that someone like jason banks originally wrote it. It's best to tell your members put a copyright with the post
| |
|
california
![[image] [image]](http://iycatacombs.com/socal/neon/images/ranks/admin.gif) I'm not here... member is offline
![[avatar] [avatar]](http://img241.echo.cx/img241/6917/california7bk.gif)
Joined: Nov 2004 Gender: Male  Posts: 6,425
|  | Re: Add a Copyright to every Post « Reply #12 on Sept 6, 2005, 8:38pm » | |
Quote:well the folks on my boards are posting poetry and would like to use the real names of the people who wrote it for me it would be copywite jason banks instead of da spoken one
|
|
How is the code supposed to know what your real name is?
|
|
|
Sharon
![[image] [image]](http://www.iycatacombs.com/socal/neon/images/ranks/new_member.gif) member is offline
![[avatar] [avatar]](http://img143.imageshack.us/img143/2119/pussnboots3tw.gif)
ooo feel the power of the sad eyes
![[homepage] [homepage]](http://www.sz-ex.com/socal/neon/images/icons/www_sm.gif) Joined: Apr 2005 Gender: Female  Posts: 39 Location: texas
|  | Re: Add a Copyright to every Post « Reply #13 on Oct 12, 2005, 10:45pm » | |
is there a way to have this code work for just particular posts? like.. in my board my members post poetry, stories, and such, and it's cool that it says, "©2005, Sharon, All Rights Reserved." after my poem but.. it also says ©2005, (username), All Rights Reserved. after comments also. is there a way to disable the copyright code for replies?
|
|
|
california
![[image] [image]](http://iycatacombs.com/socal/neon/images/ranks/admin.gif) I'm not here... member is offline
![[avatar] [avatar]](http://img241.echo.cx/img241/6917/california7bk.gif)
Joined: Nov 2004 Gender: Male  Posts: 6,425
|  | Re: Add a Copyright to every Post « Reply #14 on Oct 12, 2005, 11:34pm » | |
Well if you only want it for specific posts then it's best to just put it there manually at the end of your post, honestly. It's hard to distinguish between the first post of the thread and the replies.
|
|
|
|