vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   First post on every page of thread. (https://vborg.vbsupport.ru/showthread.php?t=93706)

vBintense 02-22-2006 12:00 PM

Quote:

Originally Posted by katholic
If you look at this thread http://www.insimenator.net/showthread.php?t=478 you will notice the first post is formated differently than the rest of the posts. How can I fix it where they all display the same? I want them to all display as post 2 does.

I was unable to see your community , but if you mean you wish them all to look like legacy then just simply copy your legacy template into the firstpost template.

I hope that works for what your wishing to do.

katholic 02-22-2006 12:20 PM

Yeah I am updating right now so I kind of broke something lol.

Krose 03-03-2006 10:41 PM

installed!..thanx a lot!!..nice hack! :banana:

BeaLzeBuB 03-04-2006 09:22 PM

Thx its great, i installed it and i have edited for my own. i can see in att.

Code:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
        $spacer_open
        <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
        <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>       
</if>


<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead" colspan="4" $post[scrolltothis] align="center">
                <div class="normal" style="float:$stylevar[right]">
                        &nbsp;
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
                        <if condition="$show['inlinemod']">
                        <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
                        </if>
                </div>
               
                <div class="normal">
                        <!-- status icon and date -->
                                <a style="float:$stylevar[left]" name="post$post[postid]">
                                        <img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />&nbsp;
                                </a>
                                $post[firstnewinsert]
                        <!-- / status icon and date -->
                                <if condition="$show['messageicon']">
                                        <img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" />
                                </if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                </div>
        </td>
</tr>

<tr>
        <td class="alt2" rowspan="3" width="75" style="vertical-align:top;">
                <img class="inlineimg" src="images/firstpost.gif" alt="" border="0" />               
        </td>
        <td class="alt2">
                <table>
                        <tr>
                                <td>
                                          <strong>Son Giriş:</strong> $post[postdate]
                                </td>
                        </tr>
                        <tr>
                                <td>
                                        <if condition="$show['detailedtime']">
                                                <strong>Post Time :  </strong> $post[posttime]
                                        </if>
                                </td>
                        </tr>
                </table>
        </td>
        <td class="alt2"><br><center><if condition="$show['messageicon']">
                                        <img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" />
                                </if>
                                <if condition="$post['title']"><strong><font color="darkred" size="3">$post[title]</font></strong></if></center>
               
        </td>
        <td class="alt2" rowspan="3">
                <table>
                        <tr>
                                <td>
                                        <!-- user info -->
                                        <div id="postmenu_$post[postid]">
                                                <if condition="$show['profile']">
                                                        <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                                <else />
                                                        $post[musername]
                                                        </if>
                                                </div>
                                                <if condition="$post['usertitle']">
                                                        <div class="smallfont">
                                                                $post[usertitle]
                                                        </div>
                                                </if>
                                                <if condition="$post['rank']">
                                                        <div class="smallfont">
                                                                $post[rank]
                                                        </div>
                                                </if>
                                                <if condition="$show['avatar']">
                                                        <div class="smallfont">
                                                                <a href="member.php?$session[sessionurl]u=$post[userid]">
                                                                <img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                                        </div>
                                                </if>
                                                <!-- user info -->
                                        </td>
                                </tr>
                                                                       
                        </table>                               
        </td>
</tr>

<tr>
        <td class="alt1" style="vertical-align:top;">
                <div class="normal">
                        <!-- status icon and date -->
                                        $post[onlinestatus]
                                        $post[iplogged]<if condition="$show['reportlink']">
                        <a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow">
                                <img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="Report Bad Submition" border="0" />
                        </a>
                </if>
                </div>

        </td>
        <td class="alt1">
                <div class="normal">
                        <!-- status icon and date -->
                        <if condition="$show['reputationlink']">
                                <a href="#" onclick="reputation($post[postid]); return false;">
                                        <img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" />
                                </a>
                        </if>
                        <if condition="$show['reputation']">
                                <if condition="$show['reppower']">
                                        <a style="float:$stylevar[left]" name="~">$vbphrase[reppower]: $post[reppower]
                                </if>
                                        $post[reputationdisplay]&nbsp;</a>
                        </if>                               
                </div>
        </td>
</tr>





<tr>
        <td class="alt2">
                <if condition="$show['postedited']">
                        <strong>Konunun Son D?zenlenmesi:</strong> $post[edit_date],  $post[edit_time]
                <else />
                        <strong>Konunun Son D?zenlenmesi:</strong>&nbsp;Hi?
                </if>
        </td>
        <td class="alt2">
                <if condition="$thread['rating']">
                        <span style="float:$stylevar[center]">
                                <strong>Konuya Verilen Puan:</strong>
                                        <img alt="" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" title="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" />
                        </span>
                <else />
                        <strong>Konuya Verilen Puan:</strong>&nbsp;Yazık ya hi? puan vermemişsiniz adam o kadar emek vermiş
                </if>
        </td>
</tr>

<!-- / user info -->
<tr style="vertical-align: top">
        <td class="alt1" colspan="3" id="td_post_$post[postid]">
                <table width="100%">
                        <tr width="100%">
                                <td width="100%">
                                        <!-- message -->
                                        <div id="post_message_$post[postid]">$post[message]</div>
                                       
                                </td>
                        </tr>
                        <tr>
                                <td width="100%">
                                        <!-- attachments -->
                                        <if condition="$show['attachments']">
                                                <div style="padding:$stylevar[cellpadding]px">
                                               
                                                <if condition="$show['thumbnailattachment']">
                                                        <fieldset class="fieldset">
                                                                <legend>$vbphrase[attached_thumbnails]</legend>
                                                                <div style="padding:$stylevar[formspacer]px">
                                                                $post[thumbnailattachments]
                                                                </div>
                                                        </fieldset>
                                                </if>
                                       
                                                <if condition="$show['imageattachment']">
                                                        <fieldset class="fieldset">
                                                                <legend>$vbphrase[attached_images]</legend>
                                                                <div style="padding:$stylevar[formspacer]px">
                                                                $post[imageattachments]
                                                                </div>
                                                        </fieldset>
                                                </if>
                                               
                                                <if condition="$show['imageattachmentlink']">
                                                        <fieldset class="fieldset">
                                                                <legend>$vbphrase[attached_images]</legend>
                                                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                                                $post[imageattachmentlinks]
                                                                </table>
                                                                </fieldset>
                                                </if>
                                               
                                                <if condition="$show['moderatedattachment']">
                                                        <fieldset class="fieldset">
                                                                <legend>$vbphrase[attachments_pending_approval]</legend>
                                                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                                                $post[moderatedattachments]
                                                                </table>
                                                        </fieldset>               
                                                </if>
                                        </if>
                                        </div>
                                        <!-- / attachments -->
                                </td>
                        </tr>
                        <tr>
                                <td>
                                        <if condition="$show['attachments']">
                                                <!-- attachments -->                               
                                                <if condition="$show['otherattachment']">
                                                        <fieldset class="fieldset">
                                                                <legend>$vbphrase[attached_files]</legend>
                                                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                                                                $post[otherattachments]
                                                                        </table>
                                                        </fieldset>
                                                </if>
                                                <!-- / attachments -->
                                        </if>       
                                </td>
                        </tr>
                </table>
                                <!-- / message -->
        </td>
        <td class="alt1" align="center" width="250">
                <div align="left">
                        <fieldset style="border: 1px dashed #99CCFF; height: 380px;" ><legend>Konuyu A?anın Bilgileri:</legend>
                                <table>
                                        <tr>
                                                <td>
                                                        <div class="smallfont">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
                                                </td>
                                        </tr>
                                        <tr>
                                                <td>
                                                        <div class="smallfont">
                                                                <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                                                        </div>
                                                </td>
                                        </tr>
                                        <tr>
                                                <td>
                                                        <div class="smallfont">                                                       
                                                                <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                                        </div>
                                                </td>
                                        </tr>
                                        <tr>
                                                <td>
                                                        <div class="smallfont">                                                                                                       
                                                                <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                                                        <div>
                                                </td>
                                        </tr>
                                        <tr>
                                                <td>
                                                        <div class="smallfont">                                                                                                       
                                                                $vbphrase[posts]: $post[posts] <br><br><br><table align="center"><script type="text/javascript"><!--
google_ad_client = "pub-3975276571572787";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "880000";
google_color_bg = "FFFFFF";
google_color_link = "880000";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></table>
                                                        </div>
                                                </td>
                                        </tr>
                                </table>
                        </fieldset>
                </div>                       
        </td>
</tr>
                <!-- / attachments -->

        <!-- message, attachments, sig -->
       
<tr>
        <td class="alt2" colspan="4" align="left">
                <div class="normal" style="float:$stylevar[right]"> &nbsp; <if condition="$post['editlink']">
          <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
          </if> <if condition="$post['forwardlink']"> <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
          </if> <if condition="$post['replylink']"> <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif"
          alt="$vbphrase[reply_with_quote]" border="0" /></a> </if> <if condition="$show['quickreply'] AND !$show['threadedmode']">
          <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
          </if> <if condition="$show['moderated']"> <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
          </if> </div>
                       
        </td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>
        <if condition="$show['pmlink']">
                <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['emaillink']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['homepage']">
                <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
        </if>
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if>
        </table>
</div>
<!-- / post $post[postid] popup menu -->




<if condition="$show['spacer']">
        </div>
        $spacer_close
</if>
<!-- / post #$post[postid] -->

i translate to Turkish, if you like that, edit your own lang... thx again

blacklancer 03-15-2006 10:06 PM

ok...i installed this and made the template. i see the option to put the first post when i edit the forum, but nothing is showing up.... did i miss something?

does this work on 3.5.4??

MissKalunji 03-20-2006 04:20 AM

how does the "Last Update " work?

Logikos 03-20-2006 06:44 AM

Works fine in 3.5.4. I'm using this at my site, though I have changed the template around alot! http://www.vbhackers.com/forum/showthread.php?t=1412

ffevo 03-21-2006 09:03 PM

Ho wwould i even test this to see if it works? ho wdo i set something as the first post? when i upload the poroduct it seems to give me some sort of error, but redirects to quickly to let me see it.

D.Ilyin 04-04-2006 05:17 PM

Someone, please, give me suggestion's or tip's how to give permision to group, edit only first post of th tread (with this hack installed)

Tyegurl 04-11-2006 03:40 AM

anyone have template for vbadvance postbit?


All times are GMT. The time now is 02:45 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01495 seconds
  • Memory Usage 1,870KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete