vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   BB Code Enhancements - Let users submit their own Adsense Adverts in posts (https://vborg.vbsupport.ru/showthread.php?t=157592)

Foulish_Mitch 09-10-2007 10:00 PM

Let users submit their own Adsense Adverts in posts
 
This is my first "release" and it's pretty simple.

This BBCode lets users post their own adsense code in their posts/threads.

By posting [ad]ACCOUNT CODE HERE[/ad]

----

Title: User Advertisment

Tag: ad

Replacement:
HTML Code:

<script type="text/javascript"><!-- google_ad_client = "{param}"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "125x125_as"; google_ad_type = "text_image"; //2007-08-20: HW-Forum.Net google_ad_channel = "1395103917"; google_color_border = "000000"; google_color_bg = "333333"; google_color_link = "7b7b7b"; google_color_text = "717171"; google_color_url = "717171"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
Description: Insert Adsense in your posts

Use {option}: No

---

Usage: Enter your "PUB" code (Find it in your second line, it's the second line: google_ad_client = "pub-******************"; ) into the [ad] tags.

If you need any help. or I haven't explained it properly, please feel free to ask.

Ensure you leave the letters "Pub" in!

Tip: Edit the code accordingly to change the look and feel of adverts to better suit your forum template.

PoetJA-1975 09-11-2007 08:56 PM

Interesting. Thanx for sharing ;)

Jacquii.

993ti 09-11-2007 11:57 PM

Won't this be against TOS if more then 1 user will use this on the same page?

a1whs.com 09-12-2007 06:19 AM

Quote:

Originally Posted by 993ti (Post 1337319)
Won't this be against TOS if more then 1 user will use this on the same page?

Yup but than again different accounts will be showing ads though, not single account, plus i wonder if it will show at random only for 1 user the ads and not for others ?

Wont this make forum messy if everyone were to post ad code in every post though ? Any idea how to put restrictions, like vbamanagement mod ?

montsa007 03-08-2008 03:35 AM

10 replies on 1 page = 10 ads on 1 page = straight away ban :mad:

montsa007 07-03-2008 03:03 PM

Can someone answer me?


All times are GMT. The time now is 03:53 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.01035 seconds
  • Memory Usage 1,721KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (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