vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   myspace profile icon (like yahoo, aim, msn etc) (https://vborg.vbsupport.ru/showthread.php?t=111701)

intrigue 03-29-2006 10:00 PM

myspace profile icon (like yahoo, aim, msn etc)
 
ok this is a very simple edit and i thought i would just quickly give it to others as im sure they will appreciate it too.

Firstly add a new profile field
Profile field type = Single-line text box
fill in the required details and click save and make a note of the field name
(most likely be fieldX) where X is the number of the field mine is field7 for example.

Now
Find
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
And add below

Code:

                                <!-- my space display start -->
                                <if condition="$post[fieldX] != ''"><a href="http://$post[fieldX]" target="_blank">
<img src="images/misc/im_myspace.gif" title="View myspace profile" border="0"></a>
                                </if>
                                <!-- Myspace display end -->

Make sure you change the two value fieldX where X is the number you noted down at the start

Upload the im_myspace.gif to your images/misc/ folder and thats it.
I will support this but i doubt it will need support

EDIT - Screenshot attatched

Snake 03-30-2006 11:52 AM

Thanks, first one to install!

FleaBag 03-30-2006 04:10 PM

w00t! Never thought of this before. Sweet!

Mr Chad 03-31-2006 12:58 AM

Screen Shot? or Live demo?

TunerNetwork 04-04-2006 09:08 PM

Here's a quick ? for you, I installed this in my postbit, works great! Now, I did the custom profile edit of the MEMBERINFO template to look kinda like myspace.

My profile is here: http://www.tunernetwork.com/forum/member.php?u=2

What I want to know is, how do I now get that Icon to show up to the right of the MSN one, under Contacting Zazza CEO. That would be a cool add on.

In the MEMBERINFO file, it has the other messengers coded as the following:

Code:

<if condition="$userinfo['showaim']">$userinfo[aimicon]</if> <if condition="$userinfo['showicq']">$userinfo[icqicon]</if> <if condition="$userinfo['showyahoo']">$userinfo[yahooicon]</if> <if condition="$userinfo['showmsn']">$userinfo[msnicon]</if>
Basically, what would I have to add for code, in order for the myspace icon to show up? Thanks for your help!

melodyt 04-05-2006 03:04 AM

You might want to include what files you would be editing. :)

DJDarknez 04-05-2006 07:55 AM

Quote:

Originally Posted by melodyt
You might want to include what files you would be editing. :)

It would be the postbit or postbit_legacy templates, depending on which one you use.

snowman872 04-07-2006 06:09 AM

Great! Thank you! *clicks install*

MustangLisa 05-11-2006 07:31 PM

Great idea, thanks!!

bashy 06-23-2006 07:29 PM

Great hack, thanks

BrandiD 07-01-2006 02:19 PM

installed. Thank you very much!

chkdgate 07-06-2006 04:23 PM

BrandiD, where did you install it under? Postbit or postbit_legacy?

chkdgate 08-12-2006 05:56 PM

Can't get this to work.

modtang 08-17-2006 01:01 AM

It works. If you're using a custom skin or (even the default) the text to search for might be a little different. Search templates for:
Code:

$post[yahooicon]
My template only has:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]
Place the MySpace code after that. Voila! Here's my full code for that section:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]
                                                                                                                <!-- my space display start -->
                                <if condition="$post[field5] != ''"><a href="$post[field5]" target="_blank">
<img src="images/misc/im_myspace.gif" title="View MySpace Profile" border="0"></a>
                                </if>
                                <!-- Myspace display end -->
                                        </div>

I also removed the http:// from the href for my site.

LeftCoastBias 08-26-2006 10:27 PM

when i do this, it tries to go to: http://www.tehdriven.com/forum/www.m.../leftcoastbias

LeftCoastBias 08-26-2006 10:46 PM

n/m i got it working, i had to use a mix of the original code and the one posted just above...

Spinning Webs 09-09-2006 05:05 PM

This works a lot better...

Code:

<!-- my space display start -->
                                <if condition="$post[fieldX] != ''"><a href="http://www.myspace.com/$post[fieldX]" target="_blank">
<img src="images/misc/im_myspace.gif" title="View myspace profile" border="0"></a>
                                </if>
                                <!-- Myspace display end -->


Necrosaro420 09-10-2006 06:35 PM

tried all the diff types of codes...still will not show up after I add it to my profile.

JuGgOlOw22 09-23-2006 03:13 AM

what template do i modify it doesnt say

Mr Chad 09-23-2006 04:55 AM

or if u want a lil more u can install:
https://vborg.vbsupport.ru/showthread.php?t=110954

sunnycher 10-27-2006 11:06 PM

I've installed this on 3.62, doesn't show up in my profile but shoes up in my legacy. Isn't is suppose to show up in the profile also?

When you add it into your profile, don't use the http:, just the www.myspace.com/whatever

Shazz 10-28-2006 06:26 AM

Quote:

Originally Posted by sunnycher
I've installed this on 3.62, doesn't show up in my profile but shoes up in my legacy. Isn't is suppose to show up in the profile also?

When you add it into your profile, don't use the http:, just the www.myspace.com/whatever

This is only suppose to be for the postbit,
You would have to change memberinfo as well.

RaceJunkie 11-01-2006 11:11 PM

OK I give up where is the im_myspace.gif?

RaceJunkie 11-01-2006 11:30 PM

Installed on 3.6.2

LeftCoastBias 11-06-2006 07:02 PM

Quote:

Originally Posted by Spinning Webs
This works a lot better...

Code:

<!-- my space display start -->
                                <if condition="$post[fieldX] != ''"><a href="http://www.myspace.com/$post[fieldX]" target="_blank">
<img src="images/misc/im_myspace.gif" title="View myspace profile" border="0"></a>
                                </if>
                                <!-- Myspace display end -->


i also did this modification to the code; we had someone trying to abuse it within minutes of the install.


leaving it open to free linking to anywhere is a bad idea- anyone heard of lemonparty before? :rofl:

chkdgate 11-07-2006 06:30 AM

I just installed the Deviant Art icon which is the exact same mod and code as this one but how can I get it to display the member's user name when your mouse hovers over the icon? I added some alt text but I would like the actual user name instead. Thanks in advance.

mmmender 11-09-2006 04:11 AM

Quote:

Originally Posted by Shazz
This is only suppose to be for the postbit,
You would have to change memberinfo as well.

Exactly what needs to be edited in MEMBERINFO?

I can't get this to work. I've uploaded the image and added the additional code to the postbit (and not the postbit_legacy).

Any help appreciated.


All times are GMT. The time now is 05:49 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.01232 seconds
  • Memory Usage 1,777KB
  • 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
  • (8)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete