DONT BUMP THREADS PLEASE BE PATIENT
UnC Stylish Profile Navbar
Does it make you twitch a little that the navbar doesnt match the user profile style? Well, it did me. So I created a template modification that allows the navbar to be included in the users profile css style.
Enjoy this simple template edit! Simple but powerful, that is.
****open template MEMBERINFO
Find
After add
Find
Delete it.
Find
Code:
<div id="usercss" class="floatcontainer">
After add
Save.
For Album pages
One at a time...
****open
template album_pictureview
template album_picturelist
template album_list.
Do the same edits all 3.
Find
After add
Find
delete it.
Find
After add
Save and your done.
DEMO
Color Code Chart
DIDNT ALLOW ME TO UPLOAD PHP FILE SO CHANGE THE ATTACHED COLORCODE.XML TO COLORCODE.PHP
Manually Edit: 1 - 2 mintues
File Edits: 0
File Added: 1
Template Edits: 1
Template Added: 1
Upload:
- colorcode.php to main forum directory.
- Create a new template titled Color Code and insert the contents.
Creat a new phrase:
- Insert into master language: Yes
- Phrase Type: Global
- Product: vBulletin
- Varname: user_color_code
- Text: Color Chart
Open User Control Panel Templates > UserCP Shell
- Search for:
Code:
<if condition="$show['customizelink']"> <tr><td class="$navclass[customize]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=customize">$vbphrase[customize_profile]</a></td></tr>
- Underneath Add This:
Code:
<tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="colorcode.php$session[sessionurl_q]">$vbphrase[user_color_code]</a></td></tr>
Save and that's it.
Profile Update - myspace/facebook layout
Installation instructions
1 - Install product
2 - Create profile fields - gender, country.
3 - Edit template: memberinfo_block_mainprofile
3a - Change references of field21 to gender field
3b - Change references of field2 to location field
3c - Change references of field 22 to country field
Additional (optional) instructions
4 - Create 3 categories (as shown in attached photo)
4a Set "blurbs" location in category to: Main Column, First Tab
4b Set the other 2 categories location to: Blocks Column, After Ministats
4c Set Display Order as shown in attached photo
5 - Create profile fields for these categories (as shown in attached photo). You can use your own ones for these. Use myspace or facebook to get the list of values for each field.
6 - Modify MEMBERINFO_new and memberinfo_css_new to suit.
PB Watermark Album images
What does it do:
-Adds a watermark to the bottom right of all images uploaded to users albums.
Planned changes:
1. Allow the url of the watermark image to be changed via admincp
2. Allow location of where the watermark image is placed to be changed via admincp
Installation Instructions:
1. Create or Use the watermark.png I attached, and upload it to your forum root before anything.
2. Edit the file forum_root/includes/functions_album.php and add these functions. I added them right below the Vbulletin Copyright notice.
Code:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////// -ALBUM WATERMARK MOD - image createfrom/saveto file functions-////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
function imagecreatefromfile($path)
{
$info = @getimagesize($path);
if(!$info)
{
return false;
}
$functions = array(
IMAGETYPE_GIF => 'imagecreatefromgif',
IMAGETYPE_JPEG => 'imagecreatefromjpeg',
IMAGETYPE_PNG => 'imagecreatefrompng',
IMAGETYPE_WBMP => 'imagecreatefromwbmp',
IMAGETYPE_XBM => 'imagecreatefromwxbm',
);
if(!$functions[$info[2]])
{
return false;
}
if(!function_exists($functions[$info[2]]))
{
return false;
}
return $functions[$info[2]]($path);
}
function imagesavetofile($image,$path)
{
$info = @getimagesize($path);
if(!$info)
{
return false;
}
$functions = array(
IMAGETYPE_GIF => 'imagegif',
IMAGETYPE_JPEG => 'imagejpeg',
IMAGETYPE_PNG => 'imagepng',
IMAGETYPE_WBMP => 'imagewbmp',
IMAGETYPE_XBM => 'imagewxbm',
);
if(!$functions[$info[2]])
{
return false;
}
if(!function_exists($functions[$info[2]]))
{
return false;
}
return $functions[$info[2]]($image,$path);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////// -ALBUM WATERMARK MOD - image createfrom/saveto file functions-////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
3. Import the plug-in attached