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 hmnn thanx i guess 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 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 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 kstingel, if you can activate tikiparsing of that field you could use the wiki argument {user} 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? 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 I'm just getting used to tiki-speak, I was still thinking in terms of $user *smile* kstingel, hehe I know exactly what you're going trhough, I was there 1 month ago :P 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 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 Tiki for Smarties & Tiki Essentials have been my good friends too ofcourse :P 'fest poloms 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 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. tikiwiki: 03jonnybradley * r35240 10/trunk/ (6 files in 3 dirs): [MRG] Automatic merge, branches/7.x 35212 to 35238 polom polom from Strasbourg luciash many greetings to Strasbourg :) hey Luci ! hi everyone salut Jyhem_laptop :) hi nelson 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 polom hi 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? ^ 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 I suuppose it is a opage with an accent 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?) i.e.: tiki1/tiki-index.php%3Fpage%3Dr_test3%26itemId%3D4%26view%3Duser and apache returns: error 404 the only part of that url that needs to be urlencoded is the pagename yes - I think that it was an error and I confirm that if I remove the urlencode part, all is well again with plugin tracker this has to go 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. it does not exist anymore in 7 first time (svn rocks!) ok, so I commit in proposals/6.x only, then wait 2 secs to se if the page is well encoded ok hi xavi hi all hi :-) seems to be an error - I can not find where in 7 the line can have been introduced/ deleted 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 how can I get a reference to the page/article/whatever being viewed, from PHP ? sorry xavi - I suppose it was a test I did ... I can not find out the historic of this no problem, thanks for fixing i.e. what file should I include? or where can I read about this? ther is no unique reference between objects (for one it is $page, for the other $articvleId..) if I well understand the question 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 hi xavi, sylvieg, rodrigo_sampaio ... :) hello luciash hi sorry Merbster I do not understand - a perspective is a cetegory sylvieg, no, a perspective can have a category jail so a perspective can be bound to several categories i think Merbster is trying to automatically change the perspective depending on where the object the user is viewing is categorized 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 what version of tiki are you on? 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. i'm thinking i've done something similar before but it's a long time ago I have seen a "resolve category from page id" like method somewhere one problem is that your object is not jsut a page right? you have articles etc too? Yes evyerthhing that has a category nkoth, will you still be here in 1 hour or so? yes do mind if I suck all the knowhow from your mind then? :P i'll be around hi luciash heheh "suck all the knowhow" sounds scary :) luciash, lol :P well ... I hope it won' t be oh well. I'll be off for home now... See you later 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 luciash: no errors in the apache log? 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 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 ? Bernard1: are you using linux or windows? 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) Bernard1: than I can help you :) tikiwiki: 03omstefanov * r35248 10/branches/7.x/tests/testfile.txt: [test] olaf's 3rd test commit :) 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 ok tks any one from TikiFestStrasbourg2011 online? Bernard1: you know which linux distribution is on your server? Huu… lenny it should, let me recheck PHP Version 5.2.6-1+lenny10 Bernard1: lenny is a debian version tikiwiki: 03sampaioprimo * r35249 10/trunk/ (4 files in 4 dirs): [MRG] Automatic merge, branches/7.x 35238 to 35247 Bernard1: so it is debian :) Ya :) 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: :D tks Rodrigo :) Bernard1: welcome Bernard1: by the way, you are the guy from Israel right? Yes this one ! Brazil ? Bernard1: so it is my turn to ask you something :) Bernard1: yes, I'm from Brazil welcome Bernard1: I'm working on a new version of get_strings.php (the script we use to collect translatable strings) ok 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 ":" exact 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/ ? 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) Bernard1: sorry, not sure if I understood. can you elaborate? yes this work ok : http://www.avtalyon.org.il/tiki-login_scr.php herr.. ok go on... Bernard1: so Hebrew works as the latin languages and the ":" goes in the end of the sentence? yes :) Bernard1: ok, good Bernard1: I'm worried that the way we handle punctuation might create problems for translators of some languages note that it is working because of the RTL management through styles/BiDi/BiDi.css Bernard1: good to know that this is not the case for Hebrew 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. 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. boas-vindas :) :) tikiwiki: 03muscote * r35250 10/trunk/tests/testfile.txt: just a test by Torsten (thx olaf for supporting me) 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) polom! rodrigo_sampaio: diner, baby bed story and i'm back ;) cu Bernard1: :) 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 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 ok. it was a bit more Hi Merbster: under admin home...categories yes there is feature called "Categories used in templates (TPL" turn that on the secriet sause of that is found in lib/setup/categories/php it's enabled allready 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 We have totalt control over the server anwyway, if you edit that php file you can assign any smarty vary you want hmm. 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 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* 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) $objectCategoryIds is the array of category ids yes in the example they're searching the array for the value 54 right? right 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 be careful about using in_array in smarty if smarty security is enabled... We will disable it if need be But in essence I could refernce the categoryid array from PHP code too couldn't I? exactly I will need to find the parentId of each category there is a funciton in categlib for that oh man. tbh... I never liked php, but I sure hell like TikiWiki :P more and more lib/categories/categlib.php get_category_parent or something like that I'll check it myself. 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) 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? "checking the load order..." 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 from what I can see, perpective is loaded in prefs.php So as long as my hack is included belov prefs all should be sweet and dandy? (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... 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? well, the perspective would already be loaded and the prefs set ok Perspectives are all about overriding default perspective prefs Yes ofcourse it makes sense I just lack the overview of the general tiki design So... Set perspective before prefs.php are included... tikiwiki: 03sampaioprimo * r35256 10/branches/7.x/lang/ (48 files in 48 dirs): updating language.php files to remove invalid strings 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 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 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 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... 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 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 sounds excellent! 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. polom tikiwiki: 03sampaioprimo * r35257 10/branches/7.x/lang/ (4 files in 4 dirs): merging translations done on trunk using doc/devtools/mergelang.pl Hi Chealer Nelson Rodrigo here ? hi hi Bernard1 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? perspective as url parameter I think actually setting the session var and redirect works too I think sorry for the double answer :) I am thinking, when you set the perspective with the url param, it's only temporary isn't it? oh umm when you click a new link the perspective will be lost (unless you apply that link there too) ok,then set the session var - better 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. 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 tikiwiki: 03changi67 * r35260 10/branches/7.x/templates/tiki-install.tpl: [BP/35258] ~INDENT~ Easier to read 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 nkoth, did you write your own code for resolving the perspective from the category id ? or does tikiwiki allready have that you mean mapping category id to perspective id? I wrote my own for that ok i am blind... :P I overlooked tiki_perspectives until i used the search function in my SQL tool :P tikiwiki: 03changi67 * r35263 10/trunk/installer/schema/20110630_fix_blogs_copyright_frencho_tiki.sql: ~FIX~ Remove useless svn property ouch the categories linked to the perspective is saved as json if I'm not mistaken :S json_decode 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 you won't have 6000 perspectives will you? 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) ok, well caching it is just one line - can do that later on 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 tikiwiki: 03changi67 * r35264 10/trunk/templates/list_file_gallery_content.tpl: [MOD] Remove check all when no record found 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 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 nkoth, what are you using TikiWiki for? Merbster: all sorts of different sorts of sites. nkoth, did you parse the json directly in SQL ? tikiwiki: 03changi67 * r35267 10/trunk/templates/browse_file_gallery.tpl: ~REVERT~ Stupid things no. I didn't have that many perspectives and categories, I simply had a hardcoded mapping tikiwiki: 03changi67 * r35268 10/trunk/templates/list_file_gallery_content.tpl: ~CHANGE~ Add a select all in table head + revert previous commit I don't think mysql can parse json reasonably fast i normally use json_decode in php yes. That's prboably what I'll have to do to have this done by this evening hmmm. 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 tikiwiki: 03changi67 * r35269 10/trunk/ (4 files in 2 dirs): [ENH] Introduce static CSS Sprite in admin panel - First step to CSS Sprite 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 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 rodrigo_sampaio: could you explain the problem with invalid strings? I notice fuckage with apostrophes, I'm glad if you fixed it chealer: check https://dev.tiki.org/tiki-view_tracker_item.php?itemId=3881 chealer: which issue with apostrophes I fixed? :) 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? 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: ^^ chealer, what's up? Merbster: I don't understand your question (and you seem to be doing something weird) 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? what kind of problem you face when you edit the page? 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 are you setting the SESSION perspective before redirecting? 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 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. if so, then the perspective should stay the same as the one which is active when vuewing hmmm nkoth, when you say session variable, are you talking about $_REQUEST["perspectiveId"] ? no please elaborate then or point me to where I can read about it myself :P I believe I mean $_SESSION['current_perspective'] I had no idea there was a $_SESSION varaible :P I will check it right, if you set that instead of $_REQUEST["perspectiveId, you will have a more "permanent" change... aaah nice :) Merbster: I still have no idea what kind of category tree you have or what you use perspectives for 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 Merbster: BTW, it would be friendly and perhaps easier to follow you if you used more punctuation and less Enter-s Sorry. I've been coding for over 12 hours today. I will try to make my sentences longer isntead of flooding the chat. Merbster, if you redirect to $_SERVER['REQUEST_URI'] after setting $_SESSION['current_perspective'] you should be fine I guess REQUEST_URI just returns the full path of the active script, instead of just the actual filename like PHP_SELF this is a good comparison what the difference is: http://raptor.hk/_serverphp_self-vs-_serverscript_name-vs-_serverrequest_uri/ 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 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