|
Feeds
- Downloads
- FAQ
- News
- Tutorials
|
|
|
View previous topic :: View next topic |
Author |
Message |
bobs94z28 webmaster
Joined: Jul 30, 2006 Posts: 6
|
Posted: Fri Aug 04, 2006 9:06 am Post subject: trying to add to Platinum 76b4v2 |
|
|
I seem to be messing something up.. Has anyone added it to Platinum 76b4v2 |
|
Back to top |
|
|
kguske Site Admin
Joined: May 12, 2005 Posts: 876
|
Posted: Fri Aug 04, 2006 8:00 pm Post subject: Re: trying to add to Platinum 76b4v2 |
|
|
I'm not aware of any reason why you couldn't. I believe some of the folks at FutureNuke.com have done this. _________________ |
|
Back to top |
|
|
sdmeier Newbie
Joined: Mar 23, 2006 Posts: 2
|
Posted: Fri Aug 04, 2006 9:32 pm Post subject: Re: trying to add to Platinum 76b4v2 |
|
|
Yes it works with Platinum. Others have done it.
Like i told yo uin the other forums, I'm sure your just not ending the line above or below your modifed text area code you entered.
; ends a php line of code.
Look at the examples they provide. Trust me. I'm not a codder either and thought OK this POS doesn't work, But It was because I didn't look at the examples completly and I too got a blank page when i first stuck the code in. Then I REALLY looked at the example and saw what I was doing wrong.
Good luck. |
|
Back to top |
|
|
bobs94z28
|
Posted: Sat Aug 05, 2006 1:19 pm Post subject: Re: trying to add to Platinum 76b4v2 |
|
|
Thanks!! Will try some more... |
|
Back to top |
|
|
bobs94z28
|
Posted: Sun Aug 06, 2006 12:04 pm Post subject: Re: trying to add to Platinum 76b4v2 |
|
|
I am just messing it up.. can someone take a look at my files to see where the code is wrong? |
|
Back to top |
|
|
bobs94z28
|
Posted: Mon Aug 07, 2006 5:06 pm Post subject: Re: trying to add to Platinum 76b4v2 |
|
|
here is the config.php file
Code:// DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING
$reasons = array("As Is","Offtopic","Flamebait","Troll","Redundant","Insighful","Interesting","Informative","Funny","Overrated","Underrated");
$badreasons = 4;
$AllowableHTML = array(
"a" => array("href" => 1, "target" => 1, "title" => array("minlen" => 4, "maxlen" => 120)),
"b" => array(),
"blockquote" => array(),
"br" => array(),
"center" => array(),
"div" => array("align" => 1),
"em" => array(),
"font" => array("face" => 1, "style" => 1, "color" => 1, "size" => array("minval" => 1, "maxval" => 7)),
"h1"=>array(),
"h2"=>array(),
"h3"=>array(),
"h4"=>array(),
"h5"=>array(),
"h6"=>array(),
"hr" => array(),
"i" => array(),
"img" => array("alt" => 1, "src" => 1, "hspace" => 1, "vspace" => 1, "border" => 1, "align" => 1),
"li" => array(),
"ol" => array(),
"p" => array("align" => 1),
"pre" => array("align" => 1),
"span" =>array("class" => 1, "style" => array("font-family" => 1, "color" => 1)),
"strong" => array(),
"table" => array("align" => 1, "border" => 1, "cell" => 1),
"td" => array(),
"tr" => array("align" => 1),
"tt"=>array(),
"u" => array(),
"ul" => array(),
)
?>
|
|
|
Back to top |
|
|
bobs94z28
|
Posted: Mon Aug 07, 2006 5:10 pm Post subject: Re: trying to add to Platinum 76b4v2 |
|
|
this is what the changed part of mainfile.php
Code:
function check_html ($string, $allowed_html = "", $allowed_protocols = array('http', 'https', 'ftp', 'news', 'nntp', 'gopher', 'mailto'))
{
$stop = FALSE;
if(!function_exists(kses_no_null))
{
@include_once(INCLUDE_PATH."includes/kses/kses.php");
}
if (get_magic_quotes_gpc() == 1 )
{
$string = stripslashes($string );
}
$hotHtml = "nohtml";
$Zstrip = stripos_clone($allowed_html, $hotHtml);
if ($Zstrip === false)
{
global $AllowableHTML;
$allowed_html = $AllowableHTML;
} else {
$allowed_html = array('<null>');
}
$string = kses_no_null($string);
$string = kses_js_entities($string);
$string = kses_normalize_entities($string);
$string = kses_hook($string);
$allowed_html_fixed = kses_array_lc($allowed_html);
return kses_split($string, $allowed_html_fixed, $allowed_protocols);
}
function wysiwyg_textarea($name, $value, $config = "NukeUser", $cols = 50, $rows = 10)
{
global $advanced_editor;
# Don't waste bandwidth by loading WYSIWYG editor for crawlers
if ($advanced_editor == 0 or !isset($_COOKIE))
{
echo "<textarea name=\"$name\" cols=\"$cols\" rows=\"$rows\">$value</textarea>";
} else {
@include_once(INCLUDE_PATH."includes/FCKeditor/fckeditor.php");
$oFCKeditor = new FCKeditor($name) ;
$oFCKheight = $rows * 20;
$oFCKeditor->Height = "$oFCKheight";
$oFCKeditor->ToolbarSet = "$config" ;
$oFCKeditor->InstanceName = "$name" ;
$oFCKeditor->Value = "$value" ;
$oFCKeditor->Create() ;
}
}
function wysiwyg_textarea_html($name, $value, $config = "NukeUser", $cols = 50, $rows = 10)
{
global $advanced_editor;
# Don't waste bandwidth by loading WYSIWYG editor for crawlers
if ($advanced_editor == 0 or !isset($_COOKIE))
{
echo "<textarea name=\"$name\" cols=\"$cols\" rows=\"$rows\">$value</textarea>";
} else {
@include_once(INCLUDE_PATH."includes/FCKeditor/fckeditor.php");
$oFCKeditor = new FCKeditor($name) ;
$oFCKheight = $rows * 20;
$oFCKeditor->Height = "$oFCKheight";
$oFCKeditor->ToolbarSet = "$config" ;
$oFCKeditor->InstanceName = "$name" ;
$oFCKeditor->Value = "$value" ;
$wysiwygHTML = $oFCKeditor->CreateHtml() ;
return $wysiwygHTML;
}
}
|
|
|
Back to top |
|
|
kguske
|
Posted: Wed Aug 09, 2006 11:14 am Post subject: Re: trying to add to Platinum 76b4v2 |
|
|
OK. What's happening? |
|
Back to top |
|
|
bobs94z28
|
Posted: Wed Aug 09, 2006 11:22 am Post subject: Re: trying to add to Platinum 76b4v2 |
|
|
getting a blank page when i go to main page. |
|
Back to top |
|
|
kguske
|
Posted: Wed Aug 09, 2006 4:19 pm Post subject: Re: trying to add to Platinum 76b4v2 |
|
|
Sounds like a parsing error. Try to load each file you modified directly (e.g. http://www.yoursite.com/mainfile.php ) and you'll either get redirected (if the file is OK) or see the parsing error and the line where it occurs. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|