Re: [pmwiki-users] SQLite pagelist recipe prerelease

2012-08-26 Thread Alex Eftimiades
er, very, very cursory thoughts... somebody else probably KNOWS better) On 08/26/2012 02:48 PM, Alex Eftimiades wrote: I have been trying to redesign some of the common pagelist functionality to take advantage of an sqlite installation. You just include it after you set your WikiDir to the cu

[pmwiki-users] SQLite pagelist recipe prerelease

2012-08-26 Thread Alex Eftimiades
I have been trying to redesign some of the common pagelist functionality to take advantage of an sqlite installation. You just include it after you set your WikiDir to the custom SQLite pagestore class. Like the person who sent out the updated pmwiki skin, I was looking for some feedback/co

Re: [pmwiki-users] About the columns used in the sqlite recipe.

2012-08-24 Thread Alex Eftimiades
, Petko Yotov wrote: Alex Eftimiades writes: I thought it would be wise to ask why it was coded this way in the first place. Is there any particular reason you stored the pagename rather than the group and name separately? I presume it could have something to do with faster data retrieval, but I

[pmwiki-users] About the columns used in the sqlite recipe.

2012-08-24 Thread Alex Eftimiades
I have a few questions concerning the way the database is structured in the sqlite recipe: I was writing some custom pagelist functions that will take advantage of data stored in an sqlite database. I got it to retrieve pages based on the name=, group=, and link= statements, and I was just

Re: [pmwiki-users] Would the sqlite recipe gain anything in storing pages in separate tables based on group?

2012-08-22 Thread Alex Eftimiades
to pull up the tables in the groups you are searching in. This seemed to make sense to me, and I just wanted to have someone who knows databases and/or the sqlite recipe confirm or refute my hypothesis. Thanks, Alex On Aug 6, 2012, at 11:17 PM, Petko Yotov wrote: Alex Eftimiades write

Re: [pmwiki-users] Something (possibly the sqlite recipe) seems to have trouble with UTF-8 in wikilinks

2012-08-21 Thread Alex Eftimiades
this. Thanks again, Alex On Aug 22, 2012, at 12:29 AM, Petko Yotov wrote: On Tuesday 21 August 2012 18:16:25 Alex Eftimiades wrote: The reason I suggested the sqlite recipe might be at fault was because I remember the utf-8 characters working fine before I installed the sqlite recipe. Then a l

Re: [pmwiki-users] Something (possibly the sqlite recipe) seems to have trouble with UTF-8 in wikilinks

2012-08-21 Thread Alex Eftimiades
is no longer accessible. Thanks, Alex On Aug 21, 2012, at 3:16 AM, Petko Yotov wrote: Alex Eftimiades writes: The page here: http://icare.org/wiki/index.php/Researchers/SelimKu%25C3%25A7i > There is indeed something wrong with your installation, this is not a right URL to the page: the

Re: [pmwiki-users] Something (possibly the sqlite recipe) seems to have trouble with UTF-8 in wikilinks

2012-08-21 Thread Alex Eftimiades
the include statements, my problem has become disappearing page actions. Thanks for the suggestions, Alex On Aug 21, 2012, at 3:16 AM, Petko Yotov wrote: Alex Eftimiades writes: The page here: http://icare.org/wiki/index.php/Researchers/SelimKu%25C3%25A7i > There is indeed something wr

Re: [pmwiki-users] Something (possibly the sqlite recipe) seems to have trouble with UTF-8 in wikilinks

2012-08-21 Thread Alex Eftimiades
suggestions, Alex On Aug 21, 2012, at 3:16 AM, Petko Yotov wrote: Alex Eftimiades writes: The page here: http://icare.org/wiki/index.php/Researchers/SelimKu%25C3%25A7i > There is indeed something wrong with your installation, this is not a right URL to the page: the %25 pieces should be just %,

[pmwiki-users] Something (possibly the sqlite recipe) seems to have trouble with UTF-8 in wikilinks

