Skip to Content Skip to Menu

[SOLVED] Can't edit field in cb gallery

  • Pere LK
  • Pere LK
  • OFFLINE
  • Posts: 114
  • Thanks: 2
  • Karma: 1
12 years 2 months ago - 12 years 2 months ago #207335 by Pere LK
Hi,
My users can't edit their gallery fields (CB 1.8.1 and cb gallery 1.2.1).
I see that the overlib js function on the edit icon have an error when the title/description have an apostrophe for example.

The return error :
Code:
SyntaxError: unterminated string literal [Stopper sur une erreur] return overlib('<form name="PGformaction2" method="post" action="http://www.oxal...

And I have to modify the french language ini file too because it's add a bad apostrophe too ^^

How to fix in a clean way the overlib error ?
Last edit: 12 years 2 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 2 months ago - 12 years 2 months ago #207352 by krileon
Replied by krileon on topic Re: Can't edit field in cb gallery
Are you sure you're using CB ProfileGallery 1.2.1? Believe we had already fixed this. I just tested the below and it worked perfectly fine.

Title: Te's`ti"ng
Description: Ju'st a` Te"st

I was able to edit, publish, unpublished, etc.. freely with the above title and description. Perhaps it's some sort of other character that's causing this. Could you please isolate it to a single character that causes this for you?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 12 years 2 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • Pere LK
  • Pere LK
  • OFFLINE
  • Posts: 114
  • Thanks: 2
  • Karma: 1
12 years 2 months ago - 12 years 2 months ago #207354 by Pere LK
Replied by Pere LK on topic Re: Can't edit field in cb gallery
Yeah I'm sure because I have the update before posting (I was in 1.2). But maybe I have to unistall before install the last version ?
If I do that, i risk to lose parameters and user gallery or not ?

Thanks

edit there the edit form code (Yes i think it's the 1.2.1 version with the fix)
Code:
$htmltext2 .= "<a href=\"javascript:void(0);\" name=\"PGeditForm".$k."\" id=\"PGeditForm".$k."\" onclick=\"" ."return overlib('".addslashes(htmlspecialchars($popform))."', STICKY, CAPTION,'" . CBTxt::T("Edit Gallery Item")."', CENTER,CLOSECLICK,CLOSETEXT,'"._UE_CLOSE_OVERLIB."',WIDTH,300, ANCHOR,'PGeditForm".$k."',ANCHORALIGN,'LR','UR');\">"."<img style=\"cursor:pointer;border:0px;\" class=\"pg_c5\" src=\"" . $_CB_framework->getCfg( 'live_site' ) . "/components/com_comprofiler/plugin/user/plug_cbprofilegallery/images/" . $icon[5] . "\" alt=\"" . htmlspecialchars(CBTxt::T("Edit")) ."\" title=\"" . htmlspecialchars(CBTxt::T("Edit")) . "\""." /></a> ";
Last edit: 12 years 2 months ago by Pere LK. Reason: add form code

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
12 years 2 months ago #207362 by krileon
Replied by krileon on topic Re: Can't edit field in cb gallery

But maybe I have to unistall before install the last version ?

Shouldn't have to.

If I do that, i risk to lose parameters and user gallery or not ?

You'd lose configuration for that plugin.

edit there the edit form code (Yes i think it's the 1.2.1 version with the fix)

It has addslashes as it should. So this shouldn't be happening. Maybe the error is coming from somewhere else. Maybe it's not the gallery entry, but maybe the language string. Did you translate any of the language strings? Do any of them contain quotes? Were you able to isolate it to an exact character that causes this? Does it work fine if the subject and description at just "Test" (without quotes)?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • Pere LK
  • Pere LK
  • OFFLINE
  • Posts: 114
  • Thanks: 2
  • Karma: 1
12 years 2 months ago #207373 by Pere LK
Replied by Pere LK on topic Re: Can't edit field in cb gallery
Sooooorrrrry !
After update I no longer have any pb. The only one is related to html tag in description ;-)

Sorry for the post

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum