[REQ] Few more mods

too many :P
CLock:
In Navbar template

Find
Code:
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>

add after
Code:
<!-- clock hack-->
<div id="clock">Loading...</div>
<script type="text/javascript">
function refrClock()
{
var d=new Date();
var s=d.getSeconds();
var m=d.getMinutes();
var h=d.getHours();
var day=d.getDay();
var date=d.getDate();
var month=d.getMonth();
var year=d.getFullYear();
var days=new Array("Sun","Mon","Tue","Wed","Thurs","Fri","Sat");
var months=new Array("1","2","3","4","5","6","7","8","9","10","11","12");
var am_pm;
if (s<10) {s="0" + s}
if (m<10) {m="0" + m}
if (h>12) {h-=12;am_pm = "pm"}
else {am_pm="am"}
if (h<10) {h="0" + h}
document.getElementById("clock").innerHTML=months[month] + "-" + date + "-" + year + " [" + days[day] + "] [" + h + ":" + m + ":" + s + "] " + am_pm;
setTimeout("refrClock()",1000);
}
refrClock();
</script>
<!-- / clock hack -->

Add icons:
So here is the tutorial.

Open template forumhome_forumbit_level2_post => For Forumhome only!

Find:

HTML:
            <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>

Add before:

HTML:
<! -- forum icon by www.vuiveclub.net -->
      <if condition="THIS_SCRIPT === 'index'">
<table>
    <tr>
  <td>
<img border="0" width="60" height="60" src="images/$forumid.gif"/>
        </td></if>
        <td>
<! -- / end forum icon -->
</if>

Then Find:

HTML:
    <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>

Add before too:

HTML:
<! -- end forum icon by www.vuiveclub.net -->
      <if condition="THIS_SCRIPT === 'index'">
</tr>
</table>    
</td>
</if>
<!-- / end forum icon -->

Save and Done!

Make sure that these 2 conditionals are the same!

For Forumdisplay too - edit template forumhome_forumbit_level1_post

Find:
HTML:
            <td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
            <td>
            <div>

Add below:
HTML:
<!-- forum icon -->
<table> <tr> <td> <img src="images/$forumid.gif" border="0" width="60" height="60" align="left" />
<!-- / forum icon -->

Find:
HTML:
        </td>
        <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>

Add before:
HTML:
        <!-- end forum icon --> </td></tr></table><!-- / end forum icon -->

Now You have to Upload your Icons to images/$forumid.gif
(Change images/ to your own folder)


If you wanna Show Icons for Forumhome, Forumdisplay and sub-Forumdisplay - Delete conditionals
Show Icons on Forumhome only - Leave these conditions default
Show Icons on Forumdisplay only - Do not Edit forumhome_forumbit_level2_post, edit forumhome_forumbit_level1_post only.

Display Userid:
This puts the userid under the user's username in the memberlist also a quick way to edit a member in the ACP.

Statistics
File Uploads: 0
Template Changes: 1
Products to Install: 0

INSTALLATION:

TEMPLATE CHANGES

Code:
memberlist_resultsbit
FIND:
Code:
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>


REPLACE IT WITH:
Code:
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>

<br>
<!-- USERID -->
<if condition="$bbuserinfo[usergroupid]==6">
<a class="smallfont" href="admincp/user.php?do=edit&u=$userinfo[userid]">$vbphrase[userid]:$userinfo[userid]</a>
</if>
<!-- END USERID -->

rest ill upload later :)
 
Here Are More :)
This is a small modification that will add a button to your postbit. Photobucket and Imageshack are very popular sites that provides image hosting. This modification will provide a button that will link to the Photobucket and/or Imageshack album of the user.

1. Make a Profile Field
Profile field type = Single-line text box
Title: Photobucket Album
Description: Type your photobucket album url here. Please note that your album must be public.

**To use for ImageShack Use this**

Profile field type = Single-line text box
Title: Imageshack Profile
Description: Type your Imageshack url here. Please note that your profile must be public.

You can leave the rest to default settings.

2. Template Changes in: postbit_legacy

Find:

Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]

Add in after:

Code:
<if condition="$post[fieldX] != ''"><a href="$post[fieldX]" alt="View my Photobucket" target="_blank">
<img src="images/misc/pb.gif" border="0"></a>
</if>


*Note down the number of the field! Example: field16. You need to replace the X in the next code with the number!*



**To use for ImageShack Use this**


Find:

Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]

Add in after:

Code:
<if condition="$post[fieldX] != ''"><a href="$post[fieldX]" alt="View my Imageshack" target="_blank">
<img src="images/misc/is.gif" border="0"></a>
</if>

other:
What Does this Hack Do? : This will provide you a easy-share.com mini uploading toolbar in quick reply!!


*In your template SHOWTHREAD, find:

Code:
    <fieldset class="fieldset" style="margin:$stylevar[formspacer]px 0px 0px 0px">
                        <legend>$vbphrase[options]</legend>
                        <div>
                            <if condition="$bbuserinfo['signature']">
                                <div style="float:$stylevar[align=right]"><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />$vbphrase[show_your_signature]</label></div>
                            </if>
                            <label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label>
                        </div>
                    </fieldset>

