You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 64 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Adding HTML to News/Messages. Config.php done but no avail. [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Calnai
Nuke Cadet
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7


PostPosted: Sat Feb 02, 2008 9:15 am Reply with quoteBack to top

Hey there guys.

Ive recently revamped my site (by that i mean deleted everything and reinstall phpnuke)

However i decided to go fancy and put 8.1 in.

Perfect! installed no problems (part from i had to do the manual SQL but meh)

Everything set up, i go to add the final touches, add a message and news article or two, then BAM i get nothing when i try to add an image.
I do some research, find the "img"=>2 fix. Added it to my Config.php.

Woohoo! my images show, i press Save. look on the site and its a broken link...

I check my html code and my

Code:
<div align="center">Welcome to the Enigma Gaming website!<br />
<br />
Testing Message System<br />
<br />
<img src="http://www.enigma-gaming.net/images/welcome.JPG">
</div>


Has been turned into

Code:
<div align="center">Welcome to the Enigma Gaming website!<br />
<br />
Testing Message System<br />
<br />
<img border="0" /></div>


What the fruitnuts is going on!

I have also applied Nukeresources 8.1 Patch
Still no luck!

Any help appreciated!
Find all posts by CalnaiView user's profileSend private message
movieman
Captain
Captain


Joined: Feb 29, 2004
Posts: 301

Location: New York

PostPosted: Sat Feb 02, 2008 1:23 pm Reply with quoteBack to top

have you tried just for your image these tags
<div align="center">Welcome to the Enigma Gaming website!<br />
<br />
Testing Message System<br />
<br />
<div><img src="http://www.enigma-gaming.net/images/welcome.JPG">
</div>
works on my site just fine.make sure you paste it in the html popup box and update it.
Find all posts by moviemanView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
Calnai
Nuke Cadet
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7


PostPosted: Sat Feb 02, 2008 2:40 pm Reply with quoteBack to top

nope :<

It update fine, looks perfect in the box, but as soon as i press Save

Code:
<div align="center">Welcome to the Enigma Gaming website!<br />
<br />
Testing Message System<br />
<br />
<div><img border="0" /></div></div>
Find all posts by CalnaiView user's profileSend private message
movieman
Captain
Captain


Joined: Feb 29, 2004
Posts: 301

Location: New York

PostPosted: Sat Feb 02, 2008 3:49 pm Reply with quoteBack to top

ok I added this in config at the end "img"=>2,); and it seems to work fine in 8.0 I don't have a copy of 8.1 so here it is:
Code:
$AllowableHTML = array("b"=>1,"i"=>1,"strike"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1,"img"=>2,);
Find all posts by moviemanView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
Calnai
Nuke Cadet
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7


PostPosted: Sat Feb 02, 2008 4:13 pm Reply with quoteBack to top

Calnai wrote:

I do some research, find the "img"=>2 fix. Added it to my Config.php.


:p

Doesnt work for me for some reason

Code:
$AllowableHTML = array("img"=>2,"b"=>1,"i"=>1,"strike"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);

Thats how mine looks
Find all posts by CalnaiView user's profileSend private message
movieman
Captain
Captain


Joined: Feb 29, 2004
Posts: 301

Location: New York

PostPosted: Sat Feb 02, 2008 4:45 pm Reply with quoteBack to top

would it have a difference where its placed in config ...I put at the end and you put at the begining. it works in 8.0 phpnuke how much different is 8.1?
Find all posts by moviemanView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
Calnai
Nuke Cadet
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7


PostPosted: Sat Feb 02, 2008 5:42 pm Reply with quoteBack to top

Tbh, i wouldnt imagine it would make much difference.

However i think8.1 did have some major changes from previous versions.

Ill move the "img"=>2 and see what happens


Edit again... Seems it didnt work for long :<

Code:
<div align="center">Welcome to the Enigma Gaming website!<br />
<br />
Testing Message System<br />
<br />
<div><img border="0" src="images/welcome.JPG" />
</div> </div>


Seems to change it to this when looking at the code after updating it.
Find all posts by CalnaiView user's profileSend private message
Calnai
Nuke Cadet
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7


PostPosted: Sun Feb 03, 2008 3:57 am Reply with quoteBack to top

Anyone got some ideas, or have i truly stumped the masters!
Find all posts by CalnaiView user's profileSend private message
movieman
Captain
Captain


Joined: Feb 29, 2004
Posts: 301

Location: New York

PostPosted: Sun Feb 03, 2008 5:19 am Reply with quoteBack to top

well I got it to work fine on my 8.1.0.3.4.1 have a look I just uploaded the nuke as a test site and added your text and pic and seems to work great I don't know what else to tell ya. I have this copy of 8.1 if you would like it this copy has all the patches and edited config already done. I will put in my downloads at: http://www.powrhost.com/hosting
test site 8.1 with your stuff http://www.powrhost.com/nuke/index.php
Find all posts by moviemanView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressMSN Messenger
Calnai
Nuke Cadet
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7


PostPosted: Sun Feb 03, 2008 7:30 am Reply with quoteBack to top

Seems to be awefully tempermental.

If i delete the message then add a new one.

Enter

Code:
<img src="http://www.enigma-gaming.net/images/welcome.JPG">


as the HTML code, it works.

As soon as i try to edit it and add some test or center the image. It removes the code and just sticks

Code:
<img border="0" />


in its place again =/

Tried your config.php. Using it at the moment.

It seems to try and automatically "Clean up messy code"

Which i dont want as the code i use actually works rather than nukes anti-social code cleaning.
Find all posts by CalnaiView user's profileSend private message
Calnai
Nuke Cadet
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7


PostPosted: Sun Feb 03, 2008 10:06 am Reply with quoteBack to top

Ok ive managed to narrow it down the WYSIWYG editor.

If i disable this and use raw HTML code, it works fine, everytime.

Any way of changing settings with the WYSIWYG editor? To stop is autochanging the code for example. I dont particularly want to code every message and news article in HTML :<
Find all posts by CalnaiView user's profileSend private message
Yesideez
Nuke Soldier
Nuke Soldier


Joined: Feb 02, 2008
Posts: 12


PostPosted: Sun Feb 03, 2008 10:33 am Reply with quoteBack to top

I've disabled the fancy WYSIWYG completely as I hate the way sometimes you go to turn bold off and it doesn't do it. It's buggy.

At least editing everything with HTML you know you're getting what you want.
Find all posts by YesideezView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.428 Seconds - 299 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::