vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Boost your revenues with google search adsense (https://vborg.vbsupport.ru/showthread.php?t=263212)

mysticla 05-04-2011 10:00 PM

Boost your revenues with google search adsense
 
1 Attachment(s)
Just simple templates modification, but you can boost your revenue with adsense..
my mod doesn't change the basic vbulletin design templates (see on screenshoot)

Preparation:
1. make your google search adsense, to obtain "partner-pub-id"
2. open navbar templates, see instruction on below:


Find
PHP code
Code:

<form action="search.php?do=process" method="post" id="navbar_search">
<input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="process" />
<input type="text" value="" name="query" class="textbox" />
.....
</span></span>


Replace with
PHP code
Code:

<form action="http://www.google.co.id/cse" id="cse-search-box" target="_blank">
<input type="hidden" name="cx" value="partner-pub-1677807936883236:1006600269" />
<input type="hidden" name="ie" value="UTF-8" />
<span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>


Change with your search adsense "partner-pub-id" Code
Code:

partner-pub-1677807936883236:1006600269

Don't forget to Mark As Installed
or
Nominate it for MOTM

BadgerDog 05-06-2011 10:54 AM

So this completely replaces vBulletin's own internal search routine?

Thanks .. :)

Regards,
Doug

Brandon Sheley 05-06-2011 01:45 PM

I don't see the google search in your screenshot.

mysticla 05-06-2011 01:56 PM

Quote:

Originally Posted by Brandon Sheley (Post 2192667)
I don't see the google search in your screenshot.

it does not change at all the existing design, but when members use the search function, it will be connected to your google adsense.

just try install it first :) for more details

irishblacknight 05-07-2011 08:22 PM

If it's not displaying the Google logo it would be in breach of their terms of service:
http://www.google.com/cse/docs/tos.html?gl=IE&hl=en_US

mysticla 05-07-2011 10:43 PM

1 Attachment(s)
Quote:

Originally Posted by irishblacknight (Post 2193107)
If it's not displaying the Google logo it would be in breach of their terms of service:
http://www.google.com/cse/docs/tos.html?gl=IE&hl=en_US

:) see the results when someone uses it
and absolutely not breach google terms of service


All times are GMT. The time now is 10:30 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.01149 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_code_printable
  • (2)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