[WikiEducator] Re: adding a 'my projects' link through Javascript (was: Re: Volunteers: Working group for Website redesign?)

2009-03-12 Thread Scott Newson
Is there some way to do similar things for a specific page on WE?
Or, preferably, a page and any subpages of it?

Thanks,
Scott

On Tue, Mar 10, 2009 at 6:50 PM, Scott Newson scott.g.new...@gmail.comwrote:

 That works quite well, thanks.

 Scott


 On Tue, Mar 10, 2009 at 6:20 PM, Jim Tittsler jtitts...@gmail.com wrote:


 On Wed, Mar 11, 2009 at 14:08, Scott Newson scott.g.new...@gmail.com
 wrote:
  My only current complaint is that the new link has been added alongside
 the
  tabs used to access alternate views of the page and not up by the link
 to my
  userpage. Is there some easy way to change this? I've looked into the
 code,
  but can´t figure it out well enough to decide on what to change.

 You're right, that is probably a cleaner place to put it.  I had been
 experimenting with some additional page metadata, and so had the tab
 bar on my mind.

 You need to look at the HTML source of the page WikiEducator sends you
 and then change the Javascript to use the id of an existing item you
 are trying to insert it near.  Here is a version that puts it before
 the 'my talk' entry:
  http://wikieducator.org/User:JimTittsler/monobook.js

 Thanks for the suggestion.

 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups WikiEducator group.
To visit wikieducator: http://www.wikieducator.org
To visit the discussion forum: http://groups.google.com/group/wikieducator
To post to this group, send email to wikieducator@googlegroups.com
To unsubscribe from this group, send email to
wikieducator-unsubscr...@googlegroups.com
-~--~~~~--~~--~--~---



[WikiEducator] Re: adding a 'my projects' link through Javascript (was: Re: Volunteers: Working group for Website redesign?)

2009-03-12 Thread Robert Kruhlak

Hi Scott,

 Not really similar but for a navigation aid see

Template:TopicsWithSubpages

On Wed, Mar 11, 2009 at 11:41 PM, Scott Newson scott.g.new...@gmail.com wrote:
 Is there some way to do similar things for a specific page on WE?
 Or, preferably, a page and any subpages of it?

 Thanks,
 Scott

 On Tue, Mar 10, 2009 at 6:50 PM, Scott Newson scott.g.new...@gmail.com
 wrote:

 That works quite well, thanks.

 Scott

 On Tue, Mar 10, 2009 at 6:20 PM, Jim Tittsler jtitts...@gmail.com wrote:

 On Wed, Mar 11, 2009 at 14:08, Scott Newson scott.g.new...@gmail.com
 wrote:
  My only current complaint is that the new link has been added alongside
  the
  tabs used to access alternate views of the page and not up by the link
  to my
  userpage. Is there some easy way to change this? I've looked into the
  code,
  but can´t figure it out well enough to decide on what to change.

 You're right, that is probably a cleaner place to put it.  I had been
 experimenting with some additional page metadata, and so had the tab
 bar on my mind.

 You need to look at the HTML source of the page WikiEducator sends you
 and then change the Javascript to use the id of an existing item you
 are trying to insert it near.  Here is a version that puts it before
 the 'my talk' entry:
  http://wikieducator.org/User:JimTittsler/monobook.js

 Thanks for the suggestion.





 




-- 
Robert Kruhlak
Burnaby, BC
CANADA
(M) +1 778 230 1875
(E) kru...@gmail.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups WikiEducator group.
To visit wikieducator: http://www.wikieducator.org
To visit the discussion forum: http://groups.google.com/group/wikieducator
To post to this group, send email to wikieducator@googlegroups.com
To unsubscribe from this group, send email to
wikieducator-unsubscr...@googlegroups.com
-~--~~~~--~~--~--~---



[WikiEducator] Re: adding a 'my projects' link through Javascript (was: Re: Volunteers: Working group for Website redesign?)

2009-03-12 Thread Scott Newson
Very, very neat.
Is there some way to do this for anyone who visits a page?
Or is it only something individuals can do for themselves?

Thank you very much for all your useful answers so far, they've been very
informative and very much appreciated!

Scott


On Thu, Mar 12, 2009 at 1:17 PM, Jim Tittsler jtitts...@gmail.com wrote:


 On Thu, Mar 12, 2009 at 19:41, Scott Newson scott.g.new...@gmail.com
 wrote:
  Is there some way to do similar things for a specific page on WE?
  Or, preferably, a page and any subpages of it?

 Yes.  It is just Javascript.Base whatever you want to happen on
 the window.location.pathname property.  For example:

 function cleanPages() {
  var pages = [/Online_manual, /Training_resource_development_for_eXe,];
  for (var i in pages) {
if (window.location.pathname.indexOf(pages[i]) == 0) {
  document.getElementById(p-logo).innerHTML='a
 href=http://eXeLearning.org/;img
 src=/images/thumb/4/4a/Exe_RGB_72dpi.jpg/120px-Exe_RGB_72dpi.jpg/a';
}
  }
 }

 Invoke that in the runOnloadHook() and it will replace the
 WikiEducator logo with the eXe logo when you are reading the eXe
 manual (/Online_manual and its subpages, etc.) at WikiEducator.

 Think of this as the same sort of thing you do with Greasemonkey, only
 it will be available regardless of which browser you are using when
 you are logged in to WikiEducator.
   http://wikieducator.org/User:JimTittsler/monobook.js

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups WikiEducator group.
To visit wikieducator: http://www.wikieducator.org
To visit the discussion forum: http://groups.google.com/group/wikieducator
To post to this group, send email to wikieducator@googlegroups.com
To unsubscribe from this group, send email to
wikieducator-unsubscr...@googlegroups.com
-~--~~~~--~~--~--~---



[WikiEducator] Re: adding a 'my projects' link through Javascript (was: Re: Volunteers: Working group for Website redesign?)

2009-03-10 Thread Jim Tittsler

On Wed, Mar 11, 2009 at 14:08, Scott Newson scott.g.new...@gmail.com wrote:
 My only current complaint is that the new link has been added alongside the
 tabs used to access alternate views of the page and not up by the link to my
 userpage. Is there some easy way to change this? I've looked into the code,
 but can´t figure it out well enough to decide on what to change.

You're right, that is probably a cleaner place to put it.  I had been
experimenting with some additional page metadata, and so had the tab
bar on my mind.

You need to look at the HTML source of the page WikiEducator sends you
and then change the Javascript to use the id of an existing item you
are trying to insert it near.  Here is a version that puts it before
the 'my talk' entry:
  http://wikieducator.org/User:JimTittsler/monobook.js

Thanks for the suggestion.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups WikiEducator group.
To visit wikieducator: http://www.wikieducator.org
To visit the discussion forum: http://groups.google.com/group/wikieducator
To post to this group, send email to wikieducator@googlegroups.com
To unsubscribe from this group, send email to
wikieducator-unsubscr...@googlegroups.com
-~--~~~~--~~--~--~---