vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   CMS- Insert code between articles in home page - any help? (https://vborg.vbsupport.ru/showthread.php?t=278234)

inigo 02-08-2012 07:03 AM

CMS- Insert code between articles in home page - any help?
 
I would like to insert ad code between articles in main content in the home page.

So, for example, tell the CMS that after article preview 1, 4 and 8 insert adsense code.

Any help where and how has this to be done?

The preview will be something like this (CMS Home page):

HEADER
PREVIEW ARTICLE 1
<code inserted>
PREVIEW ARTICLE 2
PREVIEW ARTICLE 3
PREVIEW ARTICLE 4
<code inserted>
PREVIEW ARTICLE 5
PREVIEW ARTICLE 6
PREVIEW ARTICLE 7
PREVIEW ARTICLE 8
<code inserted>
PREVIEW ARTICLE 9
PREVIEW ARTICLE 10

So i would like to know which is the template to edit and the contitional to tell,

after preview_articles (1,4,8) insert <this adsense code>

Thanks !!!

inigo 02-09-2012 01:48 PM

any idea?

Thx!!!

Lynne 02-09-2012 04:00 PM

The previews are spit out in template vbcms_content_article_preview so perhaps you can add something to the bottom of that.

inigo 02-10-2012 05:33 AM

Yes, thanks, I have tried this, but the problem is how to say that I want that code only after article_preview 1,5,9,...

At the moment it shows in all article_previews, i need a condition to show only after the article_preview positions I want.

Thanks for your response!

inigo 06-13-2012 07:52 AM

any idea?

Lynne 06-13-2012 03:21 PM

I really don't know without digging into the code more.


All times are GMT. The time now is 09:19 AM.

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.00979 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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