News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

global content plugin support BUG - cptags (jd 3.2.28) - [NOT A BUG]

Started by Nyx, 19.03.2015 17:16:30

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nyx

Hi,

is it possible, that the bug from -> http://www.jdownloads.com/forum/index.php?topic=7914.0 is still there ?

I install today (with jdownloads 3.2.28) the componet / plugin - Custom Properties 3.1.12 for Joomla 3.x
(http://www.solidsystem.it/joomla-extensions/custom-properties.html)

It's have a special plugin for jdownloads.
And i can take Tags to Jdownload files /Ids and so on. And it works to search to the jdownload tags.

But the Tags don't show by the download details.
I put the placeholder "{cptags}" in the detail layout,.. but it show only the Placeholder.

I try the same with the default joomla article and it works.
-> the placeholder will replace with the tags.

In Conf / Frontend :
Activate support for all Joomla content plugins? -> Yes
Plugin Support only for descriptions? -> No



  •  

Arno

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Nyx

  •  

Arno

Sad to say, but this is not a free extension. So i cannot test it.
But when you can send me a download link (only for the content plugin) via PM, i will check the source code. This should be enough.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Nyx

  •  

Arno

Hi,
es ist mir nun gelungen einige Tags zu erstellen un zu testen.
Wie ich dir ja schon via PM schrieb, geht das cptags plugin davon aus, dass die Item ID in dem Feld mit der Bezeichnung 'id' gespeichert ist.
Code:
public function onContentPrepare($context, &$row, &$params, $page = 0)
{
if(!isset($row->id))
{
return true;
}
else
{
$this->_addCpTags($row, true);
}
return true;
}

Da der Feldbezeichner in jD aber 'file_id' lautet, findet das Plugin hier nie einen Wert und tut somit auch logischerweise garnix. Diese Funktion KANN also gar nicht von den Entwicklern getestet worden sein, sonst wäre das sofort aufgefallen. Das du die Daten in der Komponente selbst ansporechen kannst hat damit gar nichts zu tun. Hier geht es NUR um das content plugin.

Ein 'Bug' in jDownloads liegt somit nicht vor (ich werde den Thread daher später verschieben).

Wir haben jetzt zwei Möglichkeiten:
1. der Entwickler der Custom Properties passt sein Plugin an
oder
2. ich füge dem Datensatz ein Feld 'id' (mit dem erwarteten Wert) hinzu.

Für mich wäre momentan Punkt 1 einfacher, andererseits kann ich nicht ausschließen, das es noch andere Content Plugins gibt die von einem Feld ID ausgehen.
Ich werde daher nachsehen, wieviel Aufwand das hinzufügen des ID Feldes (in allen views) wäre.

Das es dann funktioniert habe ich bereits getestet (siehe pic).


[gelöscht durch Administrator]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Nyx

Hallo,

vielen Dank für deine Mühe  :)

Ich ging davon aus das "Compatibility tests with the latest version of jDownloads for J3.x had a positive outcome.
We are adding the new content element connector to the upcoming new release of Custom Properties to be published in few days."

bedeutet das es getestet wurde und es geht  ;)

Siehe
http://solidsystem.it/forum/custom-properties-3-for-joomla-3x/1377-cp3-and-jdownloads-3212-beta.html


Ich werde deine Erkenntnis gleich dem Entwickler Andrea zukommen lassen.
Mal schauen ob und wie schneller das bereinigen kann bzw. was er dazu sagt.

wobei er wohl ein "Jdownloads weiche" einbauen müsste, da ja Joomla Artikel das feld ID benutzen.
Sehe ich das richtig?

  •  

Arno

Quotebedeutet das es getestet wurde und es geht
Nicht mit der Version des Plugins (3.0) welche mir vorliegt!

Nur zur Info: die Version 3.2.28 ist die erste Stable Version und keine Beta mehr.

Die Version die du mir geschickt hattest ist 3.0, di welche du im zip file im solidsystem forum gepostet hast ist viel älter. 

Bitte warte ein paar stunden bis ich den Aufwand geprüft habe ein zusätzliches 'id' feld mit zu übergeben.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Nyx

Der post dort ist auch ca. 5 Monate alt.
Ich hab nur schon damals zur beta angefragt.

Ich hab dort nun nochmal aber genau die aktuellen Daten hinterlegt.

Und ja klar warte ich, danke dir.
  •  

Arno

Diese Änderung deines alten Beitrags wird dort kaum einer bemerken, solltest besser einen neuen machen.

Ich habe das Plugin einmal leicht angepasst. Somit arbeitet es jetzt auch mit jD. Vermutlich werden die das aber anders lösen wollen, was aber ja erst einmal egal für dich ist.
Kopiere die entpackte Datei unten in den Plugin Ordner.

