electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » electro-music.com
"electro-music" in blue
Post new topic   Reply to topic
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
opg



Joined: Mar 29, 2004
Posts: 954
Location: Berkeley, CA, US
Audio files: 3

PostPosted: Tue Feb 16, 2010 11:28 am    Post subject: "electro-music" in blue
Subject description: How is that done???
Reply with quote  Mark this post and the followings unread

Whenever someone types electro-music in a post, it is automatically styled in blue and italics. How is that done? A client of mine wants essentially the same thing. Shocked
_________________
One Player Game | OPG on SoundCloud
Back to top
View user's profile Send private message Visit poster's website
opg



Joined: Mar 29, 2004
Posts: 954
Location: Berkeley, CA, US
Audio files: 3

PostPosted: Tue Feb 16, 2010 11:42 am    Post subject: Reply with quote  Mark this post and the followings unread

It's gotta be jQuery, but I can't see where it's being loaded. I found this:

http://www.dev102.com/2009/04/28/how-to-create-a-jquery-plugin/

_________________
One Player Game | OPG on SoundCloud
Back to top
View user's profile Send private message Visit poster's website
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 20269
Location: The Netherlands, Enschede
Audio files: 143
G2 patch files: 318

PostPosted: Tue Feb 16, 2010 1:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

Its a bit of extra code Howard (mosc) programmed into the forum PHP code, when some special words are seen BB tags are added around it ([i][b][color=???]) to make the effect ... not sure if he does it on posting or when the page is being served out though ... on posting would be less work I'd say for the system.

Anyway, this code will not be visible by looking at the forum from the outside.

To see the exact BB codes that were added you could edit, or reply to, your first post here.

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
opg



Joined: Mar 29, 2004
Posts: 954
Location: Berkeley, CA, US
Audio files: 3

PostPosted: Tue Feb 16, 2010 6:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yeah, the code is inserting span tags for each of the css elements, and since there's no .js file listed in the source code for jQuery, 'tis indeed PHP.

I think I'll be able to do this via jQuery. My department does a strict security audit before a site goes live, and they urge us to avoid custom PHP code whenever possible. We use the Drupal CMS.

In any case, it's been hard to find code for styling a specific word online, so it's quite clever to me! Cool

_________________
One Player Game | OPG on SoundCloud
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » electro-music.com
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
AmbiphonicDSP

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use