Rules and SOP

Discussion in 'wiki development.' started by kirxklox, Jun 30, 2009.

  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  1. kirxklox

    kirxklox Registered User
    Donor

    Dec 17, 2002
    4,387
    55
    0
    Dardanell, AR
    Country Flag:
    Region Flag:
    Where are the rules and SOP for the WIKI?

    What about the COPYRIGHTS?
     
  2. Tom McIntyre

    Tom McIntyre Technical Admin
    Staff Member NAWCC Member Donor Sponsor

    Aug 24, 2000
    77,866
    396
    146
    Male
    retired SW dev
    Boston
    Country Flag:
    Region Flag:
    The policies are in development and will be published for comment soon.
     
  3. Tom McIntyre

    Tom McIntyre Technical Admin
    Staff Member NAWCC Member Donor Sponsor

    Aug 24, 2000
    77,866
    396
    146
    Male
    retired SW dev
    Boston
    Country Flag:
    Region Flag:
    The operating rules for the NAWCC Encyclopedia have been published in the Tutorials section of the Encyclopedia.

    The articles are:
    • [MAIN]Purpose of the NAWCC encyclopedia[/MAIN]
    • [MAIN]Copyright of text in NAWCC Encyclopedia Articles[/MAIN]
    • [MAIN]Copyright of images in the NAWCC Encyclopedia[/MAIN]
    • [MAIN]Writing and Editing Encyclopedia Articles[/MAIN]

    Comments on the technical accuracy of the articles are welcome in the comments tab of the articles.

    Comments and discussion of the implicit NAWCC business practices should be made in the NAWCC Members Only area.
     
  4. kirxklox

    kirxklox Registered User
    Donor

    Dec 17, 2002
    4,387
    55
    0
    Dardanell, AR
    Country Flag:
    Region Flag:
    I would like to inform you that you are Shutting Down IE on the Wiki Articles.
     
  5. Tom McIntyre

    Tom McIntyre Technical Admin
    Staff Member NAWCC Member Donor Sponsor

    Aug 24, 2000
    77,866
    396
    146
    Male
    retired SW dev
    Boston
    Country Flag:
    Region Flag:
    Thanks for the bug report Sam. The problem is now fixed.
     
  6. kirxklox

    kirxklox Registered User
    Donor

    Dec 17, 2002
    4,387
    55
    0
    Dardanell, AR
    Country Flag:
    Region Flag:
    I only crashed IE 20 times last night.
     
  7. Tom McIntyre

    Tom McIntyre Technical Admin
    Staff Member NAWCC Member Donor Sponsor

    Aug 24, 2000
    77,866
    396
    146
    Male
    retired SW dev
    Boston
    Country Flag:
    Region Flag:
    There is a bug in ie8 with larger Javascript execution. The Encyclopedia software has been modified to work around the bug.

    It occurred when one clicked on the Java based tabs when viewing an article to post a comment, look at history, edit, etc.

    We can run the software without Javascript, but the performance is generally better with it enabled.
     
  8. kirxklox

    kirxklox Registered User
    Donor

    Dec 17, 2002
    4,387
    55
    0
    Dardanell, AR
    Country Flag:
    Region Flag:
    I do not have IE 8 installed only IE 7.

    What JAVA?
     
  9. Tom McIntyre

    Tom McIntyre Technical Admin
    Staff Member NAWCC Member Donor Sponsor

    Aug 24, 2000
    77,866
    396
    146
    Male
    retired SW dev
    Boston
    Country Flag:
    Region Flag:
    special_reset.js
     
  10. kirxklox

    kirxklox Registered User
    Donor

    Dec 17, 2002
    4,387
    55
    0
    Dardanell, AR
    Country Flag:
    Region Flag:
    That is not JAVA! Must be a syntax error.
     
  11. Tom McIntyre

    Tom McIntyre Technical Admin
    Staff Member NAWCC Member Donor Sponsor

    Aug 24, 2000
    77,866
    396
    146
    Male
    retired SW dev
    Boston
    Country Flag:
    Region Flag:
    Sam, did you read the file? It does not display particularly well here, but here it is.
    Code:
    /************************************************************************\
     *
     * CES Vault Wiki
     * Version 2.3.1
     *
     * Copyright ©2008-2009 Cracked Egg Studios. All Rights Reserved.
     * This file may not be redistributed in whole or significant part.
     * 
     * VAULTWIKI IS NOT FREE SOFTWARE
     * http://www.crackedeggstudios.com/vault/The-Arsenal:CES-VaultWiki
     * http://www.crackedeggstudios.com/vault/VaultWiki-License-Agreement
     *
    \************************************************************************/
    
    // #############################################################################
    // vB_ResetHandler
    // #############################################################################
    function vB_ResetHandler()
    {
    	// handles adding of JS and CSS
    };
    
    /**
    * Process HTML after a redirect
    *
    * @param	ajax	response
    * @param	string	article URL
    */
    vB_ResetHandler.prototype.parseRedirect = function(ajax_response, thread_url)
    {
    	var splitter = thread_url.indexOf('?') != -1 ? '?' : '&';
    
    	var articleResponse = fetch_tags(ajax_response, "article")[0];
    	if (articleResponse.getAttribute("reload") == "1")
    	{
    		window.location = thread_url.split(splitter + "do")[0];
    		return true;
    	}
    
    	var tabResponse = fetch_tags(ajax_response, "tabs")[0];
    
    	if (!tabResponse || !tabResponse.firstChild)
    	{
    		return false;
    	}
    
    	this.insertPoll(ajax_response);
    
    	// we had an article redirect, destroy all tabs
    	YAHOO.util.Dom.get(tab_container).innerHTML = tabResponse.firstChild.nodeValue;
    
    	var tabId = articleResponse.getAttribute("tab_id");
    	YAHOO.util.Dom.get("collapseobj_" + tabId).innerHTML = articleResponse.firstChild.nodeValue;
    
    	// re-init tabs in case permissions or article status changed
    	ajax_load_url[tab_container] = thread_url;
    
    	if (vB_WikiTabs)
    	{
    		if (vB_WikiTabs[tab_container] && vB_WikiTabs[tab_container].overflow_tab)
    		{
    			var overflow_html = vB_WikiTabs[tab_container].overflow_tab.innerHTML;
    		}
    		else
    		{
    			var overflow_html = "»";
    		}
    
    		vB_WikiTabs[tab_container] = new vB_WikiTab(tab_container, tabId, overflow_html);
    	}
    
    	return false;
    };
    
    /**
    * Dynamically parses Javascript
    *
    * @param	object	tab
    * @param	object	popups
    */
    vB_ResetHandler.prototype.parseScript = function(cobj, popups)
    {
    	var dropdowns = cobj.getElementsByTagName("script");
    
    	var tabId = cobj.getAttribute("id");
    	if (tabId != "forum_header")
    	{
    		tabId = tabId.split("collapseobj_")[1];
    	}
    
    	if (popups)
    	{
    		var existpop = YAHOO.util.Dom.get("popups_" + tabId);
    		if (existpop)
    		{
    			existpop.parentNode.removeChild(existpop);
    		}
    
    		if (popups.firstChild)
    		{
    			var popdiv = document.createElement("div");
    			popdiv.setAttribute("id", "popups_" + tabId);
    			popdiv.innerHTML = popups.firstChild.nodeValue;
    			document.body.appendChild(popdiv);
    
    			// dropdowns.concat doesn't work?!
    			var drop2 = popdiv.getElementsByTagName("script");
    			if (drop2.length)
    			{
    				for (var p = 0; p < drop2.length; p++)
    				{
    					dropdowns[dropdowns.length] = drop2[p];
    				}
    			}
    		}
    	}
    
    	if (dropdowns.length)
    	{
    		var i, dropHTML;
    		for (var i = 0; i < dropdowns.length; i++)
    		{
    			if (dropdowns[i].getAttribute("type") != "text/javascript")
    			{
    				continue;
    			}
    
    			if (dropdowns[i].getAttribute("src"))
    			{
    				this.include(dropdowns[i].getAttribute("src"));
    			}
    			else if (dropdowns[i].innerHTML)
    			{
    				if (typeof PHP != "object")
    				{
    					return false;
    				}
    
    				dropHTML = PHP.trim(dropdowns[i].innerHTML);
    
    				if (dropHTML.substring(0, 4) == "<!--")
    				{
    					dropHTML = dropHTML.substring(4);
    				}
    				
    				if (window.execScript)
    				{
    					window.execScript(dropHTML);
    				}
    				else
    				{
    					window.eval(dropHTML);
    				}
    			}
    		}
    	}
    };
    
    /**
    * Dynamically includes a Javascript file
    *
    * @param	string	javascript HTTP-path
    */
    vB_ResetHandler.prototype.include = function(scriptpath)
    {
    	var oXML = this.getXMLHttpObj();
    
    	if (!oXML || !scriptpath)
    	{
    		return false;
    	}
    
    	oXML.open("GET", scriptpath, false);
    	oXML.send("");
    
    	if (window.execScript)
    	{
    		window.execScript(oXML.responseText);
    	}
    	else
    	{
    		window.eval(oXML.responseText);	
    	}
    };
    
    /**
    * Fetch the request object for a JS include.
    *
    * @return	object	XMLHttpRequest || ActiveXObject
    */
    vB_ResetHandler.prototype.getXMLHttpObj = function()
    {
    	if (typeof XMLHttpRequest != "undefined")
    	{
    		return new XMLHttpRequest();
    	}
    
    	var i,
    		axO = [
    			'Msxml2.XMLHTTP.6.0',
    			'Msxml2.XMLHTTP.3.0',
    			'Msxml2.XMLHTTP',
    			'Microsoft.XMLHTTP'
    		];
    
    	for (i = 0; i < axO.length; i++)
    	{
    		try
    		{
    			return new ActiveXObject(axO[i]);
    		}
    
    		catch (e)
    		{
    		}
    	}
    
    	return null;
    };
    
    /**
    * Add stylesheets for new tabs.
    * IMPORTANT: Only use absolute URLs in @imports!
    *
    * @param	string	CSS Text
    */
    vB_ResetHandler.prototype.appendCSS = function(insertStyle, rulePos)
    {
    	if (!YAHOO.util.Dom.get("vw-custom"))
    	{
    		var style2 = document.createElement("style");
    		style2.id = "vw-custom";
    		style2.type = "text/css";
    
    		if (style2.styleSheet && is_ie)
    		{
    			var importPaths;
    			
    						while (importPaths = insertStyle.match(/@import url\(\"(.*)\"\);/))
    						{
    							document.styleSheets[document.styleSheets.length - 1].addImport(importPaths[1]);
    							insertStyle = insertStyle.replace(importPaths[0], '');
    						}
    			
    			style2.styleSheet.cssText = insertStyle;
    		}
    		else
    		{
    			style2.appendChild(document.createTextNode(insertStyle));
    		}
    
    		document.getElementsByTagName("head")[0].appendChild(style2);
    	}
    };
    
    /*
    * Insert the HTML for a poll.
    *
    * @param	ajax	response
    */
    vB_ResetHandler.prototype.insertPoll = function(ajax_response)
    {
    	var pollResponse = fetch_tags(ajax_response, "poll")[0];
    	if (pollResponse)
    	{
    		var pollobj = YAHOO.util.Dom.get("collapseobj_ca-poll");
    		if (pollobj)
    		{
    			pollobj.innerHTML = (pollResponse.firstChild ? pollResponse.firstChild.nodeValue : "");
    		}
    	}
    };
    
    // #############################################################################
    // initialize the resetter
    
    var vB_ResetHandle = new vB_ResetHandler();
    
    /*======================================================================*\
     * Downloaded: 20:59, Thu Jul 9th 2009
     * Licensed to: http://mb.nawcc.org
    \*======================================================================*/
    
     
  12. kirxklox

    kirxklox Registered User
    Donor

    Dec 17, 2002
    4,387
    55
    0
    Dardanell, AR
    Country Flag:
    Region Flag:
    Tom: You called it JAVA, but it is JavaScript wich is an entirely dirfferent beast.
     
  13. Tom McIntyre

    Tom McIntyre Technical Admin
    Staff Member NAWCC Member Donor Sponsor

    Aug 24, 2000
    77,866
    396
    146
    Male
    retired SW dev
    Boston
    Country Flag:
    Region Flag:
    Gee Sam, the term Javascript is used twice to make it clear what the tool is.

    The file extension was .js, which I thought also made it clear.
     
  14. kirxklox

    kirxklox Registered User
    Donor

    Dec 17, 2002
    4,387
    55
    0
    Dardanell, AR
    Country Flag:
    Region Flag:
    Gee, That is the KIND of nitpicking that is going on about my TYPO errors.
     
Loading...
Similar Threads - Rules Forum Date
Rules and SOP question. wiki development. Jul 23, 2009

Share This Page