2012-08-20 Thread Alex Eftimiades
The first includes of my config.php is: include_once("scripts/xlpage-utf-8.php"); $DefaultPageCharset = array(''=>'ISO-8859-9', 'ISO-8859-1'=>'ISO-8859-9'); include_once("$FarmD/cookbook/sqlite.php"); $WikiDir = new PageStoreSQLite($WorkDir.'/pmwiki.sqlite.db', 1); $WikiLibDirs = array( &$W

Re: [pmwiki-users] How to do the equivalent of hitting "save" on every page on the wiki?

2012-08-16 Thread Alex Eftimiades
ter']( $pn, $fn, $thispage ); } if($thispage!=$oldpage) WritePage($pn,$thispage); } } This could however be an easy way to develop a DOS attack, so it should be limited to certain trusted usernames and/or passwords. Thanks, Alex On Aug 16, 2012, at 2:27 PM, Christopher Cox wrot

Re: [pmwiki-users] How to do the equivalent of hitting "save" on every page on the wiki?

2012-08-16 Thread Alex Eftimiades
This is what I have so far: #code if($action=='update'){ set_time_limit(180); $pages=ListPages('/Researchers.*/'); foreach(array_slice($pages,0,3) as $pn){ $thispage=ReadPage($pn, READPAGE_CURRENT); $thisnewpage=$thispage; UpdatePage($pn,$thispage,$thisnewpage); print_r($this

[pmwiki-users] How to do the equivalent of hitting "save" on every page on the wiki?

2012-08-16 Thread Alex Eftimiades
I just added some important new page attributes that will get when you hit "save" while editing a page. I want to apply them to all the pages I currently have. I get the feeling this would not be as simple as doing a "WritePage" to each page on the wiki since that would just rewrite the exi

[pmwiki-users] (:if !equal (:pagelist ... fmt=count:) 0:) does not work

2012-08-14 Thread Alex Eftimiades
There seems to be something about the regex in the if markup that limits the if statement to text that does not contain a ":)". The same seems to go for page text variables (with the exception of ROSPatterns.) I will try to fix it, but I am not great with regex. Thanks, Alex

Re: [pmwiki-users] Would the sqlite recipe gain anything in storing pages in separate tables based on group?

2012-08-12 Thread Alex Eftimiades
cient in your case ? Thank you. Gilles. 2012/8/8 tamouse mailing lists : Yes, I was wondering about that. Thanks for clarifying. On Aug 7, 2012 5:30 AM, "Alex Eftimiades" wrote: As I mentioned in previous questions, my wiki does a pagelist (or two) every time a page loads. It

Re: [pmwiki-users] How to store login information in a page and have their permissions determined by what group that page is in

2012-08-09 Thread Alex Eftimiades
k recipe on it when I have everything polished. At least to me, it seems like a great way to store and manage login information. On Aug 9, 2012, at 11:30 AM, Petko Yotov wrote: Alex Eftimiades writes: red text that indicates it being nonfunctional. Did I misunderstand, or is that part

Re: [pmwiki-users] How to store login information in a page and have their permissions determined by what group that page is in

2012-08-09 Thread Alex Eftimiades
Could anyone give me a quick rundown on how SessionAuth works? I might be able to modify AuthUser if I had a better idea of what was going on. Thanks, Alex On Aug 9, 2012, at 11:30 AM, Petko Yotov wrote: Alex Eftimiades writes: red text that indicates it being nonfunctional. Did I

Re: [pmwiki-users] How to store login information in a page and have their permissions determined by what group that page is in

2012-08-09 Thread Alex Eftimiades
suggestion, Alex On Aug 9, 2012, at 12:59 AM, Petko Yotov wrote: Alex Eftimiades writes: I have been working on a way to manage a large number of users that can be clustered into different groups of people. Each person should have a profile page (not necessarily in Profiles) that they can edit

[pmwiki-users] How to store login information in a page and have their permissions determined by what group that page is in

2012-08-08 Thread Alex Eftimiades
I have been working on a way to manage a large number of users that can be clustered into different groups of people. Each person should have a profile page (not necessarily in Profiles) that they can edit. However, I want to be able to assign different permissions to users based on what

Re: [pmwiki-users] Would the sqlite recipe gain anything in storing pages in separate tables based on group?

2012-08-07 Thread Alex Eftimiades
, "Alex Eftimiades" wrote: I just got the sqlite recipe working with all the pages switched over to the database, and after looking at the database structure, I thought it was odd that it did not use separate tables for different groups. I would think this would cut down o

[pmwiki-users] Would the sqlite recipe gain anything in storing pages in separate tables based on group?

2012-08-06 Thread Alex Eftimiades
I just got the sqlite recipe working with all the pages switched over to the database, and after looking at the database structure, I thought it was odd that it did not use separate tables for different groups. I would think this would cut down on the time it takes to access pages, but I

Re: [pmwiki-users] How to tag pages like categories, then do pagelist of everything tagged with a given page (without using links)

2012-08-06 Thread Alex Eftimiades
I have thought about it, and I think this is the way to go. I have not implemented it yet, but I just wanted to say thanks for the thought and I intend to implement this in the future. Thanks, Alex On Aug 2, 2012, at 4:58 PM, Peter Bowers wrote: On Thu, Aug 2, 2012 at 2:32 AM, Alex

Re: [pmwiki-users] How to tag pages like categories, then do pagelist of everything tagged with a given page (without using links)

2012-08-01 Thread Alex Eftimiades
pmwiki.org/wiki/Category/Links Petko Alex Eftimiades writes: In short, yes, I believe that would be the sort of thing I am interested in. However having them appear on the page is somewhat desirable for me. The important thing is being able to specify which links show up in a pagelist link=.

Re: [pmwiki-users] How to tag pages like categories, then do pagelist of everything tagged with a given page (without using links)

2012-08-01 Thread Alex Eftimiades
but I use a few PTVs to store wiki page links (parent, categories, tags) that kept in a Meta block in the page sobthey don't show up in the presentation. Is this the sort of thing you're thinking about? On Jul 31, 2012 10:05 AM, "Alex Eftimiades" wrote: I currently have

[pmwiki-users] How to tag pages like categories, then do pagelist of everything tagged with a given page (without using links)

2012-07-31 Thread Alex Eftimiades
I currently have my site structured around using links to pages like tags. I include a pagelist of all pages with links to the current page in the groupfooter. See here for an example of listing relevant publications: http://icare.org/wiki/index.php?n=ITeams.FibrolamellarHepatocellularCarcin

[pmwiki-users] wikish rename page & move attachments

2012-07-28 Thread Alex Eftimiades
I am trying to complete the functionality of the rename page script. I could not find any documentation as to how I might go about moving any page specific attachments from the old page to the new page. I am not even sure if it is currently possible. If it is possible, could someone please

Re: [pmwiki-users] modifying wikish renaming pages/groups scripts to update links with spaces

2012-07-28 Thread Alex Eftimiades
pages in the WikiSh group (thus being able to make use of the scripts provided for them.) So essentially, only admins are allowed to create WikiSh scripts, but editors are allowed to use them by viewing the pages they create. Alex PS: I will consider putting this on the cookbook examp

Re: [pmwiki-users] modifying wikish renaming pages/groups scripts to update links with spaces

2012-07-24 Thread Alex Eftimiades
it as follows: include_once("$FarmD/cookbook/powertools.php"); //end code I tried modifying the CondAuth line with an "or $group=='WikiSh'" for starters, but that did not seem to make a difference. I am quite confused as to how to go about doing this. Thanks, A

Re: [pmwiki-users] modifying wikish renaming pages/groups scripts to update links with spaces

2012-07-22 Thread Alex Eftimiades
disabled. Could anyone tell me what part of this I need to fix? Perhaps I am going about this wrong. Thanks, Alex On Jul 21, 2012, at 10:16 PM, Alex Eftimiades wrote: Yes this seems to work now. Thank you very much. I am going to try to modify this into a page action and for renaming group

Re: [pmwiki-users] modifying wikish renaming pages/groups scripts to update links with spaces

2012-07-21 Thread Alex Eftimiades
Yes this seems to work now. Thank you very much. I am going to try to modify this into a page action and for renaming groups. Thanks Alex On Jul 21, 2012, at 12:53 PM, Peter Bowers wrote: No that's fine. If it's an action you do on a regular basis then you'll probably want to put the code o

Re: [pmwiki-users] modifying wikish renaming pages/groups scripts to update links with spaces

2012-07-20 Thread Alex Eftimiades
he top of the page. Then I have config.php create a page footer of everything linking to that page separated by group. This becomes a very convenient way of automatically keeping track of relevant information. On Jul 20, 2012, at 10:46 AM, Peter Bowers wrote: On Fri, Jul 20, 2012 at 4:28

Re: [pmwiki-users] modifying wikish renaming pages/groups scripts to update links with spaces

2012-07-20 Thread Alex Eftimiades
20, 2012, at 10:24 AM, Peter Bowers wrote: On Fri, Jul 20, 2012 at 2:49 PM, Alex Eftimiades wrote: I have tried the following script: //Rename Page ... sed -i 's|${OldGroup}([./]\)?)${OldPage}|${NewGroup}$1${NewPage}| gi' `pagelist link=${OldGroup}.${OldPage} sep=\n` ... and I no

[pmwiki-users] modifying wikish renaming pages/groups scripts to update links with spaces

2012-07-20 Thread Alex Eftimiades
I have tried the following script: //Rename Page set -s OldGroup = TestA set -s OldPage = A set -s NewGroup = TestB set -s NewPage = B sed -i 's|${OldGroup}([./]\)?)${OldPage}|${NewGroup}$1${NewPage}|gi' `pagelist link=${OldGroup}.${OldPage} sep=\n` mv ${OldGroup}.${OldPage} ${NewGroup}.${NewPa

Re: [pmwiki-users] Getting google maps api to work with pagelist

2012-07-19 Thread Alex Eftimiades
least for 4 tries, there are no random misses. Alex On Jul 19, 2012, at 1:54 AM, Alex Eftimiades wrote: I have a custom pagelist template that looks like this: (:if false:) [[#map]] (:template defaults order=title:) (:gma-point addr='{{=$FullName}$:address}' text='http:/

[pmwiki-users] Getting google maps api to work with pagelist

2012-07-18 Thread Alex Eftimiades
I have a custom pagelist template that looks like this: (:if false:) [[#map]] (:template defaults order=title:) (:gma-point addr='{{=$FullName}$:address}' text='http://icare.org/wiki/index.php?n= {=$FullName}">{=$Titlespaced}' :) [[#map]] (:ifend:) I have a custom page text variable "address"

Re: [pmwiki-users] Password protect page with editors' password action

2012-07-15 Thread Alex Eftimiades
look for the "protected:" and the "passwdread:" lines to see what's actually happening behind the scenes... -Peter On Sun, Jul 15, 2012 at 7:56 PM, Alex Eftimiades wrote: Thanks a lot for the script. I was trying to debug it. It does switch to protected mode, it just d

Re: [pmwiki-users] How to password protect read/write access to everything in a category?

2012-07-15 Thread Alex Eftimiades
Thanks for the help though, it was very much appreciated. Alex On Jul 15, 2012, at 4:06 PM, tamouse mailing lists wrote: On Sun, Jul 15, 2012 at 11:52 AM, Alex Eftimiades wrote: I was working on a custom action. I sent out my code yesterday, but I am still not getting anywhere. Any help w

Re: [pmwiki-users] Password protect page with editors' password action

2012-07-15 Thread Alex Eftimiades
r Bowers wrote: On Sun, Jul 15, 2012 at 12:53 AM, Alex Eftimiades wrote: I have been trying to make a button that password protects a page with the editors' password, or un-protects it if it is already protected. I tried putting this at the bottom of config.php, but it just se

Re: [pmwiki-users] How to password protect read/write access to everything in a category?

2012-07-15 Thread Alex Eftimiades
I was working on a custom action. I sent out my code yesterday, but I am still not getting anywhere. Any help with a "password protect/ unprotect with editors password" action would be greatly appreciated. Thanks, Alex On Jul 15, 2012, at 12:50 PM, Peter Bowers wrote: On Sun, Jul 15, 2012 a

[pmwiki-users] Password protect page with editors' password action

2012-07-14 Thread Alex Eftimiades
I have been trying to make a button that password protects a page with the editors' password, or un-protects it if it is already protected. I tried putting this at the bottom of config.php, but it just seemed to mess up my pages: $HandleActions['switchauth'] = 'switchauth'; # if url contains

Re: [pmwiki-users] How to password protect read/write access to everything in a category?

2012-07-14 Thread Alex Eftimiades
On Jul 14, 2012, at 7:19 AM, Peter Bowers wrote: On Fri, Jul 13, 2012 at 7:58 PM, Alex Eftimiades wrote: I was looking for an easy way for editors to password protect something so that only other editors could see/edit it. I tried making a password protected group, but that quickly became an

[pmwiki-users] How to password protect read/write access to everything in a category?

2012-07-13 Thread Alex Eftimiades
same thing? Thanks, Alex Eftimiades ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users