*Add under it:

Code:
<!-- anywares easyshare -->
<fieldset class="fieldset">
<legend>Easy Share Upload</legend>
<div> <label for="Easy Share Upload">
<table cellpadding="0" cellspacing="$stylevar[forumspacer]" border="0">
<tr>
<td>
<script type="text/javascript">
<!--
e_bgcolor = "#FFFFFF";
e_text = "#000000";
e_type = "605x55";
e_lang = "en";
//-->
</script>
<script type="text/javascript" src="http://www.easy-share.com/upload.js"></script> </td> </tr> </table>
</lable>
</div>
</fieldset>
<!-- end anywares easyshare -->

greetings:
Depending on which postbit you use, here's instructions for both.

In your postbit template, find this code:

PHP:
<div style="margin-top: 10px" align="$stylevar[align=right]">

Beneath it, paste the following:

PHP:
<if condition="$_REQUEST['do'] == 'showpm'"><div style="float:left;line-height:32px;height;32px;vertical-align:middle;"><img src="./images/smilies/santa-1-icon.gif" alt="Happy Holidays, Forum Members!" align="left" style="margin:0 7px 0 0;"/><b><font color="red">Happy Holidays,</font></b> <b><font color="green">$bbuserinfo[username]!</font></b></div></if>

SAVE!

In your postbit_legacy template, find this code:

PHP:
<td class="alt1" align="$stylevar[align=right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 1px solid #f8f5e9">
	</if>

Beneath it, paste the following code:

PHP:
<if condition="$_REQUEST['do'] == 'showpm'"><div style="float:left;line-height:32px;height;32px;vertical-align:middle;"><img src="./images/smilies/santa-1-icon.gif" alt="Happy Holidays, Forum Members!" align="left" style="margin:0 7px 0 0;"/><b><font color="red">Happy Holidays,</font></b> <b><font color="green">$bbuserinfo[username]!</font></b></div></if>

SAVE!

Be sure to upload your graphic to the smilies folder, I got my Santa smiley from this site.

Glow Border:
Open up postbit or Postbit_Legacy

Search for
Code:
<if condition="$show['avatar']">
After that code copy in
Code:
<table style="filter:glow (color=#[color=Red]ff0000[/color] strength=[color=Red]4[/color])"><div class="smallfont">

Look for
Code:
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>

Add this code after
Code:
</table>

Advanced Date and time:
Description: Will Add A More Advanced Time And Date. Pretty Simple

1 New Phrase
1 Template Edit


Install:


Find In Footer:

Code:
$vbphrase[all_times_are_gmt_x_time_now_is_y]

Replace With:
Code:
$vbphrase[fh_date]

Adding a background image into the reply boxes:
Admin CP -> Styles & Templates -> Style Manager -> Main CSS (in the menu)
Edit these two sections

- WYSIWYG Editor

- Input Fields

Add the line below in the Standard CSS Attributes side, in the "background" field

Code:
#[color=#15a018]2D2D2D[/color] url([color=#15a018]images/yourimagehere[/color]) repeat-x center fixed

Replace the "green" text with your color code & the path/filename of your background image.

example:
images/replyboxbg.gif

Then

add this into the Extra CSS Attributes box:

Code:
background-repeat: no-repeat;
background-position: center center;


Profile Enchancement Layout:
How easy is it to install?

Very easy, 1-3 minutes

Files to upload: 0
Template Edits: 1
Products to import: 0
Additional Files: 0


Screenshots?

Attached :)

Notes

Please be fair with me, this is my first modification, so for this reason it's not very advanced and many people would be able to do it. If anyone has any changes to my code, please let me know.

Even with this mentioned, please do not redistribute this file as your own work, if you really want to redistribute this, please give credit to me :)

Edits:


In template MEMBERINFO

Find:

Code:
<if condition="$show['avatar']">
<img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">
$vbphrase[xs_avatar]</phrase>" 
border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
<else />

Delete this.

Next, find:

Code:
<if condition="$userinfo['usertitle']">$userinfo[usertitle]</if>

Delete this.

Find:

Code:
<phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase>
</if>
$template_hook[memberinfo_groups]

Delete this.

Find:

Code:
<if condition="$show['membergroups']">
<dl id="membergroups_list" class="smallfont">
$membergroupbits
</dl>
<else />

Add below:

Code:
<b>Groups:</b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase>
</if>
$template_hook[memberinfo_groups]	
<br><br>
<b>Member Type:</b>&nbsp <if condition="$userinfo['usertitle']">$userinfo[usertitle]</if>	
<br><br>
<b>Avatar:</b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp			
<if condition="$show['avatar']">
<img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">
$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor];
border-top:none" />
<else />
				
$userinfo[username] has no avatar defined, define one 
<a href="profile.php?do=editavatar">here</a>
</if>
 
next time request less hacks in one thread that contain alot of text please makes life easier for the persons who provide the hacks ;)
 
lol yup make it easier but i had 2 free peroids in school so i thought burn some time :P sorry if i had made any mistakes i just cpoied uploaded whgat i could ;)
 
Back
Top