Can't add tags to jDownloads

  • EstebanMax
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
6 Anni 9 Mesi fa #2579 da EstebanMax
Can't add tags to jDownloads è stato creato da EstebanMax
Hello I bought the extension as I need it to add properties to jDownloads items.
However after installation (with the installation package) I can't see the "CP tags" button in the items' content editor.

Thanks
Stefano
Allegati:

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
6 Anni 9 Mesi fa #2580 da andrea_4g
Risposta da andrea_4g al topic Can't add tags to jDownloads
Please make sure that jDownloads content element connector is enabled:

Extensions > Custom Properties > Utilities > Manage Content Elements Connectors

Install jDownloads and 'Content'

Si prega Accesso o Crea un account a partecipare alla conversazione.

  • EstebanMax
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
6 Anni 9 Mesi fa #2581 da EstebanMax
Risposta da EstebanMax al topic Can't add tags to jDownloads
Ok thank you.
I have another issue however. After installing Custom properties and save a new property, I get the error message (see also attachment):

0 Call to undefined function mysql_escape_string()

and this also occurs also if I try to create new content in other places (jDownloads, Articles, etc).
The content itself is created, but first I have that error.

That occurred only after installation of the component and If I uninstall it the administration works fine.
Allegati:

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
6 Anni 9 Mesi fa - 6 Anni 9 Mesi fa #2582 da andrea_4g
Risposta da andrea_4g al topic Can't add tags to jDownloads
You unearthed a bug.

Here's a quick fix:

Edit file plugins\content\cptags\cptags.php
Modifiy line 112 from:
Code:
$content_id = mysql_escape_string($article->$article_id_key);
to
Code:
$content_id = mysql_real_escape_string($article->$article_id_key);
Save

That should do the trick.

Please give us some feedback (we'll then release an updated version of Custom Properties).
Ultima Modifica 6 Anni 9 Mesi fa da andrea_4g.

Si prega Accesso o Crea un account a partecipare alla conversazione.

  • EstebanMax
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
6 Anni 9 Mesi fa #2583 da EstebanMax
Risposta da EstebanMax al topic Can't add tags to jDownloads
Hello I made the change but the same issue, in the attachment the change in code
Allegati:

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
6 Anni 9 Mesi fa #2584 da andrea_4g
Risposta da andrea_4g al topic Can't add tags to jDownloads
Here's a modified (and more elegant) fix that should definitely work.

Edit file plugins\content\cptags\cptags.php
Modifiy the very same 112 line from:
Code:
$content_id = mysql_escape_string($article->$article_id_key);
to
Code:
$content_id = $db->escape($article->$article_id_key);
Save

Si prega Accesso o Crea un account a partecipare alla conversazione.

Tempo creazione pagina: 0.181 secondi