NukeXchange Network

          

NukeZone Hosting - Fast, Affordable and Dependable
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·right blocks appear only to admins
·Special characters
·Header not working....
·No banner - Sunset-Theme (but $banner exists)
·Banners not showing on Sunset
·Installation Issues
·Looking for content warning/age verification system.
·Babebox Module Block Image Script
·Upload-Download
·Download Module error

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: Blizz
Today: 0
Yesterday: 1
Overall: 15008

Visitation:
Guests: 587
Members: 1
Total: 588


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Need to find your IP fast?
Need to find your IP fast?

NukeResources :: View topic - Porblem after upgrade 3dot5 phpnuke7.5
NukeResources Forum Index

NukeResources Forum Index -> Upgrading PHP-Nuke -> Porblem after upgrade 3dot5 phpnuke7.5
Post new topic  Reply to topic    View previous topic :: View next topic 
Porblem after upgrade 3dot5 phpnuke7.5
PostPosted: Tue Apr 01, 2008 3:09 pm Reply with quote
Oasis6886
Resource Seeker
Resource Seeker
 
Joined: Apr 01, 2008
Posts: 5




Hello...

Please Help me I was use Phpnuke 7.5 and I upgraded it to 3dot5 patched and everything is ok but I can't use the HTML tags:

Look in the config.php file:

Code:

$AllowableHTML = array("img"=>2,"tr"=>1,"td"=>2,"table"=>2,"div"=>2,"p"=>2,"hr"=>1,"b"=>1,"i"=>1,"strike"=>1,"u"=>1,"font"=>2,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1,"center"=>1);



and look in the mainfile.php:

Code:

function check_html ($str, $strip="") {
        /* The core of this code has been lifted from phpslash */
        /* which is licenced under the GPL. */
        include("config.php");
        if ($strip == "nohtml") $AllowableHTML = array('');
        $str = eregi_replace("<space>]*)[[:space:]]*>",'<1>', $str);
        // Delete all spaces from html tags .
        // Delete all attribs from Anchor, except an href, double quoted.
        $str = eregi_replace("<space>]*)[[:space:]]*>", '', $str);
        // Delete all img tags
        $str = eregi_replace("<a>]*href[[:space:]]*=[[:space:]]*\"?javascript[[:punct:]]*\"?[^>]*>", '', $str);
        // Delete javascript code from a href tags -- Zhen-Xjell @ http://nukecops.com
        $tmp = "";
        while (ereg("</alpha>]*)>",$str,$reg)) {
                $i = strpos($str,$reg[0]);
                $l = strlen($reg[0]);
                if ($reg[1][0] == "/") $tag = strtolower(substr($reg[1],1));
                else $tag = strtolower($reg[1]);
                if ($a = (isset($AllowableHTML[$tag])) ? $AllowableHTML[$tag] : 0)
                if ($reg[1][0] == "/") $tag = "</tag>";
                elseif (($a == 1) || (empty($reg[2]))) $tag = "<tag>";
                else {
                        # Place here the double quote fix function.
                        $attrb_list=delQuotes($reg[2]);
                        // A VER
                        $attrb_list = str_replace("&amp;","&",$attrb_list);
                        $attrb_list = str_replace("&","&amp;",$attrb_list);
                        $tag = "<tag>";
                } # Attribs in tag allowed
                else $tag = "";
                $tmp .= substr($str,0,$i) . $tag;
                $str = substr($str,$i+$l);
        }
        $str = $tmp . $str;
        $str = str_replace("<br>", "<br>", $str);
        return $str;
        exit;
        /* Squash PHP tags unconditionally */
        $str = str_replace("<?","",$str);
        return $str;
}



and I want to use only this code in every articles.:




What I can to do to use <img> tag ??!
View user's profile Send private message
PostPosted: Wed Apr 02, 2008 2:38 pm Reply with quote
Oasis6886
Resource Seeker
Resource Seeker
 
Joined: Apr 01, 2008
Posts: 5




Please help me Sad
View user's profile Send private message
PostPosted: Thu Apr 10, 2008 2:30 pm Reply with quote
Oasis6886
Resource Seeker
Resource Seeker
 
Joined: Apr 01, 2008
Posts: 5




Where are you?
View user's profile Send private message
PostPosted: Sat Apr 12, 2008 4:21 pm Reply with quote
Oasis6886
Resource Seeker
Resource Seeker
 
Joined: Apr 01, 2008
Posts: 5




Please help me ChatServ.
View user's profile Send private message
PostPosted: Mon Apr 14, 2008 4:53 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




You would add the img tag to config.php under $AllowableHTML but it should already be there. Either way in which part are you trying to use the img tag, in Story Text or Extended Text?

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Mon Apr 14, 2008 5:12 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




Please send me your mainfile.php and modules/News/admin/index.php to chatserv at prtc dot net

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Tue Apr 15, 2008 7:52 am Reply with quote
Oasis6886
Resource Seeker
Resource Seeker
 
Joined: Apr 01, 2008
Posts: 5




chatserv wrote:
You would add the img tag to config.php under $AllowableHTML but it should already be there. Either way in which part are you trying to use the img tag, in Story Text or Extended Text?



Thanks chatserv...

I try to use the img tag in Story Text and I will send you now the files:

mainfile.php and config.php and modules/News/admin/index.php

to chatserv at prtc dot net.
View user's profile Send private message
Porblem after upgrade 3dot5 phpnuke7.5
 NukeResources Forum Index -> Upgrading PHP-Nuke
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
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 254 unique hit(s) in the past 24 hours.
Forums ©
Nuke Sites Link Directory


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.40 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::