Keep losing tooltips

15 years 6 months ago #77490 by mikeprince
Keep losing tooltips was created by mikeprince
Some of the field tooltip descriptions are being read from the database but are not being translated according to default_language.php, but instead remain as, for example, _UE_REGWARN_FNAME. See below.



After some investigation I have found out that they are fine initially but anytime I make a change to the field via CB Field Manager then the description column still has the correct data but is then not translated. Fields that I make no config changes to are left untouched.

Cheers
-- Mike --

Post edited by: mikeprince, at: 2008/10/16 14:00

Cheers
-- Mike --

Record, share and compare with BUBO Listing at www.bubo.org
Attachments:

Please Log in to join the conversation.

15 years 6 months ago #77524 by mikeprince
Replied by mikeprince on topic Re:Keep losing tooltips
Still problems...

I decided to start again with a fresh jos_comprofiler_fields with only the standard fields, ran the Check (and Fix) CB Database tool and verified that the Registration field tooltips were ok. I then set a size on firstname via Field Manager and saved. The tooltip then failed to be translated, as I described in the first post.

In the database I can see no difference between fields firstname and lastname, although only the latter now works.

Post edited by: mikeprince, at: 2008/10/16 20:25

Cheers
-- Mike --

Record, share and compare with BUBO Listing at www.bubo.org

Please Log in to join the conversation.

15 years 6 months ago #77549 by beat
Replied by beat on topic Re:Keep losing tooltips
mikeprince wrote:

Still problems...

I decided to start again with a fresh jos_comprofiler_fields with only the standard fields, ran the Check (and Fix) CB Database tool and verified that the Registration field tooltips were ok. I then set a size on firstname via Field Manager and saved. The tooltip then failed to be translated, as I described in the first post.

In the database I can see no difference between fields firstname and lastname, although only the latter now works.

Post edited by: mikeprince, at: 2008/10/16 20:25


What HTML editor are you using ?

it could be that that editor adds a <p>...</p> around _UE_REGWARN_FNAME ...

or a <div>_UE_REGWARN_FNAME</div>

Check that HTML source in editor and in database comprofiler_fields column description...this might explain that....

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

15 years 6 months ago #77584 by mikeprince
Replied by mikeprince on topic Re:Keep losing tooltips
beat wrote:

What HTML editor are you using ?

it could be that that editor adds a <p>...</p> around _UE_REGWARN_FNAME ...

or a <div>_UE_REGWARN_FNAME</div>

Check that HTML source in editor and in database comprofiler_fields column description...this might explain that....

That would make sense, although doesn't seem to be the case. Firstly I use a text editor for HTML (Notepad++) but this happens without going anywhere near a text editor. I just make an edit to any field in CB Field Manager (using Firefox 3) and the field tooltip then will not work. Same if I directly make a change using phpmyadmin. View source on the registration page (for the firstname table row) gives:

[code:1] <tr class="sectiontableentry1" id="cbfr_46">
<td class="titleCell"><label for="firstname">First Name:</label></td>
<td class="fieldCell" id="cbfv_46"><input type="text" name="firstname" id="firstname" value="" mosReq="1" mosLabel="First Name" size="40" class="inputbox" title="First Name:_UE_REGWARN_FNAME
" /><span class='cbFieldIcons'> <img src='http://localhost/listing/components/com_comprofiler/plugin/templates/bubolisting/images/mini-icons/icon-16-required.png' width='16' height='16' alt='* Field is required' title='Field is required' /> Information for: First Name : _UE_REGWARN_FNAME<br>
" title="" onmouseover="return overlib('_UE_REGWARN_FNAME&lt;br /&gt;', CAPTION, 'First Name');" onmouseout="return nd();" /></span></td><br>
</tr>[/code:1]<br>
If I try a standard template the same thing happens.<br>
<br>
Looking at the rows in phpmyadmin there are no extraneous characters visible, and I can see no difference between a working row and a non-working row.<br>
<img src=

Cheers
-- Mike --

Record, share and compare with BUBO Listing at www.bubo.org

Please Log in to join the conversation.

15 years 6 months ago #77605 by beat
Replied by beat on topic Re:Keep losing tooltips
You have a carriage return after the '_UE_REGWARN_FNAME' :

[code:1]'_UE_REGWARN_FNAME<br />'
[/code:1]

This prevents translation. Your html editor seems to add that.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

15 years 6 months ago #77607 by mikeprince
Replied by mikeprince on topic SOLVED: Re:Keep losing tooltips
Aha, well spotted! I've removed them directly in the database.

The editor is JCE (sorry I misunderstood your question last time). I have confirmed that it is fine with TinyMCE. Seems a bit surprising that no-one has come across this before.

Thanks for your help.

Cheers
-- Mike --

Post edited by: mikeprince, at: 2008/10/17 13:36

Cheers
-- Mike --

Record, share and compare with BUBO Listing at www.bubo.org

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.206 seconds

Facebook Twitter LinkedIn