vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   A 3.8. Plugin isnt running anymore (https://vborg.vbsupport.ru/showthread.php?t=240218)

swissknife 04-11-2010 09:51 AM

A 3.8. Plugin isnt running anymore
 
I had a templateedit and a plugin for vB 3.8. that changes the adsense block. But this isnt runing on vB4 anymore. Would anyone please make it for vB4 working?

(sry for my bad english)

Template:

PHP Code:

<if condition="$show['guest']"><div align="center">
$random_navad_a[$random_number]
</
div></if> 

Plugin:

PHP Code:

$random_number rand(12);

$random_navad_a[1] = '<script type="text/javascript"><!--
google_ad_client = "pub";
/* 300x250, Erstellt 09.01.10 */
google_ad_slot = "";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>'
;
$random_navad_a[2] = '<script type="text/javascript"><!--
google_ad_client = "pub";
/* 300x250, Erstellt 10.01.10 */
google_ad_slot = "";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
'


Thank you!!!!

Speysider 04-11-2010 04:36 PM

As I understand it, you will need to change the if code to read this:
Code:

<vb:if condition="$show['guest']"><div align="center">
$random_navad_a[$random_number]
</div></vb:if>



All times are GMT. The time now is 06:54 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.01048 seconds
  • Memory Usage 1,714KB
  • 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_code_printable
  • (2)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