Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2011, 03:31 PM
kleidaras kleidaras is offline
 
Join Date: Mar 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Home Page URL in postbit

Hello guys





active Home Page URL in postbit ... how to...

Thanks
Reply With Quote
  #2  
Old 04-05-2011, 05:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do a search in the articles forum for the article on how to insert custom profile fields into your postbit.
Reply With Quote
  #3  
Old 04-05-2011, 05:32 PM
kleidaras kleidaras is offline
 
Join Date: Mar 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do .. but nothing for this.. maybe search for wrong name

please help
Reply With Quote
  #4  
Old 04-05-2011, 05:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doing a search on "postbit*" in the articles forum, titles only, gives me this:
How To Add Custom Profile Field Information To The Postbit
Reply With Quote
  #5  
Old 04-07-2011, 10:57 AM
kleidaras kleidaras is offline
 
Join Date: Mar 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank u Lynne, but

I still trying to find a solution but nothing. can you help me again
Reply With Quote
  #6  
Old 04-07-2011, 11:15 AM
Frosty Frosty is offline
 
Join Date: Apr 2011
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is quite easy, but you'll have to create a new profile field for this.

Go to:
User Profile Field Manager - Add New User Profile Field:

Title: Website
Description: Enter the link of your Website.<br />
<p>Please make sure that you don't add the:
"http://www.", or "http://". Just enter:
"YourDomainName.com". <br />
You may enter <b>one</b> domain name only. </p>
Profile Field Category: (Uncategorized)
Default Value: leave blank
Max length of user allowed input: 15
Field length: 25
Profile Field Type: Single line text box
Field required: No
Field editable by user: Yes
Private Field: No
Field searchable on members list: No
Show on members list: No

Save it..

Go to postbit or postbit_legacy, find:
$vbphrase[posts]: $post[posts]

Posts are in the div tag, and leave 'em in it. After the </div> close tag, add this code:

<if condition="$post[field13]">Website: <a href="http://www.$post[field13]" target="_blank" rel="nofollow"> $post[field13]</a></if>

Replace number "13" with the number of your field, as you can see on this screenshot:
http://i.imgur.com/LPuAk.png
Field number is shown in the overview of the profile fields, enjoy!

Screenshot of how it looks like after you have added it:
http://i.imgur.com/aPUf8.png
Reply With Quote
  #7  
Old 04-07-2011, 12:34 PM
kleidaras kleidaras is offline
 
Join Date: Mar 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes that's it

thank u very much

best regards
Reply With Quote
  #8  
Old 04-07-2011, 04:09 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't understand why you would make a new profile field ($post[field13]) when you can use the built in homepage option in vbulletin which can be accessed by:
PHP Code:
$post[homepage
Reply With Quote
  #9  
Old 04-28-2011, 04:25 PM
kleidaras kleidaras is offline
 
Join Date: Mar 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for vb 4.x.x something like this
Reply With Quote
  #10  
Old 05-03-2011, 11:47 PM
kleidaras kleidaras is offline
 
Join Date: Mar 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok I found the solution for vb 4

Go to:
User Profile Field Manager - Add New User Profile Field:

Title: Website
Description: Enter the link of your Website.<br />
<p>Please make sure that you don't add the:
"http://www.", or "http://". Just enter:
"www.YourDomainName.com". <br />
You may enter <b>one</b> domain name only. </p>
Profile Field Category: (Uncategorized)
Default Value: leave blank
Max length of user allowed input: 15
Field length: 25
Profile Field Type: Single line text box
Field required: No
Field editable by user: Yes
Private Field: No
Field searchable on members list: No
Show on members list: No

Save it..

Go to -->postbit_legacy

find

Code:
<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
add above:

Code:
<vb:if condition="$post['field2']"><span style="color:green"><b>Website</b></span>:

<a href="http://{vb:raw post.field2}">{vb:raw post.field2}</a>

</vb:if>


Replace number "2" with the number of your field
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 02:08 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.08362 seconds
  • Memory Usage 2,252KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_code
  • (1)bbcode_php
  • (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
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete