vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - Google gadgets for navbar with drop down and popup (https://vborg.vbsupport.ru/showthread.php?t=219911)

elenh 07-30-2009 10:00 PM

Google gadgets for navbar with drop down and popup
 
1 Attachment(s)
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.

NLP-er 07-31-2009 06:04 PM

Any screen shots or live demo? :)

elenh 07-31-2009 06:11 PM

Yes sure. Added on top.

Alfa1 07-31-2009 07:42 PM

My Greek really sucks. Could you please provide screen shots or a demo in English? The only part of your demo that is in English is the gadget drop down, but its stuck behind the advertisement. If I hover it, a Facebook popup appears. Is this what this modification does?

Please explain.

Rooms 07-31-2009 09:13 PM

Yeah the gadgets drop down doesn't want to work for me in your demo, but it's a nice idea.

goxy63 07-31-2009 09:30 PM

Yeah drop down is not working, when I hoover with mouse window just pops out...

How do you close pop out window?
I lost myself there for 10 secs...place a button for shut it down and its great mod if you ask me

Tagged

elenh 08-01-2009 11:39 AM

The mod is UPDATED.And the demo works too.

NLP-er 08-01-2009 04:34 PM

Quote:

Originally Posted by elenh (Post 1859531)
The mod is UPDATED.And the demo works too.

What should I look there?...

elenh 08-01-2009 05:18 PM

Click in the demo url on Navbar the Gadgets! link.

NLP-er 08-01-2009 07:19 PM

Quote:

Originally Posted by elenh (Post 1859690)
Click in the demo url on Navbar the Gadgets! link.

Great thanks :)


All times are GMT. The time now is 12:41 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.01175 seconds
  • Memory Usage 1,754KB
  • 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
  • (9)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete