Closed (duplicate)
Project:
Smileys
Version:
5.x-1.2-beta
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2007 at 15:54 UTC
Updated:
24 Jan 2008 at 18:19 UTC
Jump to comment: Most recent file
Comments
Comment #1
NoRandom commentedModification done. Here is what I did:
You have to edit the file 'smileys.module' and edit these lines:
Line 81
Change...
... $acronyms[0] .'" class="smiley-class"/></span>';To...
... $acronyms[0] .'" class="smiley"/></span>';Line 105
Change...
... check_plain($smiley->description) .'" class="smiley-class" />',To...
... check_plain($smiley->description) .'" class="smiley" />',Line 150
Change...
...check_plain($alt) ."\" />\\2", $text);To...
...check_plain($alt) ."\" class=\"smiley\" />\\2", $text);Line 152
Change...
... check_plain($alt) .'" alt="'. check_plain($alt) .'" />', $text);To...
... check_plain($alt) .'" alt="'. check_plain($alt) .'" class="smiley"/>', $text);Line 268
Change...
... check_plain($smiley->description) .'" />',To...
... check_plain($smiley->description) .'" class="smiley" />',This way, every image shown by the module will have an attached smiley class and you can do whatever you want from css.
Comment #2
vm commentedThis has a greater degree of making into the module if a patch is provided see: http://drupal.org/patch/create
Comment #3
NoRandom commentedThanks for your answer.
Here goes the patch with the changes I explained.
Comment #4
Gurpartap Singh commentedhttp://drupal.org/node/151678