User talk:Badmadevil: Difference between revisions
→Theme problems: fixed?
m (→Not Implemented Tasks by Language: add links for navigation, some minor changes) |
(→Theme problems: fixed?) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1:
Welcome to Rosetta Code! I founded RC around a year ago, and still do most of the administrative work. Thanks for your code contributions. I'm curious, though, how did you hear about RC? --[[User:Short Circuit|Short Circuit]] 10:44, 23 February 2008 (MST)
:Hi, thanks. I heard from a forward message posted at Digital Mars D newsgroup about a month ago. -[[User:Badmadevil|badmadevil]] 03:03, 24 February 2008 (MST)
== Theme problems ==
Hi there, I'm really not seeing the issues you're reporting about the new skin. <del>If you could, post the browser version as well, as I see neither of the problems you've listed in the ones I'm testing with (FF3, Opera 9.5, IE7)</del> I'm really not seeing the issues you're talking about. Perhaps your font size is larger than normal? Ctrl + 0 or View > Zoom > Reset.
--[[User:Qrush|qrush]] 19:54, 22 June 2008 (UTC)
:oops... then my browser setting problem is the most possible explanation, sorry for the extra work. (btw, in my FF3, by changing zoom, it only affect the size of top-left logo's ''Rosetta Code'' text if ''zoom text only'', else everything is proportional) -- [[User:Badmadevil|badmadevil]] 04:08, 23 June 2008 (UTC)
:: This should be fixed. Give the skim another try. --[[User:Short Circuit|Short Circuit]] 00:14, 14 February 2009 (UTC)
== Mylang ==
Line 25 ⟶ 31:
<php><?php
// may be need to enable allow_url_fopen, or change it to local file path
define('RCHost' , 'www.rosettacode.org') ;
define('ROSETTA', 'http://' . RCHost) ;
define('Prefix', ROSETTA . '/wiki/Category:') ;
define('TaskURL',
define('ListURL',
define('
define('NA', 'NotAvaliable') ;
$subfix = "" ;
$langID = LangId() ;
▲$IDLang = myDecode(myDecode($langID)) ;
// this control how to access this scrtpt
$scriptURL = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['URL'] ;
function ScriptURL($langId){
global $
return $scriptURL . ($langId == NA ? "" : '?' . myEncode($langId)) ;▼
if($langId == NA)
$tail = strlen($subfix) == 0 ? '' : '?' . $subfix ;
$tail = strlen($subfix) == 0 ? '' : '&' . $subfix ;
return $scriptURL . $tail ;
}
function pageUrl($page) {
global $subfix;
$tail = strlen($subfix) == 0 ? '' : '?' . $subfix ;
return Prefix . $page . $tail ;
}
function myEncode($s) { return str_replace('.', '%252E', rawurlencode($s)) ; }
function myDecode($s) { return str_replace('_', ' ' , rawurldecode($s)) ; }
function LangId(){
global $subfix ;
$langId = NA ;
if(count($
parse_str($_SERVER['QUERY_STRING'], $query) ;
if(array_key_exists(
$langId = $
▲ else {
else
foreach($query as $key => $value)
if(strlen($value) == 0) {
▲ }
$query[LANGID] = $key ;
$langId = $key ;
unset($query[$key]) ;
break ;
}
if(array_key_exists(LANGID, $query))
unset($query[LANGID]) ;
$subfix = http_build_query($query) ;
}
return
}
Line 67 ⟶ 96:
global $langID ;
if($url == $langID) {
if(!@$this->loadHTMLFile($this->url =
if(!@$this->loadHTMLFile($this->url =
$this->ok = FALSE ;
if($this->ok) $this->context = $this->getElementById($id) ;
Line 155 ⟶ 184:
for($i = 0 ; $i < $lang->tds->length ; $i++) {
$td = $lang->tds->item($i) ;
$td->setAttribute("width", intval(100/$lang->tds->length) . "
$td->setAttribute("valign", "top") ;
$ul = NULL ;
Line 214 ⟶ 243:
$lang = new Page($langID, 'mw-pages') ;
if($lang->ok) {
$task = new Page(pageURL(TaskURL), 'mw-pages') ;
if($task->ok)
$lang->prepare($task->lnk) ;
Line 222 ⟶ 251:
if($langID != NA && $lang->ok && $task->ok) {
linkText($lang->hdr, 'Not Completed Tasks by ', $lang->url, $IDLang, NULL) ;
linkText($lang->hdr, ' ( ',
process_task() ;
echo $lang->toHTML() ;
} else {
$list = new Page(pageURL(ListURL), 'mw-subcategories') ;
if($list->ok) {
if($langID == NA)
Line 249 ⟶ 278:
?></php>
|}
Hope it can be a temporary solution. -- [[User:Badmadevil|badmadevil]]
|