Möglich das ich in späteren Versionen auch ein Datenfeld 'id' zur Verfügung stelle, muss mir aber noch überlegen, inwieweit dies wirklich erforderlich ist.

[gelöscht durch Administrator]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Nyx

also ich hab den titel dort geändert und neu gepostet, jetzt ist an stelle 1 :-)

Danke dir für deinen Hack  ;D
Hab schon überlegt wie ich das umschreiben soll (muss endlich richtig php lernen)

Es funktioniert auch super,.. bis...

Ich traue es mir ja gar ned zu sagen *g*

Aber es geht nur in der Beschreibung von Download Details.
außerhalb in Layout von den Download Details wird es nicht umgewandelt.

Aber die Option in der Jdownload konfig steht auf NO bei "Content Plugins nur in Beschreibung".

In der Kategorie selber wo alle Downloads der Kat. mit Kurzbeschreibung anzeigt geht es auch nicht. Aber das ist glaub ich noch nie gegangen oder?

Ich weiß ich bin lästig,.. sorry *hust*
  •  

Arno

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  


Arno

QuoteAber es geht nur in der Beschreibung von Download Details.
außerhalb in Layout von den Download Details wird es nicht umgewandelt.
Umgewandelt wird da (glaube ich) nichts, nur hinzugefügt. Den Platzhalter {cptags} braucht es wohl nicht unbedingt. Zumindest bei meinem Test ging es auch ohne. Muss aber gestehen, dass ich jetzt auch nicht sooo viel Zeit dafür aufbringen konnte.

Grundsätzlich kommt es bei manchen Plugins zu Problemen. Joomla hat das Plugin Format mit version 3 etwas verändert/erweitert.
Früher gab es nur das Feld text, nun auch noch introtext. In jD gab/gibt es description und description_long.

Ich habe nun nochmal die Plugin Unterstützung verbessert. Damit sollten dann die Tags auch in der Category Übersicht angezeigt werden.
Auch ist es nicht mehr notwendig das modifizierte Plugin von mir zu verwenden. Das Original sollte damit auch gehen.
Bitte informiere die Entwickler darüber (die sollten auch die neue Version unten für ihre Tests verwenden).

Die neue Version 3.2.29 ist unten.
Bitte installieren und testen.

Ich werde die neuen Version heute abend offiziell veröffentlichen.



[gelöscht durch Administrator]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Nyx

Danke für deine Arbeit!

Ich habe nun die Version 3.2.29 installiert.

Aber außer das in der Übersicht nun eine andere Version steht konnte ich keine Veränderungen sehen?

Also die Tags funktionieren auch in der 3.2.29 nur so:

Category Übersicht
In der Kurzbeschreibung: NEIN
Im Layout: NEIN

Download Detail
In der Kurzbeschreibung: JA
Im Layout: NEIN

In der Joomla 1.5 Version gehen Sie im Layout von der Download Detail Ansicht.


Die Tags nur in der Beschreibung anzuzeigen ist halt Designtechnisch nicht gerade sehr schön.

Und ja, stimmt wenn man das CP Content Plugin auf Default also bottom lässt zeigt es die Tags beim download detail an.
Aber leider auch nur direkt unter der Kurzbeschreibung.


Und ich habe den Entwickler von CP bescheid gegeben und ihm die 3.2.29 gegeben.
Der so nebenbei ebenso gerade testet.


Nur damit wir nicht aneinander vorbeireden so sollte mein layout im aussehen:


Downloaddetail:
<meta property=?og:locale? content=?de_DE?/>
<meta property="og:type" content="Website"/>
<meta property="og:image" content="{thumbnail}"/>
<br>
<table class="jd_files_style" width="100%">
  <tr>
    <td class="jd_files_tb_style" >
   
    <table class="jd_files_top_style" width="100%" border="0" cellspacing="0" cellpadding="0" valign="middle">
      <tr>
        <td class="jd_files_top_title_style">{file_pic}<b>{file_title}</b> {release} {pic_is_new} {pic_is_hot} {pic_is_updated}</td>
        <td  align="right" class="jd_files_top_rating_style"><span style="font-size:11px;"><small>{rating}</small></span></td>
       
      </tr>
    </table>
</div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="padding:10px;">
      <tr>
        <td width="100%">
{screenshot_begin}<div id="blueimp">
<a href="{screenshot}"> <img class="jd_files_screenshot_style" src="{thumbnail}" align="left" alt="" /></a>
</div>
{screenshot_end}

<div height="200">{description_long}</div>
<div class="jd_files_btn_download_style">
<small>Wähle dein Format aus <span style="font-size:10px;"> <a href="/hilfe?option=com_fsf&view=faq&faqid=1" target="_self">(Hilfe)</a></span></small><br>
{url_download}{mirror_1}{mirror_2}
</div>
</td>
      </tr>

    </table>
   
     <table  class="jd_files_bottom_style" width="100%" border="0" cellspacing="0" cellpadding="0" valign="middle">
      <tr>
        <td>
