Personal Photo
Options
Custom Title
The village idiot
Personal Info
Location: No Information
Born: No Information
Website: No Information
Interests
No Information
Other Information
Age:: 17
Gender:: Male
Skype:: No Information
Statistics
Joined: November 20, 2007
Status: (Offline)
Last Seen: Yesterday at 10:56 pm
Local Time: Nov 23 2009, 01:49 AM
2906 posts (4 per day) ( 2.30% of total forum posts )
Contact Information
No Information
No Information
No Information
No Information
No Information
Signature
|
 |
posiden5665
Moderators
|
Topics
Posts
Comments
Friends
Settings
Video
Music
November 11, 2009 08:46 pm
|
September 02, 2009 01:28 pm
Well I always liked the ajax for the mark forum as read that MyBB had so I decided to make it for jcink. Place at the very end of the board, and don't ask why I wanted to kill myself for like an hour trying to figure out the problem only to realize the way I did it has to be put at the bottom  | CODE | <!-- Needed as a work around for macro variable problem --> <div style='display: none' id='replaceWithCOff'> <{C_OFF}> </div> <script type='text/javascript'> //Created by posiden5665 //For support visit http://jcink.com //Place at end of the board because of an array issue with the links function ajaxMarkRead(location, linkNum){ var requestObj; if (window.XMLHttpRequest){ requestObj = new XMLHttpRequest(); }else if (window.ActiveXObject){ requestObj = new ActiveXObject("Microsoft.XMLHTTP"); }else{ document.location.href = location; } requestObj.onreadystatechange = function(){ if(requestObj.readyState == 4){ if(requestObj.status == 200){ linkys[linkNum].parentNode.innerHTML = document.getElementById("replaceWithCOff").innerHTML; }else{ document.location.href = location; } } } requestObj.open("GET", location, true); requestObj.send(null); }
linkys = document.getElementsByTagName("a"); for(var v = 0; v < linkys.length; v++){ if(linkys[v].title == "Mark forum as read?"){ linkys[v].href = "javascript: ajaxMarkRead('" + linkys[v].href + "', " + v + ")"; } } </script> |
|
May 02, 2009 07:00 pm
| CODE | <script type='text/javascript'> //Page Manager for JFB //Created by posiden5665 of http://jsources.b1.jcink.com
function newPage(actName, title, icon, source){ pageArr.push(new Array(actName, title, icon, source)); } function putIntoBar(putInArr){ subMenuTds = document.getElementById('submenu').getElementsByTagName('td'); if(subMenuSide == 0){ if(putInArr[2] != ""){ subMenuTds[0].innerHTML += "<img src='" + putInArr[2] + "' alt='icon' />"; } subMenuTds[0].innerHTML += "<a href='index.php?act="+ putInArr[0] + "'>" + putInArr[1] + "</a>"; }else{ if(putInArr[2] != ""){ subMenuTds[1].innerHTML += "<img src='" + putInArr[2] + "' alt='icon' />"; } subMenuTds[1].innerHTML += "<a href='index.php?act="+ putInArr[0] + "'>" + putInArr[1] + "</a>"; }} var pageArr = new Array(); var foundPageInArr = -1;
//NEW PAGE SOURCE MUST ALL BE ON ONE LINE!!!!!!!!!!!
newPage("testPage", "Test Title","http://test/url.png", "<div style='border: 1px solid #000'>test</div>");
//NEW PAGE SOURCE MUST ALL BE ON ONE LINE!!!!!!!!!!!
var putIntoSubmenu = true; // Note: If you would not like to have the script automatically put links into the submenu please change true to false above. var subMenuSide = 0; //If you chose to put the items into the submenu specify which side to put the links on. 0 = left side 1 = right side
for(var i = 0; i < pageArr.length; i++){ if(putIntoSubmenu){ putIntoBar(pageArr[i]); } document.location.search.match(/act=([a-zA-Z0-9]+)/) if(RegExp.$1 == pageArr[i][0]){ foundPageInArr = i; }} if(foundPageInArr != -1){ document.write(pageArr[foundPageInArr][3]); document.title = pageArr[foundPageInArr][1]; document.write("<div style='display: none'>"); } </script>
|
newPage("testPage", "Test Title","http://TEST/URL.jpg", "<div style='border: 1px solid #000'>Test HTML</div>"); The first item in red is what comes int he url such as act=testPage. The second item is the title of the page used in the submenu link and the title of the window. The third item is an icon for the submenu bar if you have it enabled. The last item is the HTML source for what you want displayed. THIS MUST BE ALL ON ONE LINE!!! Its easier if you do it in notepad or something create your source then delete the new lines later Also you must escape double quotes with a \ so if you wanted a double quote in there use \" instead of just regular ". However you can just use ' in place of " to make life easier.
You can add more page by adding more of those lines.
Enable and disable submenu linking in the code where it says.
Put under <% STATS %>
| CODE | <script type='text/javascript'> if(foundPageInArr != -1){ document.write("</div>"); } </script>
|
Additional Notes: N/A
|
April 27, 2009 06:23 pm
Put under <% BOARD %>
| CODE | <script type='text/javascript'> //Fast Reply PM //http://posiden.s1.jcink.com if("<!-- |input_act| -->" == "Msg" && "<!-- |input_CODE| -->" == "03" && "<!-- |input_MSID| -->" != ""){ var messageID = <!-- |input_MSID| -->; var membersID = "-"; var messageTitle = ""; var ucpdivs = document.getElementById("ucpcontent").getElementsByTagName("div"); for(var i = 0; i < ucpdivs.length; i++){ if(ucpdivs[i].className == "pformstrip"){ messageTitle = ucpdivs[i].innerHTML; break; } } var ucplinks = document.getElementById("ucpcontent").getElementsByTagName("a"); for(var i = 0; i < ucplinks.length; i++ ){ if(ucplinks[i].href.match(/(showuser|MID)=([0-9]+)/) != null){ membersID = RegExp.$2; break; } } ucpdivs[ucpdivs.length - 1].innerHTML = ucpdivs[ucpdivs.length - 1].innerHTML.replace(/\]/, "| <a href='#' onclick='if(document.getElementById(\"fastReplyPM\").style.display.match(/none/) != null){document.getElementById(\"fastReplyPM\").style.display = \"block\"}else{document.getElementById(\"fastReplyPM\").style.display = \"none\"}; return false;'>Fast Reply</a> ]") document.getElementById("ucpcontent").innerHTML += "<div id='fastReplyPM' style='display: none'><div class='tableborder'><div class='maintitle'>Fast Reply PM</div><div class='tablepad' style='text-align: center;'><form action='index.php' method='post'><input type='hidden' name='act' value='Msg' /><input type='hidden' name='CODE' value='04' /><input type='hidden' name='MODE' value='01' /><input type='hidden' name='OID' value='' /><input type='hidden' name='auth_key' value='<!-- |auth_key| -->' /><input type='hidden' name='from_contact' value='" + membersID + "' /><input type='hidden' name='msg_title' value='" + ((messageTitle.match(/Re:/i) == null) ? "Re: " + messageTitle : messageTitle ) + "' /><textarea cols='60' rows='7' name='Post' class='textinput'></textarea><br /><input type='submit' value='Send' /> <button onclick='if(document.getElementById(\"fastReplyPM\").style.display.match(/none/) != null){document.getElementById(\"fastReplyPM\").style.display = \"block\"}else{document.getElementById(\"fastReplyPM\").style.display = \"none\"}; return false;'>Cancel</button></form></div></div></div>"; }
</script> |
Allows fast reply when reading a PM.
I am going to work on one later that will allow it in the inline pm section as well.
|
March 19, 2009 06:29 pm
bbcode name: table 1 param html: <table>(PARAM1)</table>
bbcode name: tr 1 Param html: <tr>(PARAM1)</tr>
bbcode name: td 1 Param html: <td>(PARAM1)</td>
|
|
November 21, 2009 12:00 pm
November 16, 2009 08:32 pm
November 15, 2009 01:49 pm
November 13, 2009 01:52 am
Kilsek
Dude you soo rock thanks for all your help!
March 15, 2009 04:19 pm
Jcink
help i need support
December 08, 2008 06:07 pm
Cathastrophe
I love your support. I vote yes!
-Credits to Chakka before he chakkas me >.>-
November 23, 2008 06:08 pm
2113 posts
Active: Today at 12:23 am
970 posts
Active: Yesterday at 09:38 pm
39 posts
Active: October 26, 2009 02:34 am
|