elenh
07-30-2009, 10:00 PM
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 (http://ellinofrenia.com/forum/forum.php)
INSTALLATION:
Firts go to:
Admincp > styles manager > choose your style > Navigation & Breadcrump templates > Navbar
find:
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase</a></td>
</if>
and add adove:
<!-- 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:
<!-- NAVBAR POPUP MENUS -->
and add bellow:
<!-- 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:
Facebook
All email in one
If you want more gadgets then:
Go to Google gadgets official website (http://www.google.com/ig/directory?synd=open&hl=en-US&gl=US&cat=all) and select you gadgets.
Open new txt file in your pc and add:
<html>
<head>
<title>All mail in one Gadget</title>
</head>
<body>
[U]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:
return false;">All in one!</a></td>
</tr>
and add bellow:
<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:
"); </script></td>
and replace with:
", true); </script></td>
Post end here.If you like my hack please click installed.
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 (http://ellinofrenia.com/forum/forum.php)
INSTALLATION:
Firts go to:
Admincp > styles manager > choose your style > Navigation & Breadcrump templates > Navbar
find:
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase</a></td>
</if>
and add adove:
<!-- 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:
<!-- NAVBAR POPUP MENUS -->
and add bellow:
<!-- 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:
All email in one
If you want more gadgets then:
Go to Google gadgets official website (http://www.google.com/ig/directory?synd=open&hl=en-US&gl=US&cat=all) and select you gadgets.
Open new txt file in your pc and add:
<html>
<head>
<title>All mail in one Gadget</title>
</head>
<body>
[U]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:
return false;">All in one!</a></td>
</tr>
and add bellow:
<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:
"); </script></td>
and replace with:
", true); </script></td>
Post end here.If you like my hack please click installed.