Post by Justin on Aug 3, 2012 15:32:33 GMT
Before anyone asks, I posted this because honestly I had nothing better to do and I might as well
Just a collection of some ProBoards codes I have made (all of them are PM related ), There are more I have created then I list but most of them areexclusive to certain forums (like my Drop Down Menu Bar is exclusive to The Music Addict, even though it is copyrighted to me, still exclusive there until it dies ).
So ya here is my collection
PS: All links I post too are only test sites, registration is disabled and there is no active community, so it's really not "advertising"
______________________________________________
Justins PM Bar
Live preview: justintest20.proboards.com/index.cgi
Global Header
_________________________________________________
Justins PM Text in Menu Bar v0.5
Simply adds "You have x messages x are new" to the menu bar.
Live Preview: justintest20.proboards.com/index.cgi?board=afasf
Global Header:
___________________________________________________
Justins PM Text in Menu Bar v1
An improvement from my v0.5 one, adds "New Personal Messages: x" to the right of the menu without moving the menu buttons.
Live Preview: justintest20.proboards.com/index.cgi?board=test2
________________________________________________
Justins PM Text Anywhere v1
Adds "Welcome back x you have x new messages" where ever you want it to (Like a side table).
Live preview: justintest20.proboards.com/index.cgi?board=asdf
Add this where you want the PM Information to show up
Global Header
________________________________________
And that is it for now , currently I am working on a Mini Profile anywhere code where you can put the member Mini Profile on a side table like so:
Display Name
Avatar
Posts: x
Karma: x
Location: x
And I'll let everyone know when it is released
_________________________________________________
Note: I DO NOT take code requests unless I really like you
Just a collection of some ProBoards codes I have made (all of them are PM related ), There are more I have created then I list but most of them areexclusive to certain forums (like my Drop Down Menu Bar is exclusive to The Music Addict, even though it is copyrighted to me, still exclusive there until it dies ).
So ya here is my collection
PS: All links I post too are only test sites, registration is disabled and there is no active community, so it's really not "advertising"
______________________________________________
Justins PM Bar
Live preview: justintest20.proboards.com/index.cgi
Global Header
<table id="pmbar" class="bordercolor" align="center" width="92%" height="5%" cellpadding="0" cellspacing="1" style="position: relative; bottom: 1px;">
<tr>
<td id="Left_Cell" class="menubg" width="100%">
</td>
<td class="menubg" width="50%">
</td>
</tr>
</table>
<script type="text/javascript">
<!--
/* ---------------------------------------------------------------------------------
Justin's PM bar - Special thanks to Wrighty, Alex, and James for the help.
Last Update - 12/30/10
--------------------------------------------------------------------------------------
*/
var Left_Cell=document.getElementById('Left_Cell');
if(pb_username=="Guest"){
Left_Cell.innerHTML='<div style="float:left">Welcome Guest</div> <div style="float:right"> <a href=\"/index.cgi?action=login\">Please Login</a> <a href=\"/index.cgi?action=register\">or Register</a> to use this forum feature. |<a href=\"/index.cgi?action=forgotpassword\">Forgot Password</a></div>';
}else if(pb_username!="Guest"){
var Message_Font=document.getElementsByTagName('font').item(2).innerHTML;
var New_Messages=(Message_Font.match(/<\/a>, (.+?) (is|are) new./i))? RegExp.$1 : '';
var Total_Messages=(Message_Font.match(/>(.+?) message(s)?<\/a>/i))? RegExp.$1 : '';
if(New_Messages==1){
var idkwhattonamethis = '';
}else{
var idkwhattonamethis = 's';
}
Left_Cell.innerHTML='<div style="float:left">Welcome <a href=\"/index.cgi?action=viewprofile\">' + pb_displayname + '</a> , you have <a href=\"/index.cgi?action=pm\"> ' + New_Messages + '</a> new message' + idkwhattonamethis + ' and a total of <a href=\"/index.cgi?action=pm\"> ' + Total_Messages + '</a> Message' + idkwhattonamethis + ' </div> <div style="float:right"> <a href=\"/index.cgi?action=modifyprofile&user=' + pb_username + '\">Modify Profile</a> | <a href=\"/index.cgi?action=pmprefs\">PM Preferences</a> | <a href=\"/index.cgi?action=pmsend\">Compose</a> </div>';
}
document.getElementsByTagName('body').item(0).insertBefore(document.getElementById('pmbar'), document.getElementsByTagName('table').item(0).nextSibling);
//-->
</script>
_________________________________________________
Justins PM Text in Menu Bar v0.5
Simply adds "You have x messages x are new" to the menu bar.
Live Preview: justintest20.proboards.com/index.cgi?board=afasf
Global Header:
<script type="text/javascript">
//Justins PM Text
//Do not repost or claim as own.
/////Dont Edit/////
var _m = document.getElementsByTagName("td")[5];
var _M = _m.innerHTML;
var _t = document.getElementsByTagName("td");
if(_t[2].innerHTML.match(/you have <.+?>(.+?) (message|messages)<.+?>, (\d+) (are|is) new./i)){
_m.innerHTML = '<span style="float: left; width: 50%;">You have '+RegExp.$1+' '+RegExp.$2+' and '+RegExp.$3+' '+RegExp.$4+' new</span><span style="float: right; width: 50%;">'+_M+'</span>';
}else{
_m.innerHTML = '<span style="float: left; width: 50%;">Welcome Guest, Please login or Register.</span><span style="float: right; width: 50%;">'+_M+'</span>';
}
</script>
___________________________________________________
Justins PM Text in Menu Bar v1
An improvement from my v0.5 one, adds "New Personal Messages: x" to the right of the menu without moving the menu buttons.
Live Preview: justintest20.proboards.com/index.cgi?board=test2
<script type="text/javascript">
<!--
/* ---------------------------------------------------------------------------------
PM Text in Navigation bar - Justin
Do not repost without permission
--------------------------------------------------------------------------------------
*/
var text = document.getElementsByTagName('td')[5];
var Message_Font=document.getElementsByTagName('font').item(2).innerHTML;
var New_Messages=(Message_Font.match(/<\/a>, (.+?) (is|are) new./i))? RegExp.$1 : '' +text.innerHTML;
var lol = document.getElementsByTagName('td')[3];
if(pb_username=="Guest"){
text.innerHTML= ' ' + lol.innerHTML + '<div style="float:right" id="pmtext"><div style="margin-top: -15px">Welcome please <a href="index.cgi?action=login">Login</a> or <a href="index.cgi?action=register">Register</a></div></div> ' ;
}
else if(pb_username!="Guest"){
text.innerHTML= ' ' + lol.innerHTML + '<div style="float:right" id="pmtext"><div style="margin-top: -15px">New Personal Messages: <a href=index.cgi?action=pm> ' + New_Messages + '</a></div></div> ' ;
}
//-->
</script>
________________________________________________
Justins PM Text Anywhere v1
Adds "Welcome back x you have x new messages" where ever you want it to (Like a side table).
Live preview: justintest20.proboards.com/index.cgi?board=asdf
Add this where you want the PM Information to show up
<div id="pmtextany"></div>
Global Header
<script type="text/javascript">
<!--
/* ---------------------------------------------------------------------------------
PM Text anywhere (Good for side tables!)
Copyright 2012 Justin
Do not repost without permission.
--------------------------------------------------------------------------------------
*/
var text=document.getElementById('pmtextany');
var Message_Font=document.getElementsByTagName('font').item(2).innerHTML;
var New_Messages=(Message_Font.match(/<\/a>, (.+?) (is|are) new./i))? RegExp.$1 : '';
if(pb_username=="Guest"){
text.innerHTML='Hello Guest, you must first <a href="index.cig?action=register">Register</a> or <a href="index.cgi?action=login">Login</a> to access this forum feature.';
}
else if(pb_username!="Guest"){
text.innerHTML='Welcome back ' +pb_displayname+ ' you have<a href=index.cgi?action=pm> ' + New_Messages + '</a> new messages ';
}
//-->
</script>
________________________________________
And that is it for now , currently I am working on a Mini Profile anywhere code where you can put the member Mini Profile on a side table like so:
Display Name
Avatar
Posts: x
Karma: x
Location: x
And I'll let everyone know when it is released
_________________________________________________
Note: I DO NOT take code requests unless I really like you