vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Home Page URL in postbit (https://vborg.vbsupport.ru/showthread.php?t=261478)

kleidaras 04-05-2011 02:31 PM

Home Page URL in postbit
 
Hello guys


http://img708.imageshack.us/img708/8...10405at724.png


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

Thanks

Lynne 04-05-2011 04:21 PM

Do a search in the articles forum for the article on how to insert custom profile fields into your postbit.

kleidaras 04-05-2011 04:32 PM

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

please help

Lynne 04-05-2011 04:40 PM

Doing a search on "postbit*" in the articles forum, titles only, gives me this:
How To Add Custom Profile Field Information To The Postbit

kleidaras 04-07-2011 09:57 AM

thank u Lynne, but

I still trying to find a solution but nothing. can you help me again

Frosty 04-07-2011 10:15 AM

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

kleidaras 04-07-2011 11:34 AM

Yes that's it

thank u very much

best regards

BirdOPrey5 04-07-2011 03:09 PM

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


kleidaras 04-28-2011 03:25 PM

for vb 4.x.x something like this

kleidaras 05-03-2011 10:47 PM

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


All times are GMT. The time now is 11:51 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.01491 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_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