<!-- Some styling for better description lists --><style type='text/css'>dt { font-weight: bold;float: left;display:inline;margin-right: 1em} dd { display:block; margin-left: 2em}</style>

   ***: TNRR2012 has joined #tikiwiki
   <br> goj|ghost has joined #tikiwiki
   <br> goj has quit IRC (Ping timeout: 276 seconds)
   <br> goj|ghost is now known as goj
   TNRR2012: tiki 7 new install:  wordpress is my portal.  i link to all my other sites including tiki from it.  is there a way that once i am logged into wordpress to be logged into tiki?  perhaps someone knows a post i can read on this?  thanx
   ***: rodrigo_sampaio1 has quit IRC (Ping timeout: 258 seconds)
   TNRR2012: hmnn thanx i guess
   ***: TNRR2012 has quit IRC (Quit: Leaving)
   <br> TNRR2012 has joined #tikiwiki
   TNRR2012: <u>tiki7</u>: hoping that someone might be on that knows if it is possible to use wordpress to authenticate my login into tiki.  what i mean is my wordpress is at mysite.com  and the tiki at mysite.com/tiki  i want to sign into wordpress and be able to click my link to tiki and be signed in.  thank you
   <br> could someone simply tell me where to look within the tiki site for information similar to this?  thanx
   ***: nkoth has quit IRC (Quit: nkoth)
   <br> nkoth has joined #tikiwiki
   <br> nkoth has quit IRC (Client Quit)
   <br> TNRR2012 has quit IRC (Quit: Leaving)
   <br> Bernard1 has joined #tikiwiki
   <br> chealer has quit IRC (Remote host closed the connection)
   <br> Merbster has joined #tikiwiki
   Merbster: Goodmorning.
   <br> We are haveing some trouble with trackers in TikiWiki 6.3
   <br> it takes forever to save one, and the server returns Internal Server Error 500
   <br> Yet the tracker is actually saved in the database.
   <br> What is weird; it's not even consistent.
   <br> Only _some_ of the trackers are affected
   ***: kstingel has joined #tikiwiki
   kstingel: Can anyone assist me with configuring my first Tracker?
   <br> the first field should be automatically filled with the current username, but upon creation of the Tracker, I have a drop-down user select list instead
   Merbster: kstingel, if you can activate tikiparsing of that field
   <br> you could use the wiki argument {user}
   kstingel: The Tracker's purpose is to collect First and Last names from new Users (and other data directly connected to the User)
   <br> <u>Merbster</u>: thanks, how do I activate tikiparsing on the field?
   Merbster: kstingel, I said if you can... I am not that much into the tracker functionality and I'm at work so I can't really test it out atm.
   <br> But if you google on the tikiwiki site
   <br> you can find alot of info about Wiki argument variables and wikiparsing
   kstingel: I'm just getting used to tiki-speak, I was still thinking in terms of $user *smile*
   ***: Jyhem_laptop has joined #tikiwiki
   <br> jph_ has joined #tikiwiki
   <br> SJ-jay has joined #tikiwiki
   Merbster: kstingel, hehe I know exactly what you're going trhough, I was there 1 month ago :P
   kstingel: <u>Merbster</u>: I figured out how to activate tikiparsing :D Admin-&gt;Editing &amp; Plugins-&gt;General Settings - Wiki Argument variables
   <br> <u>Merbster</u>: I keep getting things wrong, so I'm resetting my localTiki and starting over a lot, once I get it sorted, I'll import it into the live Tiki
   Merbster: the admin panel is your friend, the search box of that admin panel your best friend. :P
   <br> good idea
   <br> You can lock yourself out of the wiki if you're not careful so a test server is a must
   kstingel: Tiki for Smarties &amp; Tiki Essentials have been my good friends too
   Merbster: ofcourse :P
   ***: redflo has joined #tikiwiki
   <br> redflo has quit IRC (Client Quit)
   <br> xen216 has quit IRC (Ping timeout: 258 seconds)
   <br> jonnyb has joined #tikiwiki
   jonnyb: 'fest poloms
   CIA-88: tikiwiki: 03jonnybradley * r35238 10/branches/7.x/tiki-forum_import.php:
   <br> tikiwiki: [FIX] Better fix for [6.x r33612/bp r33611][FIX] mis-match of permission checking for import function
   <br> tikiwiki: so tpl changed to align with main php code to decide if Import button
   <br> tikiwiki: is shown
   <br> tikiwiki: thanks sept_7
   <br> tikiwiki: 03jonnybradley * r35239 10/branches/proposals/6.x/tiki-forum_import.php:
   <br> tikiwiki: [bp/r35238[FIX] Better fix for [6.x r33612/bp r33611][FIX] mis-match of permission checking for import function so tpl changed to align with main php code to decide if Import button is shown
   <br> tikiwiki: thanks sept_7
   Merbster: I can't get the value of a class attribute i.e. $fase-&gt;type
   <br> yet when I print_r() the object it shows the type is set according to what I expect.
   ***: Wilkins_ has quit IRC (Remote host closed the connection)
   <br> Merbster has quit IRC (Ping timeout: 255 seconds)
   CIA-88: tikiwiki: 03jonnybradley * r35240 10/trunk/ (6 files in 3 dirs): [MRG] Automatic merge, branches/7.x 35212 to 35238
   ***: Jyhem_laptop has quit IRC (Read error: Operation timed out)
   <br> Caarrie has joined #tikiwiki
   <br> Caarrie|sleeping has quit IRC (Disconnected by services)
   <br> Merbster has joined #tikiwiki
   <br> Caarrie is now known as Caarrie|away
   <br> jonnyb has quit IRC (Quit: jonnyb)
   <br> jme_ has joined #tikiwiki
   <br> jme_ has quit IRC (Client Quit)
   <br> Merbster has quit IRC (Ping timeout: 246 seconds)
   <br> kstingel has left "Leaving"
   <br> GillesMM has joined #tikiwiki
   <br> Wilkins has joined #tikiwiki
   <br> jonnyb has joined #tikiwiki
   <br> Jyhem_laptop has joined #tikiwiki
   <br> luciash has joined #tikiwiki
   luciash: polom
   jonnyb: polom from Strasbourg luciash
   luciash: many greetings to Strasbourg :)
   ***: nkoth has joined #tikiwiki
   Jyhem_laptop: hey Luci !
   ***: jonnyb has quit IRC (Quit: jonnyb)
   nkoth: hi everyone
   ***: radek82 has joined #tikiwiki
   luciash: salut Jyhem_laptop :)
   <br> hi nelson
   CIA-88: tikiwiki: 03nkoth * r35241 10/trunk/lib/prefslib.php: [FIX] 'fgal_use_dir', 'sender_email' prefs were not showing in admin panel anymore
   <br> tikiwiki: 03nkoth * r35242 10/trunk/lib/ (filegals/filegallib.php tikilib.php): [FIX] Zend_Http_Client seems to fail with accents in urls but to avoid it it the only way that still maintain integrity of the URL is to urlencode the accents
   <br> tikiwiki: 03nkoth * r35243 10/trunk/lib/tikilib.php: [FIX] Change naming of function parameter to mean what it does (amend previous commit)
   <br> tikiwiki: 03jonnybradley * r35244 10/branches/7.x/lib/TikiWebdav/Backend/File.php: [FIX] Missing global
   ***: Wilkins has quit IRC (Ping timeout: 258 seconds)
   <br> Wilkins has joined #tikiwiki
   <br> xavi has joined #tikiwiki
   xavi: polom
   ***: Merbster has joined #tikiwiki
   <br> rodrigo_sampaio has joined #tikiwiki
   nkoth: hi xavi
   xavi: I'm investigating an issue with plugin tracker added in proposals/6.x ... r34445
   <br> hi nkoth and rodrigo_sampaio
   <br> which makes weird urls after saving data in a wiki page with plugin tracker
   <br> <u>weird</u>: urlencoded (seems), and apache returns error 404
   <br> this might be related with this change added by sylvieg (among other things, in that r34445 from proposals/6.x):
   <br> header('Location: '.urlencode($url[$key]));
   <br> which in the previous revision was:
   <br> header('Location: '.$url[$key]);
   <br> i.e., without the urlencode...
   <br> I wonder whether that urlencode is needed, and if so, how to change it so that it doesn't break plugin tracker, as it currently does in proposals/6.x
   <br> sylvieg? ^
   <br> or maybe nkoth you know? ^
   nkoth: well, urlencoding the entire url would encode the / as well
   <br> and some apache config don't like that
   <br> It depends on what the purpose of the urlencode there is
   -: sylvieg should have given the example in the commit message
   sylvieg: I suuppose it is a opage with an accent
   xavi: well, nope, it's a page like this:
   <br> The requested URL /tiki1/tiki-index.php?page=r_test3&amp;itemId=4&amp;view=user was not found on this server.
   <br> and all the ?, &amp; and = are weird (urlencoded?)
   -: sylvieg wondering if it is an unwanted commit
   xavi: i.e.:
   <br> tiki1/tiki-index.php%3Fpage%3Dr_test3%26itemId%3D4%26view%3Duser
   <br> and apache returns: error 404
   nkoth: the only part of that url that needs to be urlencoded is the pagename
   sylvieg: yes - I think that it was an error
   xavi: and I confirm that if I remove the urlencode part, all is well again with plugin tracker
   sylvieg: this has to go
   xavi: syvlieg, the commit does more things... maybe it was just this tiny extra part that went through (without being that the intention)
   <br> Ok, I'll revert that tiny part (urlencode) and you can add it (if needed) again wherever to urlencode just the page name, if so, etc.
   sylvieg: it does not exist anymore in 7
   -: xavi is glad that he managed to identify the exact revision and line that was potentially breaking plugin tracker
   xavi: first time (svn rocks!)
   <br> ok, so I commit in proposals/6.x only, then
   sylvieg: wait 2 secs
   <br> to se if the page is well encoded
   xavi: ok
   rodrigo_sampaio: hi xavi
   <br> hi all
   xavi: hi :-)
   sylvieg: seems to be an error - I can not find where in 7 the line can have been introduced/ deleted
   CIA-88: tikiwiki: 03sylvieg * r35245 10/branches/proposals/6.x/lib/wiki-plugins/wikiplugin_tracker.php: [FIX]rollback partial 34445 - this line was not in tiki7 - Thx xavi
   Merbster: how can I get a reference to the page/article/whatever being viewed, from PHP ?
   sylvieg: sorry xavi - I suppose it was a test I did ... I can not find out the historic of this
   xavi: no problem, thanks for fixing
   -: sylvieg should not debug in the proposals
   Merbster: i.e. what file should I include?
   <br> or where can I read about this?
   sylvieg: ther is no unique reference between objects (for one it is $page, for the other $articvleId..) if I well understand the question
   Merbster: sylvieg, I don't mind
   <br> it's a hack we need to do, to change perspective depending on category stuff
   <br> So as long as I can handle pages, wikis, articles and forums.
   <br> we're set.
   <br> I guess they all have their individual IDs, i.e. article id, forum id, blog etc.
   <br> sylvieg, is it possible to get the category ID of the watched page/wiki/article/whatever.
   <br> I don't really care about what I'm looking at, I'm caring alot more about the category and which perspective I've mapped to that category
   luciash: hi xavi, sylvieg, rodrigo_sampaio ... :)
   rodrigo_sampaio: hello luciash
   sylvieg: hi
   <br> sorry Merbster I do not understand - a perspective is a cetegory
   Merbster: sylvieg, no, a perspective can have a category jail
   <br> so a perspective can be bound to several categories
   nkoth: i think Merbster is trying to automatically change the perspective depending on where the object the user is viewing is categorized
   Merbster: I suspsect this is saved in the database, so from the page/wiki/whatever category I want to figure out what perspective it belongs to.
   <br> exactly nkoth
   <br> and hten I would want to set the perspective session var through the $_REQUEST object.
   <br> I'd like to implement it "the right way" but you know how it is; our boss wants us to finish yesterday.
   <br> :P
   nkoth: what version of tiki are you on?
   Merbster: 6.3
   <br> We're keeping to the LTS release until we got first iteration of the new Intranet up and running.
   <br> I will have to go home from work soon, but I will come online when I hit home.
   nkoth: i'm thinking
   <br> i've done something similar before but it's a long time ago
   Merbster: I have seen a "resolve category from page id" like method somewhere
   nkoth: one problem is that your object is not jsut a page right? you have articles etc too?
   Merbster: Yes
   <br> evyerthhing that has a category
   <br> nkoth, will you still be here in 1 hour or so?
   nkoth: yes
   Merbster: do mind if I suck all the knowhow from your mind then? :P
   nkoth: i'll be around
   xavi: hi luciash
   luciash: heheh
   <br> "suck all the knowhow" sounds scary :)
   Merbster: luciash, lol :P
   <br> well
   <br> ... I hope it won'
   <br> t be
   <br> oh well. I'll be off for home now... See you later
   ***: Merbster has quit IRC (Quit: Leaving)
   <br> jph_ has quit IRC (Read error: Connection reset by peer)
   <br> SJ-jay has quit IRC (Read error: Connection reset by peer)
   luciash: any idea why could i get downloading an ical export of the Calendar "interrupted" always at 3,5kB ?
   <br> ah, actually at 0.0/3.5kB says my Google Chrome
   rodrigo_sampaio: <u>luciash</u>: no errors in the apache log?
   CIA-88: tikiwiki: 03omstefanov * r35246 10/branches/7.x/tests/testfile.txt: [test] olaf's test commit
   <br> tikiwiki: 03omstefanov * r35247 10/branches/7.x/tests/testfile.txt: [test] olaf's 2nd test commit
   Bernard1: Hi, i have error on TW7.x  while doing SVN cleanup;
   <br> <u>svn</u>: warning: cannot set LC_CTYPE locale
   <br> <u>svn</u>: warning: environment variable LC_CTYPE is UTF-8
   <br> <u>svn</u>: warning: please check that your locale name is correct
   <br> never see that… someone ?
   rodrigo_sampaio: <u>Bernard1</u>: are you using linux or windows?
   Bernard1: linux… same server than before (i have done this hundreds of time)
   <br> (checking another of my tw in case of something changed on the server itself)
   rodrigo_sampaio: <u>Bernard1</u>: than I can help you :)
   CIA-88: tikiwiki: 03omstefanov * r35248 10/branches/7.x/tests/testfile.txt: [test] olaf's 3rd test commit
   Bernard1: :)
   rodrigo_sampaio: <u>Bernard1</u>: it is not related with Tiki
   <br> <u>Bernard1</u>: it is some configuration missing on your server
   <br> <u>Bernard1</u>: just give me a minute to check, I have seen this before
   Bernard1: ok tks
   rodrigo_sampaio: any one from TikiFestStrasbourg2011 online?
   <br> <u>Bernard1</u>: you know which linux distribution is on your server?
   -: rodrigo_sampaio ping Jyhem, Jyhem_laptop, nkoth:
   Bernard1: Huu… lenny it should, let me recheck
   <br> PHP Version 5.2.6-1+lenny10
   rodrigo_sampaio: <u>Bernard1</u>: lenny is a debian version
   CIA-88: tikiwiki: 03sampaioprimo * r35249 10/trunk/ (4 files in 4 dirs): [MRG] Automatic merge, branches/7.x 35238 to 35247
   rodrigo_sampaio: <u>Bernard1</u>: so it is debian :)
   Bernard1: Ya
   <br> :)
   rodrigo_sampaio: <u>Bernard1</u>: check http://armenianeagle.com/2008/03/18/svn-warning-cannot-set-lc_ctype-locale-solution/ and http://www.svnforum.org/threads/33699-What-does-quot-cannot-set-LC_CTYPE-locale-quot-mean
   <br> <u>Bernard1</u>: I was hoping to find an easier solution but I couldn't
   <br> <u>Bernard1</u>: anyway it is just a warning so it should be safe to ignore it
   <br> <u>Bernard1</u>: if you don't have root, contact your server support and ask them to fix it for you
   -: Bernard1 always have root ! :D
   rodrigo_sampaio: <u>Bernard1</u>: :D
   Bernard1: tks Rodrigo :)
   rodrigo_sampaio: <u>Bernard1</u>: welcome
   <br> <u>Bernard1</u>: by the way, you are the guy from Israel right?
   Bernard1: Yes this one !
   <br> Brazil ?
   rodrigo_sampaio: <u>Bernard1</u>: so it is my turn to ask you something :)
   <br> <u>Bernard1</u>: yes, I'm from Brazil
   Bernard1: welcome
   rodrigo_sampaio: <u>Bernard1</u>: I'm working on a new version of get_strings.php (the script we use to collect translatable strings)
   Bernard1: ok
   rodrigo_sampaio: <u>Bernard1</u>: there is a little hack in the old get_strings.php to deal strings ending with punctuation as an exception
   <br> <u>Bernard1</u>: for example, if you have "Login:" it is considered as "Login" and ":"
   <br> <u>Bernard1</u>: in the language.php files you will never find "Login:", only "Login" and ":"
   Bernard1: exact
   rodrigo_sampaio: <u>Bernard1</u>: as far as I can understand this was done to avoid duplicating the work for translations, they don't have to translate "Login:" and "Login"
   <br> <u>Bernard1</u>: I would like to know from you if this works ok for Hebrew or if by the way the language is structured this creates a problem for translators/
   <br> ?
   Bernard1: yes and that depending your language the ":" can be in different place ("Login:" is not a good exemple but it was safer to remove punctuation)
   rodrigo_sampaio: <u>Bernard1</u>: sorry, not sure if I understood. can you elaborate?
   Bernard1: yes this work ok : http://www.avtalyon.org.il/tiki-login_scr.php
   <br> herr.. ok go on...
   rodrigo_sampaio: <u>Bernard1</u>: so Hebrew works as the latin languages and the ":" goes in the end of the sentence?
   Bernard1: yes :)
   rodrigo_sampaio: <u>Bernard1</u>: ok, good
   <br> <u>Bernard1</u>: I'm worried that the way we handle punctuation might create problems for translators of some languages
   Bernard1: note that it is working because of the RTL management through styles/BiDi/BiDi.css
   rodrigo_sampaio: <u>Bernard1</u>: good to know that this is not the case for Hebrew
   Bernard1: In hebrew if punctuation is at the beguining or the end of a sentence it is (should be) ok. If it is in the middle this can be a pain. When i translate he/language.php i usually remove "("
   <br> the display is 75% ok BUT to write it correctly in the language.php file is A pain and lots of tries.
   rodrigo_sampaio: <u>Bernard1</u>: I'm going out to have lunch. I will be back later and then if you are still around I would like to continue this conversation. I'm interested to know what we can do in Tiki to make translator's work easier.
   Bernard1: boas-vindas :)
   rodrigo_sampaio: :)
   CIA-88: tikiwiki: 03muscote * r35250 10/trunk/tests/testfile.txt: just a test by Torsten (thx olaf for supporting me)
   ***: nkoth_ has joined #tikiwiki
   <br> nkoth has quit IRC (Read error: Operation timed out)
   <br> nkoth_ is now known as nkoth
   CIA-88: tikiwiki: 03jonnybradley * r35251 10/branches/7.x/templates/tiki-admin_forums.tpl: [FIX] Rollback r33611 so this perm test now matches the test in tiki-forum_import.php (fixed in r35238 and will be rolled-back by QT in 6.x)
   ***: pkdille has joined #tikiwiki
   <br> Bernard1 has quit IRC (Quit: Leaving.)
   <br> xavi has left
   <br> dcedilotte has joined #tikiwiki
   <br> chealer has joined #tikiwiki
   <br> chealer has quit IRC (Changing host)
   <br> chealer has joined #tikiwiki
   dcedilotte: polom!
   ***: garypp has joined #tikiwiki
   <br> xen216 has joined #tikiwiki
   <br> Jyhem_laptop has quit IRC (Ping timeout: 250 seconds)
   <br> chealer has quit IRC (Remote host closed the connection)
   <br> chealer has joined #tikiwiki
   <br> Bernard1 has joined #tikiwiki
   Bernard1: <u>rodrigo_sampaio</u>:  diner, baby bed story and i'm back ;) cu
   rodrigo_sampaio: <u>Bernard1</u>: :)
   CIA-88: tikiwiki: 03nkoth * r35252 10/trunk/lib/ (filegals/filegallib.php tikilib.php): [FIX] Better fix for r35242 (Zend_Http_Client seems to fail with accents) to handle whole range of utf8 chars and spaces
   ***: luciash has quit IRC (Ping timeout: 252 seconds)
   CIA-88: tikiwiki: 03nkoth * r35253 10/trunk/lib/tikilib.php: [FIX] Remove function just a couple of commits ago added in r35242 which is now invalid via r35252
   ***: Bernard1 has quit IRC (Quit: Leaving.)
   <br> Merbster has joined #tikiwiki
   Merbster: ok.
   <br> it was a bit more
   nkoth: Hi Merbster: under admin home...categories
   ***: Caarrie|away has quit IRC (Read error: Connection reset by peer)
   Merbster: yes
   ***: Caarrie has joined #tikiwiki
   nkoth: there is  feature called  "Categories used in templates (TPL" turn that on
   ***: Caarrie is now known as Caarrie|away
   nkoth: the secriet sause of that is found in lib/setup/categories/php
   ***: rodrigo_sampaio1 has joined #tikiwiki
   Merbster: it's enabled
   ***: rodrigo_sampaio has quit IRC (Read error: Connection reset by peer)
   Merbster: allready
   nkoth: check out that php file, basically to use: // use in smarty {if isset($objectCategoryIds) and in_array(54, $objectCategoryIds)} My stuff ..{/if}
   <br> now umm in)array might be problematic in some servers
   Merbster: We have totalt control over the server
   nkoth: anwyway, if you edit that php file you can assign any smarty vary you want
   Merbster: hmm.
   -: Merbster reads code
   ***: Bernard1 has joined #tikiwiki
   nkoth: that section stuff is set in lib.setup/sections.php if you are interested (background nfo)
   <br> so it picks up the "key
   <br> based on the section (wiki/article/etc...) e.g. articleId or whatever and then uses the value of that to find the category
   Merbster: AAH
   <br> yes
   <br> and since there can more than one object cateogry that's why it's in plural
   <br> So this enables me to refer to the object categories of the current "section" through smarty with the variable $objectcategories
   <br> objectcategoryids*
   CIA-88: tikiwiki: 03sampaioprimo * r35254 10/branches/7.x/lang/ (48 files in 48 dirs): updating language.php files before backporting fix to get_strings.php (r35220)
   nkoth: $objectCategoryIds  is the array of category ids
   Merbster: yes
   <br> in the example they're searching the array for the value 54 right?
   nkoth: right
   Merbster: I think this might have saved me alot of time.
   <br> nkoth, I am sorry if some of my questions are a bit lowlevel, but I just recently got familiar with PHP.
   <br> lowlevel as in nobish
   <br> not lowlevel as in assembler.
   <br> now
   nkoth: be careful about using in_array in smarty if smarty security is enabled...
   Merbster: We will disable it if need be
   <br> But in essence I could refernce the categoryid array from PHP code too couldn't I?
   nkoth: exactly
   Merbster: I will need to find the parentId of each category
   nkoth: there is a funciton in categlib for that
   Merbster: oh man.
   <br> tbh... I never liked php, but I sure hell like TikiWiki :P
   <br> more and more
   nkoth: lib/categories/categlib.php
   <br> get_category_parent or something like that
   Merbster: I'll check it myself.
   CIA-88: tikiwiki: 03sampaioprimo * r35255 10/branches/7.x/ (. get_strings.php templates/list_file_gallery_content.tpl): [bp/35220][FIX] invalid strings collected by get_strings.php (bug #3881)
   Merbster: My theory is, to include a small hack file in tiki-setup.php that checks the categories, gets parent categories and according to some if statements I will set the required perspective.
   <br> do you think it will work?
   nkoth: "checking the load order..."
   Merbster: or will I run into trouble with when the categories are set compared to when I want to check for them? (or is that just a matter of including my "hack" at the right place in tiki-setup.php? :P
   nkoth: from what I can see, perpective is loaded in prefs.php
   Merbster: So as long as my hack is included belov prefs all should be sweet and dandy?
   nkoth: (because it needs to be at the time when prefs are set, makes sense right?)
   <br> so your check has to be above prefs
   <br> before/above...
   Merbster: If I manually overwrite the seesion variable
   <br> wouldn't it be best to set it after prefs set it so I don't get it overwritten?
   nkoth: well, the perspective would already be loaded
   <br> and the prefs set
   Merbster: ok
   nkoth: Perspectives are all about overriding default perspective prefs
   Merbster: Yes ofcourse
   <br> it makes sense
   <br> I just lack the overview of the general tiki design
   <br> So... Set perspective before prefs.php are included...
   CIA-88: tikiwiki: 03sampaioprimo * r35256 10/branches/7.x/lang/ (48 files in 48 dirs): updating language.php files to remove invalid strings
   nkoth: when I last did this I think I actially did a redirect
   <br> i.e. check if the perspective is wrong, if wrong, redirect
   <br> wastes resources but simpler than figuring out the load sequence
   Merbster: I agree
   <br> ressources is not a problem
   <br> luckily the CEOs of our company backs up IT very well... :P
   <br> backs up as in "they give us what we need to do our job"
   <br> If it wastes too much
   <br> I can do a proper solution
   <br> When we have more time
   <br> they extended our deadline once allready
   <br> :P
   <br> allthough not just becuase of internal IT... external partners were also late on delivery :P
   nkoth: Just my quick glance at the code, I think it might also work if you move lib/setup/sections.php and lib/setup/categories.php up to just above lib/setup/prefs.php in tiki-setup_base.php but this kind of change needs a bit more care...
   <br> well, I think my braindump is pretty much complete now at least on this topic. All the best
   Merbster: hehehe
   <br> well it's a big thanks. allthough I would prefer to do as little change as possible to the core tiki stuff... most of our extensions has been kept in modules...
   nkoth: if moving setup/section and setup/categories up might work it might be an interesting tiki feature. I know simple making a redirect after categories.php work because that's what I did before but I suppose I was still kind of hoping for a better solution thus that never got committed
   Merbster: we are counting on this being our intranet the next 10 years
   <br> So hopefully I will be allowed to mature it
   <br> and commit some stuff back to the community
   nkoth: sounds excellent!
   Merbster: oh
   <br> girlfriend prepared food
   <br> nkoth, thanks. If you're still here after I've eaten I probably have more questions if stuff will be troublesome.
   chealer: polom
   CIA-88: tikiwiki: 03sampaioprimo * r35257 10/branches/7.x/lang/ (4 files in 4 dirs): merging translations done on trunk using doc/devtools/mergelang.pl
   Bernard1: Hi Chealer
   <br> Nelson
   <br> Rodrigo here ?
   nkoth: hi
   chealer: hi Bernard1
   ***: Caarrie|away has quit IRC (Ping timeout: 255 seconds)
   <br> Caarrie|away has joined #tikiwiki
   <br> xen216 has quit IRC (Ping timeout: 255 seconds)
   Merbster: nkoth, it would be a redirect to the page itself, with the new perspective applied as an URL paraemeter, or would you set the session var and then redirect?
   nkoth: perspective as url parameter I think
   <br> actually setting the session var and redirect works too I think
   <br> sorry for the double answer :)
   Merbster: I am thinking, when you set the perspective with the url param, it's only temporary isn't it?
   nkoth: oh umm
   Merbster: when you click a new link the perspective will be lost (unless you apply that link there too)
   nkoth: ok,then set the session var - better
   Merbster: But I guess the perspective hack would set th epage appropriately anyways, becase it allways checks the conditions for what perspective the page should be in.
   CIA-88: tikiwiki: 03changi67 * r35258 10/trunk/templates/tiki-install.tpl: ~INDENT~ Easier to read
   <br> tikiwiki: 03changi67 * r35259 10/trunk/templates/tiki-install.tpl: [MOD] Give the possibility to check all errors in one click
   ***: rodrigo_sampaio has joined #tikiwiki
   CIA-88: tikiwiki: 03changi67 * r35260 10/branches/7.x/templates/tiki-install.tpl: [BP/35258] ~INDENT~ Easier to read
   ***: rodrigo_sampaio1 has quit IRC (Ping timeout: 258 seconds)
   CIA-88: tikiwiki: 03changi67 * r35261 10/branches/7.x/templates/tiki-install.tpl: [BP/35259][MOD] Give the possibility to check all errors in one click
   <br> tikiwiki: 03jean-lucnavarro * r35262 10/trunk/lang/fr/language.php: [TRA] more French translations
   Merbster: nkoth, did you write your own code for resolving the perspective from the category id ?
   <br> or does tikiwiki allready have that
   nkoth: you mean mapping category id to perspective id?
   <br> I wrote my own for that
   Merbster: ok
   <br> i am blind... :P
   <br> I overlooked tiki_perspectives until i used the search function in my SQL tool :P
   CIA-88: tikiwiki: 03changi67 * r35263 10/trunk/installer/schema/20110630_fix_blogs_copyright_frencho_tiki.sql: ~FIX~ Remove useless svn property
   Merbster: ouch
   <br> the categories linked to the perspective is saved as json if I'm not mistaken :S
   nkoth: json_decode
   Merbster: I know
   <br> I'm more thinking about the performance hit that will give the db
   <br> if we have 6000 perspectives
   <br> So either I have to use string functions in SQL to pinch out the numbers
   <br> that means it has to do a table scan for each search for mappings between categories and perspective
   <br> or I have to get it out in PHP parse the json and do the comparison in Php
   nkoth: you won't have 6000 perspectives will you?
   Merbster: We need a perspective for each project
   <br> and we have atleast 1500 active projects
   <br> and it will only grow
   <br> we might have 500-1000 projects a year.
   <br> (building engineering company)
   nkoth: ok, well caching it is just one line - can do that later on
   Merbster: I would be more tempted to hack the place where it saves categories to mirrow it's entrances in a table so that the database can search trhough the category Ids faster
   <br> hmmm.
   <br> actually
   <br> there might be a more elegant work around
   <br> or not... doh
   CIA-88: tikiwiki: 03changi67 * r35264 10/trunk/templates/list_file_gallery_content.tpl: [MOD] Remove check all when no record found
   Merbster: if I could predict how the json would end up looking in the database
   <br> I could index the column with the json
   <br> and then search with the generated string...
   <br> but... that's tricky
   CIA-88: tikiwiki: 03sampaioprimo * r35265 10/branches/proposals/6.x/lang/ (26 files in 26 dirs): merging translations done on trunk using doc/devtools/mergelang.pl
   <br> tikiwiki: 03changi67 * r35266 10/trunk/templates/browse_file_gallery.tpl: [MOD] Remove check all when no record found
   ***: xen216 has joined #tikiwiki
   <br> nkoth has quit IRC (Quit: nkoth)
   <br> nkoth has joined #tikiwiki
   Merbster: nkoth, what are you using TikiWiki for?
   nkoth: <u>Merbster</u>: all sorts of different sorts of sites.
   Merbster: nkoth, did you parse the json directly in SQL ?
   CIA-88: tikiwiki: 03changi67 * r35267 10/trunk/templates/browse_file_gallery.tpl: ~REVERT~ Stupid things
   nkoth: no. I didn't have that many perspectives and categories, I simply had a hardcoded mapping
   CIA-88: tikiwiki: 03changi67 * r35268 10/trunk/templates/list_file_gallery_content.tpl: ~CHANGE~ Add a select all in table head + revert previous commit
   Merbster: I don't think mysql can parse json reasonably fast
   nkoth: i normally use json_decode in php
   Merbster: yes.
   <br> That's prboably what I'll have to do to have this done by this evening
   <br> hmmm.
   ***: garypp has left
   Merbster: This is a semi bad code solution of tikiwiki
   <br> since this design will never allow you to query for perspectives based on category compositions.
   <br> atleast in a scalable manner
   ***: Bernard1 has quit IRC (Quit: Leaving.)
   CIA-88: tikiwiki: 03changi67 * r35269 10/trunk/ (4 files in 2 dirs): [ENH] Introduce static CSS Sprite in admin panel - First step to CSS Sprite
   ***: xen216 has quit IRC (Quit: Ex-Chat)
   CIA-88: tikiwiki: 03changi67 * r35270 10/trunk/lib/jquery_tiki/tiki-trackers.js: Add css class for table styling
   <br> tikiwiki: 03changi67 * r35271 10/trunk/templates/tiki-admin_tracker_fields.tpl: ~ENH~ Add select all
   ***: sylvieg has quit IRC (Quit: Leaving.)
   <br> sylvieg has joined #tikiwiki
   <br> ChanServ sets mode: +o sylvieg
   CIA-88: tikiwiki: 03sampaioprimo * r35272 10/trunk/ (3 files in 2 dirs): [MRG] Automatic merge, branches/7.x 35247 to 35261
   <br> tikiwiki: 03sampaioprimo * r35273 10/trunk/doc/devtools/svnbranchupdate.php: just updating script documentation by replacing .0 with .x
   ***: radek82 has quit IRC (Quit: Leaving)
   chealer: <u>rodrigo_sampaio</u>: could you explain the problem with invalid strings?
   <br> I notice fuckage with apostrophes, I'm glad if you fixed it
   ***: GillesM has quit IRC (Remote host closed the connection)
   rodrigo_sampaio: <u>chealer</u>: check https://dev.tiki.org/tiki-view_tracker_item.php?itemId=3881
   <br> <u>chealer</u>: which issue with apostrophes I fixed? :)
   Merbster: I have made a small hack that sets a perspective depending on what categories the page/wiki/whatever is categorized in
   <br> To work around having to figure out the load order of tikiwiki
   <br> I am using a redirect
   <br> and I use getenv('HTTP_REFERER') to get the referring page
   <br> to "redirect back"
   <br> and set a perspective
   <br> but this gives a problem when trying to edit, say a wiki page
   <br> because it's tiki-edit... etc.
   <br> Is the "target url" of the pressed link, stored somewhere in wiki?
   chealer: <u>rodrigo_sampaio</u>: OK... what about the line modified with "Function:" in http://sourceforge.net/apps/trac/tikiwiki/changeset/35236/trunk/lang/fr/language.php
   <br> apparently it's just a backslash added, why?
   <br> <u>rodrigo_sampaio</u>: actually, let's talk about the first one on :2570
   <br> I don't understand your question (and you seem to be doing something weird)
   <br> <u>Merbster</u>: ^^
   Merbster: chealer, what's up?
   chealer: <u>Merbster</u>: I don't understand your question (and you seem to be doing something weird)
   Merbster: Well.
   <br> point is
   <br> I want to set the perspective according to the current page's categories.
   <br> So that if for example a Wiki page is category 12 and it's parentId is 3 I know it's a "project related page" and one project will have one perspective and one category. so we can get a project-wise view across the "whole" wiki
   <br> reason why whole is in " " is because some places of the wiki
   <br> should have default view.
   <br> And it knows htis by the fact that any page that is not part of a project, won't need a perspective, thus we just set it to 0
   <br> chealer, I wrote with nkoth earlier, he said he had atleast some good experience with this way of doing things
   <br> but I think I figured out how to direct to the correct page, by using $_SERVER[PHP_SELF] (or whatever it's called)
   <br> and the $_REQUEST["page"] thing
   <br> and then adding the perspectiveId
   <br> that I resolved via. a database search
   <br> chealer, does it make more sense now?
   nkoth: what kind of problem you face when you edit the page?
   Merbster: currently it's not resolving the perspective ID correctly
   <br> like it forgot one of the jaiuls
   <br> I am checking the db to see if it's correct
   nkoth: are you setting the SESSION perspective before redirecting?
   chealer: <u>Merbster</u>: hum, it's still unclear, although I think I understand more. you were asking how to get the URL of the page being viewed?
   <br> <u>Merbster</u>: anyway, glad if you found the answer
   Merbster: semi
   <br> I think
   <br> maybe I have a problem with my db query because it only resolves the one with perspective Id 1 (the first row) but the second one (3) defaults to 0.
   nkoth: if so, then the perspective should stay the same as the one which is active when vuewing
   Merbster: hmmm
   <br> nkoth, when you say session variable, are you talking about $_REQUEST["perspectiveId"] ?
   nkoth: no
   Merbster: please elaborate then
   <br> or point me to where I can read about it myself :P
   nkoth: I believe I mean $_SESSION['current_perspective']
   Merbster: I had no idea there was a $_SESSION varaible :P
   <br> I will check it
   nkoth: right, if you set that instead of $_REQUEST["perspectiveId, you will have a more "permanent" change...
   ***: Trebly has joined #tikiwiki
   Merbster: aaah
   <br> nice :)
   chealer: <u>Merbster</u>: I still have no idea what kind of category tree you have or what you use perspectives for
   Merbster: chealer, we have one Category called "Project Page"
   <br> it's used as a "type"
   <br> as subcategories to "Project Page"
   <br> each project will have a category
   <br> each category will be assigned to a category jail in each their own perspective
   <br> So that we sort out all the irrelevant noise when you're going trhough all the steps to complete a Project
   chealer: <u>Merbster</u>: BTW, it would be friendly and perhaps easier to follow you if you used more punctuation and less Enter-s
   Merbster: Sorry. I've been coding for over 12 hours today.
   <br> I will try to make my sentences longer isntead of flooding the chat.
   nkoth: Merbster, if you redirect to $_SERVER['REQUEST_URI'] after setting $_SESSION['current_perspective'] you should be fine
   Merbster: I guess REQUEST_URI just returns the full path of the active script, instead of just the actual filename like PHP_SELF
   nkoth: this is a good comparison what the difference is: http://raptor.hk/_serverphp_self-vs-_serverscript_name-vs-_serverrequest_uri/
   Trebly: &lt;Sylvieg&gt; hi, it's a long time I could be present here and work on tiki. I am re-pack all my applications and dev on new computers and re-install.
   <br> With 6.x current that I update, I get two (or more) problems (I have some sites not yet updated to 7.0).
   <br> - Old one the admin with reinit (because it was refusing my password) of admin users-users record generated "invalid password", I think that I have well checked the rights of the group but ?
   <br> - I test installer (I must because I have updated), It shows a wrong message about DB (no UTF-8) but it is ? Don't remember why this wrong message, may be the test is on the data chanel default encoding not data base. If I remember it is reset if the option PDO. No really matters the problem is to be able to login as admin. I failed.
   <br> I could not find back the notes on the admin password pbs
   Merbster: nkoth, it keeps looping
   <br> redirecting to itself all the time and I can't seem to figure out a proper control structure to make it stop again