Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

Rekomendowane odpowiedzi

  • Manager
Opublikowano

Tutorial (artykuł) jest rozwinięciem artykułu Tryb wyświetlania VB......

Opis:

Mod przekształca pole tematów i postów tak by wyglądało jak to widzane na forach typu VB.

Podstawowa wersja 1.0.8 - Zobacz

Tekst:
CODE-BOX
<!--Begin Msg Number {$post['pid']}-->

<table class='ipbtable' cellspacing="1">

<tr>

<td valign="middle" class="row2" width="1%">

<a name="entry{$post['pid']}"></a>

<if="$author['id']">

<div id="post-member-{$post['pid']}" class='popmenubutton-new-out'>

<span class="{$post['name_css']}">{$author['_pp_online_image']}{$author['_members_display_name']}</span>

</div>

<!-- member menu -->

<div class='popupmenu-new' id='post-member-{$post['pid']}_menu' style='display:none;width:230px'>

<div class='popupmenu-item-last'>

<if="$author['members_display_name_short'] != $author['members_display_name']">

<div class='popupmenu-item'><strong>{$author['members_display_name']}</strong></div>

</if>

<div style='float:right'>

<div class='pp-image-thumb-wrap'>

<img src='{$author['pp_thumb_photo']}' width='{$author['pp_thumb_width']}' height='{$author['pp_thumb_height']}' alt='' />

</div>

<if="$this->ipsclass->vars['pp_allow_member_rate']">

<div style='margin-top:5px;margin-left:6px;'>

<img src="{$this->ipsclass->vars['img_url']}/rating_{$author['_pp_rating_real']}_mini.gif" alt='{$this->ipsclass->lang['rating_prefix']}: {$author['_pp_rating_real']}' style='vertical-align:middle' border='0' />

</div>

</if>

</div>

<div class='popupmenu-item'>

{$author['_pp_gender_image']} <a href="{$this->ipsclass->base_url}showuser={$author['id']}">{$this->ipsclass->lang['dd_view_profile']}</a>

</div>

<if="$this->ipsclass->member['id']">

<div class='popupmenu-item'>

<if="in_array( $author['id'], array_keys( $this->ipsclass->member['_cache']['friends'] ) )">

<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_remove_small.png' alt='' border='0' /> <a href="#" onclick='friends_pop("&do=remove&member_id={$author['id']}&md5check={$this->ipsclass->md5_check}"); return false'>{$this->ipsclass->lang['dd_remove_friend']}</a>

<else />

<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_add_small.png' alt='' border='0' /> <a href="#" onclick='friends_pop("&do=add&member_id={$author['id']}&md5check={$this->ipsclass->md5_check}"); return false'>{$this->ipsclass->lang['dd_add_friend']}</a>

</if>

</div>

<div class='popupmenu-item'>

<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/send_pm_small.png' alt='' border='0' /> <a href="{$this->ipsclass->base_url}act=Msg&CODE=4&MID={$author['id']}">{$this->ipsclass->lang['dd_send_pm']}</a>

</div>

<div class='popupmenu-item'>

<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&CODE=gettopicsuser&mid={$author['id']}'>{$this->ipsclass->lang['dd_find_topics']}</a>

</div>

</if>

<div class='popupmenu-item-last'>

<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&CODE=getalluser&mid={$author['id']}'>{$this->ipsclass->lang['dd_find_posts']}</a>

</div>

</div>

</div>

<script type="text/javascript">

ipsmenu.register( "post-member-{$post['pid']}", '', 'popmenubutton-new', 'popmenubutton-new-out' );

</script>

<else />

<span class="{$post['name_css']}">{$author['_members_display_name']}</span>

</if> <RIGHT>

<!-- POSTED DATE DIV -->

{$post['post_icon']} <img src='{$this->ipsclass->vars['img_url']}/to_post_off.gif' alt='{$this->ipsclass->lang['to_post_alt']}' border='0' style='padding-bottom:2px' /> {$post['post_date']}</span> | <span class="postdetails">{$post['ip_address']} {$this->ipsclass->lang['posted_on']}

<a title="{$this->ipsclass->lang['tt_link']}" href="#" onclick="link_to_post({$post['pid']}); return false;">#{$post['post_count']}</a>

<if="$this->ipsclass->member['is_mod']">

| <a href="#" title="{$this->ipsclass->lang['click_for_mod']}" onclick="topic_toggle_pid('{$post['pid']}'); return false;">{$post['pid_start_image']}</a>

</if>

</span>

<table cellspacing="0" id="gfooter">

<tr>

<td width="45%">

{$author['avatar']}

{$author['title']}

</td>

<td width="45%" align="right" nowrap="nowrap">

{$author['member_rank_img']} <BR>

{$author['member_group']}<BR>

{$author['member_posts']} <BR>

{$author['member_joined']} <BR>

{$author['member_number']}

</td>

</tr>

</table>

</if>

</CENTER>

</span>

</td>

</if>

</CENTER>

</span>

</div>

</td></tr>

<tr>

<td width="100%" valign="top" class="{$post['post_css']}" id='post-main-{$post['pid']}'>

<!-- THE POST {$post['pid']} -->

<div class="postcolor" id='post-{$post['pid']}'>

{$post['post']}

{$post['edit_by']}

<if="$post['post_edit_reason'] != ''">

<div class='post-edit-reason'>

{$this->ipsclass->lang['reason_for_edit']}: {$post['post_edit_reason']}

</div>

</if>

<!--IBF.ATTACHMENT_{$post['pid']}-->

</div>

{$post['signature']}

<!-- THE POST -->

</td>

</tr>

<tr>

<td class="formbuttonrow" nowrap="nowrap">

<!-- PM / EMAIL / WWW / MSGR -->

<div style="float: left;" class="btn">

<a href="java script:scroll(0,0);"><{P_UP}></a>{$post['report_link']}

</div>

<!-- REPORT / UP -->

<div align="right" class="btn">

{$post['delete_button']}{$post['edit_button']}<a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&CODE=02&f={$this->ipsclass->input['f']}&t={$this->ipsclass->input['t']}&qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a>

</div>

</div>

</td>

<!-- REPORT / UP -->

</td>

</tr><tr>

<td class="catend" colspan="2">

<!-- no content -->

</td>

</tr>

</table>

<if="$post['edit_button']!=''">

<script type='text/javascript'>

//<![CDATA[

if ( ajax_loaded && use_enhanced_js )

{

menu_build_menu( 'edit-but-{$post['pid']}',

new Array( img_item + " <a title='{$this->ipsclass->lang['edit_full_desc']}' href='{$this->ipsclass->base_url}act=post&do=edit_post&f={$post['forum_id']}&t={$post['topic_id']}&p={$post['pid']}&st={$this->ipsclass->input['st']}'>{$this->ipsclass->lang['edit_full_title']}</a>",

img_item + " <a href='#' title='{$this->ipsclass->lang['edit_quick_desc']}' onclick='return ajax_prep_for_edit({$post['pid']}, event);'>{$this->ipsclass->lang['edit_quick_title']}</a>" ) );

}

//]]>

</script>

</if>

Wersja 1.0.8 z wyśrodkowaną rangą użytkownika bądź poziomem. - Zobacz

Tekst:
CODE-BOX
<!--Begin Msg Number {$post['pid']}-->

<table class='ipbtable' cellspacing="1">

<tr>

<td valign="middle" class="row2" width="1%">

<a name="entry{$post['pid']}"></a>

<if="$author['id']">

<div id="post-member-{$post['pid']}" class='popmenubutton-new-out'>

<span class="{$post['name_css']}">{$author['_pp_online_image']}{$author['_members_display_name']}</span>

</div>

<!-- member menu -->

<div class='popupmenu-new' id='post-member-{$post['pid']}_menu' style='display:none;width:230px'>

<div class='popupmenu-item-last'>

<if="$author['members_display_name_short'] != $author['members_display_name']">

<div class='popupmenu-item'><strong>{$author['members_display_name']}</strong></div>

</if>

<div style='float:right'>

<div class='pp-image-thumb-wrap'>

<img src='{$author['pp_thumb_photo']}' width='{$author['pp_thumb_width']}' height='{$author['pp_thumb_height']}' alt='' />

</div>

<if="$this->ipsclass->vars['pp_allow_member_rate']">

<div style='margin-top:5px;margin-left:6px;'>

<img src="{$this->ipsclass->vars['img_url']}/rating_{$author['_pp_rating_real']}_mini.gif" alt='{$this->ipsclass->lang['rating_prefix']}: {$author['_pp_rating_real']}' style='vertical-align:middle' border='0' />

</div>

</if>

</div>

<div class='popupmenu-item'>

{$author['_pp_gender_image']} <a href="{$this->ipsclass->base_url}showuser={$author['id']}">{$this->ipsclass->lang['dd_view_profile']}</a>

</div>

<if="$this->ipsclass->member['id']">

<div class='popupmenu-item'>

<if="in_array( $author['id'], array_keys( $this->ipsclass->member['_cache']['friends'] ) )">

<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_remove_small.png' alt='' border='0' /> <a href="#" onclick='friends_pop("&do=remove&member_id={$author['id']}&md5check={$this->ipsclass->md5_check}"); return false'>{$this->ipsclass->lang['dd_remove_friend']}</a>

<else />

<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/friend_add_small.png' alt='' border='0' /> <a href="#" onclick='friends_pop("&do=add&member_id={$author['id']}&md5check={$this->ipsclass->md5_check}"); return false'>{$this->ipsclass->lang['dd_add_friend']}</a>

</if>

</div>

<div class='popupmenu-item'>

<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/send_pm_small.png' alt='' border='0' /> <a href="{$this->ipsclass->base_url}act=Msg&CODE=4&MID={$author['id']}">{$this->ipsclass->lang['dd_send_pm']}</a>

</div>

<div class='popupmenu-item'>

<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&CODE=gettopicsuser&mid={$author['id']}'>{$this->ipsclass->lang['dd_find_topics']}</a>

</div>

</if>

<div class='popupmenu-item-last'>

<img src='{$this->ipsclass->vars['img_url']}/folder_profile_portal/find_posts.png' alt='' border='0' /> <a href='{$this->ipsclass->base_url}act=Search&CODE=getalluser&mid={$author['id']}'>{$this->ipsclass->lang['dd_find_posts']}</a>

</div>

</div>

</div>

<script type="text/javascript">

ipsmenu.register( "post-member-{$post['pid']}", '', 'popmenubutton-new', 'popmenubutton-new-out' );

</script>

<else />

<span class="{$post['name_css']}">{$author['_members_display_name']}</span>

</if> <RIGHT>

<!-- POSTED DATE DIV -->

{$post['post_icon']} <img src='{$this->ipsclass->vars['img_url']}/to_post_off.gif' alt='{$this->ipsclass->lang['to_post_alt']}' border='0' style='padding-bottom:2px' /> {$post['post_date']}</span> | <span class="postdetails">{$post['ip_address']} {$this->ipsclass->lang['posted_on']}

<a title="{$this->ipsclass->lang['tt_link']}" href="#" onclick="link_to_post({$post['pid']}); return false;">#{$post['post_count']}</a>

<if="$this->ipsclass->member['is_mod']">

| <a href="#" title="{$this->ipsclass->lang['click_for_mod']}" onclick="topic_toggle_pid('{$post['pid']}'); return false;">{$post['pid_start_image']}</a>

</if>

</span>

<table cellspacing="0" id="gfooter">

<tr>

<td width="45%">

{$author['avatar']}

{$author['title']}

</td>

<td width="10%" align="center" nowrap="nowrap">

{$author['member_rank_img']}

</td>

<td width="45%" align="right" nowrap="nowrap">

{$author['member_group']}<BR>

{$author['member_posts']} <BR>

{$author['member_joined']} <BR>

{$author['member_number']}

</td>

</tr>

</table>

</if>

</CENTER>

</span>

</td>

</if>

</CENTER>

</span>

</div>

</td></tr>

<tr>

<td width="100%" valign="top" class="{$post['post_css']}" id='post-main-{$post['pid']}'>

<!-- THE POST {$post['pid']} -->

<div class="postcolor" id='post-{$post['pid']}'>

{$post['post']}

{$post['edit_by']}

<if="$post['post_edit_reason'] != ''">

<div class='post-edit-reason'>

{$this->ipsclass->lang['reason_for_edit']}: {$post['post_edit_reason']}

</div>

</if>

<!--IBF.ATTACHMENT_{$post['pid']}-->

</div>

{$post['signature']}

<!-- THE POST -->

</td>

</tr>

<tr>

<td class="formbuttonrow" nowrap="nowrap">

<!-- PM / EMAIL / WWW / MSGR -->

<div style="float: left;" class="btn">

<a href="java script:scroll(0,0);"><{P_UP}></a>{$post['report_link']}

</div>

<!-- REPORT / UP -->

<div align="right" class="btn">

{$post['delete_button']}{$post['edit_button']}<a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&CODE=02&f={$this->ipsclass->input['f']}&t={$this->ipsclass->input['t']}&qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a>

</div>

</div>

</td>

<!-- REPORT / UP -->

</td>

</tr><tr>

<td class="catend" colspan="2">

<!-- no content -->

</td>

</tr>

</table>

<if="$post['edit_button']!=''">

<script type='text/javascript'>

//<![CDATA[

if ( ajax_loaded && use_enhanced_js )

{

menu_build_menu( 'edit-but-{$post['pid']}',

new Array( img_item + " <a title='{$this->ipsclass->lang['edit_full_desc']}' href='{$this->ipsclass->base_url}act=post&do=edit_post&f={$post['forum_id']}&t={$post['topic_id']}&p={$post['pid']}&st={$this->ipsclass->input['st']}'>{$this->ipsclass->lang['edit_full_title']}</a>",

img_item + " <a href='#' title='{$this->ipsclass->lang['edit_quick_desc']}' onclick='return ajax_prep_for_edit({$post['pid']}, event);'>{$this->ipsclass->lang['edit_quick_title']}</a>" ) );

}

//]]>

</script>

</if>

Temat prac opisany jest na: http://forum.invisionize.pl/index.php?showtopic=1162. Znajdują się tam także starsze wersje tego moda.

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.