vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 05-24-2004, 02:29 PM
cLord's Avatar
cLord cLord is offline
T.A.F.K.A.M.
 
Join Date: Mar 2004
Posts: 124
Smile Google Module

This script will add a collapsible Google module to your vBadvanced CMPS!

Live Demo:
You can see the module in action here.

Download the attachment for instructions,
cLord

Last edited by cLord; 10-15-2009 at 05:46 AM.
  #2  
Old 05-24-2004, 02:56 PM
Zachery's Avatar
Zachery Zachery is offline
Super Moderator
 
Join Date: Jan 2004
Posts: 3,158
Default Re: Google Module

Nice
__________________
Zachery
vBadvanced Support & SysAdmin

  #3  
Old 05-24-2004, 03:11 PM
Frankenberrie's Avatar
Frankenberrie Frankenberrie is offline
Senior Member
 
Join Date: Mar 2004
Location: USA
Posts: 135
Default Re: Google Module

Looks good!! This might be something I can use.
  #4  
Old 05-25-2004, 08:09 AM
Socket Socket is offline
Junior Member
 
Join Date: Apr 2004
Posts: 14
Default Re: Google Module

Very handy cLord

Thanks
  #5  
Old 05-25-2004, 03:56 PM
Anubis Anubis is offline
Junior Member
 
Join Date: Mar 2004
Posts: 20
Default Re: Google Module

cool addon

thanks
  #6  
Old 05-26-2004, 12:12 AM
Rids Rids is offline
Junior Member
 
Join Date: Jan 2004
Posts: 28
Default Re: Google Module

Nice one - added
  #7  
Old 05-30-2004, 04:10 AM
TheSauceMaster TheSauceMaster is offline
Junior Member
 
Join Date: May 2004
Posts: 19
Default Re: Google Module

could someone be kind enough to make a google image for a dark background ? please
  #8  
Old 05-30-2004, 04:25 AM
Richard Richard is offline
Member
 
Join Date: Jan 2004
Location: South Texas
Posts: 75
Default Re: Google Module

Quote:
Originally Posted by TheSauceMaster
could someone be kind enough to make a google image for a dark background ? please
in the code listed above, change the following:

<img src="http://www.google.com/logos/Logo_40wht.gif"

to this:

<img src="http://www.google.com/logos/Logo_40blk.gif"

Here is a list of all of Google's official logos:

http://www.google.com/stickers.html
  #9  
Old 05-30-2004, 04:29 AM
Cube Cube is offline
Junior Member
 
Join Date: May 2004
Posts: 2
Default Re: Google Module

thanx
nice addon
installed and working within seconds
  #10  
Old 05-30-2004, 04:46 AM
TheSauceMaster TheSauceMaster is offline
Junior Member
 
Join Date: May 2004
Posts: 19
Default Re: Google Module

Quote:
Originally Posted by Richard
in the code listed above, change the following:

<img src="http://www.google.com/logos/Logo_40wht.gif"

to this:

<img src="http://www.google.com/logos/Logo_40blk.gif"

Here is a list of all of Google's official logos:

http://www.google.com/stickers.html
Thanks , appreciate that Great and Easy addon
  #11  
Old 05-30-2004, 09:13 AM
Zedd Zedd is offline
Member
 
Join Date: May 2004
Posts: 35
Default Re: Google Module

thanx, that took all of three seconds to add in.
  #12  
Old 06-10-2004, 05:31 PM
Intex Intex is offline
Member
 
Join Date: May 2004
Posts: 32
Default Re: Google Module

Nice - thx.

Quote:
Originally Posted by cLord
This will add a Google search module to your CMPS...

In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_google".

Insert this code into the template:

Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Google Search</b></span></td>
</tr>
<tr>
<td class="alt1" align="center">

<!-- Search Google -->
<form method="GET" action="http://www.google.com/search">
<a href="http://www.google.com/" target="_blank">
<img src="http://www.google.com/logos/Logo_40wht.gif" 
border="0" alt="Google"></a><br />
<input type="text" name="q" size="20" maxlength="255" value=""><br /><br />
<input type="submit" name="btnG" VALUE="Search">
</form>
<!-- Search Google -->

<br /><br />
</td>
</tr>
</table>
<br/>
Save the template!

Still in your Admincp - vBa CMPS - Add Module

- Module Title - Google Search
- Module Identifier - Leave blank
- OR Template to Include - google
- Activate and select the column you want it in.
- Save and you are done.

Have Fun,
cLord
  #13  
Old 06-13-2004, 06:22 PM
58sniper 58sniper is offline
Member
 
Join Date: Apr 2004
Posts: 80
Default Re: Google Module

BTW - If you change the adv_portal_google template to the code below, it will more closely resemble the adv_portal_search module. See the demo.


