vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - Myspace button in postbit (https://vborg.vbsupport.ru/showthread.php?t=142290)

Bratz-Designs 03-16-2007 10:00 PM

Myspace button in postbit
 
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!!

anywares 03-17-2007 09:46 AM

~reserve & installed

ericgray 03-17-2007 10:53 PM

i think i did it right, replacing the two variable "X"s with values "8"s, and can't see it -- :(

Bratz-Designs 03-18-2007 08:12 AM

- Did you upload the banner to the correct path?
- Did do this modification both in the postbit and postbit_lecacy template?

Mark

ericgray 03-18-2007 07:59 PM

my bad -- i didn't see to update BOTH templates -- was doing only one --

thanks -- works great!

eric

tigerroar 03-19-2007 06:18 PM

OK, I've kind of got this working but when I click on my icon it just takes me to the myspace homepage and not to my profile. I've edited $post[fieldx] to $post[field6] to match my myspace prodile name but it still isn't working .

Any ideas?

Bratz-Designs 03-19-2007 07:55 PM

There are 2 $post[fieldx]'s did you edit both of them? :)

tigerroar 03-20-2007 11:45 AM

Quote:

Originally Posted by Bratz-Designs (Post 1207587)
There are 2 $post[fieldx]'s did you edit both of them? :)

Doh!

Thanks for that mate, corrected now and working fine.

Would this be easy to do for other sites like Bebo too??

tigerroar 03-20-2007 05:27 PM

More of my members have Bebo pages so I altered the original code a little and got it working for Bebo too. I hope thats ok with the original author :up:

Code:

<!-- Bebo start -->
<if condition="$post[fieldX]"><a href="http://$post[fieldx].bebo.com" alt="View my Bebo" target="_blank">
<img src="images/misc/bebo.gif" border="0"></a>
</if>
<!-- Bebo end -->


Bratz-Designs 03-20-2007 06:21 PM

Quote:

Originally Posted by tigerroar (Post 1208179)
More of my members have Bebo pages so I altered the original code a little and got it working for Bebo too. I hope thats ok with the original author :up:

Code:

<!-- Bebo start -->
<if condition="$post[fieldX]"><a href="http://$post[fieldx].bebo.com" alt="View my Bebo" target="_blank">
<img src="images/misc/bebo.gif" border="0"></a>
</if>
<!-- Bebo end -->


No problem, mind if i release it?

tigerroar 03-21-2007 01:52 PM

Be my guest :)

tigerroar 03-21-2007 01:54 PM

This is the graphic I use for it...

ZomgStuff 03-21-2007 08:58 PM

You should of at least edited yours so the color would match your background.

danward 03-23-2007 10:25 AM

Nice mod! :) Thanks!

dholt 03-23-2007 11:25 AM

Is there a way to add this to the Instant Messaging field and not the Additional Information field.

danny75 03-23-2007 11:28 AM

^^ yes

imk 03-23-2007 03:09 PM

works dope

www.whoyoureppin.com

perfect for music sites thanks man

dholt 03-24-2007 03:21 PM

Quote:

Originally Posted by dholt (Post 1210265)
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:eek:

Bratz-Designs 03-25-2007 11:02 AM

Quote:

Originally Posted by dholt (Post 1210265)
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?)

dholt 03-25-2007 11:36 AM

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

gobears20 03-25-2007 04:41 PM

I am also wondering a way to get this in the Instant Messaging field. I added it as a profle field, but what is the best way to add this to the Instant Messaging field?

Thanks!

dholt 03-26-2007 10:16 AM

I don't think this mod is supported as I have waited days for a response and nothing.

Bratz-Designs 03-27-2007 02:46 PM

Quote:

Originally Posted by dholt (Post 1212604)
I don't think this mod is supported as I have waited days for a response and nothing.

"I am not sure, but ill try to find it. (You mean in edit profile right?)"

I am working on it.

dholt 03-27-2007 10:16 PM

Yes, thank you so much i hope you can figure it out how to add it with the rest of the yahoo,msn,skyp and so on. Thanks

The Bish 04-04-2007 05:45 AM

Installed!

Thank you for this!

sunnycher 04-04-2007 10:17 AM

Thank you! Works great with 3.6.4

Dr.NoTime 04-04-2007 03:00 PM

Nice! Works great. Thanks.

skooby 04-11-2007 11:35 PM

Nice job :)

sunnycher 04-12-2007 12:19 AM

I have one problem, when someone clicks on the little icon, it takes them to myspace.com but not 'my' space on myspace.com
is there something I'm missing here?
Thanks :)

auctionguy 04-15-2007 06:54 AM

Installed! I love this hack!! Awsome for linking!!

USAMustangs.com 04-17-2007 09:58 PM

cool hack.

however, i too would really like to know how to integrate this into the instant message section in edit profile.

that would make it look OEM sort of speak.

rjteeter 04-17-2007 10:35 PM

postbit_lecacy & Postbit

Im sorry, im very new to VB. Do these have to be edited through the ACP?

Bratz-Designs 04-20-2007 12:37 PM

Quote:

Originally Posted by rjteeter (Post 1230043)
postbit_lecacy & Postbit

Im sorry, im very new to VB. Do these have to be edited through the ACP?

Yes in the admincp -> Styles & Templates -> Edit templates

DieselMinded 05-08-2007 03:51 AM

PERFECT !

Clicks Installed

DieselMinded 05-08-2007 04:02 AM

Can you do this https://vborg.vbsupport.ru/showthread.php?t=146709

basilrath 05-08-2007 12:31 PM

dont know if this hasbeen mentioned but the icon wont appear if members dont fill out a msn addy etc ...........in other words it dosnt create the field on its own, but as soon as you add a msn addy it appears etc...................just a thought

DieselMinded 05-08-2007 01:08 PM

Thats the way it should be , If it showed up all the time then members would be clicking dead Myspace buttons and would quit even trying to use it , I dont want the icon there for members who dont have a myspace ,

The Only Tweak would be to show the icon when viewing profile or atleast hyperlink the number

Aimee1969 05-11-2007 02:03 PM

1. Make a profile field

How do you do this...I'm totally new at this stuff??

Aimee1969 05-11-2007 03:35 PM

I figured it out....I like this ;)

Shelly 05-17-2007 05:07 AM

very nice, most all of my members have a myspace acct that they seem to always want to advertise, this makes it so much easier for them


All times are GMT. The time now is 03:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02499 seconds
  • Memory Usage 1,872KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete