Stop data retention! Click here & act! Are you a webmaster and want to participate? Here you can find all necessary material for your website - Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Chris Karakas Online Forum Index Karakas Online
 FAQFAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
How to include smilies in News articles



 
Post new topic   Reply to topic
   Chris Karakas Online Forum Index -> PHP-Nuke Forum RSS Feed of this Forum
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea  View previous topic :: View next topic  
Author Message
hellfire
Staff Sergeant
Staff Sergeant


Joined: 28 Jun 2003
Posts: 33

PostPosted: Tue Jul 29, 2003 12:29 am    Post subject: How to include smilies in News articles
Reply with quote

I was wondering about a good.....(not sure what to call it)...something to allow me to have smilies in my articles, and stuff like that. I have a WYSWYG thing but not to clear on installation, it needs to be for Nuke 6.0
Back to top
View user's profile Send private message MSN Messenger
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Tue Jul 29, 2003 12:44 am    Post subject:
Reply with quote

You will have to use HTML, just as if it were an image you wanted to include:

Code:

<img src=http//www.yoursite/path-to-smiley/smiley.gif>


For this to work, img must be in the allowableHTML array of config.php, e.g.

Code:

$AllowableHTML = array("b"=>1,
                    "i"=>1,
                    "a"=>2,
                    "em"=>1,
                    "br"=>1,
                    "strong"=>1,
                    "blockquote"=>1,
                    "tt"=>1,
                    "li"=>1,
                    "ol"=>1,
                    "H1"=>1,
                    "H2"=>1,
                    "H3"=>1,
                    "H4"=>1,
                    "center"=>1,
                    "img"=>2,
                    "alt"=>1,
                    "table"=>2,
                    "tr"=>2,
                    "td"=>2,
                    "p"=>2,
                    "div"=>2,
                    "font"=>2,
                    "p"=>1,
                    "p"=>1,
                    "ul"=>1);


See that "img"=>2 there? A 2 means "attributes are allowed in the tag". A 1 means they are not allowed. But not everybody agrees on this interpretation - the above setting works for me anyway.
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
hellfire
Staff Sergeant
Staff Sergeant


Joined: 28 Jun 2003
Posts: 33

PostPosted: Tue Jul 29, 2003 2:14 am    Post subject:
Reply with quote

That helps but I was hopin for somethin that resembles the post message thing on the forum here.
Back to top
View user's profile Send private message MSN Messenger
johnds
Private
Private


Joined: 24 Sep 2008
Posts: 1

PostPosted: Wed Sep 24, 2008 10:32 am    Post subject:
Reply with quote

chris wrote:
Open quoteYou will have to use HTML, just as if it were an image you wanted to include:

Code:

<img src=http//www.yoursite/path-to-smiley/smiley.gif>


For this to work, img must be in the allowableHTML array of config.php, e.g.

Code:

$AllowableHTML = array("b"=>1,
                    "i"=>1,
                    "a"=>2,
                    "em"=>1,
                    "br"=>1,
                    "strong"=>1,
                    "blockquote"=>1,
                    "tt"=>1,
                    "li"=>1,
                    "ol"=>1,
                    "H1"=>1,
                    "H2"=>1,
                    "H3"=>1,
                    "H4"=>1,
                    "center"=>1,
                    "img"=>2,
                    "alt"=>1,
                    "table"=>2,
                    "tr"=>2,
                    "td"=>2,
                    "p"=>2,
                    "div"=>2,
                    "font"=>2,
                    "p"=>1,
                    "p"=>1,
                    "ul"=>1);


See that "img"=>2 there? A 2 means "attributes are allowed in the tag". A 1 means they are not allowed. But not everybody agrees on this interpretation - the above setting works for me anyway.Close quote


I have tried to make target=_blank work, so far without luck.
Seems to me, that adding target to the the AllowableHTML has no effect.

/john
Back to top
View user's profile Send private message
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea 
Display posts from previous:   
Post new topic   Reply to topic
   Chris Karakas Online Forum Index -> PHP-Nuke Forum
Page 1 of 1
This page contains valid HTML 4.01 Transitional - click here to check it!
This page contains a valid CSS - click here to check it!

 

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


Powered by phpBB © 2001, 2005 phpBB Group