MyXoops Forum

Re: WF-Downloads [Module für Bildergalerien, Downloads und Faq] - myXOOPS German Support

frankblack

"myXOOPs"-Profi
Gepostet am:06.05.2006 10:02
frankblack
frankblack Offline (Show more)
"myXOOPs"-Profi
Posts: 747
Since: 19.04.2006
#4

Re: WF-Downloads

Geh in die Administration / Systemmodul / Templatesmanager und pick dir aus dem gerade aktiven Templateset bei wfdownloads die Datei wfdownloads_download.html heraus und bearbeite sie.

Der Text der dort steht gegen folgenden ersetzen:

<{if $show_categort_title == true}>
 <
div style="margin-bottom: 4px;"><b><{$smarty.const._MD_WFD_CATEGORYC}></b><{$down.category}></div>
<{/if}>

<
table width="100%" cellspacing="1" cellpadding="2">
  <
tr>
    <
td width="82%" align="left">
  <{if 
$xoops_isuser == 1}><a href="<{$xoops_url}>/modules/wfdownloads/visit.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>"><span class="itemTitle"><{$down.title}> </span></a> <{$down.icons}><{/if}>
  </
td>
    <
td width="18%" align="right" nowrap="nowrap">
  <
a href="<{$xoops_url}>/modules/wfdownloads/singlefile.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>">
    <
span class="itemTitle"><{$smarty.const._MD_WFD_VIEWDETAILS}></span></a>
  </
td>
  </
tr>
  <
tr>
    <
td height="1" colspan="2" bgcolor="#000000"></td>
  </
tr>
  <
tr>
    <
td colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <
tr>
        <
td colspan="2">
    <
table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <
tr class="even" style="line-height: 10px;">
       <
td width="50%"><small><strong><{$smarty.const._MD_WFD_SUBMITTER}>:</strong> <{$down.submitter}> 
       <{
$down.adminlink}></small></td>
         <
td><div align="right" style="margin-right: 2px;"><small><b><{$lang_subdate}>:</b>&nbsp;&nbsp;
       <{
$down.updated}></small></div></td>
      </
tr>
    </
table>
   </
td>
        </
tr>
      <
tr>
        <
td colspan="2" style="line-height: 12px;" >&nbsp;</td>
      </
tr>
      <
tr>
      <
td width="65%" height "133" valign="top">
          <{if 
$show_screenshot == true}>
       <{if 
$down.screenshot_full != ''}>
        <
div >
          <
a href="<{$xoops_url}>/<{$shots_dir}>/<{$down.screenshot_full}>" target="_blank">
            <
img src="<{$down.screenshot_thumb}>" width="<{$shotwidth}>" height="<{$shotheight}>" alt="" vspace="3" hspace="7" align="right" style='border: 1px solid black' />
         </
a>
        </
div>
      <{/if}>
     <{/if}>
     <{if 
$xoops_isuser == 1}><div style="margin-left: 6px;" align="justify"><a href="<{$xoops_url}>/modules/wfdownloads/visit.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>">
        <
img src="<{$xoops_url}>/modules/wfdownloads/images/icon/downloads.gif" alt="" align="absmiddle" /> 
          <{
$smarty.const._MD_WFD_DOWNLOADNOW}></a></div><br /><{/if}>
      <
div style="margin-left: 6px;" align="justify"><{$down.description}></div>
      </
td>
        <
td width="35%">
    <
div style="margin-left: 10px; margin-right: 10px; padding: 4px; background-color:#E6E6E6; border-color:#999999;" class="outer">
      <
small>
       <
div><b><{$smarty.const._MD_WFD_VERSION}>:</b>&nbsp;<{$down.version}></div>
         <
div>      
      <
div><b><{$smarty.const._MD_WFD_DOWNLOADHITS}></b>&nbsp;<{$down.hits}></div>
      <
div><b><{$smarty.const._MD_WFD_FILESIZE}>:</b>&nbsp;<{$down.size}></div>
     <
div><b><{$smarty.const._MD_WFD_HOMEPAGE}>:</b>&nbsp;<{$down.homepage|wordwrap:50:"n":true}></div>
      <
div><b><{$smarty.const._MD_WFD_MIRROR}>:</b>&nbsp;<{$down.mirror|wordwrap:50:"n":true}></div>      
       </
div>
     </
small>  
     </
div>
   <
br />
    <
div style="margin-left: 10px; margin-right: 10px; padding: 4px;" class = "outer">
      <
small><b><{$smarty.const._MD_WFD_RATINGC}></b>&nbsp;<img src="<{$xoops_url}>/modules/wfdownloads/images/icon/<{$down.rateimg}>" alt="" align="absmiddle" />&nbsp;&nbsp;(<{$down.votes}>)</small>
   </
div><br />
    <
div style="margin-left: 10px; margin-right: 10px; padding: 4px;" class = "outer">
      <
