Request on 14/02/51

Signature forced to bottom (postbit_legacy)
Mod Information
Add A CommentEdit SettingsMark as Installed
Nominate for MOTMJump To CommentsThe Developer
About Developer Visit Web Site

Version: 1.00, by Sledgstone (Designer)
Developer Last Online: Feb 2008

--------------------------------------------------------------------------------
vB Version: 3.6.2 Rating: (21 votes - 4.48 average)
Released: 13 Oct 2006 Last Update: Never Installs: 237
Not Supported


This mod will force all user's signatures to the bottom of their post. This is helpful if you have custom fields displayed under your avatars. Only 3 code changes are required in the postbit_legacy template. It'll take you about one minute to install this.

I have attached a couple screenshots showing what this mod does. I also have enabled this on my forums and you can see an example there:

http://forums.ancientclan.com/



In postbit_legacy, find:

Code:
	<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
Change to:
Code:
	<td class="alt2" width="175" rowspan="2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
Then find:
Code:
		<if condition="$post['signature']">
		<!-- sig -->
			<div>
				__________________<br />
				$post[signature]
			</div>
		<!-- / sig -->
		</if>
Delete it.

Now find:
Code:
		<!-- / edit note -->
		</if>
	
	</td>
</tr>
Directly underneath add:
Code:
<tr>
<td class="alt1" valign="bottom" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">

		<if condition="$post['signature']">
		<!-- sig -->
			<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
			<div valign="bottom">
				$post[signature]
			</div>
		<!-- / sig -->
		</if>
		</td>
</tr>
 
Neater Code, Quote, HTML and PHP boxes

Time taken: 2 Minutes
Difficulty: Easy as pie
What it does: This modifies the look of the boxes when people you the bbcode for PHP, HTML, Code and Quote.

You can also use this for Vb 3.5.x too

Go to:

Style manager --> [Style you want to edit] --> Main CSS --> Additional CSS Definitions

Add:

Code:
/* ***** new code styles ***** */
.bbccode{
background: #FFF;
border: 1px solid #FFCC66;
border-top: 4px solid #FFCC66;
padding: 5px;
color: #996600;
font-size: 12px;
}
.bbccodetitle{
font-weight: bold;
font-size: 10px;
border: 0px;
border-bottom: 1px dashed #CC6600;
color: #CC6600;
padding-bottom: 3px;
margin-bottom: 5px;
}
/* ***** new html styles ***** */
.bbchtml{
background: #FFF;
border: 1px solid #c3ffa8;
border-top: 4px solid #c3ffa8;
padding: 5px;
color: #7fa66e;
font-size: 12px;
}
.bbchtmltitle{
font-weight: bold;
font-size: 10px;
border: 0px;
border-bottom: 1px dashed #82cc00;
color: #82cc00;
padding-bottom: 3px;
margin-bottom: 5px;
}
/* ***** new php styles ***** */
.bbcphp{
background: #FFF;
border: 1px solid #ffa8a8;
border-top: 4px solid #ffa8a8;
padding: 5px;
color: #990000;
font-size: 12px;
}
.bbcphptitle{
font-weight: bold;
font-size: 10px;
border: 0px;
border-bottom: 1px dashed #cc0000;
color: #cc0000;
padding-bottom: 3px;
margin-bottom: 5px;
}
/* ***** new quote styles ***** */
.bbcquote{
background: #FFF;
border: 1px solid #C2CFDF;
border-top: 4px solid #C2CFDF;
color: #333366;
padding: 5px;
font-size: 9px;
}
.bbcquotetitle{
font-weight: bold;
font-size: 10px;
border: 0px;
border-bottom: 1px dashed #003366;
color: #003366;
padding-bottom: 3px;
margin-bottom: 5px;
}

Now go to:

Style manager --> [Style you want to edit] --> Edit Templates --> BB Code Layout Templates --> bbcode_code

Replace everything with:

