vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Miscellaneous Hacks - Edit Note At Bottom (https://vborg.vbsupport.ru/showthread.php?t=204703)

BigJohnny 02-08-2009 10:00 PM

Edit Note At Bottom
 
This is one I came up with on my old board, I dug it up and converted it to 3.7 for my new board. I don't think this has been posted before, if it has I apologize.

For those who don't like the edit note being where it is, or wanting to use this with the Signature Forced to Bottom mod to move the edit note below as well, this is for you.

in template postbit_legacy:

FIND AND REMOVE:
Code:

                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">
                                <hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
                                <em>
                                        <if condition="$show['postedithistory']">
                                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>.
                                        <else />
                                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                        </if>
                                        <if condition="$post['edit_reason']">
                                                $vbphrase[reason]: $post[edit_reason]
                                        </if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>

FIND:
Code:

<!-- controls -->
BELOW ADD:
Code:

                <!-- EDIT POST CODE BEGIN -->
                <table cellspacing="0" cellpadding="0" valign="center" align="left" height ="15">
                        <tr>
                                <td width="430" valign="bottom" align="left">
                                        <!-- edit note -->
                                        <if condition="$show['postedited']">
                                                <div class="smallfont" style="float: bottom;">
                                                        <hr style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
                                                        <em>
                                                                <if condition="$show['postedithistory']">
                                                                        <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>.
                                                                <else />
                                                                        <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                                                </if>
                                                                <if condition="$post['edit_reason']">
                                                                        $vbphrase[reason]: $post[edit_reason]
                                                                </if>
                                                        </em>
                                                </div>
                                </if>
                                        <!-- / edit note -->
                                </td>
                        </tr>
                </table>
                <!-- EDIT POST CODE END -->

That should be it. I haven't fully tested this, but I haven't seen any problems yet. If you don't like the line above it, simply remove
Code:

                                                        <hr style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
Remember to click MARK AS INSTALLED if you use this mod. I often go back and change or update things, tweak stuff, or improve the look. If you don't mark it as installed you won't be notified of updates.

lazydesis 02-09-2009 01:49 AM

nice hack .. looks better now .. thanks.

BigJohnny 08-12-2010 01:16 AM

working for 3.8.3 also


All times are GMT. The time now is 10:06 AM.

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.00945 seconds
  • Memory Usage 1,731KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete