Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Google gadgets for navbar with drop down and popup Details »»
Google gadgets for navbar with drop down and popup
Version: 2.00, by elenh elenh is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 07-30-2009 Last Update: 07-31-2009 Installs: 9
Template Edits
 
No support by the author.

Hi,

I have create this code to my site and i like to share with you here in vb.org

Description:

With this code you can add google gadgets on your website in the navbar.

LIVE DEMO

INSTALLATION:

Firts go to:

Admincp > styles manager > choose your style > Navigation & Breadcrump templates > Navbar

find:
Code:
		<if condition="$show['member']">
			<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
		</if>
and add adove:

Code:
<!-- Gadgets Popup -->
		<if condition="$show['member']">
                       <td class="vbmenu_control"><a 
href="#4" id="gadgets" >Gadgets</a><script type="text/javascript"> vbmenu_register("gadgets");          </script></td>
		</if>
<!-- / Gadgets Popup -->
Next find in the same template:
Code:
<!-- NAVBAR POPUP MENUS -->
and add bellow:

Code:
<!-- Main gadgets drop down menu -->

<div class="vbmenu_popup" id="g_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">Google Gadgets</td>
</tr> 
<tr>
<td class="vbmenu_control"><a href="javascript: void(0)" 
   onclick="window.open('gadgets/facebook.php', 
  'windowname1', 
  'width=840, height=500'); 
   return false;">Facebook</a></td>
</tr>
<tr>
<td class="vbmenu_control"><a href="javascript: void(0)" 
   onclick="window.open('gadgets/allinone.php', 
  'windowname1', 
  'width=840, height=500'); 
   return false;">All in one!</a></td>
</tr>

</table>
</div>

<!-- / Main gadgets drop down menu -->

You are finish click save..

They are 2 Gadgets installed by default by me:
  1. Facebook
  2. All email in one

If you want more gadgets then:

Go to Google gadgets official website and select you gadgets.

Open new txt file in your pc and add:

Code:
<html>
 <head>
  <title>All mail in one Gadget</title>
 </head>
 <body>
GADGET SCRIPT HERE!!!
 </body>
</html>
Copy the scripts codes of the gadget you want and place on my code like i explane adove with the red color between tags
<body> </body> .


Save as PHP file and upload to gadgets path on your server.

Then go to: Admincp > styles manager > choose your style > Navigation & Breadcrump templates > Navbar

Find:
Code:
   return false;">All in one!</a></td>
</tr>
and add bellow:

Code:
<tr>
<td class="vbmenu_control"><a href="javascript: void(0)" 
   onclick="window.open('gadgets/NAME_OF_GADGET.php', 
  'windowname1', 
  'width=840, height=500'); 
   return false;">NAME_OF_GADGET_TO_DISPLAY</a></td>
</tr>

Where blue colored NAME_OF_GADGET is you must replace with the same name of the gadget php file.


You can change the numbers of the width and height like you want.('width=840, height=500')

Click Save and finish!

Some extras...

If you dont like to see the drop down icon then do this:

find:
Code:
"); </script></td>
and replace with:
Code:
", true); </script></td>

Post end here.If you like my hack please click installed.

Download Now

File Type: zip gadgets.zip (1.1 KB, 42 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-02-2009, 02:37 PM
kalisekj kalisekj is offline
 
Join Date: Dec 2006
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and Live Demo Of Just 7 Gadgets Right Now! http://freeonlinemoviesforum.com Register for Free Immediate Access.

You Will See The Gadget Drop Down Menu Right Next To The User Info On Right, Click On Drop Down Then Hover Mouse over any gadget to see it work. This Can Be a Very Useful Mod for any web site. To Get Outta The Pop Up Just Click back on the Site anywhere.
Reply With Quote
  #13  
Old 08-02-2009, 03:02 PM
kalisekj kalisekj is offline
 
Join Date: Dec 2006
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How Can I make it To where you have to click on the gadget instead of hover over it?
Reply With Quote
  #14  
Old 08-04-2009, 09:44 PM
kalisekj kalisekj is offline
 
Join Date: Dec 2006
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow not a single response in 2 days. LOL
Reply With Quote
  #15  
Old 08-05-2009, 03:01 PM
chick's Avatar
chick chick is offline
 
Join Date: Aug 2006
Location: PI Land
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WOW works nice (I did not install) but was looking at your demo, can it be only for admins or mods?
Reply With Quote
  #16  
Old 08-11-2009, 12:41 PM
elenh elenh is offline
 
Join Date: Jun 2009
Location: Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure.. if you replace:
Code:
<if condition="$show['member']">
with this:
Code:
<if condition="$bbuserinfo[usergroupid] == 6, 5, 7">
The numbers 5, 6, 7 are the usergroup ID's of Admin(6) Moderators(7) & Super Mod (5) by default.
You can add the usergroup ID's of your choice seperated with commas " , "
Reply With Quote
  #17  
Old 08-20-2009, 02:05 PM
elenh elenh is offline
 
Join Date: Jun 2009
Location: Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

14 downloads and only 5 Installs??
Reply With Quote
  #18  
Old 10-26-2009, 04:39 PM
RenatoMN's Avatar
RenatoMN RenatoMN is offline
 
Join Date: Nov 2008
Location: Brazil
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actualy, this should be:

PHP Code:
<if condition="in_array($bbuserinfo[usergroupid], array('5', '6', '7'))"
Reply With Quote
Reply


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


All times are GMT. The time now is 10:58 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.05634 seconds
  • Memory Usage 2,300KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (11)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete