Joined: Feb 2006 Gender: Female Posts: 101 Karma: 0
Portal dynamic code « Result #2 on Jul 27, 2007, 6:08am »
I got this code from Proboards. Its very cool, but the suker likes to argue alot.
Possible Features Below is a small list of possible features that I may implement before the final release:
- Shoutbox support - Member information (posts, last 5 threads viewed etc) - Members online in the last 24 hours (Ross' code) - Templates - RSS feed of articles
articles: [ { date: 1185051864765, title: "Welcome To Portal.Dynamic", body: "Thanks for selecting Portal.Dynamic.<br /><br />Portal.Dynamic is a project that started out as an entry for a coding competition at ProBoards. Until now the project was left dormant, only until recently I (Peter) decided to look at the code and see what needed to be done so I could get a working version out there.<br /><br />Please note, this is an early alpha version, which means there are bugs and features that have not been implemented yet.<br /><br />Although this is free to use, and no link back to <a href=\"http://templates.proboards1.com\">ProVision</a> is required, it would be appreciated due to the efforts gone into this.<br /><br />Enjoy ", by: ["admin", "ProVision"], last_edit: 0 } ] };
var catHead = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/header.gif"; // Head Image var catBase = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/basecopy.gif"; // Base Image var separation = "40"; // Size Of Category Seperation
function setMainHBTable(cTable) { var headDiv = document.createElement("div"); headDiv.setAttribute("align", "center"); var headImg = document.createElement("img"); headDiv.appendChild(headImg); var baseDiv = headDiv.cloneNode(true); headDiv.firstChild.setAttribute("src", catHead); baseDiv.firstChild.setAttribute("src", catBase); cTable.parentNode.insertBefore(headDiv, cTable); cTable.parentNode.insertBefore(baseDiv, cTable.nextSibling); }
var table = document.getElementsByTagName("table");
if (location.href.match(/com\/?((index\.cgi)?\??(action=(home|logout))?(#\w+)?)?$/)) { var mainTab = document.createDocumentFragment();
for (i=0; i<table.length; i++) { if (table.item(i).width == "100%" && table.item(i).cellPadding == "4" && table.item(i).rows.item(0).cells.item(0).innerHTML.match(/Forum\sName/i)) { for (j=1; j<table.item(i).rows.length; j++) { var tCell = table.item(i).rows.item(j).cells.item(0); if (j == table.item(i).rows.length - 1 || tCell.className == "catbg" && tCell.colSpan == "5" && tCell.align != "right") { if (j != 1) { mainTab.appendChild(outerTab); var tDiv = document.createElement("div"); tDiv.style.height = separation + "px"; mainTab.insertBefore(tDiv, outerTab); setMainHBTable(outerTab); if (j == table.item(i).rows.length - 1) { innerTab.firstChild.appendChild(table.item(i).rows.item(j).cloneNode(true)); break; } }
var nSeperation = "35"; // Edit height of seperation var newsHead = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/header.gif"; // News Head Image var newsBase = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/basecopy.gif"; // News Base Image
if (location.href.match(/com\/?((index\.cgi)?\??(action=(home|logout))?(#\w+)?)?$/)) { var fs = document.getElementById("fscroller"); var tTarget = fs.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;
var nDiv = document.createElement("div"); nDiv.style.height = nSeperation + "px";
var headDiv = document.createElement("div"); headDiv.setAttribute("align", "center"); var headImg = document.createElement("img"); headDiv.appendChild(headImg); var baseDiv = headDiv.cloneNode(true); headDiv.firstChild.setAttribute("src", newsHead); baseDiv.firstChild.setAttribute("src", newsBase);
// Edit Below accordingly var iTitle = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/infoheader.gif" // Info Center Title var headSRC = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/header.gif"; // Head Image var baseSRC = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/basecopy.gif"; // Base Image
var table = document.getElementsByTagName("table"); if (location.href.match(/com\/?((index\.cgi)?\??(action=(home|logout))?(#\w+)?)?$/)) { for (i=table.length-1; i>0; i--) { if (table.item(i).width == "100%" && table.item(i).className == "bordercolor" && /Info\sCenter/i.exec(table.item(i+1).rows.item(0).cells.item(0).firstChild.firstChild.firstChild.data)) { var iImg = document.createElement("img"); iImg.setAttribute("src", iTitle); table.item(i+1).rows.item(0).cells.item(0).replaceChild(iImg, table.item(i+1).rows.item(0).cells.item(0).firstChild);
var headDiv = document.createElement("div"); headDiv.setAttribute("align", "center"); var headImg = document.createElement("img"); headDiv.appendChild(headImg); var baseDiv = headDiv.cloneNode(true); headDiv.firstChild.setAttribute("src", headSRC); baseDiv.firstChild.setAttribute("src", baseSRC);
This code may not be redistributed without express permission from the creator. This header must stay intact at all times. */
// Set gap size here var iGapSize = 25;
// Head image url var iHeadImg = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/header.gif";
// Base image url var iBaseImg = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/basecopy.gif";
function bTable(tbobj, att){ var nTable = document.createElement("table");
for(a = 0; a < att.length; a ++){ nTable.setAttribute(att[a][0], att[a][1]); } nTable.appendChild(tbobj); return nTable; }
function splitPosts(){ var obj = new Object(); var gPoll = false; var iInc = 0, cInc = 0, oInc = 0; var attArray = [["width", "100%"], ["cellSpacing", 1], ["cellPadding", 4]]; var docFragment = document.createDocumentFragment(); var iTable = document.getElementsByTagName("table");
for(t = 0; t < iTable.length; t ++){ if(iTable.item(t).cellPadding == "4" && iTable.item(t).cellSpacing == "1"){ var iRows = iTable.item(t).rows; for(r = 0; r < iRows.length; r ++){ r = (r < 0)? 0 : r; var nTb = document.createElement("tbody"); var rNode = iRows.item(r); if(rNode && rNode.firstChild.colSpan == "2" && rNode.firstChild.className == "titlebg" && r == 0){ nTb.appendChild(rNode); obj[(iInc ++)] = { tobj: bTable(nTb, attArray) }; r --; } if(rNode && rNode.firstChild.width == "20%" && rNode.innerHTML.match(/>Poll Question: /)){ gPoll = true; nTb.appendChild(rNode); obj[(iInc ++)] = { tobj: bTable(nTb, attArray) }; r --; oInc ++; } if(rNode && rNode.firstChild.colSpan == "2" && rNode.firstChild.className == "windowbg2"){ // lets nest that form correctly so people can vote if(rNode.firstChild.getElementsByTagName("form").item(0) && !document.all){ var pForm = rNode.firstChild.getElementsByTagName("form").item(0); var fNode = pForm.cloneNode(false); pForm.parentNode.removeChild(pForm); while(rNode.firstChild.hasChildNodes()){ pForm.appendChild(rNode.firstChild.childNodes.item(0)); } rNode.firstChild.appendChild(pForm); } obj[(iInc - 1)].tobj.firstChild.appendChild(rNode); r --; oInc ++; } if(rNode && rNode.firstChild.className == "catbg" && rNode.firstChild.innerHTML.match(/Author/)){ nTb.appendChild(rNode); obj[(iInc ++)] = { tobj: bTable(nTb, attArray) }; r --; } if(rNode && rNode.firstChild.width == "20%" && rNode.firstChild.className.match(/^windowbg/i) && rNode.firstChild.innerHTML.match(/member is|guest/i)){ if(cInc == 0){ obj[(iInc - 1)].tobj.firstChild.appendChild(rNode); r --; } else { nTb.appendChild(rNode); obj[(iInc ++)] = { tobj: bTable(nTb, attArray) }; } cInc ++; r --; oInc ++; } } iTable.item(t).parentNode.parentNode.parentNode.id = "marker"; } }
function createImg(url){ var iImg = document.createElement("img");
iImg.src = url; return iImg; }
var iCount = 0; for(var o in obj){ var hDiv = document.createElement("div"); var nDiv = document.createElement("div");
var sHeadImg = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/SubbordHeadercopy.gif"; // Head Image var sHeadHeight = "29"; // Height of Head Image var sBaseImg = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/BordBase1.gif"; // Base Image var sBaseHeight = "29"; // Height of Base Image var subBoardTitle = ""; // Sub-Board Title
// Edit where neccessary var aClassName = "titlebg"; // Change class of Annoucement bar var annoucementBarHeight = "15"; // Change height of Annoucement bar
var sClassName = "titlebg"; // Change class of Sticky bar var stickBarHeight = "15"; // Change height of Sticky bar
var stickyIMG = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/DevilMayCry%20Theme/sticky.jpg"; // For Sticky Custom Image var stickyLockIMG = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/DevilMayCry%20Theme/stickylock.jpg"; // For Sticky Lock Custom Image var annIMG = "http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/DevilMayCry%20Theme/announcement.jpg"; // For Annoucement Custom Image
var annLabel = "A:"; // Annoucement Label var stickyLabel = "S:"; // Sticky Label
var tr = document.getElementsByTagName("tr"); if (!document.postForm && location.href.match(/board=/)) { var x = (document.ammForm)? 1 : 0 ; var y = (document.ammForm)? 2 : 1 ; var c = (document.ammForm)? 8 : 7 ; var stickyImageRE = new RegExp("(" + stickyIMG + "|" + stickyLockIMG + ")$", "i");
for (i=0; i<tr.length; i++) { var t = tr.item(i).getElementsByTagName("td").item(x); var s = tr.item(i).getElementsByTagName("td").item(y); if (tr.item(i).firstChild.colSpan == c && tr.item(i).firstChild.height == "5") { with (tr.item(i).firstChild) { className = aClassName; height = annoucementBarHeight; } } else if (s && s.width == "5%" && s.className == "windowbg2" && new RegExp(annIMG + "$", "i").test(s.firstChild.firstChild.src)) { s.nextSibling.getElementsByTagName("font").item(0).className = "stickyClass"; s.nextSibling.getElementsByTagName("font").item(0).firstChild.replaceData(0, 13, annLabel); } else if (t && t.width == "5%" && t.className == "windowbg2") { if (stickyImageRE.test(t.firstChild.firstChild.src)) { var fTarget = t.nextSibling.nextSibling.getElementsByTagName("font").item(0); fTarget.className = "stickyClass"; fTarget.insertBefore(document.createTextNode(stickyLabel), fTarget.firstChild); }
var r = tr.item(i+1).getElementsByTagName("td").item(x); if (stickyImageRE.test(t.firstChild.firstChild.src) && !stickyImageRE.test(r.firstChild.firstChild.src)) { var sBar = tr.item(i).parentNode.parentNode.insertRow(tr.item(i).rowIndex+1).insertCell(0); with (sBar) { className = sClassName; height = stickBarHeight; colSpan = c; break; } } } } } //--> </script>
Joined: Feb 2006 Gender: Female Posts: 101 Karma: 0
Oriental Darkness Coding « Result #9 on Apr 28, 2007, 8:38am »
Global Header:
<style> body { background-position: center; } </style>
<!-- border around forum by california --> <center style="width: 800px; margin: auto;"> <img src="http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/bordheader.gif" /><br />
<!-- this is optional --> <script type="text/javascript"> <!-- /* welcome table below ads */
document.write('<div id="welcome"></div>'); var welcome = document.getElementById("welcome"); var iTable = document.getElementsByTagName("table"); iTable[0].width = "100%"; welcome.parentNode.replaceChild(iTable[0], welcome);
// --> </script> <!-- end optional code -->
<div style="width: 100%; background: #000000 url(http://i25.photobucket.com/albums/c56/ashkare/Board%20pics/Oriental%20Darkness/OrientaBrdBg.gif) repeat-y fixed top center;">
<div align="center"> <center> <table border="1" cellpadding="3" cellspacing="3" style="border-collapse: collapse" width="93%" id="AutoNumber3" bgcolor="#000000" bordercolor="#808080"> <tr> <td width="100%"> <p class="MsoNormal"><i><font face="Verdana" size="2">Disclaimer, please read...</font></i></p> <p class="MsoNormal"><i><font face="Verdana" size="2">Inspirational Thinking is a role-playing chronicle that is no way affiliated or purposely infringes on the rights of White Wolf Publishing. White Wolf, Dark Ages: Vampire, Dark Ages: Werewolf, Dark Ages: Mage and Dark Ages: Changeling including all other books published by White Wolf are trademarks of White Wolf Publishing, Inc. All rights reserved. All characters, names, places and text herein are copyrighted by <a target="_blank" href="http://www.white-wolf.com/">White Wolf Publishing, Inc.</a></font></i></p> <p class="MsoNormal"><i><font face="Verdana" size="2">The mention of or reference to any company or product on this forum is not a challenge to the trademark or copyright concerned.</font></i></p> <p class="MsoNormal"><i><font face="Verdana" size="2">These products use the supernatural for settings, characters and themes. All mystical and supernatural elements are fiction and intended for entertainment purposes only. Reader discretion is advised.</font></i></td> </tr> </table> </center> </div>
Joined: Feb 2006 Gender: Female Posts: 101 Karma: 0
Admin email's « Result #12 on Apr 23, 2007, 10:35am »
To register to the boards, we need to know who's applying and the like. So, to aid in this whole process, here is the main admin's email.
chumani1974@yahoo.com
If its for a specific game or for the general board, please specify. Also, feel free to send inquiries and questions if your just interested. This is an open board, after all.
((This is something I wrote for a friend one night several years ago. She was chatting with me in IM, and told me she was bored and to tell her a story. This was straight off the cuff, and I had several compliments on it. It was written in about fifteen minutes.))
----------------------------------------------------------------------------------- The moon shone above the river as the wolves howled. It was a cool night, and Malina raised her head so that she could pull her banket around herself closer and better hear the wolves. Her father's voice echoed through her mind as she relased the white blanket and began to dance about her fire. This was the ritual of rebirth and strenghth, and doing this ritual would allow her to become an adult within her tribe. The fire flickered and it's crackle was the only sound aside from the melody of the wolves. She danced about the fire in a bright red robe, signifying a phoenix raising itself from the flames.As she pranced about the leaping flames, she remembered her mother. Her beauty and grace were what Malina really wished to emulate. In her mind she could see the soft raven hair and sparkling, yet watchful eyes of her mother. She sighed as a tear rolled down her cheek. That was many years ago. Her mother was long dead now, she had passed in childbirth, and her child, a son had died as well. There was nothing the midwife could have done to save them. Malina shook herself out of that trance and began to dance about again, this time not even noticing the rough stones beneath her feet. Complete concentration was needed before the ritual could proceed. She glanced upwards at the sky noticing the mist circling the moon. Despite this hindrance the moon still cast a dim glow on the river flowing through the desert. It was unnaturally cool for early summer, but only a tribe member knew how decieving the night could be as to the desert's heat. Malina knew that the time to complete the ritual approached. She reached down and got her rabbit hide bag. Opening the drawstring she peered inside to see all that she needed. She slowly withdrew each item presenting it to the moonlit, misty sky. The first object she pulled out was the most sacred and important to the ritual. It was an athame, a religious dagger of sorts. It had a carved wooden handle with her name engraved in it. The handle reflected the dancing flames. Next she pulled out an amethyst crystal, representing the wisdom of those who have come before her. Then she took out some herbs; clove, myhrr, and conqueror root. All these items she placed upon the ground about two feet from the fire. Then she set to work. She took her athame and drew a circle about herself. She chanted tribal words of protection and felt the air electrified with magic, and stirred only slightly by the breeze. She annointed herself with the herbs and what was left she tossed into the burning flames. She felt the magic as she heated the dagger in the smoke and flame until it shone slightly red-gold. Then she pressed the point into the skin above her left breast and carved the shape of a crescent there. It did not hurt as much a Malina had expected. As the wound bled slightly she began to chant again this time in her own, more familiar tongue. "Oh great spirits, heed me your humble servent Malia of the Crescent tribe." she began. She heard a rumble in the sky as a strong voice answered her. "WHAT DO YOU WISH TO SAY?" The voice thundered. "I am here to proclaim my dedication to you and to ask that you bless my tribe and consider me an adult whithin it." Malina said, her voice shaking. " DID YOU BRING YOUR OFFERING?" the voice demanded, but with patience. Malina grasped the crystal she had hand selected from her cave, and held it's purple glow up towards the sky. Each tribe member had to select an object that they thought the spirits would like. Malina had immediately gone to her secret cave to get an amethyst crystal. Suddenly the fire flickered out and a tall woman with silver hair and blue eyes stood before her. "It's beautiful, and from the very earth, I accept your offering young one." Though the voice was quieter, Malina could still tell that she was in the presence of the Spirit. Malina fell to the ground at this immortal's feet. "Rise, young one, " the Spirit began, "you will do great things and that is why you were destined to be called from now on Rhea-Malia. You are now an adult of your tribe and will lead it one day. " Malina smiled and thanked the Spirit. She glanced down at her wound and saw that a silver scar had been formed to shape the moon which now was beginning to set in the ebony sky. The Spirit kissed the girl's forhead and it gave her a silver moon charm strung on one of the immortal's silver hairs. Malina immeadiatley put on this makeshift necklace and thanked the Spirit as she prepared herself to leave. "Wait," came the voice, now just a voice once again. Rhea-Malina turned back to the sky. "Your mother was a great servant and being, i know she would have been proud of you young one." With that Malina put out the fire and thanked the Spirit one last time before heading back to her warm hut, now feeling mature and blessed. She could almost feel her mother and the spirit both smiling down upon her. **********************The End*******************
Joined: Feb 2006 Gender: Female Posts: 101 Karma: 0
Introduction to the board « Result #14 on Mar 28, 2007, 2:39pm »
Welcome to Inspiration!
First off...let me explain one thing. This is not a RPG gaming board, as it once was going to be. This board is dedicated to a rather broad topic: freestyle writing. Anything and everything can be done here...be it fantasy short stories, short novels, poems.
Being it is such a random thing, there are sections as to what topic the story is about to help out not only the writers, but also out guests who come to browse the stories. Admin split it up into two different sections: General and Fantasy. Fantasy is obviously anything fiction or fiction-based. General can be used as a nice catch all...if the story your writing just does not clearly fit into the other section.
There are three main sections in each: Open forum, people specific, after dark, and tag team.
Open forum is just that, everyone can post there, with or without them being known (there will be an account for those who don't want their work's known to be written by them).
The people specific section is meant for those who want to keep all of their works together, or also if they are working on a rather long piece. Being that posts have word limits, longer stories would make for a very cluttered area after time.
And lastly, the tag team section. This section is meant for fun and enjoyment of everyone involved. Basically, you and your friends take turns posting up one story, each adding to the prior posts of the other. Limits and topics in the story are up to the head of each post, worked out among those who are playing. Again, it can be about anything, but mainly for fun. Some work out to be very good stories, other become very comical and a good read as well.
As for any adult-only writings, those will be kept in a locked board under the appropriate heading. Admin don't mind mature postings, and probably have some works in there as well. However, its not a subject for everyone. Keeps everyone happy and content this way.
Anyone can post here once signed on with an account, being that this is an open forum. All that is asked by admin is that you enjoy yourself, read all you like, and create what you wish. We don't force people to post...this is an art form, and sometime the muse is an elusive thing. Relax and just have fun.