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

Reply
 
Thread Tools
Myspace button in postbit Details »»
Myspace button in postbit
Version: 1.00, by Bratz-Designs Bratz-Designs is offline
Developer Last Online: Nov 2011 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.5 Rating:
Released: 03-16-2007 Last Update: Never Installs: 112
 
No support by the author.

Hey all,

This small modification will add a small button to your postbit. This small modifications will put a button in the postbit to the Myspace page of the user.

Bratzer

1. Make a profile field
Profile field type = Single-line text box
Title: Myspace account
Description: Type your Myspace ID.
You can leave the rest to default.

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


2. Template changes - In postbit_lecacy & Postbit

Find:
Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
After ad:
Code:
<!-- Myspace start -->
<if condition="$post[fieldX]"><a href="http://www.myspace.com/$post[fieldx]" alt="View my myspace" target="_blank">
<img src="images/misc/myspace.gif" border="0"></a>
</if>
<!-- Myspace end -->
3. Button upload

Upload it in your: images/misc folder!

Bratzer
http://www.bratz-designs.com

Currently i am working to get this integrated with the messenger fields, when this is updated you will hear from me asap!!

Show Your Support

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

Comments
  #12  
Old 03-21-2007, 01:52 PM
tigerroar tigerroar is offline
 
Join Date: Dec 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Be my guest
Reply With Quote
  #13  
Old 03-21-2007, 01:54 PM
tigerroar tigerroar is offline
 
Join Date: Dec 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the graphic I use for it...
Reply With Quote
  #14  
Old 03-21-2007, 08:58 PM
ZomgStuff ZomgStuff is offline
 
Join Date: Feb 2007
Posts: 469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should of at least edited yours so the color would match your background.
Reply With Quote
  #15  
Old 03-23-2007, 10:25 AM
danward's Avatar
danward danward is offline
 
Join Date: Dec 2006
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod! Thanks!
Reply With Quote
  #16  
Old 03-23-2007, 11:25 AM
dholt's Avatar
dholt dholt is offline
 
Join Date: Aug 2006
Location: Somewere in Delaware
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to add this to the Instant Messaging field and not the Additional Information field.
Reply With Quote
  #17  
Old 03-23-2007, 11:28 AM
danny75 danny75 is offline
 
Join Date: Jul 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^ yes
Reply With Quote
  #18  
Old 03-23-2007, 03:09 PM
imk imk is offline
 
Join Date: Dec 2006
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works dope

www.whoyoureppin.com

perfect for music sites thanks man
Reply With Quote
  #19  
Old 03-24-2007, 03:21 PM
dholt's Avatar
dholt dholt is offline
 
Join Date: Aug 2006
Location: Somewere in Delaware
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dholt View Post
Is there a way to add this to the Instant Messaging field and not the Additional Information field.
AdminCP -> Styles & Templates -> Style Manager -> (pick your style) -> Edit Templates -> User Profile Templates -> MEMBERINFO

here is the part of that template that I think were something is suppose to be added

Code:
$vbphrase[private_message]:<br />
                        <a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
                    </td>
                </tr>
                </if>
                </table>
            </div>
            
            <if condition="$show['hasimicons']">
            <fieldset class="fieldset">
                <legend>$vbphrase[instant_messaging]</legend>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <if condition="$show['textimicons']">
                    <if condition="$userinfo['showicq']">
                    <tr>
                        <td>$vbphrase[icq]</td>
                        <td>$userinfo[icq]</td>
                    </tr>
                    </if>
                    <if condition="$userinfo['showaim']">
                    <tr>
                        <td>$vbphrase[aim]</td>
                        <td>$userinfo[aim]</td>
                    </tr>
                    </if>
                    <if condition="$userinfo['showmsn']">
                    <tr>
                        <td>$vbphrase[msn]</td>
                        <td>$userinfo[msn]</td>
                    </tr>
                    </if>
                    <if condition="$userinfo['showyahoo']">
                    <tr>
                        <td>$vbphrase[yahoo]</td>
                        <td>$userinfo[yahoo]</td>
                    </tr>
                    </if>
                    <if condition="$userinfo['skype']">
                    <tr>
                        <td>$vbphrase[skype]</td>
                        <td>$userinfo[skype]</td>
                    </tr>
                    </if>
                <else />
                    <if condition="$userinfo['showicq']">
                    <tr>
                        <td>$userinfo[icqicon]</td>
                        <td><a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a></td>
                    </tr>
                    </if>
                    <if condition="$userinfo['showaim']">
                    <tr>
                        <td>$userinfo[aimicon]</td>
                        <td><a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a></td>
                    </tr>
                    </if>
                    <if condition="$userinfo['showmsn']">
                    <tr>
                        <td>$userinfo[msnicon]</td>
                        <td><a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a></td>
                    </tr>
                    </if>
                    <if condition="$userinfo['showyahoo']">
                    <tr>
                        <td>$userinfo[yahooicon]</td>
                        <td><a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a></td>
                    </tr>
                    </if>
                    <if condition="$userinfo['showskype']">
                    <tr>
                        <td>$userinfo[skypeicon]</td>
                        <td><a href="#" dir="ltr" onclick="imwindow('skype', '$userinfo[userid]', 400, 285); return false;">$userinfo[skype]</a></td>
                    </tr>
                    </if>
                </if>
                </table>
            </fieldset>
            </if>
            
        
        </div>
    </div>
    </td>
    
</tr>
<tr>
any help with this
Reply With Quote
  #20  
Old 03-25-2007, 11:02 AM
Bratz-Designs Bratz-Designs is offline
 
Join Date: Jul 2005
Location: Netherlands
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dholt View Post
Is there a way to add this to the Instant Messaging field and not the Additional Information field.
I am not sure, but ill try to find it. (You mean in edit profile right?)
Reply With Quote
  #21  
Old 03-25-2007, 11:36 AM
dholt's Avatar
dholt dholt is offline
 
Join Date: Aug 2006
Location: Somewere in Delaware
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes

User cp/Edit Profile/Optional Information - All information will be viewable by other forum members. scroll down too Instant Messaging and you will see.

You may enter your registered identity for the instant messaging networks if you would like other visitors to be able to contact you using that medium.
ICQ Number
AIM Screen Name
MSN Messenger Handle
Yahoo! Messenger Handle
Skype Name

There is a template called instant messaging template as there are four temlates thast look like this
im_send_aim
im_send_MSN
im_send_Yahoo
im_send_Skype
im_send_myspace maybe add a new template

and add something like this but not sure if I'm on the right path here. also I'm not sure what I need to change for it to show up

Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat">
		<span class="smallfont" style="float:$stylevar[right]"><a href="#" onclick="self.close()">$vbphrase[close_this_window]</a></span>
		$vbphrase[aim]
	</td>
</tr>
<tr>
	<td class="panelsurround" align="center">
	<div class="panel">
		<div align="$stylevar[left]">
		
		<div class="fieldset">
			<img src="$stylevar[imgdir_misc]/im_aim.gif" alt="" />
			<phrase 1="member.php?$session[sessionurl]u=$userinfo[userid]" 2="$userinfo[username]">$vbphrase[send_message_via_aim_to_x_link]</phrase> (<strong dir="ltr">$userinfo[aim]</strong>)
		</div>
		
		<div class="fieldset"><a href="aim:addbuddy?screenname=$userinfo[aim_link]"><phrase 1="$userinfo[aim]">$vbphrase[add_x_to_your_contact_list]</phrase></a></div>
		
		<div class="fieldset"><a href="aim:goim?screenname=$userinfo[aim_link]&amp;message=$vbphrase[aim_hi_are_you_there]"><phrase 1="$userinfo[aim]">$vbphrase[send_x_a_message]</phrase></a></div>
		
		<div class="fieldset">
			$vbphrase[these_functions_require_aim]
		</div>
		
		</div>
	</div>
	</td>
</tr>
</table>
Then edit the MEMBERINFO Template and add something after one of these.

Code:
<if condition="$show['hasimicons']">
			<fieldset class="fieldset">
				<legend>$vbphrase[instant_messaging]</legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
				<if condition="$show['textimicons']">
					<if condition="$userinfo['showicq']">
					<tr>
						<td>$vbphrase[icq]</td>
						<td>$userinfo[icq]</td>
					</tr>
					</if>
					<if condition="$userinfo['showaim']">
					<tr>
						<td>$vbphrase[aim]</td>
						<td>$userinfo[aim]</td>
					</tr>
					</if>
					<if condition="$userinfo['showmsn']">
					<tr>
						<td>$vbphrase[msn]</td>
						<td>$userinfo[msn]</td>
					</tr>
					</if>
					<if condition="$userinfo['showyahoo']">
					<tr>
						<td>$vbphrase[yahoo]</td>
						<td>$userinfo[yahoo]</td>
					</tr>
					</if>
					<if condition="$userinfo['skype']">
					<tr>
						<td>$vbphrase[skype]</td>
						<td>$userinfo[skype]</td>
					</tr>
					</if>
				<else />
					<if condition="$userinfo['showicq']">
					<tr>
						<td>$userinfo[icqicon]</td>
						<td><a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a></td>
					</tr>
					</if>
					<if condition="$userinfo['showaim']">
					<tr>
						<td>$userinfo[aimicon]</td>
						<td><a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a></td>
					</tr>
					</if>
					<if condition="$userinfo['showmsn']">
					<tr>
						<td>$userinfo[msnicon]</td>
						<td><a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a></td>
					</tr>
					</if>
					<if condition="$userinfo['showyahoo']">
					<tr>
						<td>$userinfo[yahooicon]</td>
						<td><a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a></td>
					</tr>
					</if>
					<if condition="$userinfo['showskype']">
					<tr>
						<td>$userinfo[skypeicon]</td>
						<td><a href="#" dir="ltr" onclick="imwindow('skype', '$userinfo[userid]', 400, 285); return false;">$userinfo[skype]</a></td>
					</tr>
					</if>
				</if>
				</table>
			</fieldset>
			</if>
			
		
		</div>
	</div>
	</td>
	
</tr>
<tr>
Could use some help on this but it just seems like a better way and may look better
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 12:50 AM.


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.06323 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete