From: <ir...@us...> - 2012-09-25 06:31:53
|
Revision: 10190 http://xoops.svn.sourceforge.net/xoops/?rev=10190&view=rev Author: irmtfan Date: 2012-09-25 06:31:40 +0000 (Tue, 25 Sep 2012) Log Message: ----------- bug fix: add footer.php to read style.css and js files from templates/css and templates/js and add to <head>, days changed to seconds Modified Paths: -------------- XoopsModules/newbb/branches/irmtfan/newbb/action.post.php XoopsModules/newbb/branches/irmtfan/newbb/action.topic.php XoopsModules/newbb/branches/irmtfan/newbb/blocks/newbb_block.php XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt XoopsModules/newbb/branches/irmtfan/newbb/class/icon.php XoopsModules/newbb/branches/irmtfan/newbb/class/post.php XoopsModules/newbb/branches/irmtfan/newbb/class/topic.php XoopsModules/newbb/branches/irmtfan/newbb/edit.php XoopsModules/newbb/branches/irmtfan/newbb/header.php XoopsModules/newbb/branches/irmtfan/newbb/index.php XoopsModules/newbb/branches/irmtfan/newbb/list.topic.php XoopsModules/newbb/branches/irmtfan/newbb/newtopic.php XoopsModules/newbb/branches/irmtfan/newbb/polls.php XoopsModules/newbb/branches/irmtfan/newbb/post.php XoopsModules/newbb/branches/irmtfan/newbb/ratethread.php XoopsModules/newbb/branches/irmtfan/newbb/reply.php XoopsModules/newbb/branches/irmtfan/newbb/search.php XoopsModules/newbb/branches/irmtfan/newbb/topicmanager.php XoopsModules/newbb/branches/irmtfan/newbb/viewforum.php XoopsModules/newbb/branches/irmtfan/newbb/viewpost.php XoopsModules/newbb/branches/irmtfan/newbb/viewtopic.php Added Paths: ----------- XoopsModules/newbb/branches/irmtfan/newbb/footer.php XoopsModules/newbb/branches/irmtfan/newbb/templates/css/ XoopsModules/newbb/branches/irmtfan/newbb/templates/css/index.html XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/ XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/english/ XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/english/index.html XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/english/style.css XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/index.html XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/persian/ XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/persian/index.html XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/persian/style.css XoopsModules/newbb/branches/irmtfan/newbb/templates/js/ XoopsModules/newbb/branches/irmtfan/newbb/templates/js/index.html XoopsModules/newbb/branches/irmtfan/newbb/templates/js/language/ XoopsModules/newbb/branches/irmtfan/newbb/templates/js/language/english/ XoopsModules/newbb/branches/irmtfan/newbb/templates/js/language/english/index.html XoopsModules/newbb/branches/irmtfan/newbb/templates/js/language/english/newbb_toggle.js XoopsModules/newbb/branches/irmtfan/newbb/templates/js/language/index.html Removed Paths: ------------- XoopsModules/newbb/branches/irmtfan/newbb/include/js/ XoopsModules/newbb/branches/irmtfan/newbb/include/newbb.htc XoopsModules/newbb/branches/irmtfan/newbb/include/pngbehavior.htc XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/english/style.css XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/persian/style.css Modified: XoopsModules/newbb/branches/irmtfan/newbb/action.post.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/action.post.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/action.post.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -207,6 +207,7 @@ } else { redirect_header(XOOPS_URL."/modules/newbb/viewpost.php?uid=$uid", 2, _MD_DBUPDATED); } - +// irmtfan move to footer.php +include_once dirname(__FILE__) . "/footer.php"; include XOOPS_ROOT_PATH.'/footer.php'; ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/action.topic.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/action.topic.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/action.topic.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -171,6 +171,7 @@ } else { redirect_header(XOOPS_URL."/modules/newbb/viewforum.php?forum=$forum_id", 2, _MD_DBUPDATED); } - +// irmtfan move to footer.php +include_once dirname(__FILE__) . "/footer.php"; include XOOPS_ROOT_PATH.'/footer.php'; ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/blocks/newbb_block.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/blocks/newbb_block.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/blocks/newbb_block.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -31,9 +31,9 @@ if (!defined('XOOPS_ROOT_PATH')) { exit(); } +// irmtfan use full path because block maybe used outside newbb +include_once XOOPS_ROOT_PATH . "/modules/newbb/include/functions.ini.php"; -include_once dirname(dirname(__FILE__))."/include/functions.ini.php"; - if (defined('NEWBB_BLOCK_DEFINED')) return; define('NEWBB_BLOCK_DEFINED',true); @@ -882,4 +882,6 @@ $tpl->assign('block', $block); $tpl->display('db:newbb_block_author.html'); } +// irmtfan add local stylesheet and js footer.php +include_once XOOPS_ROOT_PATH . "/modules/newbb/footer.php"; ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/changelog-rev10109.txt 2012-09-25 06:31:40 UTC (rev 10190) @@ -1,3 +1,25 @@ +date 2012-09-25 +=================================== +1- bug fix: change the method of adding stylesheet and scripts from overrighting xoops_module_header smarty variable to $xoTheme. +move codes from header.php to the new footer.php file. add local stylesheet and js for newbb blocks outside module space. +modify: +in newbb/action.post.php, newbb/action.topic.php, newbb/edit.php, newbb/header.php, +newbb/index.php, newbb/list.topic.php, newbb/newtopic.php, newbb/polls.php, +newbb/post.php, newbb/action.post.php, newbb/ratethread.php, newbb/reply.php +newbb/search.php, newbb/topicmanager.php, newbb/viewforum.php, newbb/viewpost.php, newbb/viewtopic.php +add: +in newbb/footer.php + +2- improve: move js files from include/js to templates/js/language/LANG. all js files inside language directory will be added to header. +move "style.css" file from templates/images/language/LANG to templates/css/language/LANG. +in newbb/class/icon.php, newbb/footer.php, newbb/templates/js/language/LANG/*.js, newbb/templates/css/language/LANG/style.css + +3- delete unneeded files: +newbb/include/pngbehavior.htc, newbb/include/newbb.htc, newbb/include/js/*.* + +4- bug fix: days should be changed to seconds. +in newbb/class/post.php, newbb/class/topic.php + date 2012-09-19 =================================== 1- bug fix: in post delete process: wrongly delete parent post before childs but the right way is deleting childs before deleting parent post.(reverse order deleting) Modified: XoopsModules/newbb/branches/irmtfan/newbb/class/icon.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/class/icon.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/class/icon.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -91,31 +91,32 @@ /** * TODO: get compatible with new theme engine */ - - function getPath(/*$set, */$type, $dirname = "newbb", $default = "") + // START irmtfan - improve to get other "end dirnames" like "css" and "js" - change images with $end_dir + function getPath(/*$set, */$type, $dirname = "newbb", $default = "", $end_dir = "images") { global $xoopsConfig; static $paths; - if (isset($paths[$type])) { - return $paths[$type]; + if (isset($paths[$end_dir . '/' . $type])) { + return $paths[$end_dir . '/' . $type]; } $theme_path = $this->template->currentTheme->path; - $rel_images = "modules/{$dirname}/images"; + $rel_dir = "modules/{$dirname}/{$end_dir}"; - $path = is_dir($theme_path."/{$rel_images}/{$type}/") - ? $theme_path."/{$rel_images}/{$type}" - : ( is_dir(XOOPS_THEME_PATH."/default/{$rel_images}/{$type}/") - ? XOOPS_THEME_PATH."/default/{$rel_images}/{$type}" - : ( empty($default) || is_dir(XOOPS_ROOT_PATH."/modules/{$dirname}/templates/images/{$type}/") - ? XOOPS_ROOT_PATH."/modules/{$dirname}/templates/images/{$type}" - : XOOPS_ROOT_PATH."/modules/{$dirname}/templates/images/{$default}" + $path = is_dir($theme_path."/{$rel_dir}/{$type}/") + ? $theme_path."/{$rel_dir}/{$type}" + : ( is_dir(XOOPS_THEME_PATH."/default/{$rel_dir}/{$type}/") + ? XOOPS_THEME_PATH."/default/{$rel_dir}/{$type}" + : ( empty($default) || is_dir(XOOPS_ROOT_PATH."/modules/{$dirname}/templates/{$end_dir}/{$type}/") + ? XOOPS_ROOT_PATH."/modules/{$dirname}/templates/{$end_dir}/{$type}" + : XOOPS_ROOT_PATH."/modules/{$dirname}/templates/{$end_dir}/{$default}" ) ); - $paths[$type] = str_replace(XOOPS_ROOT_PATH, "", $path); + $paths[$end_dir . '/' . $type] = str_replace(XOOPS_ROOT_PATH, "", $path); - return $paths[$type]; + return $paths[$end_dir . '/' . $type]; } + // END irmtfan - improve to get other "end dirnames" like "css" and "js" - change images with $end_dir function init(/*$set = "default", */$language = "english", $dirname = "newbb") { Modified: XoopsModules/newbb/branches/irmtfan/newbb/class/post.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/class/post.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/class/post.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -1018,6 +1018,7 @@ if (!func_num_args()){ $newbbConfig = newbb_load_config(); $expire = isset($newbbConfig["pending_expire"]) ? intval($newbbConfig["pending_expire"]) : 7; + $expire = $expire * 24 * 3600; // days to seconds } if (empty($expire)) return false; $crit_expire = new CriteriaCompo(new Criteria("approved", 0, "<=")); Modified: XoopsModules/newbb/branches/irmtfan/newbb/class/topic.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/class/topic.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/class/topic.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -418,6 +418,7 @@ if (!func_num_args()){ $newbbConfig = newbb_load_config(); $expire = isset($newbbConfig["pending_expire"]) ? intval($newbbConfig["pending_expire"]) : 7; + $expire = $expire * 24 * 3600; // days to seconds } if (empty($expire)) return false; $crit_expire = new CriteriaCompo(new Criteria("approved", 0, "<=")); Modified: XoopsModules/newbb/branches/irmtfan/newbb/edit.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/edit.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/edit.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -75,10 +75,8 @@ $xoopsOption['template_main'] = 'newbb_edit_post.html'; $xoopsConfig["module_cache"][$xoopsModule->getVar("mid")] = 0; -// irmtfan add xoops_module_header -$xoopsOption['xoops_module_header']= $xoops_module_header; -include XOOPS_ROOT_PATH.'/header.php'; -$xoopsTpl->assign('xoops_module_header', $xoops_module_header); +// irmtfan remove and move to header.php +//include XOOPS_ROOT_PATH.'/header.php'; /* $xoopsTpl->assign('lang_forum_index', sprintf(_MD_FORUMINDEX, htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES))); @@ -146,6 +144,7 @@ ); } $xoopsTpl->assign_by_ref("posts_context", $posts_context); - +// irmtfan move to footer.php +include_once dirname(__FILE__) . "/footer.php"; include XOOPS_ROOT_PATH.'/footer.php'; ?> \ No newline at end of file Added: XoopsModules/newbb/branches/irmtfan/newbb/footer.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/footer.php (rev 0) +++ XoopsModules/newbb/branches/irmtfan/newbb/footer.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -0,0 +1,43 @@ +<?php +/* + You may not change or alter any portion of this comment or credits + of supporting developers from this source code or any supporting source code + which is considered copyrighted (c) material of the original comment or credit authors. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package NEWBB + * @since 4.3 + * @author irmtfan <ir...@ya...> + * @author The Persian Xoops Support Site<www.xoops.ir> + * @version $Id: footer.php 1.11 2012-09-23 20:24:01 + */ + +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); + +global $xoopsConfig, $xoTheme; + +include_once XOOPS_ROOT_PATH . "/modules/newbb/include/functions.render.php"; +$icon_handler = newbb_getIconHandler(); +// get css rel path from setted language +$css_rel_path=$icon_handler->getPath("language/" . $xoopsConfig['language'], "newbb", "language/english", "css"); +// add local stylesheet +$xoTheme->addStylesheet($css_rel_path . '/style.css'); + +// get js rel path from setted language +$js_rel_path=$icon_handler->getPath("language/" . $xoopsConfig['language'], "newbb", "language/english", "js"); +// add all local js files inside js directory +xoops_load('XoopsLists'); +$allfiles = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . $js_rel_path); +foreach ($allfiles as $jsfile) { + if (strtolower(pathinfo($jsfile, PATHINFO_EXTENSION)) === 'js') { + $xoTheme->addScript($js_rel_path . '/' . $jsfile); + } +} +?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/header.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/header.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/header.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -71,8 +71,14 @@ foreach ($xoopsModuleConfig["valid_menumodes"] as $key => $val) { if ($key != $menumode) $menumode_other[] = array("title"=>$val, "link"=>$menu_url.$key); } +// irmtfan new method for add js scripts +global $xoopsTpl; +$xoopsTpl->assign("xoops_module_header",' + <script type="text/javascript">var toggle_cookie="'.$forumCookie['prefix'].'G'.'";</script> + '. @$xoopsTpl->get_template_vars("xoops_module_header")); - +/* START irmtfan remove and move to newbb/footer.php */ +/* $newbb_module_header = ''; $newbb_module_header .= '<link rel="alternate" type="application/rss+xml" title="'.$xoopsModule->getVar("name").'" href="'.XOOPS_URL.'/modules/'.$dirname.'/rss.php" />'; if (!empty($xoopsModuleConfig['pngforie_enabled'])) { @@ -108,6 +114,8 @@ } $xoops_module_header = $newbb_module_header; // for cache hack +*/ +/* END irmtfan remove and move to newbb/footer.php */ if (!empty($xoopsModuleConfig["welcome_forum"]) && is_object($xoopsUser) && !$xoopsUser->getVar('posts')) { mod_loadFunctions("welcome", $dirname); Deleted: XoopsModules/newbb/branches/irmtfan/newbb/include/newbb.htc =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/include/newbb.htc 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/include/newbb.htc 2012-09-25 06:31:40 UTC (rev 10190) @@ -1,89 +0,0 @@ -<attach event="ondocumentready" handler="parseStylesheets" /> -<script language="JScript"> -/** - * Pseudos - V1.30.050121 - hover & active - * --------------------------------------------- - * Peterned - http://www.xs4all.nl/~peterned/ - * (c) 2005 - Peter Nederlof - * - * Credits - Arnoud Berendsen - * - Martin Reurings - * - Robert Hanson - * - * howto: body { behavior:url("csshover.htc"); } - * --------------------------------------------- - */ - -var currentSheet, doc = window.document, activators = { - onhover:{on:'onmouseover', off:'onmouseout'}, - onactive:{on:'onmousedown', off:'onmouseup'} -} - -function parseStylesheets() { - var sheets = doc.styleSheets, l = sheets.length; - for(var i=0; i<l; i++) - parseStylesheet(sheets[i]); -} - function parseStylesheet(sheet) { - if(sheet.imports) { - try { - var imports = sheet.imports, l = imports.length; - for(var i=0; i<l; i++) parseStylesheet(sheet.imports[i]); - } catch(securityException){} - } - - try { - var rules = (currentSheet = sheet).rules, l = rules.length; - for(var j=0; j<l; j++) parseCSSRule(rules[j]); - } catch(securityException){} - } - - function parseCSSRule(rule) { - var select = rule.selectorText, style = rule.style.cssText; - if(!(/(^|\s)(([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active)/i).test(select) || !style) return; - - var pseudo = select.replace(/[^:]+:([a-z-]+).*/i, 'on$1'); - var newSelect = select.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi, '.$2' + pseudo); - var className = (/\.([a-z0-9_-]*on(hover|active))/i).exec(newSelect)[1]; - var affected = select.replace(/:hover.*$/, ''); - var elements = getElementsBySelect(affected); - - currentSheet.addRule(newSelect, style); - for(var i=0; i<elements.length; i++) - new HoverElement(elements[i], className, activators[pseudo]); - } - -function HoverElement(node, className, events) { - if(!node.hovers) node.hovers = {}; - if(node.hovers[className]) return; - node.hovers[className] = true; - node.attachEvent(events.on, - function() { node.className += ' ' + className; }); - node.attachEvent(events.off, - function() { node.className = - node.className.replace(new RegExp('\\s+'+className, 'g'),''); }); -} - -function getElementsBySelect(rule) { - var parts, nodes = [doc]; - parts = rule.split(' '); - for(var i=0; i<parts.length; i++) { - nodes = getSelectedNodes(parts[i], nodes); - } return nodes; -} - function getSelectedNodes(select, elements) { - var result, node, nodes = []; - var classname = (/\.([a-z0-9_-]+)/i).exec(select); - var identify = (/\#([a-z0-9_-]+)/i).exec(select); - var tagName = select.replace(/(\.|\#|\:)[a-z0-9_-]+/i, ''); - for(var i=0; i<elements.length; i++) { - result = tagName? elements[i].all.tags(tagName):elements[i].all; - for(var j=0; j<result.length; j++) { - node = result[j]; - if((identify && node.id != identify[1]) || (classname && !(new RegExp('\\b' + - classname[1] + '\\b').exec(node.className)))) continue; - nodes[nodes.length] = node; - } - } return nodes; - } -</script> \ No newline at end of file Deleted: XoopsModules/newbb/branches/irmtfan/newbb/include/pngbehavior.htc =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/include/pngbehavior.htc 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/include/pngbehavior.htc 2012-09-25 06:31:40 UTC (rev 10190) @@ -1,79 +0,0 @@ -<public:component> -<public:attach event="onpropertychange" onevent="propertyChanged()" /> -<public:attach event="onbeforeprint" for="window" onevent="beforePrint()" /> -<public:attach event="onafterprint" for="window" onevent="afterPrint()" /> -<script> - -/* - * PNG Behavior - * - * This script was created by Erik Arvidsson (erik(at)eae.net) - * for WebFX (http://webfx.eae.net) - * Copyright 2002 - * - * For usage see license at http://webfx.eae.net/license.html - * - * Version: 1.01a - * Created: 2001-??-?? First working version - * Updated: 2002-03-28 Fixed issue when starting with a non png image and - * switching between non png images - * 2003-01-06 Fixed RegExp to correctly work with IE 5.0x - * 2004-04-25 Fixed PNG image printing, eliminated need for external - * GIF file, fixed intermittent uninitialised variable - * error [by AG, <http://www.scss.com.au/family/andrew/> ] - * 2004-09-30 Reverted inline javascript image to transparent GIF. The - * new XP SP2 'security' measures prevented the JS image - * from working. [by AG] - * 2004-10-22 Rewrote fixImage() to try and work around some reported - * problems with PNGs vanishing! [by AG] - * - */ - -var IS_PNG = /\-a\.png$/i; /* <-- NOTE: remove the "\-trans" to process *all* PNGs */ -var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == 'Win32'; -var realSrc; -var blankSrc = 'images/blank.gif'; -if (supported) fixImage(); -function propertyChanged() { - if (supported && event.propertyName == 'src' && element.src != blankSrc) { - fixImage(); - } -} -function fixImage() { - if (realSrc && element.src == realSrc) { - // this is an attempt to set the image to itself! - // pointless - leave the filter as-is, restore the blank image - element.src = blankSrc; - } else { - // set the image to something different - if (IS_PNG.test(element.src)) { - // fixable PNG - realSrc = element.src; - element.src = blankSrc; - element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + realSrc + "',sizingMethod='scale')"; - } else { - // ordinary image - make sure the fix is removed - if (realSrc) { - realSrc = null; - element.runtimeStyle.filter = ''; - } - } - } -} -function beforePrint() { - if (realSrc) { - supported = false; - element.src = realSrc; - element.runtimeStyle.filter = ''; - supported = true; - } -} -function afterPrint() { - if (realSrc) { - var rs = realSrc; - realSrc = null; - element.src = rs; - } -} -</script> -</public:component> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/index.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/index.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/index.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -51,20 +51,23 @@ } /* rss feed */ +// irmtfan new method if (!empty($xoopsModuleConfig['rss_enable'])) { - $xoops_module_header .= ' - <link rel="alternate" type="application/rss+xml" title="'.$xoopsModule->getVar('name').'" href="'.XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname', 'n').'/rss.php" /> - '; + $xoopsTpl->assign("xoops_module_header",' + <link rel="alternate" type="application/xml+rss" title="'.$xoopsModule->getVar('name').'" href="'.XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname', 'n').'/rss.php" /> + '. @$xoopsTpl->get_template_vars("xoops_module_header")); } $xoopsOption['template_main'] = 'newbb_index.html'; $xoopsOption['xoops_pagetitle'] = $xoops_pagetitle; -$xoopsOption['xoops_module_header'] = $xoops_module_header; -include $GLOBALS['xoops']->path('header.php'); +// irmtfan remove and move to footer.php +//$xoopsOption['xoops_module_header'] = $xoops_module_header; +//include $GLOBALS['xoops']->path('header.php'); mod_loadFunctions("render", "newbb"); $xoopsTpl->assign('xoops_pagetitle', $xoops_pagetitle); -$xoopsTpl->assign('xoops_module_header', $xoops_module_header); +// irmtfan remove and move to footer.php +//$xoopsTpl->assign('xoops_module_header', $xoops_module_header); $xoopsTpl->assign('forum_index_title', $forum_index_title); //if ($xoopsModuleConfig['wol_enabled']) { if (!empty($xoopsModuleConfig['wol_enabled'])) { @@ -260,5 +263,7 @@ "img_forum" => newbb_displayImage('forum', _MD_NONEWPOSTS), 'img_subforum' => newbb_displayImage('subforum'))); +// irmtfan move to footer.php +include_once dirname(__FILE__) . "/footer.php"; include $GLOBALS['xoops']->path('footer.php'); ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/list.topic.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/list.topic.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/list.topic.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -11,15 +11,17 @@ */ include_once dirname(__FILE__) . "/header.php"; - +// irmtfan new method if (!empty($xoopsModuleConfig['rss_enable'])) { - $xoops_module_header .= '<link rel="alternate" type="application/xml+rss" title="'.$xoopsModule->getVar('name').'" href="'.XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname', 'n').'/rss.php" />'; + $xoopsTpl->assign("xoops_module_header",' + <link rel="alternate" type="application/xml+rss" title="'.$xoopsModule->getVar('name').'" href="'.XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname', 'n').'/rss.php" /> + '. @$xoopsTpl->get_template_vars("xoops_module_header")); } -$xoopsOption['xoops_module_header']= $xoops_module_header; +//$xoopsOption['xoops_module_header']= $xoops_module_header; $xoopsOption['template_main'] = 'newbb_viewall.html'; -include XOOPS_ROOT_PATH."/header.php"; +//include XOOPS_ROOT_PATH."/header.php"; -$xoopsTpl->assign('xoops_module_header', $xoops_module_header); +//$xoopsTpl->assign('xoops_module_header', $xoops_module_header); mod_loadFunctions("time", "newbb"); mod_loadFunctions("render", "newbb"); @@ -89,5 +91,7 @@ $xoopsTpl->assign('forum_index_title', $pagetitle); $xoopsTpl->assign('xoops_pagetitle', $pagetitle); +// irmtfan move to footer.php +include_once dirname(__FILE__) . "/footer.php"; include XOOPS_ROOT_PATH."/footer.php"; ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/newtopic.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/newtopic.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/newtopic.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -50,10 +50,10 @@ $xoopsOption['template_main'] = 'newbb_edit_post.html'; $xoopsConfig["module_cache"][$xoopsModule->getVar("mid")] = 0; // Disable cache -// irmtfan add xoops_module_header -$xoopsOption['xoops_module_header']= $xoops_module_header; -include XOOPS_ROOT_PATH.'/header.php'; -$xoopsTpl->assign('xoops_module_header', $xoops_module_header); +// irmtfan remove and move to footer.php +//$xoopsOption['xoops_module_header']= $xoops_module_header; +//include XOOPS_ROOT_PATH.'/header.php'; +//$xoopsTpl->assign('xoops_module_header', $xoops_module_header); /* $xoopsTpl->assign('lang_forum_index', sprintf(_MD_FORUMINDEX, htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES))); @@ -89,5 +89,7 @@ $post_id = 0; $topic_id = 0; include 'include/form.post.php'; +// irmtfan move to footer.php +include_once dirname(__FILE__) . "/footer.php"; include XOOPS_ROOT_PATH.'/footer.php'; ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/polls.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/polls.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/polls.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -586,6 +586,7 @@ //include XOOPS_ROOT_PATH . "/footer.php"; //exit(); } - +// irmtfan move to footer.php +include_once dirname(__FILE__) . "/footer.php"; include XOOPS_ROOT_PATH . "/footer.php"; ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/post.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/post.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/post.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -411,10 +411,10 @@ $xoopsOption['template_main'] = 'newbb_edit_post.html'; $xoopsConfig["module_cache"][$xoopsModule->getVar("mid")] = 0; -// irmtfan add xoops_module_header -$xoopsOption['xoops_module_header']= $xoops_module_header; -include XOOPS_ROOT_PATH . "/header.php"; -$xoopsTpl->assign('xoops_module_header', $xoops_module_header); +// irmtfan remove and move to footer.php +//$xoopsOption['xoops_module_header']= $xoops_module_header; +//include XOOPS_ROOT_PATH . "/header.php"; +//$xoopsTpl->assign('xoops_module_header', $xoops_module_header); if ( !empty($_POST['contents_upload']) ) { $attachments_tmp = array(); @@ -536,6 +536,7 @@ include 'include/form.post.php'; } - +// irmtfan move to footer.php +include_once dirname(__FILE__) . "/footer.php"; include XOOPS_ROOT_PATH . '/footer.php'; ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/ratethread.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/ratethread.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/ratethread.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -103,6 +103,6 @@ $ratemessage = _MD_VOTEAPPRE . "<br />" . sprintf(_MD_THANKYOU, $xoopsConfig['sitename']); redirect_header("viewtopic.php?topic_id=".$topic_id."&forum=".$forum."", 2, $ratemessage); exit(); - -include 'footer.php'; +// irmtfan enhance include footer.php +include XOOPS_ROOT_PATH.'/footer.php'; ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/reply.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/reply.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/reply.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -86,10 +86,10 @@ $xoopsOption['template_main'] = 'newbb_edit_post.html'; $xoopsConfig["module_cache"][$xoopsModule->getVar("mid")] = 0; -// irmtfan add xoops_module_header -$xoopsOption['xoops_module_header']= $xoops_module_header; -include XOOPS_ROOT_PATH.'/header.php'; -$xoopsTpl->assign('xoops_module_header', $xoops_module_header); +// irmtfan remove and move to footer.php +//$xoopsOption['xoops_module_header']= $xoops_module_header; +//include XOOPS_ROOT_PATH.'/header.php'; +//$xoopsTpl->assign('xoops_module_header', $xoops_module_header); /* $xoopsTpl->assign('lang_forum_index', sprintf(_MD_FORUMINDEX, htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES))); @@ -192,6 +192,7 @@ ); } $xoopsTpl->assign_by_ref("posts_context", $posts_context); - +// irmtfan move to footer.php +include_once dirname(__FILE__) . "/footer.php"; include XOOPS_ROOT_PATH.'/footer.php'; ?> \ No newline at end of file Modified: XoopsModules/newbb/branches/irmtfan/newbb/search.php =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/search.php 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/search.php 2012-09-25 06:31:40 UTC (rev 10190) @@ -39,7 +39,8 @@ $xoopsConfig['module_cache'][$xoopsModule->getVar('mid')] = 0; $xoopsOption['template_main']= 'newbb_search.html'; -include XOOPS_ROOT_PATH.'/header.php'; +// irmtfan remove and move to header.php +//include XOOPS_ROOT_PATH.'/header.php'; mod_loadFunctions("render", "newbb"); mod_loadFunctions("forum", "newbb"); @@ -212,6 +213,7 @@ if ($xoopsConfigSearch['keyword_min'] > 0) { $xoopsTpl->assign("search_rule", sprintf(_SR_KEYIGNORE, $xoopsConfigSearch['keyword_min'])); } - +// irmtfan move to footer.php +include_once dirname(__FILE__) . "/footer.php"; include XOOPS_ROOT_PATH.'/footer.php'; ?> \ No newline at end of file Added: XoopsModules/newbb/branches/irmtfan/newbb/templates/css/index.html =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/css/index.html (rev 0) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/css/index.html 2012-09-25 06:31:40 UTC (rev 10190) @@ -0,0 +1 @@ +<script>history.go(-1);</script> Added: XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/english/index.html =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/english/index.html (rev 0) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/english/index.html 2012-09-25 06:31:40 UTC (rev 10190) @@ -0,0 +1 @@ +<script>history.go(-1);</script> Added: XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/english/style.css =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/english/style.css (rev 0) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/english/style.css 2012-09-25 06:31:40 UTC (rev 10190) @@ -0,0 +1,358 @@ +/* -- style.css -- */ +.forum_header { + float : center; + overflow : hidden; + border : 1px solid #aaaaaa; + width : 100%; +} + +.forum_title { + float : left; + text-align : left; + padding : 5px; + width : 100%; + +} + +.forum_title a { + font-weight: bold; +} + + +.forum_stats { + float:center; + overflow:hidden; + text-align:left; + /* border:1px solid #aaaaaa; */ + padding:5px; +} + +.forum_stats_left { + float: left; + text-align: left; + width:45%; +} + +.forum_stats_right { + float: right; + text-align: right; + width:45%; +} + +.forum_body { + margin-top: -10px; + padding-top: 20px; + float:center; + width:99%; + overflow:hidden; +} + +.forum_footer { + float:center; + width:99%; + overflow:hidden; +} + +.index_category{ + border: 0px; + /*margin-top: -10px; + margin-bottom: 5px;*/ +} + +.ThreadUserName a { + font-weight: bold; + margin-bottom: 2px; + /*color: #000; irmtfan */ +} + +.ThreadTitle, .ThreadTitle a{ + font-weight: bold; + margin-bottom: 2px; + /*color: #fff; irmtfan */ +} + +.icon_left { + float: left; text-align: left; +} + +.icon_right { + float: right; text-align: right; +} + +div.karma +{ + background-color: transparent; + text-align: left; + border-top: 1px solid #DDDDFF; + border-left: 1px solid #DDDDFF; + border-right: 1px solid #AAAAAA; + border-bottom: 1px solid #AAAAAA; + padding: 10px; +} + +span.digest +{ +} + +span.index_title{ + float: left; + border: 0px; +} + +span.index_extra{ + float: right; + padding: 2px; + border: 0px; +} + +div.signature { + bottom: 10px; + border-top-width:1px; + border-top-style: inherit; +} + +div#index_welcome{ + margin: 10px; + margin-bottom: 10px; +} +html>body div#index_welcome { + margin-bottom: 15px; +} + +#index_welcome div.title{ + font-size: 18px; + font-weight: bold; + border-bottom: dashed 1px; + padding: 5px; +} + +#index_welcome div.desc{ + padding: 5px; + font-size: 12px; + color: #000; +} + +#index_welcome div.visit{ + padding: 10px 5px; +} + +.left { text-align: left; } +.right { text-align: right; } +.floatleft { float: left;} +.floatright { float: right;} + +#index_forum a{ + font-weight: bold; +} + +table.index_category{ + border: 0px; + margin-top: -10px; + margin-bottom: 5px; +} + +table.index_category td{ + padding: 2px; +} + +table.index_category td a:first-letter{} + +table.index_category .desc, table.index_category .desc a{ + font-weight: normal !important; + padding-left: 0; + margin-top: 5px; + margin-bottom: 0px; +} + +table.index_category .desc:first-letter, table.index_category .desc a:first-letter{} + +#index_forum span.item{ + padding: 0px 0px 0px 0px; + margin: 0px; + border: 0px; +} + +#index_forum span.extra{ + float: right; + text-align: left; + margin: 0px; +} + +div#forum_header{ + margin: 5px; +} +#forum_header div{ + padding-top: 5px; +} + + + +/* -- dropdown menu -- */ + +div.dropdown{ + float: left; +} + +div.dropdown .menu, div.dropdown .userbar{ + font-weight: bold; + float: left; + margin: 0px 1px; + border: 0px !important; + padding: 0px; +} + +div.dropdown .item{ + font-weight: bold; + padding: 2px 5px; + white-space: nowrap; + border: 0px !important; +} + +div.dropdown ul, div.dropdown table { + width: 135px; +} +/* -- dropdown menu -- */ + +/* -- user level -- */ +table.userlevel{ + width: 90%; + border: 0px; + padding: 0px; + border-collapse: collapse; + border-spacing: 0; + text-align: left; +} + +table.userlevel td{ + height: 13px; + padding: 0px; +} + +table.userlevel td.end{ + width: 3px; +} + +table.userlevel td.end img{ + width: 3px; + height: 13px; +} + +table.userlevel td.center{ + width: 100%; +} + +table.userlevel td.center img{ + height: 12px; +} +/* -- user level -- */ + +span.online_admin{ + color:#FFA34F; +} + +span.online_moderator{ + color:#006600; +} + + +/* + * From http://www.positioniseverything.net/easyclearing.html + */ +.clear:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; +} +.clear {display: inline-table;} +/* Hides from IE-mac \*/ +* html .clear {height: 1%;} +.clear {display: block;} +/* End hide from IE-mac */ + +/* color -- dropdown menu for Forum */ +div.dropdown a, div.dropdown .menubar a{ + /* irmtfan remove hardcode color color:#FFF; */ +} + +div.dropdown .menu, div.dropdown .menubar, div.dropdown .item, div.dropdown .separator{ + /* irmtfan remove hardcode color background-color: #436792;*/ + /* same color set as in your theme/style.ss .th{} is recommended */ + /* irmtfan remove hardcode color color:#FFF; */ +} + +div.dropdown .separator{ + border: 1px inset #e0e0e0; +} + +div.dropdown .menu a:hover, div.dropdown .userbar a:hover{ + color: #333; +} +/* irmtfan class added for solve some hard codes */ +.post_edit { + float: right; + padding: 5px; + margin-top: 10px; + border:1px solid #000; + font-size: small; +} +.post_ip { + float: right; + padding: 5px; + margin-top: 10px; +} +.pagenav { + float: right; + text-align: right; + padding: 5px; +} +.align_left, #align_left { + margin-left: 0; + text-align: left; +} +.align_right, #align_right { + margin-right: 0; + text-align: right; +} +.poll { + text-align: center; + margin: 3px; +} +.pointer { + cursor:pointer; + padding:2px; +} +/* irmtfan source: http://jsfiddle.net/VTLmj/ +you can customize each button like this: +span.forum_icon.forum_button#p_edit +span.forum_icon.forum_button#p_edit:hover +span.forum_icon.forum_button#p_edit:active +find all image names in newbb/include/images.php +*/ +span.forum_icon.forum_button { +background: #407DC7; +background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#407DC7), to(#4279B8)); +background-image: -webkit-linear-gradient(top, #407DC7, #4279B8); +background-image: -moz-linear-gradient(top, #407DC7, #4279B8); +background-image: -ms-linear-gradient(top, #407DC7, #4279B8); +background-image: -o-linear-gradient(top, #407DC7, #4279B8); +border-width: 1px; +color: white; +padding: 4px 4px; +text-shadow: 0 1px 0 gray; +border-color: white #A1C1E6 #2B4763 #A1C1E6; +border-style: solid; +border-radius: 5px; +box-shadow: 0 1px 7px #080808; +font-weight: bold; +} +span.forum_icon.forum_button:hover { +box-shadow: 0 1px 5px #222; +} +span.forum_icon.forum_button:active { +box-shadow: inset 0 1px 7px #565656; +border-color: white #a1c1e6 black #a1c1e6; +font-weight: normal; +} +/* color - end */ \ No newline at end of file Added: XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/index.html =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/index.html (rev 0) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/index.html 2012-09-25 06:31:40 UTC (rev 10190) @@ -0,0 +1 @@ +<script>history.go(-1);</script> Added: XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/persian/index.html =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/persian/index.html (rev 0) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/persian/index.html 2012-09-25 06:31:40 UTC (rev 10190) @@ -0,0 +1 @@ +<script>history.go(-1);</script> Added: XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/persian/style.css =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/persian/style.css (rev 0) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/css/language/persian/style.css 2012-09-25 06:31:40 UTC (rev 10190) @@ -0,0 +1,361 @@ +/* -- style.css -- */ +.forum_header { + float : center; + overflow : hidden; + border : 1px solid #aaaaaa; + width : 100%; +} + +.forum_title { + float : /*irmtfan left*/ right; + text-align : /*irmtfan left*/ right; + padding : 5px; + width : 100%; + +} + +.forum_title a { + font-weight: bold; +} + + +.forum_stats { + float:center; + overflow:hidden; + text-align:/*irmtfan left*/right; + /* border:1px solid #aaaaaa; */ + padding:5px; +} + +.forum_stats_left { + float: /*irmtfan left*/ right; + text-align: /*irmtfan left*/ right; + width:45%; +} + +.forum_stats_right { + float: /*irmtfan right*/left; + text-align: /*irmtfan right*/ left; + width:45%; +} + +.forum_body { + margin-top: -10px; + padding-top: 20px; + float:center; + width:99%; + overflow:hidden; +} + +.forum_footer { + float:center; + width:99%; + overflow:hidden; +} + +.index_category{ + border: 0px; + /*margin-top: -10px; + margin-bottom: 5px;*/ +} + +.ThreadUserName a { + font-weight: bold; + margin-bottom: 2px; + /*color: #000; irmtfan */ +} + +.ThreadTitle, .ThreadTitle a{ + font-weight: bold; + margin-bottom: 2px; + /*color: #fff; irmtfan */ +} + +.icon_left { + float: /*irmtfan left*/ right; text-align: /*irmtfan left*/ right; +} + +.icon_right { + float: /*irmtfan right*/ left; text-align: /*irmtfan right*/ left; +} + +div.karma +{ + background-color: transparent; + text-align: left; + border-top: 1px solid #DDDDFF; + border-left: 1px solid #DDDDFF; + border-right: 1px solid #AAAAAA; + border-bottom: 1px solid #AAAAAA; + padding: 10px; +} + +span.digest +{ +} + +span.index_title{ + float: /*irmtfan left*/ right; + border: 0px; +} + +span.index_extra{ + float: /*irmtfan right*/ left; + padding: 2px; + border: 0px; +} + +div.signature { + bottom: 10px; + border-top-width:1px; + border-top-style: inherit; +} + +div#index_welcome{ + margin: 10px; + margin-bottom: 10px; +} +html>body div#index_welcome { + margin-bottom: 15px; +} + +#index_welcome div.title{ + font-size: 18px; + font-weight: bold; + border-bottom: dashed 1px; + padding: 5px; +} + +#index_welcome div.desc{ + padding: 5px; + font-size: 12px; + color: #000; +} + +#index_welcome div.visit{ + padding: 10px 5px; +} + +.left { text-align: /*irmtfan left*/ right; } +.right { text-align: /*irmtfan right*/ left; } +.floatleft { float: /*irmtfan left*/ right;} +.floatright { float: /*irmtfan right*/ left;} + +#index_forum a{ + font-weight: bold; +} + +table.index_category{ + border: 0px; + margin-top: -10px; + margin-bottom: 5px; +} + +table.index_category td{ + padding: 2px; +} + +table.index_category td a:first-letter{} + +table.index_category .desc, table.index_category .desc a{ + font-weight: normal !important; + /* irmtfan padding-left: 0; */ padding-right: 0; + margin-top: 5px; + margin-bottom: 0px; +} + +table.index_category .desc:first-letter, table.index_category .desc a:first-letter{} + +#index_forum span.item{ + padding: 0px 0px 0px 0px; + margin: 0px; + border: 0px; +} + +#index_forum span.extra{ + float: /*irmtfan right*/ left; + text-align: /*irmtfan left*/ right; + margin: 0px; +} + +div#forum_header{ + margin: 5px; +} +#forum_header div{ + padding-top: 5px; +} + + + +/* -- dropdown menu -- */ + +div.dropdown{ + float: /*irmtfan left*/ right; +} + +div.dropdown .menu, div.dropdown .userbar{ + font-weight: bold; + float: /*irmtfan left*/ right; + margin: 0px 1px; + border: 0px !important; + padding: 0px; +} + +div.dropdown .item{ + font-weight: bold; + padding: 2px 5px; + white-space: nowrap; + border: 0px !important; +} + +div.dropdown ul, div.dropdown table { + width: 135px; +} +/* -- dropdown menu -- */ + +/* -- user level -- */ +table.userlevel{ + width: 90%; + border: 0px; + padding: 0px; + border-collapse: collapse; + border-spacing: 0; + text-align: /*irmtfan left*/ right; +} + +table.userlevel td{ + height: 13px; + padding: 0px; +} + +table.userlevel td.end{ + width: 3px; +} + +table.userlevel td.end img{ + width: 3px; + height: 13px; +} + +table.userlevel td.center{ + width: 100%; +} + +table.userlevel td.center img{ + height: 12px; +} +/* -- user level -- */ + +span.online_admin{ + color:#FFA34F; +} + +span.online_moderator{ + color:#006600; +} + + +/* + * From http://www.positioniseverything.net/easyclearing.html + */ +.clear:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; +} +.clear {display: inline-table;} +/* Hides from IE-mac \*/ +* html .clear {height: 1%;} +.clear {display: block;} +/* End hide from IE-mac */ + +/* color -- dropdown menu for Forum */ +div.dropdown a, div.dropdown .menubar a{ + /* irmtfan remove hardcode color color:#FFF; */ +} + +div.dropdown .menu, div.dropdown .menubar, div.dropdown .item, div.dropdown .separator{ + /* irmtfan remove hardcode color background-color: #436792;*/ + /* same color set as in your theme/style.ss .th{} is recommended */ + /* irmtfan remove hardcode color color:#FFF; */ +} + +div.dropdown .separator{ + border: 1px inset #e0e0e0; +} + +div.dropdown .menu a:hover, div.dropdown .userbar a:hover{ + color: #333; +} +/* irmtfan class added for solve some hard codes */ +.post_edit { + float: /*irmtfan right*/ left; + padding: 5px; + margin-top: 10px; + border:1px solid #000; + font-size: small; +} +.post_ip { + float: /*irmtfan right*/ left; + padding: 5px; + margin-top: 10px; +} +.pagenav { + float: /*irmtfan right*/ left; + text-align: /*irmtfan right*/ left; + padding: 5px; +} +.align_left, #align_left { + direction: rtl; + /* irmtfan margin-left: 0; */ margin-right: 0; + text-align: /*irmtfan left*/ right; +} +.align_right, #align_right { + direction: rtl; + /* irmtfan margin-right: 0; */ margin-left: 0; + text-align: /*irmtfan right*/ left; +} +.poll { + direction: rtl; + text-align: center; + margin: 3px; +} +.pointer { + cursor:pointer; + padding:2px; +} +/* irmtfan source: http://jsfiddle.net/VTLmj/ +you can customize each button like this: +span.forum_icon.forum_button#p_edit +span.forum_icon.forum_button#p_edit:hover +span.forum_icon.forum_button#p_edit:active +find all image names in newbb/include/images.php +*/ +span.forum_icon.forum_button { +background: #407DC7; +background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#407DC7), to(#4279B8)); +background-image: -webkit-linear-gradient(top, #407DC7, #4279B8); +background-image: -moz-linear-gradient(top, #407DC7, #4279B8); +background-image: -ms-linear-gradient(top, #407DC7, #4279B8); +background-image: -o-linear-gradient(top, #407DC7, #4279B8); +border-width: 1px; +color: white; +padding: 4px 4px; +text-shadow: 0 1px 0 gray; +border-color: white #A1C1E6 #2B4763 #A1C1E6; +border-style: solid; +border-radius: 5px; +box-shadow: 0 1px 7px #080808; +font-weight: bold; +} +span.forum_icon.forum_button:hover { +box-shadow: 0 1px 5px #222; +} +span.forum_icon.forum_button:active { +box-shadow: inset 0 1px 7px #565656; +border-color: white #a1c1e6 black #a1c1e6; +font-weight: normal; +} +/* color - end */ \ No newline at end of file Deleted: XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/english/style.css =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/english/style.css 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/english/style.css 2012-09-25 06:31:40 UTC (rev 10190) @@ -1,358 +0,0 @@ -/* -- style.css -- */ -.forum_header { - float : center; - overflow : hidden; - border : 1px solid #aaaaaa; - width : 100%; -} - -.forum_title { - float : left; - text-align : left; - padding : 5px; - width : 100%; - -} - -.forum_title a { - font-weight: bold; -} - - -.forum_stats { - float:center; - overflow:hidden; - text-align:left; - /* border:1px solid #aaaaaa; */ - padding:5px; -} - -.forum_stats_left { - float: left; - text-align: left; - width:45%; -} - -.forum_stats_right { - float: right; - text-align: right; - width:45%; -} - -.forum_body { - margin-top: -10px; - padding-top: 20px; - float:center; - width:99%; - overflow:hidden; -} - -.forum_footer { - float:center; - width:99%; - overflow:hidden; -} - -.index_category{ - border: 0px; - /*margin-top: -10px; - margin-bottom: 5px;*/ -} - -.ThreadUserName a { - font-weight: bold; - margin-bottom: 2px; - /*color: #000; irmtfan */ -} - -.ThreadTitle, .ThreadTitle a{ - font-weight: bold; - margin-bottom: 2px; - /*color: #fff; irmtfan */ -} - -.icon_left { - float: left; text-align: left; -} - -.icon_right { - float: right; text-align: right; -} - -div.karma -{ - background-color: transparent; - text-align: left; - border-top: 1px solid #DDDDFF; - border-left: 1px solid #DDDDFF; - border-right: 1px solid #AAAAAA; - border-bottom: 1px solid #AAAAAA; - padding: 10px; -} - -span.digest -{ -} - -span.index_title{ - float: left; - border: 0px; -} - -span.index_extra{ - float: right; - padding: 2px; - border: 0px; -} - -div.signature { - bottom: 10px; - border-top-width:1px; - border-top-style: inherit; -} - -div#index_welcome{ - margin: 10px; - margin-bottom: 10px; -} -html>body div#index_welcome { - margin-bottom: 15px; -} - -#index_welcome div.title{ - font-size: 18px; - font-weight: bold; - border-bottom: dashed 1px; - padding: 5px; -} - -#index_welcome div.desc{ - padding: 5px; - font-size: 12px; - color: #000; -} - -#index_welcome div.visit{ - padding: 10px 5px; -} - -.left { text-align: left; } -.right { text-align: right; } -.floatleft { float: left;} -.floatright { float: right;} - -#index_forum a{ - font-weight: bold; -} - -table.index_category{ - border: 0px; - margin-top: -10px; - margin-bottom: 5px; -} - -table.index_category td{ - padding: 2px; -} - -table.index_category td a:first-letter{} - -table.index_category .desc, table.index_category .desc a{ - font-weight: normal !important; - padding-left: 0; - margin-top: 5px; - margin-bottom: 0px; -} - -table.index_category .desc:first-letter, table.index_category .desc a:first-letter{} - -#index_forum span.item{ - padding: 0px 0px 0px 0px; - margin: 0px; - border: 0px; -} - -#index_forum span.extra{ - float: right; - text-align: left; - margin: 0px; -} - -div#forum_header{ - margin: 5px; -} -#forum_header div{ - padding-top: 5px; -} - - - -/* -- dropdown menu -- */ - -div.dropdown{ - float: left; -} - -div.dropdown .menu, div.dropdown .userbar{ - font-weight: bold; - float: left; - margin: 0px 1px; - border: 0px !important; - padding: 0px; -} - -div.dropdown .item{ - font-weight: bold; - padding: 2px 5px; - white-space: nowrap; - border: 0px !important; -} - -div.dropdown ul, div.dropdown table { - width: 135px; -} -/* -- dropdown menu -- */ - -/* -- user level -- */ -table.userlevel{ - width: 90%; - border: 0px; - padding: 0px; - border-collapse: collapse; - border-spacing: 0; - text-align: left; -} - -table.userlevel td{ - height: 13px; - padding: 0px; -} - -table.userlevel td.end{ - width: 3px; -} - -table.userlevel td.end img{ - width: 3px; - height: 13px; -} - -table.userlevel td.center{ - width: 100%; -} - -table.userlevel td.center img{ - height: 12px; -} -/* -- user level -- */ - -span.online_admin{ - color:#FFA34F; -} - -span.online_moderator{ - color:#006600; -} - - -/* - * From http://www.positioniseverything.net/easyclearing.html - */ -.clear:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} -.clear {display: inline-table;} -/* Hides from IE-mac \*/ -* html .clear {height: 1%;} -.clear {display: block;} -/* End hide from IE-mac */ - -/* color -- dropdown menu for Forum */ -div.dropdown a, div.dropdown .menubar a{ - /* irmtfan remove hardcode color color:#FFF; */ -} - -div.dropdown .menu, div.dropdown .menubar, div.dropdown .item, div.dropdown .separator{ - /* irmtfan remove hardcode color background-color: #436792;*/ - /* same color set as in your theme/style.ss .th{} is recommended */ - /* irmtfan remove hardcode color color:#FFF; */ -} - -div.dropdown .separator{ - border: 1px inset #e0e0e0; -} - -div.dropdown .menu a:hover, div.dropdown .userbar a:hover{ - color: #333; -} -/* irmtfan class added for solve some hard codes */ -.post_edit { - float: right; - padding: 5px; - margin-top: 10px; - border:1px solid #000; - font-size: small; -} -.post_ip { - float: right; - padding: 5px; - margin-top: 10px; -} -.pagenav { - float: right; - text-align: right; - padding: 5px; -} -.align_left, #align_left { - margin-left: 0; - text-align: left; -} -.align_right, #align_right { - margin-right: 0; - text-align: right; -} -.poll { - text-align: center; - margin: 3px; -} -.pointer { - cursor:pointer; - padding:2px; -} -/* irmtfan source: http://jsfiddle.net/VTLmj/ -you can customize each button like this: -span.forum_icon.forum_button#p_edit -span.forum_icon.forum_button#p_edit:hover -span.forum_icon.forum_button#p_edit:active -find all image names in newbb/include/images.php -*/ -span.forum_icon.forum_button { -background: #407DC7; -background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#407DC7), to(#4279B8)); -background-image: -webkit-linear-gradient(top, #407DC7, #4279B8); -background-image: -moz-linear-gradient(top, #407DC7, #4279B8); -background-image: -ms-linear-gradient(top, #407DC7, #4279B8); -background-image: -o-linear-gradient(top, #407DC7, #4279B8); -border-width: 1px; -color: white; -padding: 4px 4px; -text-shadow: 0 1px 0 gray; -border-color: white #A1C1E6 #2B4763 #A1C1E6; -border-style: solid; -border-radius: 5px; -box-shadow: 0 1px 7px #080808; -font-weight: bold; -} -span.forum_icon.forum_button:hover { -box-shadow: 0 1px 5px #222; -} -span.forum_icon.forum_button:active { -box-shadow: inset 0 1px 7px #565656; -border-color: white #a1c1e6 black #a1c1e6; -font-weight: normal; -} -/* color - end */ \ No newline at end of file Deleted: XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/persian/style.css =================================================================== --- XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/persian/style.css 2012-09-24 22:31:08 UTC (rev 10189) +++ XoopsModules/newbb/branches/irmtfan/newbb/templates/images/language/persian/style.css 2012-09-25 06:31:40 UTC (rev 10190) @@ -1,361 +0,0 @@ -/* -- style.css -- */ -.forum_header { - float : center; - overflow : hidden; - border : 1px solid #aaaaaa; - width : 100%; -} - -.forum_title { - float : /*irmtfan left*/ right; - text-align : /*irmtfan left*/ right; - padding : 5px; - width : 100%; - -} - -.forum_title a { - font-weight: bold; -} - - -.forum_stats { - float:center; - overflow:hidden; - text-align:/*irmtfan left*/right; - /* border:1px solid #aaaaaa; */ - padding:5px; -} - -.forum_stats_left { - float: /*irmtfan left*/ right; - text-align: /*irmtfan left*/ right; - width:45%; -} - -.forum_stats_right { - float: /*irmtfan right*/left; - text-align: /*irmtfan right*/ left; - width:45%; -} - -.forum_body { - margin-top: -10px; - padding-top: 20px; - float:center; - width:99%; - overflow:hidden; -} - -.forum_footer { - float:center; - width:99%; - overflow:hidden; -} - -.index_category{ - border: 0px; - /*margin-top: -10px; - margin-bottom: 5px;*/ -} - -.ThreadUserName a { - font-weight: bold; - margin-bottom: 2px; - /*color: #000; irmtfan */ -} - -.ThreadTitle, .ThreadTitle a{ - font-weight: bold; - margin-bottom: 2px; - /*color: #fff; irmtfan */ -} - -.icon_left { - float: /*irmtfan left*/ right; text-align: /*irmtfan left*/ right; -} - -.icon_right { - float: /*irmtfan right*/ left; text-align: /*irmtfan right*/ left; -} - -div.karma -{ - background-color: transparent; - text-align: left; - border-top: 1px solid #DDDDFF; - border-left: 1px solid #DDDDFF; - border-right: 1px solid #AAAAAA; - border-bottom: 1px solid #AAAAAA; - padding: 10px; -} - -span.digest -{ -} - -span.index_title{ - float: /*irmtfan left*/ right; - border: 0px; -} - -span.index_extra{ - float: /*irmtfan right*/ left; - padding: 2px; - border: 0px; -} - -div.signature { - bottom: 10px; - border-top-width:1px; - border-top-style: inherit; -} - -div#index_welcome{ - margin: 10px; - margin-bottom: 10px; -} -html>body div#index_welcome { - margin-bottom: 15px; -} - -#index_welcome div.title{ - font-size: 18px; - font-weight: bold; - border-bottom: dashed 1px; - padding: 5px; -} - -#index_welcome div.desc{ - padding: 5px; - font-size: 12px; - color: #000; -} - -#index_welcome div.visit{ - padding: 10px 5px; -} - -.left { text-align: /*irmtfan left*/ right; } -.right { text-align: /*irmtfan right*/ left; } -.floatleft { float: /*irmtfan left*/ right;} -.floatright { float: /*irmtfan right*/ left;} - -#index_forum a{ - font-weight: bold; -} - -table.index_category{ - border: 0px; - margin-top: -10px; - margin-bottom: 5px; -} - -table.index_category td{ - padding: 2px; -} - -table.index_category td a:first-letter{} - -table.index_category .desc, table.index_category .desc a{ - font-weight: normal !important; - /* irmtfan padding-left: 0; */ padding-right: 0; - margin-top: 5px; - margin-bottom: 0px; -} - -table.index_category .desc:first-letter, table.index_category .desc a:first-letter{} - -#index_forum span.item{ - padding: 0px 0px 0px 0px; - margin: 0px; - border: 0px; -} - -#index_forum span.extra{ - float: /*irmtfan right*/ left; - text-align: /*irmtfan left*/ right; - margin: 0px; -} - -div#forum_header{ - margin: 5px; -} -#forum_header div{ - padding-top: 5px; -} - - - -/* -- dropdown menu -- */ - -div.dropdown{ - float: /*irmtfan left*/ right; -} - -div.dropdown .menu, div.dropdown .userbar{ - font-weight: bold; - float: /*irmtfan left*/ right; - margin: 0px 1px; - border: 0px !important; - padding: 0px; -} - -div.dropdown .item{ - font-weight: bold; - padding: 2px 5px; - white-space: nowrap; - border: 0px !important; -} - -div.dropdown ul, div.dropdown table { - width: 135px; -} -/* -- dropdown menu -- */ - -/* -- user level -- */ -table.userlevel{ - width: 90%; - border: 0px; - padding: 0px; - border-collapse: collapse; - border-spacing: 0; - text-align: /*irmtfan left*/ right; -} - -table.userlevel td{ - height: 13px; - padding: 0px; -} - -table.userlevel td.end{ - width: 3px; -} - -table.userlevel td.end img{ - width: 3px; - height: 13px; -} - -table.userlevel td.center{ - width: 100%; -} - -table.userlevel td.center img{ - height: 12px; -} -/* -- user level -- */ - -span.online_admin{ - color:#FFA34F; -} - -span.online_moderator{ - color:#006600; -} - - -/* - * From http://www.positioniseverything.net/easyclearing.html - */ -.clear:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} -.clear {display: inline-table;} -/* Hides from IE-mac \*/ -* html .clear {height: 1%;} -.clear {display: block;} -/* End hide from IE-mac */ - -/* color -- dropdown menu for Forum */ -div.dropdown a, div.dropdown .menubar a{ - /* irmtfan remove hardcode colo... [truncated message content] |