Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.218
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Nukewysiwyg syntax highlighter not adding class and title?
Nukewysiwyg syntax highlighter not adding class and title?
Goto page 1, 2  Next

18 Replies / 1701 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Hacks n Mods

View previous topic :: View next topic


kguske
Reputation: 483 Add RepSubtract Rep
Local time: 5:29 AM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: May 12, 2007
Last Visit: 17 Aug 2009
Posts: 6
Points: 262 

Post Nukewysiwyg syntax highlighter not adding class and title? Posted: Thu Aug 13, 2009 3:54 pm

First, this is a nice mod, thanks! I added to both the PHPNukeAdmin and NukeUser toolsets on a test site, and immediately found a problem with the new nukeSEO DH addon, but that's another story.

On the syntax highlighter, I displayed as normal PRE HTML because it did not add the class and title tags appropriately. After I did this manually, it showed correctly. Did I miss an installation step or should this be manually specified when posting the content?

Also, I'm looking into minifying and consolidating all the JS and CSS required for this (it's quite a bit).
 

 
View user's profileSend private message Reply with quote

floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 5:29 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Re: Nukewysiwyg syntax highlighter not adding class and titl Posted: Thu Aug 13, 2009 7:38 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

Did you click the code button to insert your script or manually write it into the source?

Its only inserted automatically if you use the code button on the toolbar. My only other advice would be to check your installation edits.


///Different subject
BTW, I found a bug maybe you can help with.

it strips escaped code for instance

Code:
$sql = 'SELECT user_id, username FROM '.$prefix.'_users WHERE user_id <= \'20\' AND user_id != \'1\'';


Becomes

Code:
$sql = 'SELECT user_id, username FROM '.$prefix.'_users WHERE user_id <= '20' AND user_id != '1'';
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote

kguske
Reputation: 483 Add RepSubtract Rep
Local time: 5:29 AM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: May 12, 2007
Last Visit: 17 Aug 2009
Posts: 6
Points: 262 

Post Re: Nukewysiwyg syntax highlighter not adding class and titl Posted: Thu Aug 13, 2009 9:06 pm

I clicked the code button...so I'll check installation edits.

Re: the escaped code - can you confirm if that's done when the data is retrieved, rather than before? (i.e., I think it's not a function of nukeWYSIWYG, but of the module displaying the content.
 

 
View user's profileSend private message Reply with quote


floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 5:29 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Re: Nukewysiwyg syntax highlighter not adding class and titl Posted: Thu Aug 13, 2009 9:14 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

1st) I just installed it on a fresh version of the latest ravens and it works fine. (new local server too)

2nd) Escaped code, when I preview an article it doesn't do it. When I post it, it removes it. Confirmed by database. I am not pointing the finger at wysiwyg just yet though because the plugin has a .js in the dialog folder that might be causing it.

From Db
Code:
$sql = 'SELECT user_id, username FROM '.$prefix.'_users WHERE user_id &lt;= '20' AND user_id != '1'';
 

 
View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 5:29 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Nukewysiwyg syntax highlighter not adding class and title? Posted: Thu Aug 13, 2009 9:38 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

I think it is wysiwyg according to what I just ran.

if you input this into your source it is gonna strip it out.

Code:
<p>\'Hey\'</p>


This is with the mod completely uninstalled too.

Below is a screen.

showme.png
 Description:
 Filesize:  13.24 KB
 Viewed:  68 Time(s)

showme.png


 

 
View user's profileSend private messageVisit poster's website Reply with quote

Snype
Reputation: 305.5 Add RepSubtract Rep
votes: 8
Local time: 10:29 AM
Location: lincolshire
uk.gif



0.60 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)
Respected Member
Respected Member
Joined: May 20, 2008
Last Visit: 06 Nov 2011
Posts: 812
Points: 60742 

Post Nukewysiwyg syntax highlighter not adding class and title? Posted: Thu Aug 13, 2009 10:55 pm

Shop Purchases:
Call of Duty 4 SAS Theme

Hey floppy i get this error i will show you the screen shot. I thought it may have been cause of an out dated editor so i updated it to the latest one from nukeseo and re did the edits but it still is there any ideas?
 

WebSite > http://www.phpnukeblog.info Xfire > DDsnype MSN > ritchietaylor@live.co.uk Email > admin@phpnukeblog.info  
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote


floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 5:29 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Re: Nukewysiwyg syntax highlighter not adding class and titl Posted: Thu Aug 13, 2009 10:59 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

That error has nothing to do with my code. Restore the original 2.6.4.1 fkconfig.js and see if the error is still there.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Snype
Reputation: 305.5 Add RepSubtract Rep
votes: 8
Local time: 10:29 AM
Location: lincolshire
uk.gif



0.60 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)
Respected Member
Respected Member
Joined: May 20, 2008
Last Visit: 06 Nov 2011
Posts: 812
Points: 60742 

Post Nukewysiwyg syntax highlighter not adding class and title? Posted: Fri Aug 14, 2009 12:29 am

Shop Purchases:
Call of Duty 4 SAS Theme

No sorry it does not have nothing to do with this its lies in something i have modified (now got to find it) but the funny thing is every thing on my live site was first done on my local and they are just duplicate sites but i dont get the error on my local
 

 
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote

kguske
Reputation: 483 Add RepSubtract Rep
Local time: 5:29 AM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: May 12, 2007
Last Visit: 17 Aug 2009
Posts: 6
Points: 262 

Post Re: Nukewysiwyg syntax highlighter not adding class and titl Posted: Fri Aug 14, 2009 1:13 am

I found the problem. In submit news, it isn't using the admin override and checks the allowable HTML, and the pre tag isn't configured to allow class or title attributes in the $SAllowableHTML array. So, I changed the pre line to:

'pre' => array('align' => 1, 'class' => 1, 'title' => array('minlen' => 4, 'maxlen' => 120)),

And it worked, sort of. The preview doesn't work (not sure why, but possibly because the preview is override the class or preventing it from working correctly somehow. But once saved, it displayed correctly.
 

 
View user's profileSend private message Reply with quote


floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 5:29 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Re: Nukewysiwyg syntax highlighter not adding class and titl Posted: Fri Aug 14, 2009 1:16 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

kguske wrote:
I found the problem. In submit news, it isn't using the admin override and checks the allowable HTML, and the pre tag isn't configured to allow class or title attributes in the $SAllowableHTML array. So, I changed the pre line to:

'pre' => array('align' => 1, 'class' => 1, 'title' => array('minlen' => 4, 'maxlen' => 120)),

And it worked, sort of. The preview doesn't work (not sure why, but possibly because the preview is override the class or preventing it from working correctly somehow. But once saved, it displayed correctly.


When you say preview you mean the wysiwyg preview or just news article preview? My wysiwyg preview doesn't work either, but this has never bothered me. It would be nice though.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

kguske
Reputation: 483 Add RepSubtract Rep
Local time: 5:29 AM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: May 12, 2007
Last Visit: 17 Aug 2009
Posts: 6
Points: 262 

Post Re: Nukewysiwyg syntax highlighter not adding class and titl Posted: Fri Aug 14, 2009 5:37 pm

Article preview.

Also, I used http://jscompress.com/ to combine and condense the 19 js scripts (totally almost 80Kb) into 1 that is <50Kb. I called it sh_Minified.js. This will help your server's performance and client performance. I'll do something similar for the 2 CSS files over the weekend and put them somewhere they can be downloaded (or, I'll email to floppy).
 

 
View user's profileSend private message Reply with quote

floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 5:29 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Re: Nukewysiwyg syntax highlighter not adding class and titl Posted: Fri Aug 14, 2009 6:46 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

I wouldn't combine the .css documents. http://alexgorbatchev.com/wiki/SyntaxHighlighter:Themes

Combining the brushes though is useful.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Hacks n Mods


 
18 Replies / 1701 Views
Page 1 of 2
All times are GMT
Goto page 1, 2  Next
Display posts from previous:   
 
Jump to:  
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
You cannot attach files in this forum
You can download files in this forum