HTML Code:
<div class="bbccode">
<div class="bbccodetitle">$vbphrase
Code:
:[color=#000080]</div>[/color]
 [color=#000080]<pre style=[COLOR=#0000FF]"margin:0px; padding:$stylevar[cellpadding]px; width:$stylevar[codeblockwidth]; overflow:auto"[/color]>[/COLOR][color=#000080]<div dir=[COLOR=#0000FF]"ltr"[/color]>[/COLOR]$code[color=#000080]</div>[/color][color=#000080]</pre>[/color]
[color=#000080]</div>[/color]
[color=#000080]<br />[/color] 
Now go to:
 
Style manager --> [Style you want to edit] --> Edit Templates --> BB Code Layout Templates --> bbcode_html
 
Replace everything with:
 
 	HTML Code:
 	[color=#000080]<div class=[COLOR=#0000FF]"bbchtml"[/color]>[/COLOR]
 [color=#000080]<div class=[COLOR=#0000FF]"bbchtmltitle"[/color]>[/COLOR]$vbphrase[html_code]:[color=#000080]</div>[/color]
 [color=#000080]<pre style=[COLOR=#0000FF]"margin:0px; padding:$stylevar[cellpadding]px; width:$stylevar[codeblockwidth]; overflow:auto"[/color]>[/COLOR][color=#000080]<div dir=[COLOR=#0000FF]"ltr"[/color]>[/COLOR]$code[color=#000080]</div>[/color][color=#000080]</pre>[/color]
[color=#000080]</div>[/color]
[color=#000080]<br />[/color] 
Now go to:
 
Style manager --> [Style you want to edit] --> Edit Templates --> BB Code Layout Templates --> bbcode_php
 
Replace everything with:
 
 	HTML Code:
 	[color=#000080]<div class=[COLOR=#0000FF]"bbcphp"[/color]>[/COLOR]
 [color=#000080]<div class=[COLOR=#0000FF]"bbcphptitle"[/color]>[/COLOR]$vbphrase[php_code]:[color=#000080]</div>[/color]
 [color=#000080]<pre style=[COLOR=#0000FF]"margin:0px; padding:$stylevar[cellpadding]px; width:$stylevar[codeblockwidth]; overflow:auto"[/color]>[/COLOR][color=#000080]<div dir=[COLOR=#0000FF]"ltr"[/color]>[/COLOR]
  [color=#000080]<code style=[COLOR=#0000FF]"white-space:nowrap"[/color]>[/COLOR]
   [i][color=#000080]<!-- php buffer start -->[/color][/i]$code[i][color=#000080]<!-- php buffer end -->[/color][/i]
  [color=#000080]</code>[/color]
[color=#000080]</div>[/color][color=#000080]</pre>[/color]
[color=#000080]</div>[/color]
[color=#000080]<br />[/color] 
Now go to:
 
Style manager --> [Style you want to edit] --> Edit Templates --> BB Code Layout Templates --> bbcode_quote
 
Replace everything with:
 
 	HTML Code:
 	[color=#000080]<div class=[COLOR=#0000FF]"bbcquote"[/color]>[/COLOR]
 [color=#FF0000]<if condition=[COLOR=#0000FF]"$show['username']"[/color]>[/COLOR]
  [color=#000080]<div class=[COLOR=#0000FF]"bbcquotetitle"[/color]>[/COLOR]$vbphrase[quote]: [color=#000080]<phrase 1=[COLOR=#0000FF]"$username"[/color]>[/COLOR]$vbphrase[originally_posted_by_x][color=#000080]</phrase>[/color]     [color=#FF0000]<if condition=[COLOR=#0000FF]"$postid"[/color]>[/COLOR][color=#008000]<a href=[COLOR=#0000FF]"showthread.php?$session[sessionurl]p=$postid#post$postid"[/color] rel=[color=#0000FF]"nofollow"[/color]>[/COLOR][color=#800080]<img class=[COLOR=#0000FF]"inlineimg"[/color] src=[color=#0000FF]"$stylevar[imgdir_button]/viewpost.gif"[/color] border=[color=#0000FF]"0"[/color] alt=[color=#0000FF]"$vbphrase[view_post]"[/color] />[/COLOR][color=#008000]</a>[/color][color=#FF0000]</if>[/color][color=#000080]</div>[/color]
  [color=#000080]<div>[/color]$message[color=#000080]</div>[/color]
 [color=#FF0000]<else />[/color]
  [color=#000080]<div class=[COLOR=#0000FF]"bbcquotetitle"[/color]>[/COLOR]$vbphrase[quote]:[color=#000080]</div>[/color]
  [color=#000080]<div>[/color]$message[color=#000080]</div>[/color]
 [color=#FF0000]</if>[/color]
[color=#000080]</div>[/color]
[color=#000080]<br />[/color] 
[SIZE=1][SIZE=2]Et Voila![/SIZE][/SIZE][/quote][SIZE=1][/SIZE]
 
Neater Code, Quote, HTML and PHP boxes

Time taken:
2 Minutes
Difficulty: Easy as pie
What it does: This modifies the look of the boxes when people you the bbcode for PHP, HTML, Code and Quote.

You can also use this for Vb 3.5.x too

Go to:

Style manager --> [Style you want to edit] --> Main CSS --> Additional CSS Definitions

Add:

Code:
     /* ***** new code styles ***** */
.bbccode{
 background: #FFF;
 border: 1px solid #FFCC66;
 border-top: 4px solid #FFCC66;
 padding: 5px;
 color: #996600;
 font-size: 12px;
}
.bbccodetitle{
 font-weight: bold;
 font-size: 10px;
 border: 0px;
 border-bottom: 1px dashed #CC6600;
 color: #CC6600;
 padding-bottom: 3px;
 margin-bottom: 5px;
}
/* ***** new html styles ***** */
.bbchtml{
 background: #FFF;
 border: 1px solid #c3ffa8;
 border-top: 4px solid #c3ffa8;
 padding: 5px;
 color: #7fa66e;
 font-size: 12px;
}
.bbchtmltitle{
 font-weight: bold;
 font-size: 10px;
 border: 0px;
 border-bottom: 1px dashed #82cc00;
 color: #82cc00;
 padding-bottom: 3px;
 margin-bottom: 5px;
}
/* ***** new php styles ***** */
.bbcphp{
 background: #FFF;
 border: 1px solid #ffa8a8;
 border-top: 4px solid #ffa8a8;
 padding: 5px;
 color: #990000;
 font-size: 12px;
}
.bbcphptitle{
 font-weight: bold;
 font-size: 10px;
 border: 0px;
 border-bottom: 1px dashed #cc0000;
 color: #cc0000;
 padding-bottom: 3px;
 margin-bottom: 5px;
}
/* ***** new quote styles ***** */
.bbcquote{
 background: #FFF;
 border: 1px solid #C2CFDF;
 border-top: 4px solid #C2CFDF;
 color: #333366;
 padding: 5px;
 font-size: 9px;
}
.bbcquotetitle{
 font-weight: bold;
 font-size: 10px;
 border: 0px;
 border-bottom: 1px dashed #003366;
 color: #003366;
 padding-bottom: 3px;
 margin-bottom: 5px;
}
Now go to:

Style manager --> [Style you want to edit] --> Edit Templates --> BB Code Layout Templates --> bbcode_code

Replace everything with:

HTML:
   <div class="bbccode">
 <div class="bbccodetitle">$vbphrase[code]:</div>
 <pre style="margin:0px; padding:$stylevar[cellpadding]px; width:$stylevar[codeblockwidth]; overflow:auto"><div dir="ltr">$code</div></pre>
</div>
<br />
Now go to:

Style manager --> [Style you want to edit] --> Edit Templates --> BB Code Layout Templates --> bbcode_html

Replace everything with:

HTML:
     <div class="bbchtml">
 <div class="bbchtmltitle">$vbphrase[html_code]:</div>
 <pre style="margin:0px; padding:$stylevar[cellpadding]px; width:$stylevar[codeblockwidth]; overflow:auto"><div dir="ltr">$code</div></pre>
</div>
<br />
Now go to:

Style manager --> [Style you want to edit] --> Edit Templates --> BB Code Layout Templates --> bbcode_php

Replace everything with:

HTML:
     <div class="bbcphp">
 <div class="bbcphptitle">$vbphrase[php_code]:</div>
 <pre style="margin:0px; padding:$stylevar[cellpadding]px; width:$stylevar[codeblockwidth]; overflow:auto"><div dir="ltr">
  <code style="white-space:nowrap">
   <!-- php buffer start -->$code<!-- php buffer end -->
  </code>
</div></pre>
</div>
<br />
Now go to:

Style manager --> [Style you want to edit] --> Edit Templates --> BB Code Layout Templates --> bbcode_quote

Replace everything with:


HTML:
      <div class="bbcquote">
 <if condition="$show['username']">
  <div class="bbcquotetitle">$vbphrase[quote]: <phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase>     <if condition="$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></if></div>
  <div>$message</div>
 <else />
  <div class="bbcquotetitle">$vbphrase[quote]:</div>
  <div>$message</div>
 </if>
</div>
<br />
Et Voila!
 
Preferred Name (Display Name)

This minor template edit will enable your users to have a "Preferred Name" instead of their username showing on their posts and navbar. Users would still log in using their username and password just that their preferred name would show up instead of their username.

This will not change the displayed name in the "Who's online" box.

This would be a good protection against cases where an admin from another site steals passwords. Meaning they try to log in with the password of a username they recognise. But in the end, it isn't really the right username. Regardless .. this is a feature that would be useful to some members.

Step 1.

Go into your Admin CP
User Profile Fields
Add New Profile Field
Single Line Text Box

Name: Preferred Name
Description: What would you like to be known as on the site? you will still use your username to log in.
Required: Yes, Always
Private Field: No
Field Searchable: No
Show On Member List: No

Leave everything else the same.

Make a note of the user field number that is assigned to this field (for this example, we will use Field5)

Step 2.

In Styles & Templates

Open Navbar (Under Navigation Templates)

Search For:


Code:
$bbuserinfo[username]
Replace With:


Code:
$bbuserinfo[fieldX]
Where X is the field number from step 1.

Save.

Open up Postbit / Postbit Legacy (Depending on which one you use.

Search For:


Code:
$post[musername]
Replace With:


Code:
$post[fieldX]
Where X is the field number from step 1.

Save.

Step 3.

Click Language & Phrases.
Search For Phrase.
"Thank you for logging "
Click Edit.

Replace with:

Code:
     Thank you for logging in, $bbuserinfo[fieldX] .
Where X is the field number from step 1.

Done. No more template edits.
 
Better Quote Box (just like on vbulletin.org)

Add this to your Additional CSS:


PHP:
.quote { 
    margin:15px 10px; 
    background: url(images/misc/q.gif) 0 0 no-repeat; 
    padding-left:25px} 
blockquote.bq { 
    font: italic 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; 
    border-left:3px solid #ccc;  
    margin:0px; 
    padding:0 5px}



then replace templates bbcode_quote and blog_bbcode_quotewith this code:



PHP:
<div style="margin:3px; margin-top:5px; <if condition="$show['iewidthfix']">width: 100%;</if>"> 
    <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%"> 
    <tr> 
        <td><div class="quote" style="margin-bottom:2px"> 
            <if condition="$show['username']"> 
                <div class="smallfont" style="margin-bottom:2px"> 
                    <phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase> 
                    <if condition="$postid"><a href="showthread.php?$session[sessionurl]p=$postid#post$postid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" alt="$vbphrase[view_post]" /></a></if> 
                </div> 
                <blockquote class="bq" style="font-style:italic">$message</blockquote> 
            <else /> 
                <blockquote class="bq" style="font-style:italic">$message</blockquote> 
            </if> 
        </div></td> 
    </tr> 
    </table> 
</div>

Done!

If you want to have quote at the end then upload this image to misc folder and use this css instead.



PHP:
.quote { 
    margin:15px 10px; 
    background: url(images/misc/q.gif) 0 0 no-repeat; 
    padding-left:25px} 
blockquote.bq { 
    background: url(images/misc/q1.gif) no-repeat bottom right; 
    font: italic 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; 
    border-left:3px solid #ccc;  
    margin:0px; 
    padding:0 5px}
 
Add backround image to quickreply and reply boxes (using Inline CSS,Template Edits)

-----------------------------------------------------------------------------------------------------------------
This is a few simple template edits, I have seen this done via CSS but could not get it to work without the
image scrolling out of view, so I decided to play around and see if I could get it to work in a different manner. I was not able to find the original thread that I saw this in with the CSS edits etc, if I find it I will gladly give credit for the original idea to the author.

See Directions below.

The image should be uploaded to your images directory and be around 330 x 89 in size. I will upload the one I am using as a base.

**************note*************
the "background:#262626 in the below code needs to be change to fit your backround color, this is mine that I used,
make sure to change it for your style on your board.

**************end note*********
-----------------------------------------------------------------------------------------------------------------

Details:

Files to upload:
1 - to images folder

Template edits:

Editor Templates
editor_toolbar_off
editor_toolbar_on
Show Thread Templates
showthread_quickreply

---------------------------------------------------------

Instructions:

in editor_toolbar_off find:



PHP:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60"

After place:


PHP:
<!-- start brvhearts backround image --> 
style="background:#262626 url(images/imagename.gif); background-repeat: no-repeat; background-position: center center; 
<!-- end brvhearts backround image -->

---------------------------------------------------------

in editor_toolbar_on find (towards bottom of template):



PHP:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60"

After place:


PHP:
<!-- start brvhearts backround image --> 
style="background:#262626 url(forumpath/imagename.gif); background-repeat: no-repeat; background-position: center center; 
<!-- end brvhearts backround image -->

---------------------------------------------------------

in showthread_quickreply find (towards bottom of template):

There will be 2 instances of the below at the end of the template, you are looking for the second one



PHP:
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60"

After place:


PHP:
<!-- start brvhearts backround image --> 
style="background:#262626 url(forumpath/imagename.gif); background-repeat: no-repeat; background-position: center center; 
<!-- end brvhearts backround image -->
 
Translate a Thread in a Google Pop-Up Window

Installation
To add this to your forum requires two simple template edits to your SHOWTHREAD template. NOTE: In order for Google to translate your threads, it must be able to read your forum pages. So Guests must be able to read your forum in order for this mod to work.

Step 1.
To access your SHOWTHREAD template, go to Admin CP >>> Styles & Templates >>> Style Manager >>> "Expand one of your styles" >>> Showthread Templates >>> SHOWTHREAD and look for:



Code:
 <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("displaymodes"); </script></if>
 </td>
 </if>
Below it add:



Code:
        <td class="vbmenu_control" id="languagemenu" nowrap="nowrap">
          <a href="$show[nojs_link]#goto_languagemenu">Language</a>
        <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("languagemenu"); </script></if>
    </td>
Step 2. (For those that want more language options, there is an alternative to Step 2).
Next find:




Code:
<script type="text/javascript">
    <!--
    vB_AJAX_ThreadRate_Init('showthread_threadrate_form');
    var threadid = $threadinfo[threadid];
    //-->
    </script>
</if>
Below it add:



Code:
<!-- Language Translator Menu -->
 
<div class="vbmenu_popup" id="languagemenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">Translate</td></tr>
 
<!--Arabic-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Car&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/ae.gif" alt="Arabic" width="15" height="10" border="0" /> <span title="Arabic">Arabic</span></a></td></tr>
 
 
<!--Chinese (Simplified)-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.net%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Czh-CN&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/cn.gif" alt="Chinese (Simplified)" width="15" height="10" border="0" /> <span title="Chinese (Simplified)">Chinese (s)</span></a></td></tr>
 
<!--Chinese (Traditional)-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.net%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Czh-TW&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/tw.gif" alt="Chinese (Traditional)" width="15" height="10" border="0" /> <span title="Chinese (Traditional)">Chinese (t)</span></a></td></tr>
 
<!--English-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://www.google.com/language_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=700,height=500')">
<img src="$stylevar[imgdir_button]/us.gif" alt="English" width="15" height="10" border="0" /> <span title="English">English</span></a></td></tr>
 
<!--French-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Cfr&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/fr.gif" alt="French" width="15" height="10" border="0" /> <span title="French">Français</span></a></td></tr>
 
<!--German-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Cde&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/de.gif" alt="German" width="15" height="10" border="0" /> <span title="German">Deutsch</span></a></td></tr>
 
<!--Greek-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Cel&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/gr.gif" alt="Greek" width="15" height="10" border="0" /> <span title="Greek">Greek</span></a></td></tr>
 
<!--Italian-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Cit&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/it.gif" alt="Italian" width="15" height="10" border="0" /> <span title="Italian">Italiano</span></a></td></tr>
 
<!--Japanese-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Cja&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/jp.gif" alt="Japanese" width="15" height="10" border="0" /> <span title="Japanese">Japanese</span></a></td></tr>
 
<!--Korean-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Cko&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/kr.gif" alt="Korean" width="15" height="10" border="0" /> <span title="Korean">Korean</span></a></td></tr>
 
<!--Portuguese-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Cpt&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/pt.gif" alt="Portuguese" width="15" height="10" border="0" /> <span title="Portuguese">Portuguese</span></a></td></tr>
 
<!--Russian-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Cru&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/ru.gif" alt="Russian" width="15" height="10" border="0" /> <span title="Russian">Russian</span></a></td></tr>
 
<!--Spanish-->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Ces&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/es.gif" alt="Spanish" width="15" height="10" border="0" /> <span title="Spanish">Español</span></a></td></tr> 
 
<!-- Dutch -->
<tr><td class="vbmenu_option"><a href="#" onclick="Martinez1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Cnl&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/nl.gif" alt="Dutch" width="15" height="10" border="0" /> <span title="Dutch">Nederlands</span></a></td></tr>
</table></div>
 
 
<!-- / Language Translator Menu -->
Be sure to change YOURDOMAIN.NET to the absolute path of your forum, whether that be domain.com or domain.com/forums. You get the idea.

Step 3.
Next thing to do is upload the flag images (in attached zip file) to the buttons folder in your images directory. Make sure you upload them to the right one. For some forums, this might simply be images/buttons/. But if your using a custom skin, this might be in the folder holding your style (skin) images, such as [stylename]/buttons/. It will need to be in that directory for each skin you make the template changes to.

Support
I will try to support this as best I can. It's pretty self explanatory, but I'll still help where and when I'm capable. Bear in mind that I'm not a real coder and I may have made some mistakes with the mixing and matching I did. Also bear in mind that I can't get to the forum every day. But I will make sure to respond to every question, even if it's with an "I don't know".




If any of the real coders see anything they can do to make it better, by all means post it. Thanks, and yes, this is my first submission. Yes, I'm sure someone has already thought of it. But I didn't see one in my searches, and I like sharing.




NOTE
Here's a few things you need to aware of:

This mod uses the "Translate a Web Page" feature from Google's Language Tools page. Google doesn't automatically know what language your page is in. So the URLs are preformatted to translate from a specific language to a specific language. This mod doesn't guess that your pages are in Spanish and translate based on a click. The Spanish flag is premade to translate English to Spanish. The German flag is premade to translate English to German, etc. As such, the English link is merely there as a courtesy and only goes to the Google Language Tools page. If you want more Language options then that, see Post 2 of this thread.
 
T.I.P. (Triple Image PostBit)

Ok Now that all of thats out of the way lets get started!

Make A Back-Up Of Your Site Like Always.

Go to Admin cP
> Style Manager
>> Edit Templates
>>> PostBit Templates
>>>> PostBit_Legacy


Find:

HTML:
<tr valign="top">
	<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
			
			<div id="postmenu_$post[postid]">

Replace with:

HTML:
<tr valign="top">
	<td class="alt2" width="175" style="background-image: url($post[fieldXXXXXX]);" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
			
			<div id="postmenu_$post[postid]">

Find and delete:

HTML:
$template_hook[postbit_signature_start]
		
		<if condition="$post['signature']">
		<!-- sig -->
			<div>
				__________________<br />
				$post[signature]
			</div>
		<!-- / sig -->
		</if>
		
		$template_hook[postbit_signature_end]
		
		<if condition="$show['postedited']">
		<!-- edit note -->
			<div class="smallfont">			<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
				<em>
				<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
				<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
				</em>
			</div>
		<!-- / edit note -->
		</if>

Find:

HTML:
<tr>
	<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
		$post[onlinestatus]

Replace with:

HTML:
<tr>
	<td class="alt2" valign="bottom" style="background-image: url($post[fieldXXXXXXXXXX]);" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
		$post[onlinestatus]

Find:

HTML:
<if condition="$show['moderated']">
	<td class="alt2" align="$stylevar[align=right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
	<else />
	<td class="alt1" align="$stylevar[align=right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
	</if>

Replace with:

HTML:
<if condition="$show['moderated']">
	<td class="alt2" align="$stylevar[align=right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
	<else />
	<td class="alt1" align="$stylevar[align=right]"  style="background-image: url($post[fieldXXXXXX]);"style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
	</if>
		<!-- Signature -->
		<if condition="$post['signature']">
		
			
				<span class="smallfont">$post[signature]</span>
		</if>
		<!-- / End Signature -->

Find:

HTML:
<!-- message -->
		<div id="post_message_$post[postid]">$post[message]</div>
		<!-- / message -->

Add below:

HTML:
<if condition="$show['postedited']">
		<!-- edit note -->
			<div class="smallfont">			<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
				<em>
				<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
				<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
				</em>
			</div>
		<!-- / edit note -->
		</if>

Find:

HTML:
</div>
		<!-- / attachments -->
		</if>

Add below:

HTML:
$template_hook[postbit_signature_start]
		$template_hook[postbit_signature_end]

Save and close PostBit_Legacy



Go to User Profile Feilds Manger
> Add New User Profile Feild
>>


Tile: 2 Spot Post Area Background

Description: Here you can add a background image for your post area (where your avatar and signature are displayed) in posts. Just simply put in the address for your image for a cool looking post area of your choice. (Example: http://www.example.com/example.jpg)

Max length of allowed user input: 100
Field Length: 50
Profile Field Type: Single-Line Text Box
Field Required: NO
Field Editable by User: YES
Private Field: NO
Field Searchable on Members List: NO
Show on Members List: NO

SAVE



Go back to User Profile Manager
> Add New User Profile Feild
>>


Tile: Bottom Corner Post Area Background

Description: Here you can add a background image for your post area (where your signature and avatar are displayed in the corner) in posts. Just simply put in the address for your image for a cool looking post area of your choice. (Example: http://www.example.com/example.jpg)

Max length of allowed user input: 100
Field Length: 50
Profile Field Type: Single-Line Text Box
Field Required: NO
Field Editable by User: YES
Private Field: NO
Field Searchable on Members List: NO
Show on Members List: NO

SAVE



Go Back To Style Manger
> Edit Templates
>> PostBit Templates
>>> PostBit_Legacy



Find 2 Times:

HTML:
fieldXXXXXX
Replace With:

HTML:
The ID # For ( 2 Spot Post Area Background )

Then Find 1 Time:

HTML:
fieldXXXXXXXXXX
Replace With:

HTML:
The ID # For ( Bottom Corner Post Area Background )


Your Finnished!

Go to your User cP
> Edit Profile
>> Add your Image Links and enjoy your T.I.P.
 
Back
Top