***: TNRR2012 has joined #tikiwiki
goj|ghost has joined #tikiwiki
goj has quit IRC (Ping timeout: 276 seconds)
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)
TNRR2012 has joined #tikiwiki TNRR2012: tiki7: 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
could someone simply tell me where to look within the tiki site for information similar to this? thanx ***: nkoth has quit IRC (Quit: nkoth)
nkoth has joined #tikiwiki
nkoth has quit IRC (Client Quit)
TNRR2012 has quit IRC (Quit: Leaving)
Bernard1 has joined #tikiwiki
chealer has quit IRC (Remote host closed the connection)
Merbster has joined #tikiwiki Merbster: Goodmorning.
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.
What is weird; it's not even consistent.
Only _some_ of the trackers are affected ***: kstingel has joined #tikiwiki kstingel: Can 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 Merbster: kstingel, if you can activate tikiparsing of that field
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)
Merbster: 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.
But if you google on the tikiwiki site
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
jph_ has joined #tikiwiki
SJ-jay has joined #tikiwiki Merbster: kstingel, hehe I know exactly what you're going trhough, I was there 1 month ago :P kstingel: Merbster: 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 Merbster: the 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 kstingel: Tiki for Smarties & Tiki Essentials have been my good friends too Merbster: ofcourse :P ***: redflo has joined #tikiwiki
redflo has quit IRC (Client Quit)
xen216 has quit IRC (Ping timeout: 258 seconds)
jonnyb has joined #tikiwiki jonnyb: 'fest poloms CIA-88: tikiwiki: 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 Merbster: I 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. ***: Wilkins_ has quit IRC (Remote host closed the connection)
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)
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)
jme_ has joined #tikiwiki
jme_ has quit IRC (Client Quit)
Merbster has quit IRC (Ping timeout: 246 seconds)
kstingel has left "Leaving"
GillesMM has joined #tikiwiki
Wilkins has joined #tikiwiki
jonnyb has joined #tikiwiki
Jyhem_laptop has joined #tikiwiki
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 :)
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
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)
tikiwiki: 03jonnybradley * r35244 10/branches/7.x/lib/TikiWebdav/Backend/File.php: [FIX] Missing global ***: Wilkins has quit IRC (Ping timeout: 258 seconds)
Wilkins has joined #tikiwiki
xavi has joined #tikiwiki xavi: polom ***: Merbster has joined #tikiwiki
rodrigo_sampaio has joined #tikiwiki nkoth: hi xavi xavi: I'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? ^ nkoth: well, 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 -: 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:
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?) -: sylvieg wondering if it is an unwanted commit xavi: i.e.:
tiki1/tiki-index.php%3Fpage%3Dr_test3%26itemId%3D4%26view%3Duser
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)
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!)
ok, so I commit in proposals/6.x only, then sylvieg: wait 2 secs
to se if the page is well encoded xavi: ok rodrigo_sampaio: hi xavi
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?
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
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 luciash: hi xavi, sylvieg, rodrigo_sampaio ... :) rodrigo_sampaio: hello luciash sylvieg: hi
sorry Merbster I do not understand - a perspective is a cetegory Merbster: sylvieg, no, a perspective can have a category jail
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.
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 nkoth: what version of tiki are you on? Merbster: 6.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. nkoth: i'm thinking
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
evyerthhing that has a category
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
"suck all the knowhow" sounds scary :) Merbster: luciash, lol :P
well
... I hope it won'
t be
oh well. I'll be off for home now... See you later ***: 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) luciash: any 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 rodrigo_sampaio: luciash: no errors in the apache log? CIA-88: tikiwiki: 03omstefanov * r35246 10/branches/7.x/tests/testfile.txt: [test] olaf's test commit
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;
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 ? rodrigo_sampaio: Bernard1: are you using linux or windows? Bernard1: linux… 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) rodrigo_sampaio: Bernard1: 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: Bernard1: 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 Bernard1: ok tks rodrigo_sampaio: any one from TikiFestStrasbourg2011 online?
Bernard1: you know which linux distribution is on your server? -: rodrigo_sampaio ping Jyhem, Jyhem_laptop, nkoth: Bernard1: Huu… lenny it should, let me recheck
PHP Version 5.2.6-1+lenny10 rodrigo_sampaio: Bernard1: 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: Bernard1: so it is debian :) Bernard1: Ya
:) rodrigo_sampaio: Bernard1: 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 -: Bernard1 always have root ! :D rodrigo_sampaio: Bernard1: :D Bernard1: tks Rodrigo :) rodrigo_sampaio: Bernard1: welcome
Bernard1: by the way, you are the guy from Israel right? Bernard1: Yes this one !
Brazil ? rodrigo_sampaio: Bernard1: so it is my turn to ask you something :)
Bernard1: yes, I'm from Brazil Bernard1: welcome rodrigo_sampaio: Bernard1: I'm working on a new version of get_strings.php (the script we use to collect translatable strings) Bernard1: ok rodrigo_sampaio: Bernard1: 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 ":" Bernard1: exact rodrigo_sampaio: Bernard1: 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/
? 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: Bernard1: sorry, not sure if I understood. can you elaborate? Bernard1: yes this work ok : http://www.avtalyon.org.il/tiki-login_scr.php
herr.. ok go on... rodrigo_sampaio: Bernard1: so Hebrew works as the latin languages and the ":" goes in the end of the sentence? Bernard1: yes :) rodrigo_sampaio: Bernard1: ok, good
Bernard1: 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: Bernard1: 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 "("
the display is 75% ok BUT to write it correctly in the language.php file is A pain and lots of tries. rodrigo_sampaio: Bernard1: 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
nkoth has quit IRC (Read error: Operation timed out)
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
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 dcedilotte: polom! ***: garypp has joined #tikiwiki
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
Bernard1 has joined #tikiwiki Bernard1: rodrigo_sampaio: diner, baby bed story and i'm back ;) cu rodrigo_sampaio: Bernard1: :) 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.)
Merbster has joined #tikiwiki Merbster: ok.
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}
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)
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 Merbster: AAH
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* 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
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.
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 nkoth: be careful about using in_array in smarty if smarty security is enabled... Merbster: We will disable it if need be
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.
tbh... I never liked php, but I sure hell like TikiWiki :P
more and more nkoth: lib/categories/categlib.php
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.
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?)
so your check has to be above prefs
before/above... Merbster: If 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? nkoth: well, the perspective would already be loaded
and the prefs set Merbster: ok nkoth: Perspectives are all about overriding default perspective prefs Merbster: Yes ofcourse
it makes sense
I just lack the overview of the general tiki design
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
i.e. check if the perspective is wrong, if wrong, redirect
wastes resources but simpler than figuring out the load sequence Merbster: I 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 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...
well, I think my braindump is pretty much complete now at least on this topic. All the best Merbster: hehehe
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
So hopefully I will be allowed to mature it
and commit some stuff back to the community nkoth: sounds excellent! Merbster: oh
girlfriend prepared food
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
Nelson
Rodrigo here ? nkoth: hi chealer: hi Bernard1 ***: Caarrie|away has quit IRC (Ping timeout: 255 seconds)
Caarrie|away has joined #tikiwiki
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
actually setting the session var and redirect works too I think
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
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
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 ?
or does tikiwiki allready have that nkoth: you mean mapping category id to perspective id?
I wrote my own for that Merbster: ok
i am blind... :P
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
the categories linked to the perspective is saved as json if I'm not mistaken :S nkoth: json_decode Merbster: I 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 nkoth: you won't have 6000 perspectives will you? Merbster: We 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) 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
hmmm.
actually
there might be a more elegant work around
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
I could index the column with the json
and then search with the generated string...
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
tikiwiki: 03changi67 * r35266 10/trunk/templates/browse_file_gallery.tpl: [MOD] Remove check all when no record found ***: xen216 has joined #tikiwiki
nkoth has quit IRC (Quit: nkoth)
nkoth has joined #tikiwiki Merbster: nkoth, what are you using TikiWiki for? nkoth: Merbster: 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.
That's prboably what I'll have to do to have this done by this evening
hmmm. ***: garypp has left Merbster: This 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 ***: 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
tikiwiki: 03changi67 * r35271 10/trunk/templates/tiki-admin_tracker_fields.tpl: ~ENH~ Add select all ***: sylvieg has quit IRC (Quit: Leaving.)
sylvieg has joined #tikiwiki
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
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: rodrigo_sampaio: could you explain the problem with invalid strings?
I notice fuckage with apostrophes, I'm glad if you fixed it ***: GillesM has quit IRC (Remote host closed the connection) rodrigo_sampaio: chealer: check https://dev.tiki.org/tiki-view_tracker_item.php?itemId=3881
chealer: 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
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? chealer: rodrigo_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: ^^ Merbster: chealer, what's up? chealer: Merbster: I don't understand your question (and you seem to be doing something weird) Merbster: Well.
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? nkoth: what kind of problem you face when you edit the page? Merbster: currently 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 nkoth: are you setting the SESSION perspective before redirecting? chealer: Merbster: 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 Merbster: semi
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. nkoth: if so, then the perspective should stay the same as the one which is active when vuewing Merbster: hmmm
nkoth, when you say session variable, are you talking about $_REQUEST["perspectiveId"] ? nkoth: no Merbster: please elaborate then
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
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
nice :) chealer: Merbster: 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"
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 chealer: Merbster: 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.
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: <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 Merbster: nkoth, 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