vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Myspace Link in postbit..... (https://vborg.vbsupport.ru/showthread.php?t=110815)

Oddjob 03-19-2006 04:30 PM

Myspace Link in postbit.....
 
I would like to see some sort of myspace link to your profile displayed in the postbit someplace.....

Brandon Sheley 03-19-2006 05:00 PM

just add the profile field, and then insert the code in your postbit ;)

Oddjob 03-19-2006 05:16 PM

Quote:

Originally Posted by Loco.M
just add the profile field, and then insert the code in your postbit ;)

That would require my members using html.............hm not sure about that.

ericgtr 03-19-2006 11:02 PM

Actually it wouldn't :) Here's how:

In AdminCP go to User Profile Fields > Add New User Profile Field > single lined text box and
Title: Myspace Profile
Description: http://www.myspace.com/username <--- replace with your myspace username

Leave the rest and click on Save at the bottom. Note the field number when you are done (i.e. field5).

Now add it as a condition to your postbit like this:

find something like:
Code:

$post[iplogged]
Add this after:
Code:

<if condition="$post['field5']"><a target="_blank" href="http://www.myspace.com/$post[field5]">
<img border="0" src="http://www.yoursite.com/images/myspace.jpg" alt="View myspace profile"></a>
</if>

Remember to change field5 to whatever the field number is that you've setup. This will only show for users that have it filled out in their profile. Also, here is the image that I used for this https://vborg.vbsupport.ru/

Oddjob 03-20-2006 12:57 AM

Quote:

Originally Posted by ericgtr
Actually it wouldn't :) Here's how:

In AdminCP go to User Profile Fields > Add New User Profile Field > single lined text box and
Title: Myspace Profile
Description: http://www.myspace.com/username <--- replace with your myspace username

Leave the rest and click on Save at the bottom. Note the field number when you are done (i.e. field5).

Now add it as a condition to your postbit like this:

find something like:
Code:

$post[iplogged]
Add this after:
Code:

<if condition="$post['field5']"><div class="info"><a target="_blank" href="http://www.myspace.com/$post[field5]">
<img border="0" src="http://www.yoursite.com/images/myspace.jpg" alt="View myspace profile"></a></div>
</if>

Remember to change field5 to whatever the field number is that you've setup. This will only show for users that have it filled out in their profile. Also, here is the image that I used for this http://www.talkedabout.com/images/myspace.jpg

This worked good, although it made it own column under the reputation, ip icons......how can i have this on the same column as those?

Oddjob 03-20-2006 02:16 PM

1 Attachment(s)
ok, see attached screen shot, maybe that will show you where i want it.

RDX1 03-20-2006 08:08 PM

Remove the divs

ericgtr 03-20-2006 08:22 PM

Quote:

Originally Posted by RDX1
Remove the divs

Oh yeah, good catch. That's calling a custom class, I forgot that I had that in there. :)

Oddjob 03-20-2006 09:29 PM

Good stuff.

You should make a plugin of this, im sure alot of people would use it.

ericgtr 03-20-2006 09:31 PM

It's not really a modification as much as it is a configuration. Maybe I'll post it up as a how to. :)

BTW, I removed the div tags from my original post. Thanks for pointing that out RDX1.

hiiped 03-20-2006 11:48 PM

How to setup a Profile field where the user just enters his/her MySpace username and it autolinks when you view in the profile ?

eg: Jalli99 EDITS his profile and in field: MySpace username, all he enters is his myspace username: Jalli99

when people visits his profile theres a link to his myspace page http://www.myspace.com/Jalill99


so Jalill99 DONT have to enter the http://www.myspace.com during his editing of his profile


?????


edit: I just figured how to do this ;)

Mr Chad 03-21-2006 12:00 AM

I want to make a myspace addon like AIM

when someone has their myspace ID entered it will show up in the postbit and when someone clicks on it, a pop up (like the aim one) will come up with options: Profile, Pictures, Message, Coomment

Hows this sound?

ericgtr 03-21-2006 12:40 AM

Quote:

Originally Posted by hiiped
How to setup a Profile field where the user just enters his/her MySpace username and it autolinks when you view in the profile ?

eg: Jalli99 EDITS his profile and in field: MySpace username, all he enters is his myspace username: Jalli99

when people visits his profile theres a link to his myspace page http://www.myspace.com/Jalill99


so Jalill99 DONT have to enter the http://www.myspace.com during his editing of his profile


?????


edit: I just figured how to do this ;)

That's exactly what this does, all they enter in the profile field is their username at myspace and it will launch directly to their profile on myspace. :)

Quote:

I want to make a myspace addon like AIM

when someone has their myspace ID entered it will show up in the postbit and when someone clicks on it, a pop up (like the aim one) will come up with options: Profile, Pictures, Message, Coomment

Hows this sound?
Not sure if it will work the same but I will look into it for you when I get some time.

hiiped 03-21-2006 12:53 AM

Quote:

Originally Posted by ericgtr
That's exactly what this does, all they enter in the profile field is their username at myspace and it will launch directly to their profile on myspace. :)
.

Thanks

I was overreading and missed some parts of your post :tired:

ended up coming up with the exact code as you. LOL

didnt even see that you gave instructions to post in postbit as I was focused on adding it to MEMBERINFO ( profile view ) .

LOL

great work mate

thanks again

Quote:

Originally Posted by chatbum
I want to make a myspace addon like AIM

when someone has their myspace ID entered it will show up in the postbit and when someone clicks on it, a pop up (like the aim one) will come up with options: Profile, Pictures, Message, Coomment

Hows this sound?

tried >>> Profile Fields in Postbits <<<< ????

Mr Chad 03-21-2006 01:37 AM

Quote:

Originally Posted by ericgtr
That's exactly what this does, all they enter in the profile field is their username at myspace and it will launch directly to their profile on myspace. :)



Not sure if it will work the same but I will look into it for you when I get some time.

yea but i would rather come up with a menu indirectly.

Here i just released it...

https://vborg.vbsupport.ru/showthread.php?t=110954

Dumi 08-08-2006 03:32 AM

This is great I placed my icon next to the aim!


All times are GMT. The time now is 03:31 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.01139 seconds
  • Memory Usage 1,758KB
  • 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
  • (4)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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