←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
***Caarrie is now known as Caarrie|sleeping [00:41]
............. (idle for 1h2mn)
TNRR2012 has joined #tikiwiki [01:43]
goj|ghost has joined #tikiwiki
goj has quit IRC (Ping timeout: 276 seconds)
goj|ghost is now known as goj
[01:50]
TNRR2012tiki 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 [01:55]
***rodrigo_sampaio1 has quit IRC (Ping timeout: 258 seconds) [02:03]
....... (idle for 32mn)
TNRR2012hmnn thanx i guess [02:35]
***TNRR2012 has quit IRC (Quit: Leaving) [02:35]
...... (idle for 28mn)
TNRR2012 has joined #tikiwiki [03:03]
TNRR2012tiki7: 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 [03:06]
....... (idle for 34mn)
could someone simply tell me where to look within the tiki site for information similar to this? thanx [03:40]
...... (idle for 28mn)
***nkoth has quit IRC (Quit: nkoth)
nkoth has joined #tikiwiki
nkoth has quit IRC (Client Quit)
TNRR2012 has quit IRC (Quit: Leaving)
[04:08]
.......... (idle for 49mn)
Bernard1 has joined #tikiwiki [05:01]
.................. (idle for 1h29mn)
chealer has quit IRC (Remote host closed the connection)
Merbster has joined #tikiwiki
[06:30]
MerbsterGoodmorning.
We are haveing some trouble with trackers in TikiWiki 6.3
it takes forever to save one, and the server returns Internal Server Error 500
Yet the tracker is actually saved in the database.
[06:32]
....... (idle for 34mn)
What is weird; it's not even consistent.
Only _some_ of the trackers are affected
[07:09]
...... (idle for 27mn)
***kstingel has joined #tikiwiki [07:36]
kstingelCan anyone assist me with configuring my first Tracker?
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
[07:36]
Merbsterkstingel, if you can activate tikiparsing of that field
you could use the wiki argument {user}
[07:39]
kstingelThe Tracker's purpose is to collect First and Last names from new Users (and other data directly connected to the User)
Merbster: thanks, how do I activate tikiparsing on the field?
[07:40]
Merbsterkstingel, 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.
But if you google on the tikiwiki site
you can find alot of info about Wiki argument variables and wikiparsing
[07:41]
kstingelI'm just getting used to tiki-speak, I was still thinking in terms of $user *smile* [07:42]
.......... (idle for 45mn)
***Jyhem_laptop has joined #tikiwiki [08:27]
jph_ has joined #tikiwiki
SJ-jay has joined #tikiwiki
[08:41]
Merbsterkstingel, hehe I know exactly what you're going trhough, I was there 1 month ago :P [08:43]
kstingelMerbster: I figured out how to activate tikiparsing :D Admin->Editing & Plugins->General Settings - Wiki Argument variables
Merbster: 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
[08:48]
Merbsterthe admin panel is your friend, the search box of that admin panel your best friend. :P
good idea
You can lock yourself out of the wiki if you're not careful so a test server is a must
[08:50]
kstingelTiki for Smarties & Tiki Essentials have been my good friends too [08:51]
Merbsterofcourse :P [08:55]
...... (idle for 27mn)
***redflo has joined #tikiwiki
redflo has quit IRC (Client Quit)
[09:22]
xen216 has quit IRC (Ping timeout: 258 seconds)
jonnyb has joined #tikiwiki
[09:31]
jonnyb'fest poloms [09:34]
CIA-88tikiwiki: 03jonnybradley * r35238 10/branches/7.x/tiki-forum_import.php:
tikiwiki: [FIX] Better fix for [6.x r33612/bp r33611][FIX] mis-match of permission checking for import function
tikiwiki: so tpl changed to align with main php code to decide if Import button
tikiwiki: is shown
tikiwiki: thanks sept_7
tikiwiki: 03jonnybradley * r35239 10/branches/proposals/6.x/tiki-forum_import.php:
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
tikiwiki: thanks sept_7
[09:43]
MerbsterI can't get the value of a class attribute i.e. $fase->type
yet when I print_r() the object it shows the type is set according to what I expect.
[09:45]
...... (idle for 26mn)
***Wilkins_ has quit IRC (Remote host closed the connection) [10:11]
.... (idle for 16mn)
Merbster has quit IRC (Ping timeout: 255 seconds) [10:27]
CIA-88tikiwiki: 03jonnybradley * r35240 10/trunk/ (6 files in 3 dirs): [MRG] Automatic merge, branches/7.x 35212 to 35238 [10:32]
***Jyhem_laptop has quit IRC (Read error: Operation timed out)
Caarrie has joined #tikiwiki
Caarrie|sleeping has quit IRC (Disconnected by services)
Merbster has joined #tikiwiki
Caarrie is now known as Caarrie|away
jonnyb has quit IRC (Quit: jonnyb)
[10:32]
jme_ has joined #tikiwiki
jme_ has quit IRC (Client Quit)
Merbster has quit IRC (Ping timeout: 246 seconds)
kstingel has left "Leaving"
[10:41]
..... (idle for 24mn)
GillesMM has joined #tikiwiki [11:12]
........ (idle for 35mn)
Wilkins has joined #tikiwiki [11:47]
.... (idle for 19mn)
jonnyb has joined #tikiwiki
Jyhem_laptop has joined #tikiwiki
[12:06]
.... (idle for 15mn)
luciash has joined #tikiwiki [12:21]
luciashpolom [12:21]
jonnybpolom from Strasbourg luciash [12:21]
luciashmany greetings to Strasbourg :) [12:22]
....... (idle for 31mn)
***nkoth has joined #tikiwiki [12:53]
Jyhem_laptophey Luci ! [12:53]
***jonnyb has quit IRC (Quit: jonnyb) [12:54]
nkothhi everyone [12:58]
***radek82 has joined #tikiwiki [13:03]
luciashsalut Jyhem_laptop :)
hi nelson
[13:08]
CIA-88tikiwiki: 03nkoth * r35241 10/trunk/lib/prefslib.php: [FIX] 'fgal_use_dir', 'sender_email' prefs were not showing in admin panel anymore [13:09]
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
tikiwiki: 03nkoth * r35243 10/trunk/lib/tikilib.php: [FIX] Change naming of function parameter to mean what it does (amend previous commit)
[13:14]
tikiwiki: 03jonnybradley * r35244 10/branches/7.x/lib/TikiWebdav/Backend/File.php: [FIX] Missing global [13:24]
***Wilkins has quit IRC (Ping timeout: 258 seconds)
Wilkins has joined #tikiwiki
[13:33]
xavi has joined #tikiwiki [13:43]
xavipolom [13:43]
***Merbster has joined #tikiwiki
rodrigo_sampaio has joined #tikiwiki
[13:43]
nkothhi xavi [13:45]
xaviI'm investigating an issue with plugin tracker added in proposals/6.x ... r34445
hi nkoth and rodrigo_sampaio
which makes weird urls after saving data in a wiki page with plugin tracker
weird: urlencoded (seems), and apache returns error 404
this might be related with this change added by sylvieg (among other things, in that r34445 from proposals/6.x):
header('Location: '.urlencode($url[$key]));
which in the previous revision was:
header('Location: '.$url[$key]);
i.e., without the urlencode...
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
sylvieg? ^
or maybe nkoth you know? ^
[13:45]
nkothwell, urlencoding the entire url would encode the / as well
and some apache config don't like that
It depends on what the purpose of the urlencode there is
[13:49]
sylviegsylvieg should have given the example in the commit message
I suuppose it is a opage with an accent
[13:51]
xaviwell, nope, it's a page like this:
The requested URL /tiki1/tiki-index.php?page=r_test3&itemId=4&view=user was not found on this server.
and all the ?, & and = are weird (urlencoded?)
[13:52]
sylviegsylvieg wondering if it is an unwanted commit [13:53]
xavii.e.:
tiki1/tiki-index.php%3Fpage%3Dr_test3%26itemId%3D4%26view%3Duser
and apache returns: error 404
[13:53]
nkoththe only part of that url that needs to be urlencoded is the pagename [13:53]
sylviegyes - I think that it was an error [13:54]
xaviand I confirm that if I remove the urlencode part, all is well again with plugin tracker [13:54]
sylviegthis has to go [13:54]
xavisyvlieg, the commit does more things... maybe it was just this tiny extra part that went through (without being that the intention)
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.
[13:55]
sylviegit does not exist anymore in 7 [13:56]
xavixavi is glad that he managed to identify the exact revision and line that was potentially breaking plugin tracker
first time (svn rocks!)
ok, so I commit in proposals/6.x only, then
[13:56]
sylviegwait 2 secs
to se if the page is well encoded
[13:57]
xaviok [13:58]
rodrigo_sampaiohi xavi
hi all
[13:58]
xavihi :-) [13:59]
sylviegseems to be an error - I can not find where in 7 the line can have been introduced/ deleted [14:01]
CIA-88tikiwiki: 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 [14:03]
Merbsterhow can I get a reference to the page/article/whatever being viewed, from PHP ? [14:04]
sylviegsorry xavi - I suppose it was a test I did ... I can not find out the historic of this [14:04]
xavino problem, thanks for fixing [14:05]
sylviegsylvieg should not debug in the proposals [14:05]
Merbsteri.e. what file should I include?
or where can I read about this?
[14:08]
sylviegther is no unique reference between objects (for one it is $page, for the other $articvleId..) if I well understand the question [14:09]
Merbstersylvieg, I don't mind
it's a hack we need to do, to change perspective depending on category stuff
So as long as I can handle pages, wikis, articles and forums.
we're set.
I guess they all have their individual IDs, i.e. article id, forum id, blog etc.
sylvieg, is it possible to get the category ID of the watched page/wiki/article/whatever.
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
[14:11]
luciashhi xavi, sylvieg, rodrigo_sampaio ... :) [14:22]
rodrigo_sampaiohello luciash [14:22]
sylvieghi
sorry Merbster I do not understand - a perspective is a cetegory
[14:24]
Merbstersylvieg, no, a perspective can have a category jail
so a perspective can be bound to several categories
[14:24]
nkothi think Merbster is trying to automatically change the perspective depending on where the object the user is viewing is categorized [14:25]
MerbsterI suspsect this is saved in the database, so from the page/wiki/whatever category I want to figure out what perspective it belongs to.
exactly nkoth
and hten I would want to set the perspective session var through the $_REQUEST object.
I'd like to implement it "the right way" but you know how it is; our boss wants us to finish yesterday.
:P
[14:25]
nkothwhat version of tiki are you on? [14:26]
Merbster6.3
We're keeping to the LTS release until we got first iteration of the new Intranet up and running.
I will have to go home from work soon, but I will come online when I hit home.
[14:26]
nkothi'm thinking
i've done something similar before but it's a long time ago
[14:30]
MerbsterI have seen a "resolve category from page id" like method somewhere [14:30]
nkothone problem is that your object is not jsut a page right? you have articles etc too? [14:30]
MerbsterYes
evyerthhing that has a category
nkoth, will you still be here in 1 hour or so?
[14:30]
nkothyes [14:31]
Merbsterdo mind if I suck all the knowhow from your mind then? :P [14:32]
nkothi'll be around [14:32]
xavihi luciash [14:33]
luciashheheh
"suck all the knowhow" sounds scary :)
[14:38]
Merbsterluciash, lol :P
well
... I hope it won'
t be
oh well. I'll be off for home now... See you later
[14:39]
***Merbster has quit IRC (Quit: Leaving)
jph_ has quit IRC (Read error: Connection reset by peer)
SJ-jay has quit IRC (Read error: Connection reset by peer)
[14:39]
.... (idle for 15mn)
luciashany idea why could i get downloading an ical export of the Calendar "interrupted" always at 3,5kB ?
ah, actually at 0.0/3.5kB says my Google Chrome
[14:58]
rodrigo_sampaioluciash: no errors in the apache log? [15:00]
CIA-88tikiwiki: 03omstefanov * r35246 10/branches/7.x/tests/testfile.txt: [test] olaf's test commit [15:01]
tikiwiki: 03omstefanov * r35247 10/branches/7.x/tests/testfile.txt: [test] olaf's 2nd test commit [15:10]
Bernard1Hi, i have error on TW7.x while doing SVN cleanup;
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is UTF-8
svn: warning: please check that your locale name is correct
never see that… someone ?
[15:10]
rodrigo_sampaioBernard1: are you using linux or windows? [15:12]
Bernard1linux… same server than before (i have done this hundreds of time)
(checking another of my tw in case of something changed on the server itself)
[15:12]
rodrigo_sampaioBernard1: than I can help you :) [15:13]
CIA-88tikiwiki: 03omstefanov * r35248 10/branches/7.x/tests/testfile.txt: [test] olaf's 3rd test commit [15:13]
Bernard1:) [15:13]
rodrigo_sampaioBernard1: it is not related with Tiki
Bernard1: it is some configuration missing on your server
Bernard1: just give me a minute to check, I have seen this before
[15:13]
Bernard1ok tks [15:14]
rodrigo_sampaioany one from TikiFestStrasbourg2011 online?
Bernard1: you know which linux distribution is on your server?
rodrigo_sampaio ping Jyhem, Jyhem_laptop, nkoth:
[15:14]
Bernard1Huu… lenny it should, let me recheck
PHP Version 5.2.6-1+lenny10
[15:16]
rodrigo_sampaioBernard1: lenny is a debian version [15:17]
CIA-88tikiwiki: 03sampaioprimo * r35249 10/trunk/ (4 files in 4 dirs): [MRG] Automatic merge, branches/7.x 35238 to 35247 [15:17]
rodrigo_sampaioBernard1: so it is debian :) [15:17]
Bernard1Ya
:)
[15:17]
rodrigo_sampaioBernard1: 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
Bernard1: I was hoping to find an easier solution but I couldn't
Bernard1: anyway it is just a warning so it should be safe to ignore it
Bernard1: if you don't have root, contact your server support and ask them to fix it for you
[15:20]
Bernard1Bernard1 always have root ! :D [15:22]
rodrigo_sampaioBernard1: :D [15:22]
Bernard1tks Rodrigo :) [15:22]
rodrigo_sampaioBernard1: welcome
Bernard1: by the way, you are the guy from Israel right?
[15:22]
Bernard1Yes this one !
Brazil ?
[15:23]
rodrigo_sampaioBernard1: so it is my turn to ask you something :)
Bernard1: yes, I'm from Brazil
[15:23]
Bernard1welcome [15:23]
rodrigo_sampaioBernard1: I'm working on a new version of get_strings.php (the script we use to collect translatable strings) [15:23]
Bernard1ok [15:24]
rodrigo_sampaioBernard1: there is a little hack in the old get_strings.php to deal strings ending with punctuation as an exception
Bernard1: for example, if you have "Login:" it is considered as "Login" and ":"
Bernard1: in the language.php files you will never find "Login:", only "Login" and ":"
[15:24]
Bernard1exact [15:25]
rodrigo_sampaioBernard1: 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"
Bernard1: 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/
?
[15:26]
Bernard1yes and that depending your language the ":" can be in different place ("Login:" is not a good exemple but it was safer to remove punctuation) [15:27]
rodrigo_sampaioBernard1: sorry, not sure if I understood. can you elaborate? [15:28]
Bernard1yes this work ok : http://www.avtalyon.org.il/tiki-login_scr.php
herr.. ok go on...
[15:28]
rodrigo_sampaioBernard1: so Hebrew works as the latin languages and the ":" goes in the end of the sentence? [15:29]
Bernard1yes :) [15:30]
rodrigo_sampaioBernard1: ok, good
Bernard1: I'm worried that the way we handle punctuation might create problems for translators of some languages
[15:30]
Bernard1note that it is working because of the RTL management through styles/BiDi/BiDi.css [15:30]
rodrigo_sampaioBernard1: good to know that this is not the case for Hebrew [15:31]
Bernard1In 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 "("
the display is 75% ok BUT to write it correctly in the language.php file is A pain and lots of tries.
[15:32]
rodrigo_sampaioBernard1: 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. [15:33]
Bernard1boas-vindas :) [15:34]
rodrigo_sampaio:) [15:35]
CIA-88tikiwiki: 03muscote * r35250 10/trunk/tests/testfile.txt: just a test by Torsten (thx olaf for supporting me) [15:41]
..... (idle for 20mn)
***nkoth_ has joined #tikiwiki
nkoth has quit IRC (Read error: Operation timed out)
nkoth_ is now known as nkoth
[16:01]
.... (idle for 16mn)
CIA-88tikiwiki: 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) [16:17]
***pkdille has joined #tikiwiki
Bernard1 has quit IRC (Quit: Leaving.)
xavi has left
dcedilotte has joined #tikiwiki
chealer has joined #tikiwiki
chealer has quit IRC (Changing host)
chealer has joined #tikiwiki
[16:17]
dcedilottepolom! [16:27]
***garypp has joined #tikiwiki [16:27]
xen216 has joined #tikiwiki
Jyhem_laptop has quit IRC (Ping timeout: 250 seconds)
chealer has quit IRC (Remote host closed the connection)
chealer has joined #tikiwiki
[16:33]
....... (idle for 30mn)
Bernard1 has joined #tikiwiki [17:10]
Bernard1rodrigo_sampaio: diner, baby bed story and i'm back ;) cu [17:11]
rodrigo_sampaioBernard1: :) [17:12]
CIA-88tikiwiki: 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 [17:12]
***luciash has quit IRC (Ping timeout: 252 seconds) [17:15]
CIA-88tikiwiki: 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 [17:15]
.... (idle for 16mn)
***Bernard1 has quit IRC (Quit: Leaving.) [17:31]
Merbster has joined #tikiwiki [17:43]
Merbsterok.
it was a bit more
[17:44]
nkothHi Merbster: under admin home...categories [17:48]
***Caarrie|away has quit IRC (Read error: Connection reset by peer) [17:48]
Merbsteryes [17:48]
***Caarrie has joined #tikiwiki [17:49]
nkoththere is feature called "Categories used in templates (TPL" turn that on [17:49]
***Caarrie is now known as Caarrie|away [17:49]
nkoththe secriet sause of that is found in lib/setup/categories/php [17:49]
***rodrigo_sampaio1 has joined #tikiwiki [17:49]
Merbsterit's enabled [17:49]
***rodrigo_sampaio has quit IRC (Read error: Connection reset by peer) [17:49]
Merbsterallready [17:49]
nkothcheck out that php file, basically to use: // use in smarty {if isset($objectCategoryIds) and in_array(54, $objectCategoryIds)} My stuff ..{/if}
now umm in)array might be problematic in some servers
[17:50]
MerbsterWe have totalt control over the server [17:51]
nkothanwyway, if you edit that php file you can assign any smarty vary you want [17:51]
Merbsterhmm.
Merbster reads code
[17:53]
***Bernard1 has joined #tikiwiki [17:55]
nkoththat section stuff is set in lib.setup/sections.php if you are interested (background nfo)
so it picks up the "key
based on the section (wiki/article/etc...) e.g. articleId or whatever and then uses the value of that to find the category
[17:57]
MerbsterAAH
yes
and since there can more than one object cateogry that's why it's in plural
So this enables me to refer to the object categories of the current "section" through smarty with the variable $objectcategories
objectcategoryids*
[17:58]
CIA-88tikiwiki: 03sampaioprimo * r35254 10/branches/7.x/lang/ (48 files in 48 dirs): updating language.php files before backporting fix to get_strings.php (r35220) [18:00]
nkoth$objectCategoryIds is the array of category ids [18:00]
Merbsteryes
in the example they're searching the array for the value 54 right?
[18:01]
nkothright [18:01]
MerbsterI think this might have saved me alot of time.
nkoth, I am sorry if some of my questions are a bit lowlevel, but I just recently got familiar with PHP.
lowlevel as in nobish
not lowlevel as in assembler.
now
[18:02]
nkothbe careful about using in_array in smarty if smarty security is enabled... [18:05]
MerbsterWe will disable it if need be
But in essence I could refernce the categoryid array from PHP code too couldn't I?
[18:05]
nkothexactly [18:05]
MerbsterI will need to find the parentId of each category [18:06]
nkoththere is a funciton in categlib for that [18:06]
Merbsteroh man.
tbh... I never liked php, but I sure hell like TikiWiki :P
more and more
[18:06]
nkothlib/categories/categlib.php
get_category_parent or something like that
[18:07]
MerbsterI'll check it myself. [18:07]
CIA-88tikiwiki: 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) [18:07]
MerbsterMy 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.
do you think it will work?
[18:08]
nkoth"checking the load order..." [18:09]
Merbsteror 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 [18:09]
nkothfrom what I can see, perpective is loaded in prefs.php [18:11]
MerbsterSo as long as my hack is included belov prefs all should be sweet and dandy? [18:11]
nkoth(because it needs to be at the time when prefs are set, makes sense right?)
so your check has to be above prefs
before/above...
[18:11]
MerbsterIf I manually overwrite the seesion variable
wouldn't it be best to set it after prefs set it so I don't get it overwritten?
[18:12]
nkothwell, the perspective would already be loaded
and the prefs set
[18:12]
Merbsterok [18:12]
nkothPerspectives are all about overriding default perspective prefs [18:12]
MerbsterYes ofcourse
it makes sense
I just lack the overview of the general tiki design
So... Set perspective before prefs.php are included...
[18:12]
CIA-88tikiwiki: 03sampaioprimo * r35256 10/branches/7.x/lang/ (48 files in 48 dirs): updating language.php files to remove invalid strings [18:14]
nkothwhen I last did this I think I actially did a redirect
i.e. check if the perspective is wrong, if wrong, redirect
wastes resources but simpler than figuring out the load sequence
[18:16]
MerbsterI agree
ressources is not a problem
luckily the CEOs of our company backs up IT very well... :P
backs up as in "they give us what we need to do our job"
If it wastes too much
I can do a proper solution
When we have more time
they extended our deadline once allready
:P
allthough not just becuase of internal IT... external partners were also late on delivery :P
[18:17]
nkothJust 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...
well, I think my braindump is pretty much complete now at least on this topic. All the best
[18:21]
Merbsterhehehe
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...
[18:24]
nkothif 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 [18:27]
Merbsterwe are counting on this being our intranet the next 10 years
So hopefully I will be allowed to mature it
and commit some stuff back to the community
[18:28]
nkothsounds excellent! [18:28]
Merbsteroh
girlfriend prepared food
nkoth, thanks. If you're still here after I've eaten I probably have more questions if stuff will be troublesome.
[18:31]
chealerpolom [18:32]
CIA-88tikiwiki: 03sampaioprimo * r35257 10/branches/7.x/lang/ (4 files in 4 dirs): merging translations done on trunk using doc/devtools/mergelang.pl [18:37]
Bernard1Hi Chealer
Nelson
Rodrigo here ?
[18:39]
nkothhi [18:45]
chealerhi Bernard1 [18:46]
***Caarrie|away has quit IRC (Ping timeout: 255 seconds)
Caarrie|away has joined #tikiwiki
[18:54]
xen216 has quit IRC (Ping timeout: 255 seconds) [19:02]
Merbsternkoth, 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? [19:02]
nkothperspective as url parameter I think
actually setting the session var and redirect works too I think
sorry for the double answer :)
[19:03]
MerbsterI am thinking, when you set the perspective with the url param, it's only temporary isn't it? [19:04]
nkothoh umm [19:04]
Merbsterwhen you click a new link the perspective will be lost (unless you apply that link there too) [19:04]
nkothok,then set the session var - better [19:04]
MerbsterBut 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. [19:04]
CIA-88tikiwiki: 03changi67 * r35258 10/trunk/templates/tiki-install.tpl: ~INDENT~ Easier to read
tikiwiki: 03changi67 * r35259 10/trunk/templates/tiki-install.tpl: [MOD] Give the possibility to check all errors in one click
[19:04]
***rodrigo_sampaio has joined #tikiwiki [19:14]
CIA-88tikiwiki: 03changi67 * r35260 10/branches/7.x/templates/tiki-install.tpl: [BP/35258] ~INDENT~ Easier to read [19:14]
***rodrigo_sampaio1 has quit IRC (Ping timeout: 258 seconds) [19:14]
CIA-88tikiwiki: 03changi67 * r35261 10/branches/7.x/templates/tiki-install.tpl: [BP/35259][MOD] Give the possibility to check all errors in one click
tikiwiki: 03jean-lucnavarro * r35262 10/trunk/lang/fr/language.php: [TRA] more French translations
[19:15]
Merbsternkoth, did you write your own code for resolving the perspective from the category id ?
or does tikiwiki allready have that
[19:17]
nkothyou mean mapping category id to perspective id?
I wrote my own for that
[19:17]
Merbsterok
i am blind... :P
I overlooked tiki_perspectives until i used the search function in my SQL tool :P
[19:20]
CIA-88tikiwiki: 03changi67 * r35263 10/trunk/installer/schema/20110630_fix_blogs_copyright_frencho_tiki.sql: ~FIX~ Remove useless svn property [19:24]
Merbsterouch
the categories linked to the perspective is saved as json if I'm not mistaken :S
[19:25]
nkothjson_decode [19:27]
MerbsterI know
I'm more thinking about the performance hit that will give the db
if we have 6000 perspectives
So either I have to use string functions in SQL to pinch out the numbers
that means it has to do a table scan for each search for mappings between categories and perspective
or I have to get it out in PHP parse the json and do the comparison in Php
[19:27]
nkothyou won't have 6000 perspectives will you? [19:28]
MerbsterWe need a perspective for each project
and we have atleast 1500 active projects
and it will only grow
we might have 500-1000 projects a year.
(building engineering company)
[19:28]
nkothok, well caching it is just one line - can do that later on [19:29]
MerbsterI 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
hmmm.
actually
there might be a more elegant work around
or not... doh
[19:30]
CIA-88tikiwiki: 03changi67 * r35264 10/trunk/templates/list_file_gallery_content.tpl: [MOD] Remove check all when no record found [19:33]
Merbsterif I could predict how the json would end up looking in the database
I could index the column with the json
and then search with the generated string...
but... that's tricky
[19:33]
CIA-88tikiwiki: 03sampaioprimo * r35265 10/branches/proposals/6.x/lang/ (26 files in 26 dirs): merging translations done on trunk using doc/devtools/mergelang.pl
tikiwiki: 03changi67 * r35266 10/trunk/templates/browse_file_gallery.tpl: [MOD] Remove check all when no record found
[19:35]
***xen216 has joined #tikiwiki
nkoth has quit IRC (Quit: nkoth)
nkoth has joined #tikiwiki
[19:38]
Merbsternkoth, what are you using TikiWiki for? [19:43]
nkothMerbster: all sorts of different sorts of sites. [19:44]
Merbsternkoth, did you parse the json directly in SQL ? [19:52]
CIA-88tikiwiki: 03changi67 * r35267 10/trunk/templates/browse_file_gallery.tpl: ~REVERT~ Stupid things [19:53]
nkothno. I didn't have that many perspectives and categories, I simply had a hardcoded mapping [19:53]
CIA-88tikiwiki: 03changi67 * r35268 10/trunk/templates/list_file_gallery_content.tpl: ~CHANGE~ Add a select all in table head + revert previous commit [19:56]
MerbsterI don't think mysql can parse json reasonably fast [19:57]
nkothi normally use json_decode in php [19:58]
Merbsteryes.
That's prboably what I'll have to do to have this done by this evening
hmmm.
[19:58]
***garypp has left [20:00]
MerbsterThis is a semi bad code solution of tikiwiki
since this design will never allow you to query for perspectives based on category compositions.
atleast in a scalable manner
[20:00]
***Bernard1 has quit IRC (Quit: Leaving.) [20:00]
CIA-88tikiwiki: 03changi67 * r35269 10/trunk/ (4 files in 2 dirs): [ENH] Introduce static CSS Sprite in admin panel - First step to CSS Sprite [20:03]
..... (idle for 22mn)
***xen216 has quit IRC (Quit: Ex-Chat) [20:25]
CIA-88tikiwiki: 03changi67 * r35270 10/trunk/lib/jquery_tiki/tiki-trackers.js: Add css class for table styling
tikiwiki: 03changi67 * r35271 10/trunk/templates/tiki-admin_tracker_fields.tpl: ~ENH~ Add select all
[20:34]
........ (idle for 36mn)
***sylvieg has quit IRC (Quit: Leaving.) [21:12]
.... (idle for 16mn)
sylvieg has joined #tikiwiki
ChanServ sets mode: +o sylvieg
[21:28]
CIA-88tikiwiki: 03sampaioprimo * r35272 10/trunk/ (3 files in 2 dirs): [MRG] Automatic merge, branches/7.x 35247 to 35261 [21:39]
tikiwiki: 03sampaioprimo * r35273 10/trunk/doc/devtools/svnbranchupdate.php: just updating script documentation by replacing .0 with .x [21:49]
***radek82 has quit IRC (Quit: Leaving) [21:58]
.... (idle for 17mn)
chealerrodrigo_sampaio: could you explain the problem with invalid strings?
I notice fuckage with apostrophes, I'm glad if you fixed it
[22:15]
***GillesM has quit IRC (Remote host closed the connection) [22:19]
..... (idle for 22mn)
rodrigo_sampaiochealer: check https://dev.tiki.org/tiki-view_tracker_item.php?itemId=3881
chealer: which issue with apostrophes I fixed? :)
[22:41]
MerbsterI have made a small hack that sets a perspective depending on what categories the page/wiki/whatever is categorized in
To work around having to figure out the load order of tikiwiki
I am using a redirect
and I use getenv('HTTP_REFERER') to get the referring page
to "redirect back"
and set a perspective
but this gives a problem when trying to edit, say a wiki page
because it's tiki-edit... etc.
Is the "target url" of the pressed link, stored somewhere in wiki?
[22:54]
chealerrodrigo_sampaio: OK... what about the line modified with "Function:" in http://sourceforge.net/apps/trac/tikiwiki/changeset/35236/trunk/lang/fr/language.php
apparently it's just a backslash added, why?
rodrigo_sampaio: actually, let's talk about the first one on :2570
I don't understand your question (and you seem to be doing something weird)
Merbster: ^^
[23:10]
Merbsterchealer, what's up? [23:13]
chealerMerbster: I don't understand your question (and you seem to be doing something weird) [23:15]
MerbsterWell.
point is
I want to set the perspective according to the current page's categories.
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
reason why whole is in " " is because some places of the wiki
should have default view.
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
chealer, I wrote with nkoth earlier, he said he had atleast some good experience with this way of doing things
but I think I figured out how to direct to the correct page, by using $_SERVER[PHP_SELF] (or whatever it's called)
and the $_REQUEST["page"] thing
and then adding the perspectiveId
that I resolved via. a database search
chealer, does it make more sense now?
[23:16]
nkothwhat kind of problem you face when you edit the page? [23:21]
Merbstercurrently it's not resolving the perspective ID correctly
like it forgot one of the jaiuls
I am checking the db to see if it's correct
[23:21]
nkothare you setting the SESSION perspective before redirecting? [23:22]
chealerMerbster: hum, it's still unclear, although I think I understand more. you were asking how to get the URL of the page being viewed?
Merbster: anyway, glad if you found the answer
[23:22]
Merbstersemi
I think
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.
[23:22]
nkothif so, then the perspective should stay the same as the one which is active when vuewing [23:23]
Merbsterhmmm
nkoth, when you say session variable, are you talking about $_REQUEST["perspectiveId"] ?
[23:23]
nkothno [23:23]
Merbsterplease elaborate then
or point me to where I can read about it myself :P
[23:24]
nkothI believe I mean $_SESSION['current_perspective'] [23:24]
MerbsterI had no idea there was a $_SESSION varaible :P
I will check it
[23:25]
nkothright, if you set that instead of $_REQUEST["perspectiveId, you will have a more "permanent" change... [23:25]
***Trebly has joined #tikiwiki [23:26]
Merbsteraaah
nice :)
[23:26]
chealerMerbster: I still have no idea what kind of category tree you have or what you use perspectives for [23:27]
Merbsterchealer, we have one Category called "Project Page"
it's used as a "type"
as subcategories to "Project Page"
each project will have a category
each category will be assigned to a category jail in each their own perspective
So that we sort out all the irrelevant noise when you're going trhough all the steps to complete a Project
[23:28]
chealerMerbster: BTW, it would be friendly and perhaps easier to follow you if you used more punctuation and less Enter-s [23:29]
MerbsterSorry. I've been coding for over 12 hours today.
I will try to make my sentences longer isntead of flooding the chat.
[23:29]
nkothMerbster, if you redirect to $_SERVER['REQUEST_URI'] after setting $_SESSION['current_perspective'] you should be fine [23:34]
MerbsterI guess REQUEST_URI just returns the full path of the active script, instead of just the actual filename like PHP_SELF [23:35]
nkoththis is a good comparison what the difference is: http://raptor.hk/_serverphp_self-vs-_serverscript_name-vs-_serverrequest_uri/ [23:35]
Trebly<Sylvieg> 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.
With 6.x current that I update, I get two (or more) problems (I have some sites not yet updated to 7.0).
- 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 ?
- 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.
I could not find back the notes on the admin password pbs
[23:44]
Merbsternkoth, it keeps looping
redirecting to itself all the time and I can't seem to figure out a proper control structure to make it stop again
[23:59]

←Prev date Next date→ Show only urls(Click on time to select a line by its url)