Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2006, 04:30 PM
Oddjob Oddjob is offline
 
Join Date: Jan 2006
Location: Long Island, NY
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Myspace Link in postbit.....

I would like to see some sort of myspace link to your profile displayed in the postbit someplace.....
Reply With Quote
  #2  
Old 03-19-2006, 05:00 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just add the profile field, and then insert the code in your postbit
Reply With Quote
  #3  
Old 03-19-2006, 05:16 PM
Oddjob Oddjob is offline
 
Join Date: Jan 2006
Location: Long Island, NY
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 03-19-2006, 11:02 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 03-20-2006, 12:57 AM
Oddjob Oddjob is offline
 
Join Date: Jan 2006
Location: Long Island, NY
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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?
Reply With Quote
  #6  
Old 03-20-2006, 02:16 PM
Oddjob Oddjob is offline
 
Join Date: Jan 2006
Location: Long Island, NY
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, see attached screen shot, maybe that will show you where i want it.
Attached Images
File Type: jpg screen.jpg (39.6 KB, 0 views)
Reply With Quote
  #7  
Old 03-20-2006, 08:08 PM
RDX1 RDX1 is offline
 
Join Date: Apr 2002
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Remove the divs
Reply With Quote
  #8  
Old 03-20-2006, 08:22 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 03-20-2006, 09:29 PM
Oddjob Oddjob is offline
 
Join Date: Jan 2006
Location: Long Island, NY
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good stuff.

You should make a plugin of this, im sure alot of people would use it.
Reply With Quote
  #10  
Old 03-20-2006, 09:31 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:01 PM.


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.08167 seconds
  • Memory Usage 2,269KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete