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.


All times are GMT. The time now is 10:54 AM.

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.01076 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)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
  • (10)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