vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Show profile field in ad_showthread_firstpost_start (https://vborg.vbsupport.ru/showthread.php?t=322933)

StormBreaker 06-26-2016 07:18 PM

Show profile field in ad_showthread_firstpost_start
 
Hi,

I'm posting this after trying so many times without getting it to work.
I want to show thread starter custom field in ad_showthread_firstpost_start to make thread starter make profit from their thread they start.

Template
PHP Code:

<vb:if condition="$adsense_pub_id AND CONTENT_PAGE">
<
vb:if condition="!$bbuserinfo['userid']">
<
div style="float:right; width:300px; height:250px; margin-left:10px">
<
script type="text/javascript"><!--
google_ad_client "$post['field8']";
google_ad_host "{vb:var adsense_host_id}";
google_ad_width 300;
google_ad_height 250;
google_ad_format "300x250_as";
google_ad_type "text_image";
google_ad_channel "";
google_color_border "{vb:stylevar alt1_bgcolor_hex}";
google_color_bg "{vb:stylevar alt2_bgcolor_hex}";
google_color_link "{vb:stylevar body_link_n_fgcolor_hex}";
google_color_text "{vb:stylevar body_fgcolor_hex}";
google_color_url "{vb:stylevar body_link_n_fgcolor_hex}";
google_ui_features "rc:6";
//-->
</script>
<
script type="text/javascript"
  
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</
script><br />
<
a href="http://arabicpoint.com/faq.php?faq=revenue_sharing">&#1575;علان تقاسم الإيرادات في مواضيعك</a> 

</div>
</
vb:if>
</
vb:if> 

Tried {vb:raw post.fieldx} and other <vb:if> codes, did`t work. :(:mad::o

StormBreaker 06-27-2016 10:26 PM

I tried/searched and all I see how to show in postbit or user profile.
Found solution here https://vborg.vbsupport.ru/showthrea...4thread+fieldx

--------------- Added [DATE]1467076619[/DATE] at [TIME]1467076619[/TIME] ---------------

I just need to call the field in showthread.php, from search I found that I need to call it its not called in thread by default.


All times are GMT. The time now is 10:01 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.00986 seconds
  • Memory Usage 1,722KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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