small><b><{$smarty.const._MD_WFD_REVIEWS}></b>&nbsp;<img src="<{$xoops_url}>/modules/wfdownloads/images/icon/<{$down.review_rateimg}>" alt="" align="absmiddle" />&nbsp;&nbsp;(<{$down.reviews_num}>)</small>
    </
div>

    </
td>
      </
tr>
      <
tr>
        <
td colspan="2" style="line-height: 12px;">&nbsp;</td>
      </
tr>
      <
tr>
        <
td colspan="2">
    <
div align "center" style="margin-bottom: 3px; "><small>
     <
b><{$smarty.const._MD_WFD_PRICE}>:</b>&nbsp;<{$down.price}> | 
     <
b><{$smarty.const._MD_WFD_SUPPORTEDPLAT}>:</b>&nbsp;<{$down.platform}> | 
      <
b><{$smarty.const._MD_WFD_DOWNLICENSE}>:</b>&nbsp;<{$down.license}> | 
     <
b><{$smarty.const._MD_WFD_LIMITS}>:</b>&nbsp;<{$down.limitations}></small></div>
   </
td>
      </
tr>
      <
tr>
        <
td colspan="2" class="even" style="line-height: 12px;">
     
       <
div align="center"><small>
        <
a href="<{$xoops_url}>/modules/wfdownloads/review.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>">
        <{
$smarty.const._MD_WFD_REVIEWTHISFILE}></a> | 
      <
a href="<{$xoops_url}>/modules/wfdownloads/ratefile.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>">
        <{
$smarty.const._MD_WFD_RATETHISFILE}></a> | 
      <{if 
$down.useradminlink == true}>
       <
a href="<{$xoops_url}>/modules/wfdownloads/submit.php?lid=<{$down.id}>">
      <{
$smarty.const._MD_WFD_MODIFY}></a> | 
       <{/if}>
       <
a href="<{$xoops_url}>/modules/wfdownloads/brokenfile.php?lid=<{$down.id}>">
        <{
$smarty.const._MD_WFD_REPORTBROKEN}></a> | 
      <
a target="_top" href="mailto:?subject=<{$down.mail_subject}>&amp;body=<{$down.mail_body}>">
       <{
$smarty.const._MD_WFD_TELLAFRIEND}></a> | 
       <
a href="<{$xoops_url}>/modules/wfdownloads/singlefile.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>">
        <{
$smarty.const._COMMENTS}> (<{$down.comments}>)</a>
         </
small></div>
    
    </
td>
        </
tr>
    </
table>
  </
tr>
</
table>
<
br />


Dann sollte das eigentlich funktionieren. Dieser Template-Code gilt für wfdownloads 2.05. Sollte sich nichts geändert haben wenn du als Gast den Download besuchst, überprüfe ob in den Systemvoreinstellungen Themes und Templates aktualisieren auf Nein steht. In diesem Fall auf Ja stellen.

Mrs_Dirty

"myXOOPs"-Fortgeschrittener
Gepostet am:06.05.2006 09:50
Mrs_Dirty
Mrs_Dirty Offline (Show more)
"myXOOPs"-Fortgeschrittener
Posts: 196
Since: 21.12.2005
#3

Re: WF-Downloads

Danke für die Antwort. Ich habe das ganze Modul "untersucht", den entsprechenden Text hab ich leider nicht gefunden.

Mrs. Dirty

Advertisement

Gepostet am:0
Advertisement (Show more)
Posts: 0
Since: 0


Hier könnten Sie Ihre Anzeige aufgeben!
Bitte kontaktieren Sie uns, um mehr darüber zu erfahren.

frankblack

"myXOOPs"-Profi
Gepostet am:05.05.2006 00:08
frankblack
frankblack Offline (Show more)
"myXOOPs"-Profi
Posts: 747
Since: 19.04.2006
#2

Re: WF-Downloads

Soweit ich mich erinnern kann, kann man das NICHT einstellen, aber du kannst es mit ein wenig Arbeit doch erreichen.

Durchsuch die Templates von wfdownloads nach den Stellen wo der Link zum Herunterladen ist und modifiziere den Code dann folgendermaßen:

<{if $xoops_isuser == 1}>
     ...
hier der Link der zum Download führt...
<{/if}>

Mrs_Dirty

"myXOOPs"-Fortgeschrittener
Gepostet am:04.05.2006 10:21
Mrs_Dirty
Mrs_Dirty Offline (Show more)
"myXOOPs"-Fortgeschrittener
Posts: 196
Since: 21.12.2005
#1

WF-Downloads

Hallo.

Ich habe folgende Frage:

Was muss ich wo einstellen damit Download-Dateien für anonyme User zwar sichtbar sind, sie aber keinen Download machen können ???

Danke.

Mrs Dirty
Diesen Thread durchsuchen:  1 Anonyme Benutzer

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5310 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 1803 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag