les modification sur le module telechargement
lou98 Membre non connecté
- Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
Reprise du message précédent
vous pouvez svp ma dire dans quel pageet a ligne aussi
merci
KONA Membre non connecté
- Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
#### Rechercher lignes 149 à 151 ####
[code=html]<a href="../download/count.php?id={download.IDURL}"><img src="{download.MODULE_DATA_PATH}/images/{download.LANG}/bouton_dl.gif" alt="" /></a>
<br />
{download.URL}[/code]
#### Replacer par #####
[code=html]<a onclick="window.open('popup.php?url={download.URL}','popup','width=450,height=190,left=0,top=0,scrollbars=1');" href="#">ecouter</a>[/code]
################
Ensuite créer un fichier nommer popup.php et insérer :
[code=html]<object id="MediaPlayer1" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft Windows Media Player components..." width="326" height="291">
<param name="fileName" value="<?php echo strip_tags($_GET['url']); ?>">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="ShowStatusBar" value="True">
<embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download"
id=mediaplayer
src="{download.URL}"
autosize="1"
autostart="1"
clicktoplay="1"
displaysize="0"
enablecontextmenu="1"
enablefullscreencontrols="1"
enabletracker="1"
mute="0"
playcount="1"
showcontrols="1"
showaudiocontrols="1"
showdisplay="0"
showgotobar="0"
showpositioncontrols="1"
showstatusbar="1"
showtracker="1">
</embed>
</object>[/code]
Se fichier ( popup.php) doit se trouver dans le dossier download ( download se trouve a la racine de phpboost ) .
Tu peux apporter toute modification , ceci est un pure exemple .
ben.popeye Membre non connecté
- Modérateur
- Voir le profil du membre ben.popeye
- Inscrit le : 04/08/2005
- Site internet
- Groupes :
- Equipe Historique
Bjarne Stroustrup, inventeur du C++ :"There are two ways to write error-free programs; only the third works."
KONA Membre non connecté
- Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
On peux passer chaque variable de cette manière ?
ben.popeye Membre non connecté
- Modérateur
- Voir le profil du membre ben.popeye
- Inscrit le : 04/08/2005
- Site internet
- Groupes :
- Equipe Historique
Bjarne Stroustrup, inventeur du C++ :"There are two ways to write error-free programs; only the third works."
lou98 Membre non connecté
- Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
Citation :
Citation :{JAVA}
# START cat #
<div class="module_position">
<div class="module_top_l">
<div class="module_top_r"></div>
<div class="module_top">
<div style="float:left">
{cat.L_CATEGORIE} {cat.EDIT}
</div>
<div style="float:right">
{cat.PAGINATION}
</div>
</div>
<div class="module_contents">
# START download #
<div style="float:left;text-align:center;width:{cat.download.WIDTH}%;height:80px;">
{cat.download.U_IMG_CAT}
{cat.download.CAT} ({cat.download.TOTAL})
<span class="text_small">{cat.download.CONTENTS}</span>
</div>
# END download #
<div class="text_small" style="text-align:center;clear:both">
{cat.TOTAL_FILE} {cat.L_HOW_DOWNLOAD}
</div>
</div>
<div class="module_bottom_l"></div>
<div class="module_bottom_r"></div>
<div class="module_bottom">
<div style="float:right">
{cat.PAGINATION}
</div>
</div>
</div>
# END cat #
# START link #
<div class="module_position">
<div class="module_top_l"></div>
<div class="module_top_r"></div>
<div class="module_top">
<div style="float:left">
{link.CAT_NAME}
</div>
<div style="float:right">
{PAGINATION}
</div>
</div>
<div class="module_contents">
<table class="module_table">
<tr>
<th style="text-align:center;">
[url=download{U_DOWNLOAD_ALPHA_TOP}][/url]
{L_FILE}
[url=download{U_DOWNLOAD_ALPHA_BOTTOM}][/url]
</th>
<th style="text-align:center;">
[url=download{U_DOWNLOAD_SIZE_TOP}][/url]
{L_SIZE}
[url=download{U_DOWNLOAD_SIZE_BOTTOM}][/url]
</th>
<th style="text-align:center;">
[url=download{U_DOWNLOAD_DATE_TOP}][/url]
{L_DATE}
[url=download{U_DOWNLOAD_DATE_BOTTOM}][/url]
</th>
<th style="text-align:center;">
[url=download{U_DOWNLOAD_VIEW_TOP}][/url]
{L_DOWNLOAD}
[url=download{U_DOWNLOAD_VIEW_BOTTOM}][/url]
</th>
<th style="text-align:center;">
[url=download{U_DOWNLOAD_NOTE_TOP}][/url]
{L_NOTE}
[url=download{U_DOWNLOAD_NOTE_BOTTOM}][/url]
</th>
<th style="text-align:center;">
[url=download{U_DOWNLOAD_COM_TOP}][/url]
{L_COM}
[url=download{U_DOWNLOAD_COM_BOTTOM}][/url]
</th>
</tr>
# START download #
<tr>
<td class="row2">
» [url=download{link.download.U_DOWNLOAD_LINK}]{link.download.NAME}[/url]
</td>
<td class="row2" style="text-align: center;">
{link.download.SIZE}
</td>
<td class="row2" style="text-align: center;">
{link.download.DATE}
</td>
<td class="row2" style="text-align: center;">
{link.download.COMPT}
</td>
<td class="row2" style="text-align: center;">
{link.download.NOTE}
</td>
<td class="row2" style="text-align: center;">
{link.download.COM}
</td>
</tr>
# END download #
</table>
<p style="text-align:center;padding:6px;">{link.NO_CAT}[/p]
</div>
<div class="module_bottom_l"></div>
<div class="module_bottom_r"></div>
<div class="module_bottom">
<div style="float:left">
{link.CAT_NAME}
</div>
<div style="float:right">
{PAGINATION}
</div>
</div>
</div>
# END link #
# START download #
<div class="module_position">
<div class="module_top_l"></div>
<div class="module_top_r"></div>
<div class="module_top">
<div style="float:left">
{download.NAME} {EDIT}{DEL}
</div>
<div style="float:right">
{download.COM}
</div>
</div>
<div class="module_contents">
{download.L_DESC}: {download.CONTENTS}
{download.L_CAT}:
<a href="../download/download{download.U_DOWNLOAD_CAT}" title="{download.CAT}">{download.CAT}</a>
{download.L_DATE}: {download.DATE}
{download.L_SIZE}: {download.SIZE}
{download.L_DOWNLOAD}: {download.COMPT} {download.L_TIMES}
[img]{download.MODULE_DATA_PATH}/images/{download.LANG}/bouton_dl.gif[/img]
{download.URL}
</div>
<div class="module_bottom_l"></div>
<div class="module_bottom_r"></div>
<div class="module_bottom">
{download.L_NOTE}: {download.NOTE}
</div>
</div>
{HANDLE_COM}
# END download #
# START note #
<form action="../download/download{note.U_DOWNLOAD_ACTION_NOTE}" method="post" class="fieldset_content">
<fieldset>
<legend>{L_NOTE}</legend>
<dl>
<dt><label for="note_select">{L_NOTE}</label></dt>
<dd>
<span class="text_small">{L_ACTUAL_NOTE}: {note.NOTE}</span>
<label>
<select id="note_select" name="note">
{note.SELECT}
</select>
</label>
</dd>
</dl>
</fieldset>
<fieldset class="fieldset_submit">
<legend>{L_VOTE}</legend>
<input type="submit" name="valid_note" value="{L_VOTE}" class="submit" />
</fieldset>
</form>
# END note #
</div>
KONA Membre non connecté
- Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
J'ai eu ma réponse que je voulais c'était juste pour savoir . Si un jour il fallait que je refasse la même chose pour une autre variable , ou autre truc du genre
Dans cette page je voulais juste récupérer l'url pour :
<param name="fileName" value="<?php echo strip_tags($_GET['url']); ?>">
Je te remercie Ben
lou98 Membre non connecté
- Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
KONA Membre non connecté
- Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
même pas un seul mots juste , évite le SMS
lou98 Membre non connecté
- Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
Ptithom Membre non connecté
- Modérateur
- Voir le profil du membre Ptithom
- Inscrit le : 07/11/2006
- Site internet
- Groupes :
- Equipe Historique
De plus attention à l'écriture, car des fois c'est limite compréhensible. Relire un post prend 10 secondes, c'est pas si long et ca aide à la compréhension de tous. Merci.
Mes sites : http://www.leschinchillas.org / http://www.chateau-de-lastours.fr
lou98 Membre non connecté
- Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
imagegif</a>
et kona je peux replace ecoute par une image gif
KONA Membre non connecté
- Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
[code=html]<a onclick="window.open('popup.php?url={download.URL}','popup','width=340,height=320,left=250,top=250,scrollbars=1');" href="#"><img src="../download/templates/images/popup.gif" /></a>[/code]
lou98 Membre non connecté
- Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
Édité par lou98 Le 06/02/2008 à 20h28
KONA Membre non connecté
- Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
[code=html] <a onclick="window.open('popup.php?url={download.URL}','popup','width=340,height=320,left=250,top=250,scrollbars=1');" href="#"><img src="../upload/bc0fa63e508ea030f6f3c80880ff7df2.gif" /></a>[/code]
lou98 Membre non connecté
- Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
maintenant le module est prêt
grace à toi