Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MySpace Like Contact Table - Switchable By User + Custom Display Name Details »»
MySpace Like Contact Table - Switchable By User + Custom Display Name
Version: 1.00, by Conner85 Conner85 is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 04-11-2008 Last Update: Never Installs: 1
Template Edits
Re-useable Code Code Changes  
No support by the author.

I wrote this hack entirely by myself, but I give full permission to anyone to redistribute or claim as their own. I haven't seen anything like this on these forums, so I claim it as my own and giving all of you the joy to claim it as well! Until I find out otherwise. Maybe I just haven't had my eyes opened wide enough?

This hack optionally adds to the Myspace Profile Re-Write PRO! 1.0.0. It says it's only for version 3.5.4, but it works on my 3.6.9. I also have the vS-Interactive Profiles hack. I had no part in writing these two hacks. Therefore, I do not take any credit for either.

Install vS-Interactive Profiles before Myspace Profile Re-Write PRO! 1.0.0 if you do decide to install the two.

You can install this hack without installing the Myspace Profile Re-Write PRO! 1.0.0 and vS-Interactive Profiles, but you'll have to do some editing that is not described in this post. And those hacks are very useful if you want a MySpace type of setup. So you may want to look into adding both to make this work. vS-Interactive Profiles provides the Comment and Friends List alerts, while Myspace Profile Re-Write PRO! 1.0.0 provides a more realistic MySpace-like profile setup.

WHAT THIS HACK DOES

It allows you to have a MySpace-like contact table that is editable by the user. They can switch it out with whatever image they want. And it's actually a lot easier than editing it in CSS like MySpace. It also allows the user to have their own display name.

INSTALL

15-20 minutes - excluding the additional hacks.

2 template edits
2 new profile fields

Files to upload
1 default 350x150 contact table image of your choice. Size is editable, depending on the width you set your tables to.

This hack is assuming you've installed the hacks mentioned above.

1. Install the above hacks first: Myspace Profile Re-Write PRO! 1.0.0 and vS-Interactive Profiles. Ask for support with those hacks in those threads.

STEPS FOR CONTACT TABLE
1. Create an image thats 350x150 in Painshop Pro or PhotoShop. If you aren't very good with graphics, get someone to do it for you. Or download the attached contact table I have created for my site.

2. Once you have downloaded the image or created a new one, if you aren't very familiar with image mapping, go here and upload the image to find out where the mapping points are. Note: if you have chose to use my image, this step isn't necessary.

If you create your own, make sure you update all of the x y points in the script. There are two sets of the same script. One is the custom profile field script and the other is the default contact table script. Whatever you update the x and y points to, you'll have to update on both sets. If you are confused on how image mapping works, google it. There are TONS of tutorials on Google.

3. Upload to your /images directory.

4. Create a custom profile field and remember it. Example: field1.

Single-Line Text Box
Name: Contact Table Image
Description: Paste your contact table URL here.
Max length of allowed user input: I have mine set to 200. You never know how long their URL is going to be. So, just in case.
Field Editable by User: Yes

5. In the Contact Table code IN NOTEPAD! Don't replace the template code just yet.

FIND:

Code:
<if condition="$userinfo[field1]">
<img src ="$userinfo[field1]" width="350" height="150" alt="Contact <if condition="$userinfo[field2]">$userinfo[field2]<else />$userinfo[username]</if>"
usemap ="#contacttable" />
REPLACE the 1 with the field number of your Contact Table custom profile field for the contact table.

6. FIND:

Code:
<img src ="http://www.yoursite.com/forum/yourstyle/image/misc/contacttable.jpg" height="150" alt="Contact <if condition="$userinfo[field2]">$userinfo[field2]<else />$userinfo[username]</if>"
usemap ="#contacttable" />
REPLACE the URL with the default contact table URL that you uploaded.

DISPLAY NAME STEPS

1. Create a custom profile field and remember it. Example: field2

Single-Line Text Box
Name: Display Name
Description: The name you want to display in your profile.
Max length of allowed user input: I have mine set to 20. In case you use the nowrap="nowrap", it's highly advisable to set it to a low number so your tables don't get stretched by someone who thinks they should have their WHOLE biography in their display name.
Field Editable by User: Yes

2. FIND in.. in Notepad - still, do not edit the template yet.

Code:
$userinfo[field2]
REPLACE every number 2 with the number if your Display Name custom field. This is required in all parts of the script if you want the Display Name to show up in certain parts. So just do a search on it in Notepad or Wordpad.

TEMPLATE EDITING STEPS

1. BACK UP YOUR MEMBERINFO TEMPLATE! Paste it into Notepad or Wordpad. Just in case the Myspace Profile Re-Write PRO! 1.0.0 and vS-Interactive Profiles hacks aren't compatible with your version of vB. As well as any modifications you have installed. In this case, save your back up in case you start to notice certain functions, buttons or other things not appearing or working.

2. If you haven't already installed the associated hacks Myspace Profile Re-Write PRO! 1.0.0 and vS-Interactive Profiles, do so now and wait on step 3 until you've finished.

5. Once they're is installed.

FIND in MEMBERINFO template:
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
        <tr class="tcat"> 
         <td colspan="2"><strong>Contacting $userinfo[username]</td></font></strong>
        </tr> 
        <tr class="alt2"> 
         <td height="5" nowrap="nowrap" width="50%"> <div align="left"> 
             <a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]&quot;&gt;&lt;">
<img border="0" src="http://www.sevencityforums.com/forum...mns/sendpm.gif" align="left" width="79" height="22"></a>
</td> 
         <td height="5" nowrap="nowrap" valign="top" width="50%"> 
            <div align="left"><if condition="$userinfo['showicq']"> $userinfo[icqicon] 
             <a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a> 
             </if> </div></td> 
        </tr> 
        <tr class="alt2"> 
         <td height="5" nowrap="nowrap" valign="top" width="50%"> 
            <div align="left"><div class="smallfont">
     <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]&quot; rel=&quot;nofollow">
<img border="0" src="http://www.sevencityforums.com/forum...dmailicon2.gif" align="left" width="79" height="22"></a></p> 
            </div></td> 
         <td height="2" nowrap="nowrap" valign="middle" width="50%"> 
            <div align="left"><if condition="$userinfo['showaim']"> $userinfo[aimicon] 
             <a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a> 
             </if></div></td> 
        </tr> 
        <tr class="alt2"> 
         <td height="5" nowrap="nowrap" valign="top" width="50%"> 
         <div align="left"><div class="smallfont"><if condition="$show['addbuddylist']"> <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]">
<img border="0" src="http://www.sevencityforums.com/forum...s/addbuddy.gif" width="79" height="22"></a> 
             <else /><div class="smallfont"><a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$userinfo[userid]">
<img border="0" src="http://www.sevencityforums.com/forum...mns/remove.jpg" align="left" width="79" height="22"></a>
             </if> </div></td> 
         <td height="5" nowrap="nowrap" valign="top" width="50%"> 
            <div align="left"><if condition="$userinfo['showmsn']"> $userinfo[msnicon] 
             <a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a> 
             </if></div></td> 
        </tr> 
        <tr class="alt2"> 
         <td height="5" nowrap="nowrap" valign="top" width="50%"> 
            <div align="left"><div class="smallfont"><if condition="$show['addignorelist']"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]">
<img border="0" src="http://www.sevencityforums.com/forum..._mns/block.jpg" width="79" height="22" align="left"></a></p> 
             <else /><div class="smallfont"><a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$userinfo[userid]">
<img border="0" src="http://www.sevencityforums.com/forum...ns/addbudy.jpg" width="79" align="left" height="22"></a></p>
             </if> </div></td> 
         <td height="2" nowrap="nowrap" valign="middle" width="50%"> 
            <div align="left"><if condition="$userinfo['showyahoo']"> $userinfo[yahooicon] 
             <a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a> 
             </if></div></td> 
        </tr> 
     </table>
and replace with the attached code in contacttable.txt.

To show the Display Name above the avatar in the profile:

FIND
Code:
<tr class="tcat"> <td colspan="2"><div align="Left" class="bigusername"><strong>$userinfo[username]</div></font></strong>
<div class="smallfont"><a href="$vboptions[bburl]/$userinfo[username]">$vboptions[bburl]/$userinfo[username]</a></td></div></tr>
REPLACE WITH

Code:
<tr class="tcat"> <td colspan="2"><div align="Left" class="bigusername"><strong><if condition="$userinfo[field2]">$userinfo[field2]<else />$userinfo[username]</if></div></font></strong>
<div class="smallfont"><a href="$vboptions[bburl]/$userinfo[username]">$vboptions[bburl]/$userinfo[username]</a></td></div></tr>

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-12-2008, 03:47 AM
Conner85 Conner85 is offline
 
Join Date: Jan 2008
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Demo: http://www.metal-clinic.org/conner
Reply With Quote
  #3  
Old 04-13-2008, 01:53 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work!
Reply With Quote
  #4  
Old 04-13-2008, 07:36 PM
Conner85 Conner85 is offline
 
Join Date: Jan 2008
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot Miss.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03739 seconds
  • Memory Usage 2,252KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete