Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 02-06-2008, 09:53 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Here is the sidebar file for v9.5, visible if logged in:

Code:
{if $user_logged_in neq ""}

<div class="tlb">
    {php}
        echo "<span><a onclick=\"new Effect.toggle('cal','blind', {queue: 'end'}); \"> <img src=\"".my_pligg_base."/templates/".The_Template."/images/expand.png\"></a></span>";
    {/php}
    <a href="#">Kalender</a>
</div>



<div id="cal" align=right style="padding-top:5px,padding-bottom:5px">
    <ul style="list-style:none;">
		<link rel="stylesheet" type="text/css" media="all" href="http://www.domain.com/templates/yget/sidebar_modules/calendar-win2k-cold-1.css" title="win2k-cold-1" />
		<script type="text/javascript" src="http://www.domain.com/templates/yget/sidebar_modules/calendar.js"></script>
		<script type="text/javascript" src="http://www.domain.com/templates/yget/sidebar_modules/lang/calendar-de.js"></script>
		<script type="text/javascript" src="http://www.domain.com/templates/yget/sidebar_modules/calendar-setup.js"></script>

		<div style="float: center; margin-left: 1em; margin-bottom: 1em;"
		id="calendar-container"></div>

		{ literal }
			<script type="text/javascript">
  			function dateChanged(calendar) {
    				if (calendar.dateClicked) {
      			var y = calendar.date.getFullYear();
      			var m = calendar.date.getMonth();     // integer, 0..11
      			var d = calendar.date.getDate();      // integer, 1..31
      			window.location = "/" + y + "/" + m + "/" + d + "/index.php";
    				}
  			};

  			Calendar.setup(
    				{
      			flat         : "calendar-container", // ID of the parent element
      			flatCallback : dateChanged           // our callback function
    				}
 			);
			</script>
		{ /literal }

    </ul>
</div>
	
{/if}
As you can see, I´ve placed the calendar files at the folder http://www.domain.com/templates/yget/sidebar_modules.
Reply With Quote
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Modification Tutorials 3 10-18-2008 10:28 AM
Help needed with code insertion into sidebar module. jemaverick General Help 3 03-27-2008 01:27 PM
Google Translate v0.1 Sidebar Pligg Module pliggedit Modification Tutorials 3 03-16-2008 02:57 AM
Sidebar Friends Module with messaging and activity AnAlienHolakres3 Modification Tutorials 31 02-09-2008 06:54 AM
differents class for sidebar module lacasuela "yget" 5 01-21-2008 02:32 PM


Search Engine Friendly URLs by vBSEO 3.2.0