<div class="jd_files_bottom_icons_style">
<span class="jd_files_bottom_icon_style"><img src="/images/jdownloads/miniimages/contact.png" data-at2x="/images/jdownloads/miniimages/contact@2x.png" />&nbsp;{author_text}</span>
<span class="jd_files_bottom_icon_style"><img src="/images/jdownloads/miniimages/weblink.png" data-at2x="/images/jdownloads/miniimages/weblink@2x.png" />&nbsp;{author_url_text}</span>
<span class="jd_files_bottom_icon_style"><img src="/images/jdownloads/miniimages/language.png" data-at2x="/images/jdownloads/miniimages/language@2x.png" />&nbsp;{language_text}</span>
<span class="jd_files_bottom_icon_style"><img src="/images/jdownloads/miniimages/license.png" data-at2x="/images/jdownloads/miniimages/license@2x.png" />&nbsp;{license_text}</span>
<span class="jd_files_bottom_icon_style"><img src="/images/jdownloads/miniimages/date.png" data-at2x="/images/jdownloads/miniimages/date@2x.png" />&nbsp;{created_date_value}</span>
<span class="jd_files_bottom_icon_style"><img src="/images/jdownloads/miniimages/stuff.png" data-at2x="/images/jdownloads/miniimages/stuff@2x.png" />&nbsp;{filesize_value}</span>
<span class="jd_files_bottom_icon_style">{custom_title_6}&nbsp;{custom_value_6}</span>
<span class="jd_files_bottom_icon_style"><img src="/images/jdownloads/miniimages/download.png" data-at2x="/images/jdownloads/miniimages/download@2x.png" />&nbsp;{hits_value}</span>
</div>
</td>
      </tr>
    </table>
    </td>
  </tr>
</table>
<div class="zulu_cptags">{cptags}</div>
<div class="addthis_zulu_style">
<div class="addthis_sharing_toolbox">
<span class="zulu_qr_code">
<a href="http://api.qrtag.net/qrcode/200/10/" rel="lightbox" title="QR Code">QR Code&nbsp;<img src="http://api.qrtag.net/qrcode/30/0/8C8C8C/eeeeee/" align="right"></a>
</span>
</div>
</div>


Kategorie:
{files_title_begin}<div style="margin-bottom:10px;"></div>
{files_title_end}
<table class="jd_files_style" width="100%">
  <tr>
    <td class="jd_files_tb_style" >
   
    <table class="jd_files_top_style" width="100%" border="0" cellspacing="0" cellpadding="0" valign="middle">
      <tr>
        <td class="jd_files_top_title_style">{file_pic}<b>{file_title}</b> {release} {pic_is_new} {pic_is_hot} {pic_is_updated}</td>
        <td  align="right" class="jd_files_top_rating_comm_style"><span style="font-size:11px;"><small>{rating}<div class="jcomments_show_sum_comments">&nbsp;&nbsp;<a href="/download/{cat_id}/{file_id}#comments">{sum_jcomments}</a></div></small></span></td>
       
      </tr>
    </table>
     
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="padding:10px;">
      <tr>
        <td width="100%">
{screenshot_begin}
<div id="blueimp"><a href="{screenshot}"> <img class="jd_files_screenshot_style" src="{thumbnail}" align="left" alt="" /></a></div>
{screenshot_end}

<div height="200">{description}<small>{link_to_details}</small></div>
<div class="jd_files_btn_download_style">
<small>Wähle dein Format aus <span style="font-size:10px;"> <a href="/hilfe?option=com_fsf&view=faq&faqid=1" target="_self">(Hilfe)</a></span></small><br>
{url_download}{mirror_1}{mirror_2}
</div>
</td>
      </tr>

    </table>
   
     <table  class="jd_files_bottom_style" width="100%" border="0" cellspacing="0" cellpadding="0" valign="middle">
      <tr>
        <td>
<div class="jd_files_bottom_icons_style">
<span class="jd_files_bottom_icon_style">{author_text}</span>
<span class="jd_files_bottom_icon_style">{author_url_text}</span>
<span class="jd_files_bottom_icon_style">{language_text}</span>
<span class="jd_files_bottom_icon_style">{license_text}</span>
<span class="jd_files_bottom_icon_style">{created_date_value}</span>
<span class="jd_files_bottom_icon_style">{filesize_value}</span>
<span class="jd_files_bottom_icon_style">{custom_title_6}&nbsp;{custom_value_6}</span>
<span class="jd_files_bottom_icon_style">{hits_value}</span>
</div>
</td>
      </tr>
    </table> 
    </td>
  </tr>
</table>
<br />{cptags}





  •