vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Question about the ad banner in first post for guests. (https://vborg.vbsupport.ru/showthread.php?t=270867)

inphoenix 09-24-2011 11:53 PM

Question about the ad banner in first post for guests.
 
I remember seeing a big square banner for guests in the first post of thread. I for a new style installed for me. Now I see that banner ad for guests is missing and this is affecting my revenue. Can someone tell me how do I add that banner back (for guests only) ?

BirdOPrey5 09-25-2011 01:00 AM

Put the ad code in the template ad_showthread_firstpost_start

Wrap the ad code in this template conditional:

Code:

<vb:if condition="$show['guest']">

Ad code here

</vb:if>

and it will only show to guests.

-[edited post with correct template]-

inphoenix 09-25-2011 05:43 PM

I tried this but it does not work. Is it possible that a certain template or style does not support this? Also, I am trying to use an adsense code in there (not sure if that's an issue).

BirdOPrey5 09-25-2011 05:55 PM

It's possible if you have a custom style the author didn't properly program the ad location into the template.

If that is so you either need to manually add it back in or just put the code directly in the postbit (or postbit_legacy) template...

Code:

<vb:if condition="$show['guest'] AND $post['isfirstshown']">

Ad code here

</vb:if>


inphoenix 09-25-2011 06:10 PM

I am very new to this, so bear with me. When I edit postbit_legacy, I see a bunch of code. Where exactly do I add this new code?

I do see this code in there :

-- <vb:if condition="$post['isfirstshown']">
-- {vb:raw ad_location.ad_showthread_firstpost_start}
-- {vb:raw ad_location.thread_first_post_content}

(I added the -- infront in this post)

BirdOPrey5 09-25-2011 06:33 PM

Quote:

Originally Posted by inphoenix (Post 2249983)
I am very new to this, so bear with me. When I edit postbit_legacy, I see a bunch of code. Where exactly do I add this new code?


I do see this code in there :

<vb:if condition="$post['isfirstshown']">
{vb:raw ad_location.ad_showthread_firstpost_start}
{vb:raw ad_location.thread_first_post_content}

Then it should be working... Can you just put some text in the ad_location.ad_showthread_firstpost_start template like:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


and see if that shows up?

inphoenix 09-25-2011 06:53 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2249992)
Then it should be working... Can you just put some text in the ad_location.ad_showthread_firstpost_start template like:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


and see if that shows up?

No. It does not !!

BirdOPrey5 09-25-2011 06:54 PM

How many styles you have installed?

inphoenix 09-25-2011 07:07 PM

Just one in addition to default but now both of them show the same thing. User does not have option to change them.

Also, I was trying to install the mobile style and that does not work either. Thankfully, the forum is still functional. I can PM you details if you want to take a look.

Your help is greatly appreciated.

BirdOPrey5 09-25-2011 08:06 PM

I gave you the wrong template back in my first post, the correct one is actually: ad_showthread_firstpost_start.

That's why it wasn't showing up. :o


All times are GMT. The time now is 07:15 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.01324 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_quote_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