Recent Topics

1 Feb 16, 2005 22:55    

I'd like to add a paypal donations button and an AIM contact bar, but b2evolution keeps telling me that some of the code is incorrect. Is there a way to let b2 be more liberal with the html it accepts?

Eric Kauschen

2 Feb 16, 2005 23:27

yes, put it under your meta data on your right hand bar (for example) .. not within a post.

IF you insist on putting it in a post you will have to play with conf/_formatting.php -- you can turn it checking all together in there, and then put anything you like inside a post, for instance.

3 Feb 16, 2005 23:31

whoo wrote:

yes, put it under your meta data on your right hand bar (for example) .. not within a post.

IF you insist on putting it in a post you will have to play with conf/_formatting.php -- you can turn it checking all together in there, and then put anything you like inside a post, for instance.

OK, assume you're talking to an idiot and tell me how to put it in the meta data. :oops:

4 Feb 17, 2005 00:02

OK, I was able to change the formating to turn the first security off and the javascript css security on, but now the screen looks, well, "dirty". Any suggestions?

http://khpr.saundhaus.com

Here's the text of my formatting.php file.

<?php
/**
 * This is b2evolution's formatting config file
 *
 * This file sets how b2evolution will parse and format texts (posts, comments, etc.)
 * Last significant changes to this file: version 0.9.0.6
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
 * @copyright (c)2003-2004 by Francois PLANQUE - {@link http://fplanque.net/}
 *
 * @package conf
 */
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );

// ** Formatting **

# Choose the formatting options for your posts:
# 0 to disable
# 1 to ensable
$use_balanceTags = 1;		// 0,1 automatically balance unmatched tags in posts and comments. 


# Choose formatting options for comments
# 'never'   : option will never be used
# 'opt-in'  : option will be used only if user explicitely asks for it
# 'opt-out' : option will be used by default, but user can refuse
# 'always'  : option will always be used
$comments_use_autobr = 'opt-out';	// automatically change line breaks to <br />


/*
 * Validity & Security Checking 
 *
 * Posts and comments should be checked to see if they contain valid XHTML code
 * and no invalid code (javascript, styles, CSS, etc...)
 */
# Html checking will validate posts and comments to a subset of valid XHTML. 
# This will also do much cleaner security checking than the next option.
# Note: This option requires the PHP XML module. If your PHP installation doesn't have it
# disable html_checker and use security_checker.
$use_html_checker = 0;
# Security checking will check for illegal javascript hacks in posts/comments
# and for CSS in comments. However, this may be a bit harsh on your posts :]
$use_security_checker = 1;		
# WARNING: disabling both $use_html_checker and $use_security_checker is suicidal !


/*
 * HTML Checker params:
 *
 * The params are defined twice: once for the posts and once for the comments.
 * Typically you'll be more restrictive on comments.
 *
 * Adapted from XHTML-1.0-Transitional/Strict by fplanque
 * http://www.w3.org/TR/2002/REC-xhtml1-20020801/dtds.html#a_dtd_XHTML-1.0-Strict
 */

// DEFINITION of allowed XHTML code for POSTS (posted in the backoffice)

/**
 * Allowed Entity classes
 */
// define('E_special_pre', 'br span bdo');			// Strict
// define('E_special', E_special_pre.' img');		// Strict
define('E_special_extra', 'img' );							// Transitional
define('E_special_basic', 'br span bdo' );			// Transitional
define('E_special', E_special_basic.' '.E_special_extra );	// Transitional

// define('E_fontstyle', 'tt i b big small');				// Strict
define('E_fontstyle_extra', 'big small font' );			// Transitional
define('E_fontstyle_basic', 'tt i b u s strike' );	// Transitional
define('E_fontstyle', E_fontstyle_basic.' '.E_fontstyle_extra );	// Transitional

// define('E_phrase', 'em strong dfn code q samp kbd var cite abbr acronym sub sup'); // Strict
define('E_phrase_extra', 'sub sup'); 																							// Transitional
define('E_phrase_basic', 'em strong dfn code q samp kbd var cite abbr acronym');	// Transitional
define('E_phrase', E_phrase_basic.' '.E_phrase_extra ); 													// Transitional

define('E_misc_inline', 'ins del');
define('E_misc', E_misc_inline);
define('E_inline', 'a '.E_special.' '.E_fontstyle.' '.E_phrase );
define('E_Iinline', '#PCDATA '.E_inline.' '.E_misc_inline );
define('E_heading', 'h1 h2 h3 h4 h5 h6');

// define('E_list', 'ul ol dl');				// Strict
define('E_list', 'ul ol dl menu dir');	// Transitional

// define('E_blocktext', 'pre hr blockquote address');			// Strict
define('E_blocktext', 'pre hr blockquote address center');	// Transitional

define('E_block', 'p '.E_heading.' div '.E_list.' '.E_blocktext.' fieldset table');

// define('E_Bblock', E_block.' '.E_misc );			// Strict only

define('E_Flow', '#PCDATA '.E_block.' '.E_inline.' '.E_misc );
define('E_a_content', '#PCDATA '.E_special.' '.E_fontstyle.' '.E_phrase.' '.E_misc_inline );

// define('E_pre_content', '#PCDATA a '.E_fontstyle.' '.E_phrase.' '.E_special_pre.' '.E_misc_inline ); // Strict
define('E_pre_content', '#PCDATA a '.E_special_basic.' '.E_fontstyle_basic.' '.E_phrase_basic.' '.E_misc_inline ); // Transitional
			 
// Allowed Attribute classes
define('A_coreattrs', 'class title');
define('A_i18n', 'lang xml:lang dir');
define('A_attrs', A_coreattrs.' '.A_i18n);
define('A_TextAlign', 'align');									// Transitional only
define('A_cellhalign', 'align char charoff');
define('A_cellvalign', 'valign');

// Array showing what tags are allowed and what their allowed subtags are.
$allowed_tags = array
(
	'body' => E_Flow, // Remember this is not a true body, just a post body
	'div' => E_Flow,
	'p' => E_Iinline,
	'h1' => E_Iinline,
	'h2' => E_Iinline,
	'h3' => E_Iinline,
	'h4' => E_Iinline,
	'h5' => E_Iinline,
	'h6' => E_Iinline,
	'ul' => 'li',
	'ol' => 'li',
	'menu' => 'li',		// Transitional only
	'dir' => 'li',		// Transitional only
	'li' => E_Flow,
	'dl' => 'dt dd',
	'dt' => E_Iinline,
	'dd' => E_Flow,
	
	// 'address' => E_Iinline,														// Strict
	'address' => '#PCDATA '.E_inline.' '.E_misc_inline,		// Transitional
	
	'hr' => '',
	'pre' => E_pre_content,

	// 'blockquote' => E_Bblock,		// Strict
	'blockquote' => E_Flow,					// Transitional

	'center' => E_Flow,					// Transitional only
	
	'ins' => E_Flow,
	'del' => E_Flow,
	'a' => E_a_content,
	'span' => E_Iinline,
	'bdo' => E_Iinline,
	'br' => '',
	'em' => E_Iinline,
	'strong' => E_Iinline,
	'dfn' => E_Iinline,
	'code' => E_Iinline,
	'samp' => E_Iinline,
	'kbd' => E_Iinline,
	'var' => E_Iinline,
	'cite' => E_Iinline,
	'abbr' => E_Iinline,
	'acronym' => E_Iinline,
	'q' => E_Iinline,
	'sub' => E_Iinline,
	'sup' => E_Iinline,
	'tt' => E_Iinline,
	'i' => E_Iinline,
	'b' => E_Iinline,
	'big' => E_Iinline,
	'small' => E_Iinline,

	'u' => E_Iinline,						// Transitional only
	's' => E_Iinline,						// Transitional only
	'strike' => E_Iinline,			// Transitional only
	'font' => E_Iinline,				// Transitional only

	'img' => '',
	'fieldset' => '#PCDATA legend '.E_block.' '.E_inline.' '.E_misc,
	'legend' => E_Iinline,
	'table' => 'caption col colgroup thead tfoot tbody tr',
	'caption' => E_Iinline,
	'thead' => 'tr',
	'tfoot' => 'tr',
	'tbody' => 'tr',
	'colgroup' => 'col',
	'tr' => 'th td',
	'th' => E_Flow,
	'td' => E_Flow,
);

// Array showing allowed attributes for tags
$allowed_attribues = array
(
	// 'div' => A_attrs,								// Strict
	'div' => A_attrs.' '.A_TextAlign,		// Transitional

	// 'p' => A_attrs,								// Strict
	'p' => A_attrs.' '.A_TextAlign,		// Transitional

	// 'h1' => A_attrs,								// Strict
	'h1' => A_attrs.' '.A_TextAlign,		// Transitional
	// 'h2' => A_attrs,								// Strict
	'h2' => A_attrs.' '.A_TextAlign,		// Transitional
	// 'h3' => A_attrs,								// Strict
	'h3' => A_attrs.' '.A_TextAlign,		// Transitional
	// 'h4' => A_attrs,								// Strict
	'h4' => A_attrs.' '.A_TextAlign,		// Transitional
	// 'h5' => A_attrs,								// Strict
	'h5' => A_attrs.' '.A_TextAlign,		// Transitional
	// 'h6' => A_attrs,								// Strict
	'h6' => A_attrs.' '.A_TextAlign,		// Transitional

	// 'ul' => A_attrs,	// Strict
	'ul' => A_attrs.' type compact',	// Transitional

	// 'ol' => A_attrs,	// Strict
	'ol' => A_attrs.' type compact start',	// Transitional

	'menu' => A_attrs.' compact',	// Transitional only
	'dir' => A_attrs.' compact',	// Transitional only

	// 'li' => A_attrs,							// Strict
	'li' => A_attrs.' type value',	// Transitional

	// 'dl' => A_attrs,					// Strict
	'dl' => A_attrs.' compact',	// Transitional 

	'dt' => A_attrs,
	'dd' => A_attrs,

	'address' => A_attrs,

	// 'hr' => A_attrs,															// Strict
	'hr' => A_attrs.' align noshade size width',		// Transitional

	// 'pre' => A_attrs.' xml:space',								// Strict
	'pre' => A_attrs.' width xml:space',						// Transitional

	'blockquote' => A_attrs.' cite',

	'center' => A_attrs,					// Transitional only

	'ins' => A_attrs.' cite datetime',
	'del' => A_attrs.' cite datetime',

	// 'a' => A_attrs.' charset type href hreflang rel rev shape coords',			// Strict
	'a' => A_attrs.' charset type href hreflang rel rev shape coords target',	// Transitional

	'span' => A_attrs,
	'bdo' => A_coreattrs.' lang xml:lang dir',

	// 'br' => A_coreattrs,				// Strict
	'br' => A_coreattrs.' clear',	// Transitional

	'em' => A_attrs,
	'strong' => A_attrs,
	'dfn' => A_attrs,
	'code' => A_attrs,
	'samp' => A_attrs,
	'kbd' => A_attrs,
	'var' => A_attrs,
	'cite' => A_attrs,
	'abbr' => A_attrs,
	'acronym' => A_attrs,
	'q' => A_attrs.' cite',
	'sub' => A_attrs,
	'sup' => A_attrs,
	'tt' => A_attrs,
	'i' => A_attrs,
	'b' => A_attrs,
	'big' => A_attrs,
	'small' => A_attrs,

	'u' => A_attrs,						// Transitional only
	's' => A_attrs,						// Transitional only
	'strike' => A_attrs,			// Transitional only
	'font' => A_coreattrs.' '.A_i18n.' size color face',	// Transitional only

	// 'img' => A_attrs.' src alt longdesc height width usemap ismap',	// Strict
	'img' => A_attrs.' src alt name longdesc height width usemap ismap align border hspace vspace',	// Transitional

	'fieldset' => A_attrs,

	//'legend' => A_attrs,							// Strict
	'legend' => A_attrs.' align',				// Transitional

	// 'table' => A_attrs.' summary width border frame rules cellspacing cellpadding',  // Strict
	'table' => A_attrs.' summary width border frame rules cellspacing cellpadding align bgcolor', // Transitional

	// 'caption' => A_attrs,						// Strict
	'caption' => A_attrs.' align',			// Transitional

	'colgroup' => A_attrs.' span width cellhalign cellvalign',
	'col' => A_attrs.' span width cellhalign cellvalign',
	'thead' => A_attrs.' '.A_cellhalign.' '.A_cellvalign,
	'tfoot' => A_attrs.' '.A_cellhalign.' '.A_cellvalign,
	'tbody' => A_attrs.' '.A_cellhalign.' '.A_cellvalign,

	// 'tr' => A_attrs.' '.A_cellhalign.' '.A_cellvalign,	// Strict
	'tr' => A_attrs.' '.A_cellhalign.' '.A_cellvalign.' bgcolor',	// Transitional 

	// 'th' => A_attrs.' abbr axis headers scope rowspan colspan'.A_cellhalign.' '.A_cellvalign,	// Strict
	'th' => A_attrs.' abbr axis headers scope rowspan colspan'.A_cellhalign.' '.A_cellvalign.' nowrap bgcolor width height',	// Transitional

	// 'td' => A_attrs.' abbr axis headers scope rowspan colspan'.A_cellhalign.' '.A_cellvalign,	// Strict
	'td' => A_attrs.' abbr axis headers scope rowspan colspan'.A_cellhalign.' '.A_cellvalign.' nowrap bgcolor width height',	// Transitional
);

$allowed_uri_scheme = array
(
	'http',
	'https',
	'ftp',
	'gopher',
	'nntp',
	'news',
	'mailto',
	'irc',
	'aim',
	'icq'
);


// DEFINITION of allowed XHTML code for COMMENTS (posted from the public blog pages)

# here is a list of the tags that are allowed in the comments.
# all tags not in this list will be filtered out anyway before we do any checking
$comment_allowed_tags = '<p><ul><ol><li><dl><dt><dd><address><blockquote><ins><del><a><span><bdo><br><em><strong><dfn><code><samp><kdb><var><cite><abbr><acronym><q><sub><sup><tt><i><b><big><small>';

// Allowed Entity classes
define('C_E_special_pre', 'br span bdo');
define('C_E_special', C_E_special_pre);
define('C_E_fontstyle', 'tt i b big small');
define('C_E_phrase', 'em strong dfn code q samp kbd var cite abbr acronym sub sup');
define('C_E_misc_inline', 'ins del');
define('C_E_misc', C_E_misc_inline);
define('C_E_inline', 'a '.C_E_special.' '.C_E_fontstyle.' '.C_E_phrase );
define('C_E_Iinline', '#PCDATA '.C_E_inline.' '.C_E_misc_inline );
define('C_E_heading', '');
define('C_E_list', 'ul ol dl');
define('C_E_blocktext', 'hr blockquote address');
define('C_E_block', 'p '.C_E_heading.' div '.C_E_list.' '.C_E_blocktext.' table');
define('C_E_Bblock', C_E_block.' '.C_E_misc );
define('C_E_Flow', '#PCDATA '.C_E_block.' '.C_E_inline.' '.C_E_misc );
define('C_E_a_content', '#PCDATA '.C_E_special.' '.C_E_fontstyle.' '.C_E_phrase.' '.C_E_misc_inline );
define('C_E_pre_content', '#PCDATA a '.C_E_fontstyle.' '.C_E_phrase.' '.C_E_special_pre.' '.C_E_misc_inline );

// Allowed Attribute classes
define('C_A_coreattrs', 'class title');
define('C_A_i18n', 'lang xml:lang dir');
define('C_A_attrs', C_A_coreattrs.' '.C_A_i18n);
define('C_A_cellhalign', 'align char charoff');
define('C_A_cellvalign', 'valign');

// Array showing what tags are allowed and what their allowed subtags are.
$comments_allowed_tags = array
(
	'body' => E_Flow, // Remember this is not a true body, just a comment body
	'p' => C_E_Iinline,
	'ul' => 'li',
	'ol' => 'li',
	'li' => C_E_Flow,
	'dl' => 'dt dd',
	'dt' => C_E_Iinline,
	'dd' => C_E_Flow,
	'address' => C_E_Iinline,
	'hr' => '',
//	'blockquote' => C_E_Bblock,		// XHTML-1.0-Strict
	'blockquote' => C_E_Flow,				// XHTML-1.0-Transitional
	'ins' => C_E_Flow,
	'del' => C_E_Flow,
	'a' => C_E_a_content,
	'span' => C_E_Iinline,
	'bdo' => C_E_Iinline,
	'br' => '',
	'em' => C_E_Iinline,
	'strong' => C_E_Iinline,
	'dfn' => C_E_Iinline,
	'code' => C_E_Iinline,
	'samp' => C_E_Iinline,
	'kbd' => C_E_Iinline,
	'var' => C_E_Iinline,
	'cite' => C_E_Iinline,
	'abbr' => C_E_Iinline,
	'acronym' => C_E_Iinline,
	'q' => C_E_Iinline,
	'sub' => C_E_Iinline,
	'sup' => C_E_Iinline,
	'tt' => C_E_Iinline,
	'i' => C_E_Iinline,
	'b' => C_E_Iinline,
	'big' => C_E_Iinline,
	'small' => C_E_Iinline
);

// Array showing allowed attributes for tags
$comments_allowed_attribues = array
(
	'p' => C_A_attrs,
	'ul' => C_A_attrs,
	'ol' => C_A_attrs,
	'li' => C_A_attrs,
	'dl' => C_A_attrs,
	'dt' => C_A_attrs,
	'dd' => C_A_attrs,
	'address' => C_A_attrs,
	'blockquote' => C_A_attrs.' cite',
	'ins' => C_A_attrs.' cite datetime',
	'del' => C_A_attrs.' cite datetime',
	'a' => C_A_attrs.' charset type href hreflang rel rev shape coords',
	'span' => C_A_attrs,
	'bdo' => C_A_coreattrs.' lang xml:lang dir',
	'br' => C_A_coreattrs,
	'em' => C_A_attrs,
	'strong' => C_A_attrs,
	'dfn' => C_A_attrs,
	'code' => C_A_attrs,
	'samp' => C_A_attrs,
	'kbd' => C_A_attrs,
	'var' => C_A_attrs,
	'cite' => C_A_attrs,
	'abbr' => C_A_attrs,
	'acronym' => C_A_attrs,
	'q' => C_A_attrs.' cite',
	'sub' => C_A_attrs,
	'sup' => C_A_attrs,
	'tt' => C_A_attrs,
	'i' => C_A_attrs,
	'b' => C_A_attrs,
	'big' => C_A_attrs,
	'small' => C_A_attrs,
);

$comments_allowed_uri_scheme = array
(
	'http',
	'https',
	'ftp',
	'gopher',
	'nntp',
	'news',
	'mailto',
	'irc',
	'aim',
	'icq'
);


// Array showing URI attributes
$uri_attrs = array
(
	'xmlns',
	'profile',
	'href',
	'src',
	'cite',
	'classid',
	'codebase',
	'data',
	'archive',
	'usemap',
	'longdesc',
	'action'
);


# Translation of HTML entities and special characters
$b2_htmltrans = array(
	// '–' => ' ', '—' => ' ', '‘' => ' ', '’' => ' ',
	// '“' => ' ', '”' => ' ', '•' => ' ', '€' => ' ',
	'&lt;' => '<',	'&gt;' => '>',
	'&sp;' => ' ', '&excl;' => '!', '&quot;' => '"', '&num;' => '#', 
	'&dollar;' =>  '$', '&percnt;' => '%', '&amp;' => '&', '&apos;' => ''', 
	'&lpar;' => '(', '&rpar;' => ')',
	'&ast;' => '*', '&plus;' => '+', '&comma;' => ',', '&hyphen;' => '-', 
	'&minus;' => '-', '&period;' => '.', '&sol;' => '/', '&colon;' => ':', 
	'&semi;' => ';', '&lt;' => '<',
	'&equals;' => '=', '&gt;' => '>', '&quest;' => '?', '&commat;' => '@', 
	'&lsqb;' => '[', '&bsol;' => '\', '&rsqb;' => ']', '&circ;' => '^', 
	'&lowbar;' => '_', '&horbar;' => '_',
	'&grave;' => '`', '&lcub;' => '{', '&verbar;' => '|', '&rcub;' => '}', 
	'&tilde;' => '~', '&lsquor;' => '‚', '&ldquor;' => '„',
	'&ldots;' => '…', '&Scaron;' => 'Š', '&lsaquo;' => '‹', '&OElig;' => 'Œ',
	'&lsquo;' => '‘', '&rsquor;' => '‘', '&rsquo;' => '’',
	'&ldquo;' => '“', '&rdquor;' => '“', '&rdquo;' => '”', '&bull;' => '•',
	'&ndash;' => '–', '&endash;' => '–', '&mdash;' => '—', '&emdash;' => '—',
	'&tilde;' => '˜', '&trade;' => '™',
	'&scaron;' => 'š', '&rsaquo;' => '›', '&oelig;' => 'œ', '&Yuml;' => 'Ÿ',
	'&nbsp;' => ' ', '&iexcl;' => '¡', '&cent;' => '¢', '&pound;' => '£', 
	'&curren;' => '¤', '&yen;' => '¥',
	'&brvbar;' => '¦', '&brkbar;' => '¦', '&sect;' => '§', '&uml;' => '¨', 
	'&die;' => '¨', '&copy;' => '©', '&ordf;' => 'ª', '&laquo;' => '«', 
	'&not;' => '¬', '&shy;' => '­',
	'&reg;' => '®', '&macr;' => '¯', '&hibar;' => '¯', '&deg;' => '°', 
	'&plusmn;' => '±', '&sup2;' => '²', '&sup3;' => '³', '&acute;' => '´', 
	'&micro;' => 'µ', '&para;' => '¶',
	'&middot;' => '·', '&cedil;' => '¸', '&sup1;' => '¹', '&ordm;' => 'º', 
	'&raquo;' => '»', '&frac14;' => '¼', '&frac12;' => '½', '&half;' => '½',
	'&frac34;' => '¾', '&iquest;' => '¿',
	'&Agrave;' => 'À', '&Aacute;' => 'Á', '&Acirc;' => 'Â', '&Atilde;' => 'Ã', 
	'&Auml;' => 'Ä', '&Aring;' => 'Å', '&AElig;' => 'Æ', '&Ccedil;' => 'Ç', 
	'&Egrave;' => 'È', '&Eacute;' => 'É',
	'&Ecirc;' => 'Ê', '&Euml;' => 'Ë', '&Igrave;' => 'Ì', '&Iacute;' => 'Í', 
	'&Icirc;' => 'Î', '&Iuml;' => 'Ï', '&ETH;' => 'Ð', '&Ntilde;' => 'Ñ', 
	'&Ograve;' => 'Ò', '&Oacute;' => 'Ó',
	'&Ocirc;' => 'Ô', '&Otilde;' => 'Õ', '&Ouml;' => 'Ö', '&times;' => '×',
	'&Oslash;' => 'Ø', '&Ugrave;' => 'Ù', '&Uacute;' => 'Ú', '&Ucirc;' => 'Û', 
	'&Uuml;' => 'Ü', '&Yacute;' => 'Ý',
	'&THORN;' => 'Þ', '&szlig;' => 'ß', '&agrave;' => 'à', '&aacute;' => 'á',
	'&acirc;' => 'â', '&atilde;' => 'ã', '&auml;' => 'ä', '&aring;' => 'å', 
	'&aelig;' => 'æ', '&ccedil;' => 'ç',
	'&egrave;' => 'è', '&eacute;' => 'é', '&ecirc;' => 'ê', '&euml;' => 'ë',
	'&igrave;' => 'ì', '&iacute;' => 'í', '&icirc;' => 'î', '&iuml;' => 'ï', 
	'&eth;' => 'ð', '&ntilde;' => 'ñ',
	'&ograve;' => 'ò', '&oacute;' => 'ó', '&ocirc;' => 'ô', '&otilde;' => 'õ',
	'&ouml;' => 'ö', '&divide;' => '÷', '&oslash;' => 'ø', '&ugrave;' => 'ù', 
	'&uacute;' => 'ú', '&ucirc;' => 'û',
	'&uuml;' => 'ü', '&yacute;' => 'ý', '&thorn;' => 'þ', '&yuml;' => 'ÿ', 
	'&OElig;' => 'Œ', '&oelig;' => 'œ', '&Scaron;' => 'Š', '&scaron;' => 'š',
	'&Yuml;' => 'Ÿ', '&fnof;' => 'ƒ',
	'&circ;' => 'ˆ', '&tilde;' => '˜', '&Alpha;' => 'Α', '&Beta;' => 'Β', 
	'&Gamma;' => 'Γ', '&Delta;' => 'Δ', '&Epsilon;' => 'Ε', '&Zeta;' => 'Ζ', 
	'&Eta;' => 'Η', '&Theta;' => 'Θ',
	'&Iota;' => 'Ι', '&Kappa;' => 'Κ', '&Lambda;' => 'Λ', 
	'&Mu;' => 'Μ', '&Nu;' => 'Ν', '&Xi;' => 'Ξ', 
	'&Omicron;' => 'Ο', '&Pi;' => 'Π', '&Rho;' => 'Ρ', '&Sigma;' => 'Σ',
	'&Tau;' => 'Τ', '&Upsilon;' => 'Υ', '&Phi;' => 'Φ', 
	'&Chi;' => 'Χ', '&Psi;' => 'Ψ', '&Omega;' => 'Ω', 
	'&alpha;' => 'α', '&beta;' => 'β', '&gamma;' => 'γ', '&delta;' => 'δ',
	'&epsilon;' => 'ε', '&zeta;' => 'ζ', '&eta;' => 'η', 
	'&theta;' => 'θ', '&iota;' => 'ι', '&kappa;' => 'κ', '&lambda;' => 'λ', 
	'&mu;' => 'μ', '&nu;' => 'ν', '&xi;' => 'ξ',
	'&omicron;' => 'ο', '&pi;' => 'π', '&rho;' => 'ρ', '&sigmaf;' => 'ς', 
	'&sigma;' => 'σ', '&tau;' => 'τ', '&upsilon;' => 'υ', '&phi;' => 'φ', 
	'&chi;' => 'χ', '&psi;' => 'ψ',
	'&omega;' => 'ω', '&thetasym;' => 'ϑ', '&upsih;' => 'ϒ', '&piv;' => 'ϖ',
	'&ensp;' => ' ', '&emsp;' => ' ', '&thinsp;' => ' ', '&zwnj;' => '‌', 
	'&zwj;' => '‍', '&lrm;' => '‎',
	'&rlm;' => '‏', '&ndash;' => '–', '&mdash;' => '—', '&lsquo;' => '‘', 
	'&rsquo;' => '’', '&sbquo;' => '‚', '&ldquo;' => '“', '&rdquo;' => '”', 
	'&bdquo;' => '„', '&dagger;' => '†',
	'&Dagger;' => '‡', '&bull;' => '•', '&hellip;' => '…', '&permil;' => '‰', 
	'&prime;' => '′', '&Prime;' => '″', '&lsaquo;' => '‹', '&rsaquo;' => '›', 
	'&oline;' => '‾', '&frasl;' => '⁄',
	'&euro;' => '€', '&image;' => 'ℑ', '&weierp;' => '℘', '&real;' => 'ℜ', 
	'&trade;' => '™', '&alefsym;' => 'ℵ', '&larr;' => '←', '&uarr;' => '↑', 
	'&rarr;' => '→', '&darr;' => '↓',
	'&harr;' => '↔', '&crarr;' => '↵', '&lArr;' => '⇐', '&uArr;' => '⇑', 
	'&rArr;' => '⇒', '&dArr;' => '⇓', '&hArr;' => '⇔', '&forall;' => '∀', 
	'&part;' => '∂', '&exist;' => '∃',
	'&empty;' => '∅', '&nabla;' => '∇', '&isin;' => '∈', '&notin;' => '∉', 
	'&ni;' => '∋', '&prod;' => '∏', '&sum;' => '∑', '&minus;' => '−', 
	'&lowast;' => '∗', '&radic;' => '√',
	'&prop;' => '∝', '&infin;' => '∞', '&ang;' => '∠', '&and;' => '∧', 
	'&or;' => '∨', '&cap;' => '∩', '&cup;' => '∪', '&int;' => '∫', 
	'&there4;' => '∴', '&sim;' => '∼',
	'&cong;' => '≅', '&asymp;' => '≈', '&ne;' => '≠', '&equiv;' => '≡', 
	'&le;' => '≤', '&ge;' => '≥', '&sub;' => '⊂', '&sup;' => '⊃', 
	'&nsub;' => '⊄', '&sube;' => '⊆',
	'&supe;' => '⊇', '&oplus;' => '⊕', '&otimes;' => '⊗', '&perp;' => '⊥', 
	'&sdot;' => '⋅', '&lceil;' => '⌈', '&rceil;' => '⌉', '&lfloor;' => '⌊', 
	'&rfloor;' => '⌋', '&lang;' => '〈',
	'&rang;' => '〉', '&loz;' => '◊', '&spades;' => '♠', '&clubs;' => '♣', 
	'&hearts;' => '♥', '&diams;' => '♦'
);

# Translation of invalid Unicode references range to valid range
# these are Windows CP1252 specific characters
# they would look weird on non-Windows browsers
# if you've ever pasted text from MSWord, you'll understand
$b2_htmltranswinuni = array(
	'€' => '€', // the Euro sign
	'‚' => '‚', 
	'ƒ' => 'ƒ',  
	'„' => '„',
	'…' => '…',
	'†' => '†',
	'‡' => '‡',
	'ˆ' => 'ˆ',
	'‰' => '‰',
	'Š' => 'Š',
	'‹' => '‹',
	'Œ' => 'Œ',
	'ž' => 'ž',
	'‘' => '‘',
	'’' => '’',
	'“' => '“',
	'”' => '”',
	'•' => '•',
	'–' => '–',
	'—' => '—',
	'˜' => '˜',
	'™' => '™',
	'š' => 'š',
	'›' => '›',
	'œ' => 'œ',
	'ž' => 'ž',
	'Ÿ' => 'Ÿ'
);


# ** RSS syndication options **
# these options are used by rdf.php (1.0), rss.php (0.92), and rss2.php (2.0)
# length (in words) of excerpts in the RSS feed? 0=unlimited
# Note: this will not apply to html content!
$rss_excerpt_length = 0;

?>

5 Feb 17, 2005 00:22

saundhaus wrote:

... Any suggestions? ...

Here's one: Don't post entire files. The part you changed is the only part that matters. Everything else is clutter.

6 Feb 17, 2005 00:27

Yep, I was wondering about that. Here's the important part:

?* Validity & Security Checking 
?* 
?* Posts and comments should be checked to see if they contain valid XHTML code 
?* and no invalid code (javascript, styles, CSS, etc...) 
?*/ 
# Html checking will validate posts and comments to a subset of valid XHTML. 
# This will also do much cleaner security checking than the next option. 
# Note: This option requires the PHP XML module. If your PHP installation doesn't have it 
# disable html_checker and use security_checker. 
$use_html_checker = 0; 
# Security checking will check for illegal javascript hacks in posts/comments 
# and for CSS in comments. However, this may be a bit harsh on your posts :] 
$use_security_checker = 1;? ?? ? 
# WARNING: disabling both $use_html_checker and $use_security_checker is suicidal ! 

Now if you go to my site and look is there anything you can suggest to remove the light blue borders?

Eric
http://khpr.saundhaus.com

7 Feb 17, 2005 00:46

You could try setting your td tags to border="0"

8 Feb 17, 2005 00:55

add :-

a img{border:0}

to your skins style sheet ;)

?

9 Feb 17, 2005 06:15

Here are some suggestions:

1) Your HTML doesn't close the IMG tag with a "[space]/>", which it should do for XHTML valid. (e.g. "<img src="site.com/page.html" alt="alt text" />" )

2) A couple of the IMG tags don't have alt="alternate text descriptions", which they should - XHTML or not.

3) You could probably do away with the whole table construct, as it's not needed. You could also specify the height, width & table width in the style sheet, which would be more in keeping with the separation of content and design.

4) I'd also recommend breaking your right sidebar into 'sections', with each section contained in it's own <DIV>, and I'd assign them ID's, like <div id="contribute">
<ul><li> contribute stuff here</li></ul></div>

<div id="next section">
<ul><li><ul><li> nxext section stuff </li></ul></li></ul>

That way, you can more easily control the formatting in each section, by using "div#contribute" (or just) "#contribute" in your 'style' CSS file.

5) If you just want to remove the borders on the images, what ????? suggests will work, but keep in mind that it will affect ALL of your linked images. A better route might be to use "#main #menu a img {border:none}", so only borders in the main menu div will be affected.

Hope this helps.

10 Feb 17, 2005 16:55

Hmmmm...Ok, I tried the a img{border:0}, but that didn't work. Then I noticed that the style sheet had everything listed as a:img{border:0} so I tried that and it didn't work either.

Is there a special place in the style.css file I should be putting it?

Eric

11 Feb 17, 2005 20:01

Here you go ... I grabbed your HTML code and tried to clean it up a bit, in the areas of question. Just cut n paste between the comments and insert into your page.

[url=http://randsco.com/podcast.htm]Have a look at it here (I'll leave it up for a day or so, then pull it).[/url]

<div id="menu">
<!-- started here -->
<ul>
	<li>Useful Links</li>
		<ul>

			<li> <a href="http://www.trapezoid.org">Order of the Trapezoid</a> </li>
			<li> <a href="http://www.cafepress.com/saundhaus">Saundhaus CD Sales</a> </li>
			<li> <a href="http://www.saundhaus.com">Saundhaus Studios</a> </li>
			<li> <a href="http://www.xeper.org">Temple of Set</a> </li>
		</ul>
	<li>Contributors</li>
		<ul>
			<li><p>I can be contacted through AIM/iChat</p> 
			<table width=123 cellspacing=0 cellpadding=0 border=0>
			<tr>
				<td><img src="http://cdn.aim.com/remote/i/voceanhd.gif" style="margin-bottom:-3px">
				</td>
			</tr>
			<tr>
				<td width=123 height=38><a href="aim:goim?screenname=GMTrap&amp;message=Hi.+Are+you+there?"><img src=http://cdn.aim.com/remote/i/vocean1.gif alt="I am Online"></a>
				</td>
			</tr>
			<tr>
				<td width=123 height=38><a href="aim:addbuddy?screenname=GMTrap"><img src=http://cdn.aim.com/remote/i/vocean2.gif alt="Add me to your Buddy List"></a>
				</td>
			</tr>
			<tr>
				<td width=123 height=38><a href="aim:gochat?roomname=GMTrap+Chat"><img src=http://cdn.aim.com/remote/i/vocean3.gif alt="Join my Chat Room"></a>
				</td>
			</tr>
			<tr>
				<td width=123 height=38><a href="mailto:khpr@xeper.org"><img src=http://cdn.aim.com/remote/i/vocean4.gif alt="Send me E-mail"></a>
				</td>
			</tr>
			<tr>
				<td width=123 height=31><a href=http://www.aim.com/remote/index.adp><img src=http://cdn.aim.com/remote/i/vocean_foot1.gif></a>
				</td>
			</tr>
			<tr>
				<td width=123 height=50><a href=http://aim.aol.com/aimnew/NS/congratsd2.adp?promo=106695><img src=http://cdn.aim.com/remote/i/vocean_foot2.gif></a>
				</td>
			</tr>
			</table>
			</li>
			<li><p>We accept donations</p>
				<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
				<input type="hidden" name="cmd" value="_xclick" />
				<input type="hidden" name="business" value="info@saundhaus.com" />
				<input type="hidden" name="item_name" value="KHPR Donation" />
				<input type="hidden" name="no_note" value="1" />
				<input type="hidden" name="currency_code" value="USD" />
				<input type="hidden" name="tax" value="0" />
				<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif"  name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
				</form>
				<p>KHPR is a labor of love. I don't make any money from doing this, but if you like what you hear and want to donate a couple of bucks clicking on the above link will take you to paypal where you can give to your hearts content.</p>	</li>
		</ul>

<!--- ended here ---->
	<li id="categories">Categories:</li>

I modified the CSS as I suggested before. You had TWO borders to deal with (the "a img" one, that ????? & I pointed out ... PLUS, the table rows - "tr"). Fixed both of those easily.

I also aligned your "make a donation" image & got rid of the background & border for that as well.

I didn't bother to figure out WHERE to put the CSS (just put it at the end of your "style.css" file, to overwrite anything you had previous - i saw where you put the a img {border:0} tag btw)

Here's the CSS:

#menu a img { border:none; }
#menu ul tr a { border:none; }
#menu ul li form  { margin:auto; padding:0px;
     text-align:center; background:transparent; }


Still FAR from validating in XHTML, but it should work. Give it a try. :)

PS ... I had to "cheat" a little on the top graphic, as there was an unexplained gap between it and all the <a>graphics. NBD ... just slid in a "margin-bottom:-3px" and whipped that puppy into place. ;)

cheers

PPS ... I gather that you're using MSIE? (Because the fonts and colors aren't the greatest in FireFox - thought you'd want to know)

12 Feb 18, 2005 01:51

OK So just out of curiousity where do I paste the text. I had originally pasted it into a posting on the linkblog, but do I just paste it into the linkblog.php now?

You're version looks great but pasting it to a linkblog post doesn't seen to work here.

Eric

13 Feb 18, 2005 04:10

Up oh ... I guess I didn't say. Back up the bus!

Alright ... the HTML goes in your _main.php file, which is in whatever skin you're using. You'll need to know that.

Maybe you can do a search thru the files in your b2evolution directories and find one that contains some text that you've added. (I figured that since you were asking, you knew where it went. Did you paste in the AOL stuff? If so, then THAT file).

Where I commented the file: <!-- started here ---> & <!-- ended here --> ?? THAT's what you're looking for, the <div id="menu"> (that's the start) and <li id="categories"> (the end) ... I purposefully started and ended with something that I thought would be easy to find.

The css stuff, I did say, I think ... "style.css" or "styles.css" (I can't remember which). Again, you will have to know WHERE it is on your filesystem.

Dude, it doesn't get any easier than this!

You can send flowers when you get it all figured out. Let us know how it works out.

-scott

14 Feb 18, 2005 05:02

stk wrote:

Up oh ... I guess I didn't say. Back up the bus!

Alright ... the HTML goes in your _main.php file, which is in whatever skin you're using. You'll need to know that.

Maybe you can do a search thru the files in your b2evolution directories and find one that contains some text that you've added. (I figured that since you were asking, you knew where it went. Did you paste in the AOL stuff? If so, then THAT file).

Where I commented the file: <!-- started here ---> & <!-- ended here --> ?? THAT's what you're looking for, the <div id="menu"> (that's the start) and <li id="categories"> (the end) ... I purposefully started and ended with something that I thought would be easy to find.

The css stuff, I did say, I think ... "style.css" or "styles.css" (I can't remember which). Again, you will have to know WHERE it is on your filesystem.

Dude, it doesn't get any easier than this!

You can send flowers when you get it all figured out. Let us know how it works out.

-scott

Scott,

Thanks for the info. I KNOW html, but php, css, xhtml is all greek to me. I'm really new at this, but I can pick up pretty quickly as you can see that the theme I'm using I figured out how to modify it from the original mars_spirit theme.

Now here's some weirdness. I went back and replaced the code in the linkblog posting with the original AIM html and it worked fine. I did add the change to the style sheet so that looks like what was needed. The only problem I'm left with is the paypal code seems to interpret spaces as hard returns. When I removed all the spaces it cleaned up better, but I still have that border box sitting there. I replaced that with the original, but the problem is still there. Any ideas?

You've been a big help to me so far and I'm glad you've taken the time to bring me up to speed, or at least try to. :lol:

Eric

15 Feb 18, 2005 15:54

The only problem ... the paypal code seems to interpret spaces as hard returns.

I'm not quite sure which code you mean. HTML? CSS?

If you're talking about the positioning of the button (looks like it's slammed against the right-hand edge), you only need to look as far as your style.css file. The selector that controls that area is messed up:

#menu ul li form� { margin:auto; padding:0px; 
� � �text-align:center; background:transparent; }

When I clean that up (remove the spurious question marks), the button element is positioned correctly:

#menu ul li form { margin:auto; padding:0px; 
     text-align:center; background:transparent; }

If you're new to CSS and want to learn more, I suggest that you give a peek at [url=http://www.w3schools.com/css/default.asp]w3shools[/url] they've got a good CSS primer with online examples (you edit the CSS see the effect). When you get some time :)

You've done a great job with the page. The whole God thing is a bit much, but thanks.

FYI ... The 'web developer' extension (plug-in) for FireFox. If you haven't given the FireFox browser a look, I'd recommend it (I use both MSIE and FireFox). The plug-in alone justifies its use. (I can bring up your page, edit the CSS on the fly & see the changes as I type ... or if I see an effect on someone else's page I like, I can look at the CSS to see what they did). ;)

16 Feb 18, 2005 19:20

stk wrote:

The only problem ... the paypal code seems to interpret spaces as hard returns.

I'm not quite sure which code you mean. HTML? CSS?

HTML. It's the code supplied by paypal.

You've done a great job with the page. The whole God thing is a bit much, but thanks.

I could have called you a stud, but that would have been, uhm, weird. :lol: You've helped me on this more than the documentation has.

Eric

17 Feb 18, 2005 19:38

stk wrote:

#menu ul li form { margin:auto; padding:0px; 
     text-align:center; background:transparent; }

I did the above clean up to style.css (thanks for the firefox tip that plug in is cool) it worked, but it took about 5 minutes before it showed up in my browser. I guess I have to be more patient.

18 Feb 18, 2005 20:19

Eric,

Glad I could help. That's what these boards are for. ;)

FYI ... CSS is implimented in the order that it's read, so depending on what part of the site visitors see FIRST, you might consider shuffling the CSS so that it gets formatted FIRST.

Just an idea.

Site loaded quickly for me, but I'm on broadband, so that could (?) be the diff.

Cheers,

Scott.


Form is loading...