Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Explain Please ⇒ Smiley Parse.


Smiley Parse.
Ask questions and read explanations on how to use things/settings or why "X" is on page "Y."
Go to page 1, 2  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Explain Please

View previous topic :: View next topic  
Author Message
Jo0Lz
Nice poster
Nice poster

Offline Offline
Joined: Dec 04, 2004
Posts: 127
Location: Netherlands
PostPosted: Mon Sep 24, 2007 9:08 pm
Post subject: Smiley Parse.

I've experienced difficulties when posting smileys at the end of my sentences.
I always use a period at the end, even if the last expression is a smiley.

In PHPBB, it get's parsed normally. :D. turns into a smiley, just as :D? :D!

In CPG-BB and ForumsPro, however, it doesn't.

Very Happy gets parsed ok.
:D. doesn't.

Very Happy gets parsed ok.
:D! doesn't.

Is there an easy way to fix this? I know it seems a small problem, and not hight priority, but it sure does suck :D. I am a frequent visitor to a lot of forums, and the all parse the smiley even if I use a period.

Thanks :).

_________________
I'm not lost, I'm locationally challenged.
Don't you agree? God created some pretty good textures!
Proud admin of FokGuildwars.

Jo0Lz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Mon Sep 24, 2007 9:26 pm
Post subject: Re: Smiley Parse.

yep make sure you put a space after your smiley code Smile . Smile !

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
Jo0Lz
Nice poster
Nice poster

Offline Offline
Joined: Dec 04, 2004
Posts: 127
Location: Netherlands
PostPosted: Mon Sep 24, 2007 10:06 pm
Post subject: Re: Smiley Parse.

:').

Sure , that can be done, but I'm in ICT. I'm lazy :D.
It has to be possible, cause other boards can.

_________________
I'm not lost, I'm locationally challenged.
Don't you agree? God created some pretty good textures!
Proud admin of FokGuildwars.

Jo0Lz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Mon Sep 24, 2007 10:23 pm
Post subject: Re: Smiley Parse.

What is ICT?

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Tue Sep 25, 2007 1:02 am
Post subject: Re: Smiley Parse.

By design a smile need to be surrounded by spaces. Webmasters may add or edit smiles with ":D!" or ":D." as code.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Tue Sep 25, 2007 9:06 am
Post subject: Re: Smiley Parse.

Well we could make an exception for certain characters.
But yeah we did it on purpose because just like nano says.... What if there's a smiley for ':D.' Confused


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Jo0Lz
Nice poster
Nice poster

Offline Offline
Joined: Dec 04, 2004
Posts: 127
Location: Netherlands
PostPosted: Tue Sep 25, 2007 9:55 am
Post subject: Re: Smiley Parse.

DJ Maze wrote:
Well we could make an exception for certain characters.
But yeah we did it on purpose because just like nano says.... What if there's a smiley for ':D.' Confused

Yeah, if that's the case, that wouldn't work.
But, however, I haven't got any smileys that are coded that way :+ ...

Could you please tell me how to accomplish exception for certain characters?

_________________
I'm not lost, I'm locationally challenged.
Don't you agree? God created some pretty good textures!
Proud admin of FokGuildwars.

Jo0Lz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger
Jo0Lz
Nice poster
Nice poster

Offline Offline
Joined: Dec 04, 2004
Posts: 127
Location: Netherlands
PostPosted: Fri Sep 28, 2007 7:51 am
Post subject: Re: Smiley Parse.

Right. So it IS possible to do this, but nobody can tell me how?
I just want to know where to change code...

_________________
I'm not lost, I'm locationally challenged.
Don't you agree? God created some pretty good textures!
Proud admin of FokGuildwars.

Jo0Lz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Fri Sep 28, 2007 8:45 am
Post subject: Re: Smiley Parse.

includes/nbbcode.php line 296

PHP:
$orig[] = "#([\s])".$smilies[$i]['code']."([\s<])#si";

replace by:

PHP:
$orig[] = "#([\s])".$smilies[$i]['code']."([\s<\.?!,])#si";

Just put in [\s<] all the characters you need.


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Fri Sep 28, 2007 8:59 am
Post subject: Re: Smiley Parse.

Jo0Lz wrote:
exception for certain characters?
Which exactly?

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Jo0Lz
Nice poster
Nice poster

Offline Offline
Joined: Dec 04, 2004
Posts: 127
Location: Netherlands
PostPosted: Fri Sep 28, 2007 1:07 pm
Post subject: Re: Smiley Parse.

DJ Maze wrote:
includes/nbbcode.php line 296

PHP:
$orig[] = "#([\s])".$smilies[$i]['code']."([\s<])#si";

replace by:

PHP:
$orig[] = "#([\s])".$smilies[$i]['code']."([\s<\.?!,])#si";

Just put in [\s<] all the characters you need.

That worked like a charm. Thanks a bunch. I tried putting the symbols (!?.,) there, like in the example, but left the
Code::
[\s<]
intact...

Guess I was pretty close after all :D.

Thanks guys, really made it easier for me to post on my own forums :D.

_________________
I'm not lost, I'm locationally challenged.
Don't you agree? God created some pretty good textures!
Proud admin of FokGuildwars.

Jo0Lz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger
Jo0Lz
Nice poster
Nice poster

Offline Offline
Joined: Dec 04, 2004
Posts: 127
Location: Netherlands
PostPosted: Fri Sep 28, 2007 4:32 pm
Post subject: Re: Smiley Parse.

DJ Maze wrote:
What if there's a smiley for ':D.' Confused

Well, I can tell you know, that it works on my site.
When there is a smiley for
Code::
:?
(And there is on my site) And you type :??, it displays the smiley, followed by a question mark.

So, in fact, it doesn't effect any of the smileys at all. I even tested it, by creating a smiley with the code
Code::
:D.
And when I type
Code::
:D..
It works perfectly.

Very Happy I'm so happy, I can rant like on the other forums, without having to edit my message afterwards, because I typed a period after the smiley... Very Happy

Very Happy :D Very Happy

You guys rock!

_________________
I'm not lost, I'm locationally challenged.
Don't you agree? God created some pretty good textures!
Proud admin of FokGuildwars.

Jo0Lz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger
Rick2002
Newbie
Newbie

Offline Offline
Joined: Nov 05, 2007
Posts: 23

PostPosted: Wed Feb 13, 2008 11:03 pm
Post subject: Remove space between smilies.

Hello there,

I have a question.
Is there a way to remove the space between smilies?

Here is an example:
If i where to use the normal :imagea: :imageb: commands, i would get this:


If i where to remove the spaces between them :imagea::imageb: i would get this:
:imagea::imageb:
no images.

Thanx in advance.


Rick2002's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
OS ??/Apache 2.0.46/MySQL 4.1.21/PHP 4.4.7/Dragonfly CMS 9.1.2.1
Back to top
View user's profile Visit poster's website
Eestlane
I18N / L10N Lead Dev
I18N / L10N Lead Dev

Offline Offline
Joined: Apr 06, 2005
Posts: 1404
Location: Estonia
PostPosted: Wed Feb 13, 2008 11:12 pm
Post subject: Re: Remove space between smilies.

Why would you need that?


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Thu Feb 14, 2008 12:18 am
Post subject: Re: Remove space between smilies.

the 2 imagges make one image. I would just combine the 2 images so you only have to enter one smilies code. see attached


Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Explain Please
Page 1 of 2
All times are GMT
Go to page 1, 2  Next



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 cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

Aiheesta Lisää...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy