Liens de sujets & hameçonnage
2 participants
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Problème avec un script, un code :: Archives des problèmes avec un code
Page 1 sur 1 • Partagez
Liens de sujets & hameçonnage
Bonjour,
Dans l'entête du forum, dans les catégories, j'ai mis le lien du message le plus récent (ainsi que le widget les messages les plus récents) mais à chaque fois que je clique sur un lien, je tombe directement sur le premier message, ce qui n'est pas très pratique car à chaque nouveau message, je dois aller le chercher tout en bas.
J'aimerai avoir le code qui me permettrait d'accéder directement au dernier message quand je clique sur ces liens.
J'ai une deuxième question, est-ce qu'il existe un code sur PHPBB2 pour l'hameçonnage de message comme sur invision, le #1, #2 de l'angle en haut/droit de chaque message ?
En vous remerciant,
Dudu
Dans l'entête du forum, dans les catégories, j'ai mis le lien du message le plus récent (ainsi que le widget les messages les plus récents) mais à chaque fois que je clique sur un lien, je tombe directement sur le premier message, ce qui n'est pas très pratique car à chaque nouveau message, je dois aller le chercher tout en bas.
J'aimerai avoir le code qui me permettrait d'accéder directement au dernier message quand je clique sur ces liens.
J'ai une deuxième question, est-ce qu'il existe un code sur PHPBB2 pour l'hameçonnage de message comme sur invision, le #1, #2 de l'angle en haut/droit de chaque message ?
En vous remerciant,
Dudu
Re: Liens de sujets & hameçonnage
Bonjour,
Si j'ai bien compris, lorsque vous cliquez sur le titre du dernier message sur votre index, vous arrivez sur le premier message. Il suffit de cliquer sur l’icône de message située à côté du pseudo pour arriver sur le dernier message posté. Vous pouvez cependant modifier votre template index_box pour que le titre mène au dernier message:
Remplacer :
Je ne sais pas s'il est possible de numéroter les messages comme dans la version invision. Mais il est possible de rendre le titre des messages cliquable en phpBB2, de manière à obtenir l'adresse du message comme en phpBB3. Pour cela dans le template viewtopic_body cherchez:
Cordialement.
Si j'ai bien compris, lorsque vous cliquez sur le titre du dernier message sur votre index, vous arrivez sur le premier message. Il suffit de cliquer sur l’icône de message située à côté du pseudo pour arriver sur le dernier message posté. Vous pouvez cependant modifier votre template index_box pour que le titre mène au dernier message:
Remplacer :
- Code:
{catrow.forumrow.U_LATEST_TOPIC}
- Code:
{catrow.forumrow.U_LATEST_TOPIC_POST}
Je ne sais pas s'il est possible de numéroter les messages comme dans la version invision. Mais il est possible de rendre le titre des messages cliquable en phpBB2, de manière à obtenir l'adresse du message comme en phpBB3. Pour cela dans le template viewtopic_body cherchez:
- Code:
<td><span class="postdetails"><img src="{postrow.displayed.MINI_POST_IMG}" alt="{postrow.displayed.L_MINI_POST_ALT}" title="{postrow.displayed.L_MINI_POST_ALT}" border="0" />{L_POST_SUBJECT}: {postrow.displayed.POST_SUBJECT} <img src="{postrow.displayed.MINI_TIME_IMG}" alt="" border="0" />{postrow.displayed.POST_DATE}</span></td>
- Code:
<td><span class="postdetails"><img src="{postrow.displayed.MINI_POST_IMG}" alt="{postrow.displayed.L_MINI_POST_ALT}" title="{postrow.displayed.L_MINI_POST_ALT}" border="0" /><a href="#{postrow.displayed.U_POST_ID}">{L_POST_SUBJECT}: {postrow.displayed.POST_SUBJECT}</a> <img src="{postrow.displayed.MINI_TIME_IMG}" alt="" trow.displayed.U_POST_ID}">{L_POST_SUBJECT}: {postrow.displayed.POST_SUBJECT}</a> <img src="{postrow.displayed.MINI_TIME_IMG}" alt="" border="0" />{postrow.displayed.POST_DATE}</span></td>
Cordialement.
Invité- Invité
Re: Liens de sujets & hameçonnage
Merci pour votre intervention.
Pour la première aide, cela ne marche pas car je n'ai que {catrow.forumrow.LAST_POST}, j'ai essayé en cliquant sur la petite icône mais rebelote je tombe sur le premier message.
Pour la seconde, je n'ai pas encore essayé. Je préfère résoudre la première avant de m'attaquer à la seconde.
En vous remerciant,
Pour la première aide, cela ne marche pas car je n'ai que {catrow.forumrow.LAST_POST}, j'ai essayé en cliquant sur la petite icône mais rebelote je tombe sur le premier message.
Pour la seconde, je n'ai pas encore essayé. Je préfère résoudre la première avant de m'attaquer à la seconde.
En vous remerciant,
Re: Liens de sujets & hameçonnage
Bonsoir,
Dans ce cas remplacez:
Cordialement.
Dans ce cas remplacez:
- Code:
{catrow.forumrow.LAST_POST}
- Code:
<span>
<!-- BEGIN switch_topic_title -->
<a href="{catrow.forumrow.U_LATEST_TOPIC_POST}" title="{catrow.forumrow.LATEST_TOPIC_TITLE}">{catrow.forumrow.LATEST_TOPIC_NAME}</a>
<!-- END switch_topic_title -->
{catrow.forumrow.USER_LAST_POST}
</span>
Cordialement.
Invité- Invité
Re: Liens de sujets & hameçonnage
Ça ne marche toujours pas, je me permet de vous donner mon template :
- Spoiler:
- Code:
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td valign="bottom">
<!-- BEGIN switch_user_logged_in -->
<span class="gensmall">{LAST_VISIT_DATE}<br />
{CURRENT_TIME}<br />
</span>
<!-- END switch_user_logged_in -->
<div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a><span class="supprimg">{NAV_CAT_DESC}</span></div>
</td>
<td class="gensmall" align="right" valign="bottom">
<!-- BEGIN switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
<a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
</td>
</tr>
</table>
<!-- BEGIN catrow -->
<!-- BEGIN tablehead -->
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="styletable"><div class="upperleft"><div class="upperright"><div class="lowerleft"><div class="lowerright"> <table class="transtable" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle" style="background-color: transparent; background-image: none;"> {catrow.tablehead.L_FORUM} </th></tr></table></div></div></div></div></td></tr></table><table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td align="center">
<!-- END tablehead -->
<!-- BEGIN forumrow -->
<table cellspacing="0" cellpadding="0" class="forumcell" border="0" style="display: inline-table;"><tr><td style="padding: 3px;"><div class="backcorner2" style="background-image: url('{catrow.forumrow.FORUM_FOLDER_IMG}');"><div class="upperleft"><div class="upperright"><div class="lowerleft"><div class="lowerright"> <table class="transtable" width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td class="transtable" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
<h{catrow.forumrow.LEVEL} class="hierarchy">
<span class="forumlink">
<a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
</span>
</h{catrow.forumrow.LEVEL}>
<span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
<span class="genmed">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span>
<hr />
<i><span class="gensmall">{catrow.forumrow.POSTS} Messages dans {catrow.forumrow.TOPICS} Sujets</span></i><hr /><span class="gensmall">{catrow.forumrow.LAST_POST}</span>
</td>
</tr></table></div></div></div></div></div></td></tr></table>
<!-- END forumrow -->
<!-- BEGIN tablefoot -->
</td></tr></table><div style="width: 100%; height: 15px;"></div>
<!-- END tablefoot -->
<!-- END catrow -->
Re: Liens de sujets & hameçonnage
Merci.
Sur mon forum test, lorsque je clique sur le titre du sujet sur l'index, j'arrive sur le dernier message posté avec ce template:
Cordialement.
Sur mon forum test, lorsque je clique sur le titre du sujet sur l'index, j'arrive sur le dernier message posté avec ce template:
- Spoiler:
- Code:
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td valign="bottom">
<!-- BEGIN switch_user_logged_in -->
<span class="gensmall">{LAST_VISIT_DATE}<br />
{CURRENT_TIME}<br />
</span>
<!-- END switch_user_logged_in -->
<div class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a><span class="supprimg">{NAV_CAT_DESC}</span></div>
</td>
<td class="gensmall" align="right" valign="bottom">
<!-- BEGIN switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
<a class="gensmall" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a class="gensmall" href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
</td>
</tr>
</table>
<!-- BEGIN catrow -->
<!-- BEGIN tablehead -->
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="styletable"><div class="upperleft"><div class="upperright"><div class="lowerleft"><div class="lowerright"> <table class="transtable" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle" style="background-color: transparent; background-image: none;"> {catrow.tablehead.L_FORUM} </th></tr></table></div></div></div></div></td></tr></table><table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td align="center">
<!-- END tablehead -->
<!-- BEGIN forumrow -->
<table cellspacing="0" cellpadding="0" class="forumcell" border="0" style="display: inline-table;"><tr><td style="padding: 3px;"><div class="backcorner2" style="background-image: url('{catrow.forumrow.FORUM_FOLDER_IMG}');"><div class="upperleft"><div class="upperright"><div class="lowerleft"><div class="lowerright"> <table class="transtable" width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td class="transtable" colspan="{catrow.forumrow.INC_SPAN}" valign="top" width="100%" height="50">
<h{catrow.forumrow.LEVEL} class="hierarchy">
<span class="forumlink">
<a class="forumlink" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
</span>
</h{catrow.forumrow.LEVEL}>
<span class="genmed">{catrow.forumrow.FORUM_DESC}</span>
<span class="genmed">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span>
<hr />
<i><span class="gensmall">{catrow.forumrow.POSTS} Messages dans {catrow.forumrow.TOPICS} Sujets</span></i><hr /><span class="gensmall"><span>
<!-- BEGIN switch_topic_title -->
<a href="{catrow.forumrow.U_LATEST_TOPIC_POST}" title="{catrow.forumrow.LATEST_TOPIC_TITLE}">{catrow.forumrow.LATEST_TOPIC_NAME}</a><br />
<!-- END switch_topic_title -->
{catrow.forumrow.USER_LAST_POST}
</span></span>
</td>
</tr></table></div></div></div></div></div></td></tr></table>
<!-- END forumrow -->
<!-- BEGIN tablefoot -->
</td></tr></table><div style="width: 100%; height: 15px;"></div>
<!-- END tablefoot -->
<!-- END catrow -->
- Spoiler:
Cordialement.
Invité- Invité
Re: Liens de sujets & hameçonnage
Oui c'est bien ça.Nous parlons bien de ce titre?
Le nouveau template ne fonctionne toujours pas malgré le faite que j'ai vidé le cache, cela ne viendrait il pas d'un autre template comme l'index body ?
En vous remerciant,
Re: Liens de sujets & hameçonnage
Effectivement, il est plus que probable que le soucis se situe ailleurs. Si vous avez beaucoup de templates modifiés, il va falloir que vous les testiez un à un pour savoir d'où vient le problème. Pour cela sauvegardez vos modifications (dans un fichier texte par exemple) puis supprimez le template modifié. SIi rien ne change vous pourrez le remettre en place.
Cordialement.
Cordialement.
Invité- Invité
Re: Liens de sujets & hameçonnage
J'ai trouvé le template fautif c'est le template "viewtopic_body" mais à savoir ou est l'erreur ?
Le voici le voila :
En vous remerciant,
Le voici le voila :
- Spoiler:
- Code:
<script type="text/javascript">
//<![CDATA[
var multiquote_img_off = '{JS_MULTIQUOTE_IMG_OFF}';
var multiquote_img_on = '{JS_MULTIQUOTE_IMG_ON}';
//]]>
</script>
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td align="left" valign="middle" nowrap="nowrap">
<span class="nav">
<!-- BEGIN switch_user_authpost -->
<a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}one" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a>
<!-- END switch_user_authpost -->
<!-- BEGIN switch_user_authreply -->
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" id="i_reply" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
<!-- END switch_user_authreply -->
</span>
</td>
<td class="nav" valign="middle" width="100%"><span class="nav"><span class="supprimg"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC_SECOND}</span></span></td>
<!-- BEGIN insert_plus_menu -->
<td align="right" valign="bottom" nowrap="nowrap" width="100%">
<span class="gensmall bold">
<script type="text/javascript">
//<![CDATA[
insert_plus_menu('f{FORUM_ID}&t={TOPIC_ID}','{JS_SESSION_ID}', {JS_AUTH_FAVOURITES});
//]]>
</script>
</span>
</td>
<!-- END insert_plus_menu -->
</tr>
</table>
<table class="forumline" width="95%" align="center" border="0" cellspacing="1" cellpadding="0">
<tr >
<span class="page" style="width:auto; padding-top:0px;">{PAGINATION}</span>
<th class="thRight" nowrap="nowrap" align="center"> <span style="font-family: Comic Sans MS;">> </span> <span style="margin-left: 1px;">{TOPIC_TITLE}</span></th>
{POLL_DISPLAY}
</tr></table>
<!-- BEGIN postrow --><div class="backcorner3"><div class="upperleft3"><div class="upperright3"><div class="lowerleft3"><div class="lowerright3"><table class="transtable" width="100%" border="0" cellspacing="1" cellpadding="0">
<!-- BEGIN displayed -->
<tr class="post">
<td class="{postrow.displayed.ROW_CLASS}"{postrow.displayed.THANK_BGCOLOR} valign="top" width="60" style="padding-right: 5px;"><div style="text-align: center;">
<div onmouseout="this.firstChild.value=(this.firstChild.value=='Voir le profil')?'Masquer le profil':'Voir le profil';this.lastChild.style.display=(this.firstChild.value=='Voir le profil')?'none':'block';"
onmouseover="this.firstChild.value=(this.firstChild.value=='Masquer le profil')?'Voir le profil':'Masquer le profil';this.lastChild.style.display=(this.firstChild.value=='Masquer le profil')?'block':'none';">
<span class="postdetails poster-avatar">{postrow.displayed.POSTER_AVATAR}</span>
<div style="display: none; text-align: left;"><div style="padding-top: 0px;"><div style='position:absolute;' class="profilpophover">
<span class="postdetails poster-profile">
<table border="0" cellpadding="2" cellspacing="0" width="auto">
<tbody><tr>
<td>{postrow.displayed.POSTER_AVATAR} </td><td>
<a name="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong></span>
<span class="postdetails poster-profile"> {postrow.displayed.POSTER_RANK}<br>
<!-- BEGIN profile_field -->
{postrow.displayed.profile_field.LABEL} {postrow.displayed.profile_field.CONTENT} {postrow.displayed.profile_field.SEPARATOR}
<!-- END profile_field -->
{postrow.displayed.PROFILE_IMG} {postrow.displayed.PM_IMG} {postrow.displayed.EMAIL_IMG} {postrow.displayed.WWW_IMG} {postrow.displayed.AIM_IMG} {postrow.displayed.YIM_IMG} {postrow.displayed.MSN_IMG} {postrow.displayed.SKYPE_IMG}</td></tr></table>
</span></div></div></div></div>
<span class="postdetails poster-profile"><center><font size="1"><table border=0 cellspacing=0 cellpadding=0 class="offlinebutton" style="margin-bottom: 4px;"><tr><td>{postrow.displayed.ONLINE_IMG}</td></tr></table>
</font></center></span><br />
<img src="http://2img.net/i/fa/vide.gif" alt="" style="width: 80px; height: 1px;" />
</td>
<td class="{postrow.displayed.ROW_CLASS}" {postrow.displayed.THANK_BGCOLOR} valign="top" width="100%" height="20px" style="padding-left: 5px;">
<table width="100%" height="20px" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><span class="postdetails">Message de <a name="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong> <img src="{postrow.displayed.MINI_TIME_IMG}" alt="" border="0" />{postrow.displayed.POST_DATE}</span></td>
<td align="right" valign="top" nowrap="nowrap" class="post-options">
{postrow.displayed.THANK_IMG} {postrow.displayed.MULTIQUOTE_IMG} {postrow.displayed.QUOTE_IMG} {postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}
</td>
</tr>
<tr>
<td colspan="2" class="hr">
<hr />
</td>
</tr>
<tr>
<td colspan="2">
<!-- BEGIN switch_vote_active -->
<div class="vote gensmall">
<!-- BEGIN switch_vote -->
<div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a></div>
<!-- END switch_vote -->
<!-- BEGIN switch_bar -->
<div class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
<!-- BEGIN switch_vote_plus -->
<div class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;"></div>
<!-- END switch_vote_plus -->
<!-- BEGIN switch_vote_minus -->
<div class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;"></div>
<!-- END switch_vote_minus -->
</div>
<!-- END switch_bar -->
<!-- BEGIN switch_no_bar -->
<div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">----</div>
<!-- END switch_no_bar -->
<!-- BEGIN switch_vote -->
<div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a></div>
<!-- END switch_vote -->
</div>
<!-- END switch_vote_active -->
<div class="postbody">
<!-- google_ad_section_start -->
{postrow.displayed.MESSAGE}
<!-- google_ad_section_end -->
<div class="signature_div">
{postrow.displayed.SIGNATURE}
</div>
</div>
<span class="gensmall">{postrow.displayed.EDITED_MESSAGE}</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="transtable" height="3" align="center" valign="middle" width="150"></td>
<td class="transtable" height="3" valign="bottom" nowrap="nowrap" width="100%" height="5">
</td>
</tr>
</table></div></div></div></div></div>
<!-- BEGIN first_post_br -->
<br />
<!-- END first_post_br -->
<!-- END displayed -->
<!-- BEGIN hidden -->
<tr>
<td class="postdetails {postrow.hidden.ROW_CLASS}" colspan="2" align="center">{postrow.hidden.MESSAGE}</td>
</tr>
<!-- END hidden -->
<div class="spacer" style="text-align: center; color: White;"><font size="1"></font></div>
<!-- END postrow -->
<!-- BEGIN no_post -->
<div class="upperleft3"><div class="upperright3"><div class="lowerleft3"><div class="lowerright3"><table class="transtable" width="100%" border="0" cellspacing="1" cellpadding="0"><tr align="center">
<td class="row1" colspan="2" height="28">
<span class="genmed">{no_post.L_NO_POST}</span>
</td>
</tr></table></div></div></div></div><br />
<!-- END no_post -->
<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0"><tr align="right">
<td class="catRight" colspan="2" height="26">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="91%"></td>
<td align="right" nowrap="nowrap" width="9%"><a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a> <a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a> <a href="#top">{L_BACK_TO_TOP}</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table class="forumline noprint" width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td class="row2" valign="top" {COLSPAN_PAGINATION} width="150"><span class="gensmall">{PAGE_NUMBER}</span></td>
<!-- BEGIN topicpagination -->
<td class="row1" align="right" valign="top"><span class="gensmall">{PAGINATION}</span></td>
<!-- END topicpagination -->
</tr>
<!-- BEGIN switch_user_logged_in -->
<!-- BEGIN watchtopic -->
<tr>
<td class="row2" colspan="2" align="right" valign="top"><span class="gensmall">{S_WATCH_TOPIC}</span></td>
</tr>
<!-- END watchtopic -->
<!-- END switch_user_logged_in -->
<tr>
<td class="row2" colspan="2" align="center" style="padding:0px">
<!-- BEGIN switch_user_logged_in -->
<a name="quickreply"></a>
{QUICK_REPLY_FORM}<br />
<!-- END switch_user_logged_in -->
</td>
</tr>
<tr>
<td style="margin:0; padding: 0;" colspan="2">
<table border="0" cellpadding="0" width="100%" cellspacing="0" id="info_open" style="display:''">
<tbody>
<!-- BEGIN show_permissions -->
<tr>
<td class="row2" valign="top" width="25%"><span class="gensmall">{L_TABS_PERMISSIONS}</span></td>
<td class="row1" valign="top" width="75%"><span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
<!-- END show_permissions -->
<tr>
<td class="catBottom" colspan="2" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" width="100%"><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC_SECOND}</span></td>
<!-- BEGIN show_permissions -->
<td align="right" valign="middle"><span class="gensmall"><a href="javascript:ShowHideLayer('info_open','info_close');"><img src="{TABS_LESS_IMG}" alt="-" align="middle" border="0" /></a></span></td>
<!-- END show_permissions -->
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="margin:0; padding: 0;" colspan="2">
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="info_close" style="display:none;">
<tbody>
<tr>
<td class="catBottom" colspan="2" height="28">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" width="100%"><span class="nav"><a class="nav" href="{U_INDEX}">{L_INDEX}</a>{NAV_SEP}<a class="nav" href="{U_ALBUM}">{L_ALBUM}</a>{NAV_CAT_DESC_SECOND}</span></td>
<td align="right" valign="middle"><span class="gensmall"><a href="javascript:ShowHideLayer('info_open','info_close');"><img src="{TABS_MORE_IMG}" alt="+" align="middle" border="0" /></a></span></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<form action="{S_JUMPBOX_ACTION}" method="get" name="jumpbox" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td align="left" valign="middle" nowrap="nowrap" {WIDTH_GALLERY}>
<span class="nav">
<!-- BEGIN switch_user_authpost -->
<a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}Newtopic" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a>
<!-- END switch_user_authpost -->
<!-- BEGIN switch_user_authreply -->
<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" align="middle" border="0" /></a>
<!-- END switch_user_authreply -->
</span>
</td>
<!-- BEGIN viewtopic_bottom -->
<td align="right" nowrap="nowrap"><span class="gensmall">{L_JUMP_TO}: {S_JUMPBOX_SELECT} <input class="liteoption" type="submit" value="{L_GO}" /></span></td>
<!-- END viewtopic_bottom -->
<!-- BEGIN moderation_panel -->
<td align="center">
<span class="gensmall">{moderation_panel.U_YOUR_PERSONAL_MODERATE}</span>
</td>
<td align="center" width="250">
<span class="gensmall"> </span>
</td>
<!-- END moderation_panel -->
</tr>
</table>
</form>
<!-- BEGIN viewtopic_bottom -->
<table class="noprint" width="100%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td colspan="2" align="left" valign="top" nowrap="nowrap"><br />{S_TOPIC_ADMIN}<br />
<form name="action" method="get" action="{S_FORM_MOD_ACTION}">
<input type="hidden" name="t" value="{TOPIC_ID}" />
<input type="hidden" name="sid" value="{S_SID}" />
<span class="gen">{L_MOD_TOOLS}<br />{S_SELECT_MOD} <input class="liteoption" type="submit" value="{L_GO}" /></span>
</form>
</td>
</tr>
</table>
<!-- END viewtopic_bottom -->
<!-- BEGIN switch_image_resize -->
<script type="text/javascript">
//<![CDATA[
$(function(){
$('.postbody img').not('.signature_div img').css('display','none');
});
$(window).load(function(){
$('.postbody img')
.not('div.signature_div img')
.each(function(){
if ( ( $(this).width() > {switch_image_resize.IMG_RESIZE_WIDTH} && {switch_image_resize.IMG_RESIZE_WIDTH} != 0 ) || ( $(this).height() > {switch_image_resize.IMG_RESIZE_HEIGHT} && {switch_image_resize.IMG_RESIZE_HEIGHT} != 0 ) ) {
$(this)
.before(document.createElement('div'))
.prev()
.click(function(){
return false;
})
.addClass('resizebox gensmall clearfix')
.append(document.createElement('div'))
.children()
.addClass('resize_border clearfix')
.append(document.createElement('div'))
.children()
.addClass('resize_content clearfix')
.append(document.createElement('a'))
.children()
.addClass('enlarge')
.attr('href', '#')
.text('{switch_image_resize.L_IMAGE_ENLARGE}')
.focus(function(){
$(this).blur();
})
.click(function(){
$(this).parent().parent().parent().next().css('display','none').attr('resizeWidth', $(this).parent().parent().parent().next().width()).width('');
$(this).parent().parent().parent().next().width($(this).parent().parent().parent().next().width() > ($('html').attr('dir') != 'rtl' ? $(this).closest('td').width() - $(this).parent().parent().parent().offset().left + $(this).closest('td').offset().left : $(this).parent().parent().parent().width() + $(this).parent().parent().parent().offset().left - $(this).closest('td').offset().left) ? $('html').attr('dir') != 'rtl' ? $(this).closest('td').width() - $(this).parent().parent().parent().offset().left + $(this).closest('td').offset().left : $(this).parent().parent().parent().width() + $(this).parent().parent().parent().offset().left - $(this).closest('td').offset().left : '').css('display','inline');
$(this).css('display','none').next('a.resize').css('display','inline-block');
$(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
return false;
})
.parent()
.append(document.createElement('a'))
.children()
.next()
.addClass('resize')
.attr('href','#')
.text('{switch_image_resize.L_CLICK_TO_RESIZE}')
.click(function(){
$(this).parent().parent().parent().next().width(parseInt($(this).parent().parent().parent().next().attr('resizeWidth'))).removeAttr('resizeWidth');
$(this).css('display','none').prev('a.enlarge').css('display','inline-block');
$(this).parent().parent().parent().width('').width($(this).parent().parent().parent().next().width());
return false;
})
.parent()
.append(document.createElement('div'))
.children('a.resize')
.next()
.addClass('resize_filler')
.text(' ')
.parent()
.append(document.createElement('a'))
.children('div.resize_filler')
.next()
.addClass('fullsize')
.attr('href','#')
.click(function(){
window.open('/viewimage.forum?u=' + encodeURIComponent($(this).parent().parent().parent().next().attr('src')));
return false;
})
.attr('target', '_blank')
.text('{switch_image_resize.L_CLICK_TO_SEE_FULLSIZE}');
if ($(this).width() > ($('html').attr('dir') != 'rtl' ? $(this).closest('td').width() - $(this).prev().offset().left + $(this).closest('td').offset().left : $(this).prev().width() + $(this).prev().offset().left - $(this).closest('td').offset().left)){
$(this).prev().find('a.fullsize').attr('href','/viewimage.forum?u=' + encodeURIComponent($(this).attr('src'))).css('display', 'inline-block');
}
$(this).width($(this).width() * ( ( {switch_image_resize.IMG_RESIZE_WIDTH} != 0 && ( {switch_image_resize.IMG_RESIZE_HEIGHT} == 0 || $(this).width() / $(this).height() > {switch_image_resize.IMG_RESIZE_WIDTH} / {switch_image_resize.IMG_RESIZE_HEIGHT} ) )
? {switch_image_resize.IMG_RESIZE_WIDTH} / $(this).width()
: {switch_image_resize.IMG_RESIZE_HEIGHT} / $(this).height() ) )
.css('display','inline')
.prev().width($(this).width());
}
})
.css('display','inline');
});
//]]>
</script>
<!-- END switch_image_resize -->
En vous remerciant,
Re: Liens de sujets & hameçonnage
Moi aussi si je clique sur le sujet, il ne s'ouvrira pas au dernier message.
J'ai remédier à ceci, en créant une image plus grande pour cliquer sur le dernier message.
J'ai remédier à ceci, en créant une image plus grande pour cliquer sur le dernier message.
Re: Liens de sujets & hameçonnage
Bonjour,
Merci fanch56 mais le souci n'était pas là.
J'ai trouvé la solution, c'était bien dans le template incriminé "view topic body", il me manquait juste une class "name".
Sinon, j'ai testé ce que tu m'as proposé pour l'hameçonnage c'est pas mal. Mais j'aimerai remplacer le titre par une numérotation avec premier message #1, deuxième message #2, etc.
En vous remerciant,
Merci fanch56 mais le souci n'était pas là.
J'ai trouvé la solution, c'était bien dans le template incriminé "view topic body", il me manquait juste une class "name".
Sinon, j'ai testé ce que tu m'as proposé pour l'hameçonnage c'est pas mal. Mais j'aimerai remplacer le titre par une numérotation avec premier message #1, deuxième message #2, etc.
En vous remerciant,
Re: Liens de sujets & hameçonnage
Je m'excuse pour le double poste mais j'en profite pour upper mon mon sujet.
En faisant du bricolage, je suis arrivé a obtenir ce que je souhaite pour l'hameçonnage.
Il faut le placer juste après l'IP :
Puis dans le CSS pour modifier .numeromessage {}.
En vous remerciant,
En faisant du bricolage, je suis arrivé a obtenir ce que je souhaite pour l'hameçonnage.
Il faut le placer juste après l'IP :
- Code:
<a href="#{postrow.displayed.U_POST_ID}"><span class="numeromessage">#{postrow.displayed.COUNT_POSTS}</span></a>
Puis dans le CSS pour modifier .numeromessage {}.
En vous remerciant,
Sujets similaires
» Liens vers les sujets
» Couleur des liens en bas des sujets
» Couleur des liens dans les sujets
» Couleur des liens dans les sujets
» Affichage des liens lors de nouveau sujets
» Couleur des liens en bas des sujets
» Couleur des liens dans les sujets
» Couleur des liens dans les sujets
» Affichage des liens lors de nouveau sujets
Forum gratuit : Le forum des forums actifs :: Entraide & Support... :: Problème avec un script, un code :: Archives des problèmes avec un code
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum