Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Style Attributes Not Working

8 years 8 months ago
  • Dexter's Avatar
    Topic Author
  • Dexter
  • Offline
  • Fresh Boarder
  • Posts: 56
  • Thank you received: 4
Licenses:
JomSocial Active

ISSUE SUMMARY: The style attributes does not seem to reflecting on the front end. Am I doing this right (See image)?


STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

Attachments:
8 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Dexter,

Thank you for reporting, I marked this as a bug.

cheers~

8 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Dexter,

For fixing this open this file components/com_community/libraries/fields/textarea.php, add this code after line 30 :

$style = $this->getStyle() ? ' style="' .$this->getStyle() . '"' : '';

and then find this code :
$html .= '<textarea id="field' . $field->id . '" name="field' . $field->id . '" class="joms-textarea joms-textarea--limit" data-min-char="' . $min_char . '" data-max-char="' . $max_char . '" ' . $readonly . $required . ' >' . $field->value . '</textarea>';

replace to :
$html = '<textarea id="field' . $field->id . '" name="field' . $field->id . '" class="joms-textarea" ' . $readonly . $required . $style . ' >' . $field->value . '</textarea>';

hope it will works :)

cheers!

8 years 8 months ago
  • Dexter's Avatar
    Topic Author
  • Dexter
  • Offline
  • Fresh Boarder
  • Posts: 56
  • Thank you received: 4
Licenses:
JomSocial Active

Line 31 is this:

class CFieldsTextarea extends CProfileField {

Just to be clear I add the code above that?

8 years 8 months ago
  • Dexter's Avatar
    Topic Author
  • Dexter
  • Offline
  • Fresh Boarder
  • Posts: 56
  • Thank you received: 4
Licenses:
JomSocial Active

It did not work. I just got a blank page profile edit page. Maybe I'm just doing it incorrectly.

8 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Dexter,

I already applied the code via extplorer by myself, please check.

thank you!

8 years 8 months ago
  • Dexter's Avatar
    Topic Author
  • Dexter
  • Offline
  • Fresh Boarder
  • Posts: 56
  • Thank you received: 4
Licenses:
JomSocial Active

Is it possible just to send me the file?

8 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Here is the file www.dropbox.com/s/azzwpmwp9cum746/textarea.php?dl=0 and copy to components/com_community/libraries/fields/

8 years 8 months ago
  • Dexter's Avatar
    Topic Author
  • Dexter
  • Offline
  • Fresh Boarder
  • Posts: 56
  • Thank you received: 4
Licenses:
JomSocial Active

Thanks. That fixed it.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW