PDA

View Full Version : Show profile field in ad_showthread_firstpost_start


StormBreaker
06-26-2016, 07:18 PM
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
<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">اعلان تقاسم الإيرادات في مواضيعك</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/showthread.php?t=270617&highlight=%24thread+fieldx

--------------- Added 1467076619 at 1467076619 ---------------

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.