| Author |
Message |
Calnai
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7
|
Posted:
Sat Feb 02, 2008 9:15 am |
  |
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! |
|
|
   |
 |
movieman
Captain


Joined: Feb 29, 2004
Posts: 301
Location: New York
|
Posted:
Sat Feb 02, 2008 1:23 pm |
  |
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. |
|
|
       |
 |
Calnai
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7
|
Posted:
Sat Feb 02, 2008 2:40 pm |
  |
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> |
|
|
|
   |
 |
movieman
Captain


Joined: Feb 29, 2004
Posts: 301
Location: New York
|
Posted:
Sat Feb 02, 2008 3:49 pm |
  |
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,); |
|
|
|
       |
 |
Calnai
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7
|
Posted:
Sat Feb 02, 2008 4:13 pm |
  |
| 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 |
|
|
   |
 |
movieman
Captain


Joined: Feb 29, 2004
Posts: 301
Location: New York
|
Posted:
Sat Feb 02, 2008 4:45 pm |
  |
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? |
|
|
       |
 |
Calnai
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7
|
Posted:
Sat Feb 02, 2008 5:42 pm |
  |
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. |
|
|
   |
 |
Calnai
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7
|
Posted:
Sun Feb 03, 2008 3:57 am |
  |
Anyone got some ideas, or have i truly stumped the masters! |
|
|
   |
 |
movieman
Captain


Joined: Feb 29, 2004
Posts: 301
Location: New York
|
Posted:
Sun Feb 03, 2008 5:19 am |
  |
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 |
|
|
       |
 |
Calnai
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7
|
Posted:
Sun Feb 03, 2008 7:30 am |
  |
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
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. |
|
|
   |
 |
Calnai
Nuke Cadet


Joined: Feb 02, 2008
Posts: 7
|
Posted:
Sun Feb 03, 2008 10:06 am |
  |
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 :< |
|
|
   |
 |
Yesideez
Nuke Soldier


Joined: Feb 02, 2008
Posts: 12
|
Posted:
Sun Feb 03, 2008 10:33 am |
  |
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. |
|
|
    |
 |
|
|