Code:
<form method="GET" action="http://www.google.com/search">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
	<tr>
		<td class="tcat"><span class="smallfont"><b>$vboptions[blockbullet] Google Search</b></span></td>
	</tr>
	<tr>
		<td class="alt2">
			<input name="s" type="hidden" value="" />
			<input name="do" type="hidden" value="process" />
			<input name="sortby" type="hidden" value="lastpost" />
			<input name="forumchoice" type="hidden" value="0" />
			<center><a href="http://www.google.com/" target="_blank"><img src="http://www.google.com/logos/Logo_40wht.gif" width="128" height="53" border="0" alt="Google" /></a></center>
			<input class="bginput" name="q" size="13" type="text" />
			<input class="button" type="submit" name="btnG" value="Go"  /><br />
			<span class="smallfont" style="float: left;">&raquo; <a href="$vboptions[bburl]/search.php?">$vbphrase[advanced_search]</a></span>
		</td>
	</tr>
</table>
</form>
<br />

Last edited by 58sniper; 06-13-2004 at 06:27 PM.
  #14  
Old 08-20-2004, 08:09 PM
Allen Mead Allen Mead is offline
Senior Member
 
Join Date: Jul 2004
Location: United Kingdom
Posts: 131
Default Re: Google Module

Pukka hack
  #15  
Old 08-20-2004, 09:17 PM
NeroTheWarlord NeroTheWarlord is offline
Junior Member
 
Join Date: Aug 2004
Posts: 25
Default Re: Google Module

Nice one, thanks.
  #16  
Old 09-01-2004, 02:02 PM
djnth djnth is offline
Member
 
Join Date: Aug 2004
Posts: 51
Default Re: Google Module

would it be hard to modify the SEARCH FORUMS module so that it could be used to search google instead by selecting a checkbox?
  #17  
Old 09-10-2004, 03:42 AM
emtee emtee is offline
Junior Member
 
Join Date: Aug 2004
Posts: 11
Default Re: Google Module

Somehow the "open in new page - target="_blank" doesn't work. It searches for the terms in current page, which you probably don't want because you don't want your visitor leave the site. I tried to fix it but still doesn't work. Will post when I have it done.
  #18  
Old 09-10-2004, 02:30 PM
58sniper 58sniper is offline
Member
 
Join Date: Apr 2004
Posts: 80
Default Re: Google Module

Quote:
Originally Posted by emtee
Somehow the "open in new page - target="_blank" doesn't work. It searches for the terms in current page, which you probably don't want because you don't want your visitor leave the site. I tried to fix it but still doesn't work. Will post when I have it done.
Okay - I must have been on crack when I posted that. The Advanced Search link is also wrong. My original code above doesn't specify that it should open in a new page (only if you clicked on the Google logo did it spawn a child page).

You can change the <form> tag by including target="_blank", but I think that breaks validation (I don't think target is a valid parameter for <form>). I'll have to look into that. Here is some more streamlined code:

Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
	<tr>
		<td class="tcat smallfont" style="font-weight: bold;">$vboptions[blockbullet] Google Search</td>
	</tr>
	<tr>
		<td class="alt2">
<form method="get" action="http://www.google.com/search" target="_blank">
 
	<input name="s" type="hidden" value="" />
			<input name="do" type="hidden" value="process" />
			<input name="sortby" type="hidden" value="lastpost" />
			<input name="forumchoice" type="hidden" value="0" />
			<center><a href="http://www.google.com/" target="_blank"><img src="http://www.google.com/logos/Logo_40wht.gif" width="128" height="53" border="0" alt="Google" /></a></center>
			<input class="bginput" name="q" size="13" type="text" />
			<input class="button" type="submit" name="btnG" value="Go" /><br />
<span class="smallfont" style="float: left;">&raquo; <a href="http://www.google.com/advanced_search?hl=en">$vbphrase[advanced_search]</a></span>
</form>
	</td>
	</tr>
</table>
<br />
  #19  
Old 09-11-2004, 02:41 AM
emtee emtee is offline
Junior Member
 
Join Date: Aug 2004
Posts: 11
Default Re: Google Module

Oh I put it in the <form> tag and it works. Thanks m8!
  #20  
Old 04-24-2005, 07:14 AM
graham_w graham_w is offline
Junior Member
 
Join Date: Apr 2005
Posts: 1
Default Re: Google Module

thanks nice work - i had the coding just needed to figure out how to put it in the modules
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quote It Module Acido Add-On Modules & Modifications 33 01-28-2006 12:54 PM
PayPal Module cLord Add-On Modules & Modifications 36 09-21-2005 01:08 AM
Top (10) Reputation Module Acido Add-On Modules & Modifications 45 08-26-2005 11:16 PM
Page or Module? poseidon Troubleshooting / "How do I..." Questions 2 05-20-2004 11:43 AM


All times are GMT -4. The time now is 01:19 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.