| View previous topic :: View next topic |
| Author |
Message |
mbrutsch Site Admin
Joined: 21 Mar 2008 Posts: 17
|
Posted: Fri Mar 21, 2008 4:35 pm Post subject: Which functions do you use? |
|
|
There are over 30 functions in the Widget Library, and some of them may not work (or even have meaning) under PBwiki 2.0. For example, 'hideFooter' is now irrelevant, because there's no footer to hide. Which functions do you use now, and which ones do you want to see converted to PBwiki 2.0?
Here's a list of the existing functions, for reference:
Buttons
addButton
hideButton
renameButton
redirectButton
Controls
hideFooter
installToggle
renameSidebar
showCrumbs
addPILink
Table of Contents
collapsibleToc
pageToc
quickListPages
siteMap
toggleToc
Header
replaceWikiName
replacePageName
replaceDivider
replaceAllText
replaceWithBanner
shortenLongName
changeHTML
Informational
getPageName
inSB
loggedIn
pageCount
Miscellaneous
autoLogin
includePage
onDocLoad
Tags
cloud
editor
multisearch
|
|
| Back to top |
|
 |
ChunkyMonkey Site Admin
Joined: 21 Mar 2008 Posts: 10
|
Posted: Fri Mar 21, 2008 5:44 pm Post subject: |
|
|
| We should get onDocLoad working right away, as it's vitally useful as a replacement for onLoad(). Beyond that, I also really want to fix up the ToC function. A lot.
|
|
| Back to top |
|
 |
mbrutsch Site Admin
Joined: 21 Mar 2008 Posts: 17
|
Posted: Fri Mar 21, 2008 6:10 pm Post subject: |
|
|
| Agreed. I was about to reply to a GS post about ToC not being a siteMap, and wondered: does 2.0 implement /links.php?
|
|
| Back to top |
|
 |
stephenfleming
Joined: 21 Mar 2008 Posts: 2
|
Posted: Fri Mar 21, 2008 7:08 pm Post subject: BreadCrumbs |
|
|
I agree that a lot of the more cosmetic parts of the widget library are either redundant or meaningless for 2.0. However, showCrumbs is incredibly useful to my users, isn't implemented in 2.0, and is visually "lightweight" enough to be cleanly integrated into 2.0's look-and-feel.
So -- one vote for showCrumbs!
|
|
| Back to top |
|
 |
mbrutsch Site Admin
Joined: 21 Mar 2008 Posts: 17
|
Posted: Fri Mar 21, 2008 7:12 pm Post subject: |
|
|
Thanks. I will start with showCrumbs.
|
|
| Back to top |
|
 |
ChunkyMonkey Site Admin
Joined: 21 Mar 2008 Posts: 10
|
Posted: Fri Mar 21, 2008 9:00 pm Post subject: |
|
|
| links.php is present
|
|
| Back to top |
|
 |
seanmac
Joined: 25 Mar 2008 Posts: 4
|
Posted: Tue Mar 25, 2008 10:11 am Post subject: |
|
|
Here is my half-penny's worth. Asteris beside the ones I currently use.
Buttons
*addButton - I'd still like this in 2.0
*hideButton
*renameButton
redirectButton
Controls
hideFooter -redundant
*installToggle - I'd still like this in 2.0
*renameSidebar - I'd still like this in 2.0
*showCrumbs - I'd still like this in 2.0
*addPILink - I'd still like this in 2.0
Table of Contents
*collapsibleToc - I'd still like this in 2.0
pageToc
quickListPages
siteMap
*toggleToc - I'd still like this in 2.0
Header
*replaceWikiName - I'd still like this in 2.0
replacePageName
replaceDivider
replaceAllText
* replaceWithBanner - I'd still like this in 2.0
*shortenLongName - I'd still like this in 2.0
*changeHTML - I'd still like this in 2.0
Informational
*getPageName - I'd still like this in 2.0
inSB
loggedIn
pageCount
Miscellaneous
autoLogin
includePage
*onDocLoad - I'd still like this in 2.0
*Tags
cloud
*editor - Tags are much better managed in 2.0 so this is probably redundant as well
multisearch
Seanmac
|
|
| Back to top |
|
 |
mbrutsch Site Admin
Joined: 21 Mar 2008 Posts: 17
|
Posted: Tue Mar 25, 2008 2:19 pm Post subject: |
|
|
Thanks, John. That's exactly the kind of feedback we're looking for.
showCrumbs has been implemented; see the Widget2 wiki for an example.
|
|
| Back to top |
|
 |
seanmac
Joined: 25 Mar 2008 Posts: 4
|
Posted: Tue Mar 25, 2008 2:27 pm Post subject: |
|
|
Works lovely in FF but not in IE 7 I'm afraid. Good to have you back
Seanmac
|
|
| Back to top |
|
 |
mbrutsch Site Admin
Joined: 21 Mar 2008 Posts: 17
|
Posted: Tue Mar 25, 2008 3:44 pm Post subject: |
|
|
| OK, it works now in IE6, but something is still generating an error. And since IE sucks, I can't figure out what it is. Could you try it in IE7 and see what you get?
|
|
| Back to top |
|
 |
seanmac
Joined: 25 Mar 2008 Posts: 4
|
Posted: Tue Mar 25, 2008 3:50 pm Post subject: |
|
|
| Works fine in IE 7 now! Excellent
|
|
| Back to top |
|
 |
mbrutsch Site Admin
Joined: 21 Mar 2008 Posts: 17
|
Posted: Tue Mar 25, 2008 4:36 pm Post subject: |
|
|
| It may not for long. They're pretty adamant about shutting Widget down for good.
|
|
| Back to top |
|
 |
vangispen
Joined: 26 Mar 2008 Posts: 6
|
Posted: Wed Mar 26, 2008 1:02 am Post subject: free workaround, my wishlist & counter question |
|
|
Free workaround to put javascript and CSS code on ur wiki page:
use the Google Gadget or YouTube video plugin to insert ur bits!
On a 2.0 wiki I would like to make different javascript/CSS code work for different groups of users. For example: for readers and writers I would like to hide lots of stuff, for editors less and for administrators nothing.
In the past (1.0) I've used replaceWikiName, replacePageName (sparsely, for FrontPage) & getPageName (frequently) and stole some code to make my own scripts (mainly Button functions).
A question raised: would you mind explaining just how you control the display of items that have no unique ID?
Uh, I can't, except when they have a class, then I can control all of them at once. But what items are you thinking about, anyway?
And oh yeah, I'm looking too how to handle the "module:sidebar" etc. thing ...
BTW: hi all
|
|
| Back to top |
|
 |
mbrutsch Site Admin
Joined: 21 Mar 2008 Posts: 17
|
Posted: Wed Mar 26, 2008 1:38 am Post subject: |
|
|
Welcome, vangispen! I was hoping you'd show up.
We know about the Google trick, but we didn't want to say too much publicly, lest they decide to try and close the "hole".
I was mistakenly thinking that the folders, et al, didn't have an ID. But, as you point out, they do (module:folders).
I'll start looking into how we can determine what privs a given user has. In 1.0, I would look for page elements which render differently depending on user status. I don't what, if any, page elements render differently in 2.0.
They still haven't officially ruled out in-page JS, but we're working under the assumption that they will, so everything will have to be called from the HEAD (which means JS support will be premium only). I don't like that option, but if we exploit holes like Google gadget, they'll just close them. Turds.
We also use a 1.0 wiki for developing the code; since they are going to eventually force us to upgrade to 2.0, we'll have to switch to some other code base.
|
|
| Back to top |
|
 |
mbrutsch Site Admin
Joined: 21 Mar 2008 Posts: 17
|
Posted: Wed Mar 26, 2008 1:42 am Post subject: |
|
|
Ah, I see you've already let the cat out of the bag about the Google/Youtube plugins. Oh well, we'll see what they do about it now!
My guess is they'll try to filter based on the contents of the <script> tags, but I'm sure we can work around whatever they do.
|
|
| Back to top |
|
 |
|