Skip to content

Instantly share code, notes, and snippets.

/*
trasforma da <span class="mailto">domain,account,testo</span>
a <a href="mailto:account@domain">testo</a>
* testo e' opzionale, in caso sia assente visualizza l'indirizzo.
*/
function impostaIndirizziEMail()
{
if (!document.getElementsByTagName) { return; }
ar_spans = document.getElementsByTagName('span');
for (i=0; i<ar_spans.length; i++)
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#banner').s3Slider({
timeOut: <?php echo get_option('s3slider_timeout'); ?>
});
});
</script>
diff --git a/smilies-package.inc.php b/smilies-package.inc.php
index bb5f42c..62c40d6 100644
--- a/smilies-package.inc.php
+++ b/smilies-package.inc.php
@@ -8,7 +8,7 @@ class smilies_package
var $url_path;
var $smilies = array();
- var $smiliessearch = array();
+ var $smiliessearch = '';
--- lib/core.php (revisione 12229)
+++ lib/core.php (copia locale)
@@ -256,7 +256,7 @@
elseif($navtype=='pages'):
mystique_list_pages(array('exclude' => get_mystique_option('exclude_pages'), 'sort_column' => 'menu_order'));
else:
- mystique_list_menu(array('slug' => trim($navtype, 'menu-')));
+ mystique_list_menu(array('slug' => substr($navtype, 5)));
endif;
--- lib/core.php (revisione 12229)
+++ lib/core.php (copia locale)
@@ -128,7 +128,7 @@
// menu walker
class mystique_MenuWalker extends Walker {
var $tree_type = array('post_type', 'taxonomy', 'custom');
- var $db_fields = array('parent' => 'post_parent', 'id' => 'object_id');
+ var $db_fields = array('parent' => 'menu_item_parent', 'id' => 'db_id');
function start_lvl(&$output, $depth) {
@frasten
frasten / htaccess AlessioPedrali
Created May 13, 2010 16:57
.htaccess - redirect a nuovo URL dopo cambio host
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !www.alessiopedrali.it$ [NC]
RewriteRule ^(.*)$ http://www.alessiopedrali.it/$1 [L,R=301]
--- lib/core.php 2010-05-25 20:41:16.136542548 +0200
+++ lib/core.php 2010-06-03 01:21:45.250096862 +0200
@@ -143,26 +143,15 @@
function start_el(&$output, $item, $depth, $args) {
global $wp_query;
$indent = ($depth) ? str_repeat("\t", $depth) : '';
- $classes = $value = '';
- $classes = array('type-'. $item->type, $item->classes);
+ $class_names = $value = '';
+ $classes = empty( $item->classes ) ? array() : (array) $item->classes;
Mystique theme for wordpress: adds a filter to choose a custom favicon.
--- ./header.php 2010-06-07 20:59:51.870570644 +0200
+++ ./header.php 2010-06-07 21:07:55.069569957 +0200
@@ -16,7 +16,7 @@
<?php endif; ?>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
-<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
+<link rel="shortcut icon" href="<?php echo apply_filters( 'mystique_favicon', get_bloginfo('template_directory') . '/favicon.ico' ); ?>" />
Starting program: /home/frasten/develop/openleu/trunk/src/leu
CHECK : Mon Jan 18 14:42:34 2010 : Avvio del gioco ver 1.5 rel 09
CHECK : Mon Jan 18 14:42:34 2010 : Gioco in esecuzione sulla porta 7000.
CHECK : Mon Jan 18 14:42:34 2010 : Utilizzo lib come directory dei dati.
CHECK : Mon Jan 18 14:42:34 2010 : Svuoto la lista degli hosts bloccati.
CHECK : Mon Jan 18 14:42:34 2010 : Blocco l'host: 130.225.96.225
CHECK : Mon Jan 18 14:42:34 2010 : Apro la connessione madre.
CHECK : Mon Jan 18 14:42:34 2010 : Signal trapping.
CHECK : Mon Jan 18 14:42:34 2010 : Boot db -- BEGIN.
CHECK : Mon Jan 18 14:42:34 2010 : Resetting the game time:
Passi per riprodurlo:
andare da Alistar (guardiana di L&P)
mforce Alistar s
n
<aspetta>
<CRASH>
Program received signal SIGSEGV, Segmentation fault.
0x0815f47a in IsGuildGuardRoomFP (room=4425, tgt_room=0x4ee8) at gilde.c:199