New Forum Posts: How to avoid auto-quote in comments on wiki-pages? - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=42369 tikiwiki: 03chibaguy * r37742 10/trunk/styles/ (strasa/options/cool.css strasa/options/mono.css strasa.css): [FIX] Register link background in Strasa theme should only show when login is in topbar modules (as other login link backgrounds are specified). Thanks to Xavi. at every tiki upgrade we have to wrestle with the LDAP module pol and om Greetings jonnyb :) hi Merbster Hi jonnyb. I see that we are getting very close to an 8.x branch. Are you still aiming to get the JSON interface into the WYSIWYG editor for 8.x? hi arildb - was hoping to - i got 75% through it yesterday - no encoding issues, but got stuck on the wysiwyg stuff (can't work out what Mauriz has been doing) no encoding issues i could find i was going to send a patch to the dev list incase others could try it jonnyb: I can help you to test it out super, thanks i'll give it another hour or so this morning to hopefully get wysiwyg working again and send it over I probably won't have time before tonight (European time) I forgot; who else is using tikis LDAP functionality against an MS active directory? polom everyone! :) hi. is it possible that the article rating is broken in the current stable version? no matter what i change, and which ratings i submit, it keeps sitting at 7 stars recalc. is set to "on submit" polom this makes no sense either: ({$rating}/10) the amount of rating options is configurable taken from tiki-read_article.tpl and $use_ratings is always 'n' on article pages, even though it's activated in the backend no Europeans here or why can I hear my echo in here? Hi DanMan1234, yes Europeans here, but I am sorry I am not familiar with this issue ok off to the bug tracker then i guess... DanMan1234, or try back a little later when North America is awake thanks for the hint submitted: https://dev.tiki.org/tiki-view_tracker_item.php?itemId=3996 btw. may i have commit access? I've followed the steps on the website about me: i'm an employee of www.gaxweb.com and currently trying to set up a tikiwiki for one of our customers hi ricks99 polom y'all DanMan1234, for commit access, maybe ricks99 can help you out? huh? someone wanting to join tiki dev/ ? ricks99: Yes, DanMan1234 made the request right before you came online jonnyb, do you have time to enlighten me about the LDAP module? well ok module might be the wrong term; feature and hi btw ping DanMan1234 I was just hit by a bug that I allready reported but forgot about. http://sourceforge.net/apps/trac/tikiwiki/changeset/31339/trunk/lib/auth/ldap.php <- can somebody explain to me why that regex was removed? - and how a regex like that can magically add support for scandinavian chars (æ,ø,å) hi Merbster - sorry, i don't do LDAP jonnyb, your name was in the top comments, that's the only reason why I thought you might have something to do with it :P comments? jonnyb, of /lib/auth/ldap.php your name is in the top comments (the last one who edited the file maybe?) don't think i've even ever opened that file hahaha :P Well your name is there where? Merbster: I have one ldap running on 7 - but never test the group feature i see killianebel edited it 10 months ago on the url you mentioned Q: do we have a 7.2 yet? sylvieg, I have it running now, but only after hacking in the regex contained in the old revision shown in that link I just posted it's the ONLY difference. and it works with æ,ø,å with it. but not without it. I don't understand regex. yes, I've found a few quirks in the templates and it thought why not commit them right away it=i perhaps \s does not match special chars... Merbster: Do you have multibyte on your server? tikiwiki: 03oeversetten * r37743 10/trunk/lang/nds/language.php: [TRA] I see the twenty percent already :) tikiwiki: 03jonnybradley * r37744 10/third_party/ckeditor/ (104 files in 25 dirs): [MOD] upgrade ckeditor to latest release 3.6.2 sylvieg, I wouldn't know but danish should be covered by standard UTF-8 CHarset. Merbster: sorry I can not test I do not have the perm to add a user in the ldap - chealer has a local test I think.. sylvieg, I just fail to see what that regex does to the string since it makes it display correctly instead of encoding the Ø (we have "Søren Jensen" ) sylvieg, I used that workaround I posted when I reported the bug. sylvieg, what shoudl we do? - re add the regex to tiki or figure out the real cause? Merbster: are you speaking about && preg_match('#\s#', $options[$n])==0) ? sylvieg, yes I do not have this preg_match in my version? sylvieg, http://sourceforge.net/apps/trac/tikiwiki/changeset/31339/trunk/lib/auth/ldap.php <- you can see where which revision contained it. sylvieg, does it make sense to you? it keeps the option only if the option does not contain space ? and do you have an idea ob wchich option? tikiwiki: 03tikii18nbot * r37745 10/trunk/lang/de/language.php: German translations done on i18n.tiki.org sylvieg, the option name is ou (the one containing Søren Jensen) sylvieg, I bird just whispered in my ear that OU means Organizational Unit. we tested with OU set to Soren Jensen one day and it worked so I am sure it's the Ø sylvieg, am I being helpful or am I just confusing you more? :) bbl Merbster: and in the morning I need some times to connect sylvieg, I don't understand what you mean. sorry. I am not well awake yet.. even If I get up 3h ago :-( sylvieg, there's a solution to that: loads and loads of coffee ;) I do not understand why this preg_match solves your problem ... neither do I but it does I found out by doing a diff on the 6.1 file that worked and a new ldap.php it was the only difference I found my best bet wil be to add it back - because I can not understand why killianeble took it out ... perhaps he did not understand the preg_match ... redflo who put it first... I trust him sylvieg, ok. Thank you for clearing that up. are you going to add it back or should I do it? this regex is the option has no space in it Merbster: can you test a little test.php print_r(preg_match('#\s#', "æ,ø,å")); sylvieg, sure. 2 secs on my local it returns 0 if I add a space it returns 1 sylvieg, same here sylvieg, http://pastebin.com/FG6ngcMX <- here is what I tested with and I added the result as a comment in tiki 8SVN there's a preference called "areas_root" but it says "Preference areas_root is not defined:" and the textbox right next to it contains "Error, try to use the faq" who is oeversetten ? Does prefs need to be saved in some special format in the database in order to work? hi ricks99. not yeat, it's scheduled for tomorrow thx chealer lphuberdeau, i'm trying to replace TRACKERLIST with LIST instead.. but could you guide me in the right direction? so you have the unified search index built? that is step 1 yeah i do :) good but i think we carcked it cracked* just about to test oh yeah.. how do i "style" the output from the list? just start small and increment one block at a time with trackerlist i just define which fields i want to be shown check out the documentation for the table format you can also use a custom template didn't work :( i'm trying to create a mini blog.. combining a tracker plugin with the list plugin in a module pretty sure I had the table format working, because I copied that example from my local tests i haven't done the template part yet.. is it necessary? template=table ? yeah yes, otherwise you won't get a table ok.. so i'll just create a wiki page and use HTML to style the table? and all those columns you define are meaningless without the table template the table template is a built-in template that builds a table that looks like a normal table in tiki ah ok.. now i understand it i thought i had to create a template page like pretty trackers after upgrading to tiki 8 SVN I get an error stating that Zend_Filter_Interface is not found in /lib/core/DeclFilter.php the DeclFilter class implements that interface try svn status to see if there is anything gone wrong SJ, LIST allows you to use a custom template, but that's not related to the TABLE portion of the documentation and at this time, it's only physical templates, not wiki pages as template ok.. but.. i'm still confused! can't figure out what to do here.. with trackerlist i could display the created date do i have to add a date tracker field when using list if i want to show and sort by date? wow.. i think i have to read the documentation a bit more before i continue.. I don't think the creation date is being indexed right now, you do have modification_date however modification_date will do! so i start with {filter type=trackeritem} then {OUTPUT(template="table")} It seems wiki argument variable parsing has been moved away from /lib/tikilib.php Sombody knows where it ended up? Or can someone teach me how I can find out myself? lib/parser/parserlib.php i then need to list the trackerfields in the table.. i have a text area and a name SJ, start with something simple, display the title or something like that furthermore i want the mod date to be show lphuberdeau, thank you very much sir! lphuberdeau, ok i'll start simple at least i'm not getting errors now and something is showing! although it looks like crap :P hi: try to use an itemId for a button but the description taken from doc.tiki.org/pluginbutton leads to an error: the $ gets repleced with %24 Any Hint? *replaced hmm.. i'm really missing some screenshots at the documentation.. i can't figure out how to extract my tracker fields in the columns tracker_field_X there is even an example of table format using a tracker field polom coaboa|afk, sounds like the $ is being url encoded a place where it shouldn't that i know.. but it's the entire line.. like {column sort="modified_date" label="Text" field="tracker_field_X"} {column label="something" field=tracker_field_42} ok got that.. you need to add sort if you want the column sortable you can also have more advanced formatting by defining new fields using {FORMAT} let's just start by showing some results.. i think this is advanced enought at this time :P got "No results for query" but at least no error so must be on right track must be something about the filtering rules if you skip the output part, it will display a simple list of results my filter rules looks like this: {filter type=trackeritem} {filter content=26 field=tracker_id} i checked that the tracker ID is correct how do I get an instance of ointegrate? do I have to use tikilib factory method? SJ looks strange, try skipping the type part ok i'll swip that swipe that worked! I'll try to see if there is anything broken about the type filter wuhu! output works to! too* but still some things here.. sort mode {sort mode="modification_date"} modification_date_asc yeah exactly what i was about to ask :) types seems OK in trunk one more thing we are running trunk fyi how do i set the output of the date in another format? right now it is showing: 20110928144312 check the doc, there is a sample for that hmm.. one field is not showing text area you might need to run that one through {FORMAT} some internal detail about the data of those not being stored in the index, so the list needs to know to fetch it ok that worked for the date what fwuuuuu! it works ;) omg, the img plugin has grown out of control lphuberdeau, what makes you say that? did you see how long it is? looked at the parameter list? lphuberdeau, do you know how to use the autosavevalues? we are trying to auto categorize the tracker item no I don't i want the tracker to choose all possible categories that are shown without showing it for the user but I did fix the category field yesterday to apply the default selection lphuberdeau, what defines the default selection? category jail is the default selection So it should just categorize tracker items in the correct category if there's a jail applied? or should we setup a specific parameter for the tracker plugin? it should just happen how can I fill a trackers field with eg. a dropdown of all available structures? (trunk) coaboa, you would need a specific field type for that ok thx Q: I would like to add a tiki_encode and tiki_decode for javascript. Where/how is the best place/way to do this? lphuberdeau: where to look at to add such a field type? not much documentation, but plenty of samples in lib/core/Tracker/Field/ thx something like page selector or user selector are probably the closest although they do quite a bit more fine, i'll dig around, thx for js encoding functions: Is $headerlib->add_js in tiki-setup.php the place to put them? hi arildb. I guess tiki-js.js is the JavaScript equivalent to TikiLib for PHP thanks chealer lphuberdeau, which files do I need to redownload to get the auto-categorization? is it just the tracker field php file? arildb: note that there is no need to put "tiki" in the function's name, and it would be good to document what type of coding the functions deal with, and perhaps hint to that type in the function's name. hi arildb - both tiki-js.js and tiki-jquery.js are included in all pages, tiki-js.js was there from before jquery arrived, now they're fairly mixed up (could do with refactoring of course!) hi chealer hi jonnyb i've always put new stuff in tiki-jquery.js and have been meaning to modernise and clean tiki-js.js (there's lots of cruft in there) jonnyb: So, I should use tiki-jquery.js, I guess i would, but it's not really anything to do with jquery is this only for wysiwyg? i guess not... polom jonnyb: I am not sure if it's only for wysiwyg. It's where en/decodeURIComponent and en/decodeURI are used indeed - could be anywhere lphuberdeau, nevermind I found out so, maybe good names would be en/decodeLink (for en/decodeURI wrapper) and en/decodeContent for (en/decodeURIComponent) arildb: if you comment it as being new for tiki 8 it could go in tiki-js.js (and we'll clean it out later! :) ) arildb: if I remember correctly, if they're wrappers to workaround encoding bugs with the WYSIWYG editor, I hope they will only be used there. arildb: {en,de}code*Content* or *Component*? chealer: yes, they are wrappers to fix bugs. jonnyb: ok, so I will put it in tiki-js.js and make comments chealer: en/decodeContent for the wrapper I cannot use the same name as the javascript function they're to replace escape and unescape which are deprecated, right? (but the replacements don't work properly) chealer: You have had some questions about what is being encoded. POST operations are being done and they encode a lot more than just the URI arildb: I find "content" vague. if they're fallback wrappers for {en,de}codeURI[Component](), they could be named tiki_{en,de}codeURI[Component]() then so the function is clear (the "tiki_" prefix to avoid confusion and conflict) jonnyb: I will first replace the existing en/decodeURIComponent calls. The unescape calls are "fallback" currently. Hopefully this fallback won't be used. sounds good ok, I will use the javascript function names with the tiki_ prefix arildb: hum, I see tiki_prefix for this sounds sensible arildb: well, if they're not just used for the purpose of the stock JavaScript functions, I guess you're in a better position than me to choose their name chealer: They will only be wrappers for the javascript functions. tiki_ as prefix is good, I believe tikiwiki: 03jonnybradley * r37746 10/trunk/tiki-admingroups.php: [REF] rather long line jonnyb: I found this library: http://phpjs.org. Since Tiki is talking javascript to PHP, maybe using it could avoid coding incompatibilities http://phpjs.org/functions/urldecode:572 is interesting, but would still break for us, no? seems like an awful lot of code to include "just in case" but some interesting solutions in there New Forum Posts: hotwords // hover - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=42370 jonnyb: I am not using the phpjs library. Still interesting to see how they are doing the conversions indeed - a good load of examples and looks well written, thanks I noticed that some PHP settings were incorrect in my IDE/debugger php.ini file (It creates it's own). default_charset was not set (to utf-8) and mbstring.func_overload was not set (to 0). Tiki does not sem to check these pre-requisites. Maybe it's a good idea if it did arildb: the generated HTML is supposed to specify the charset ok jonnyb: have u tested my fix in props ? no sorry - the plugin js one (hi luciash) yep jonnyb: read my answer if u didn't yet when you have a minute; i re-tested and it works fine (no change in functionality and reduces load) I need to find a place to put an input and a button move files in wiki_up to this fgal... Where is the best palce to put this button? jonnyb: it is remarkable on smaller sites, not the huge ones ;) sylvieg: Admin > Wiki luciash: it would be nice to work out why it's not caching jonnyb: that is another thing... because it is explicitly asked not to yay sylvieg - i've been meaning to do one of them for years! :) jonnyb: no idea why ut it is hardcoded on the beginning of the tiki-jsplugin.php to expire cache s/ut/but/ maybe the idea was it changed each page, but i think it sends all the plugin info out each time regardless jonnyb: anyway, if you make it cached instead, no need to load it for non-editable stuff pages (reduces one http request) i mean my fix cannot hurt +1 if it would be possible to make it cache what if anon can add comments? isn't that file used in the wiki help? anon can add comments, but the plugin helper icons appeared only when the page was editable before as well, so no function change, really wiki help through the toolbar help icon appears fine no, i mean the add plugins stuff in plugins help, not the in-page icons it si just about the plugin helper icons also the help they are separate it works i modified only in tikilib the other case is in wikilib didn't touch that one ok, that was my only worry (odd, i thought they shared the same js data) yes, hey are just two same calls from two different places (calling tiki-jsplugin.php) s/hey/they/ tikiwiki: 03sampaioprimo * r37749 10/trunk/lib/setup/wiki.php: adding back missing linex break tikiwiki: 03sampaioprimo * r37750 10/trunk/lang/pt-br/language.php: pt-br translations is there a pref that says which fgal is open when clicking in upload image in textarea found it home_file_gallery sylvieg: yes, by default, home file gallery is preselected tikiwiki: 03lphuberdeau * r37751 10/trunk/lib/ (tikilib.php wiki-plugins/wikiplugin_list.php): [MOD] Attempt auto-discovery of required fields when using the smarty template renderer in the list plugin (mostly for table) tikiwiki: 03jonnybradley * r37752 10/trunk/lib/tikiaccesslib.php: [REF] userslib: Missing globals tikiwiki: 03jonnybradley * r37753 10/trunk/lib/attributes/relationlib.php: [MOD] relations: Add get_relation_id() to return the relationId of a specific relation (deployment to come) tikiwiki: 03jonnybradley * r37754 10/trunk/ (lib/userslib.php tiki-admingroups.php): tikiwiki: [ENH] users: Add the ability to ban users from specific groups. tikiwiki: Currently available only on tiki-admingroups, so only for those with tiki_p_admin so far. tikiwiki: Admins get the option to "unban" users they want to add to a group if necessary, non-admins get a simple error message. tikiwiki: Error message and other wording probably should be improved. tikiwiki: 03jonnybradley * r37755 10/trunk/templates/tiki-admingroups.tpl: tikiwiki: [FIX] admingroups: Use self_link for "key" icon for group management perms as tikiwiki: groups with an & in the name were failing. Groups with a + in still don't work tikiwiki: properly on objectpermissions but i can't find out where or why... tikiwiki: 03sylvieg * r37756 10/trunk/ (3 files in 3 dirs): [ENH]wiki_up: button to move image from wiki_up to the ho;e fgal: PS: use at your own risk lphuberdeau: can I use a same permanent_name for a field in 2 trakers - ( I have a tracker for 2010 and a tracker for 2012 - but exactly the same fields - would like to use the same pretty wiki) polom evybodyer everybody my strangest misstype of the week smarty / module / navigation: I have a nice idea of structuring my new project, once content gets more wikipages but I need some smarty code for that in fact I need some hints i want a module option/section-item to change background color when a certain category is active how could I realise that? fabricius: hi, in theory: you check the category in smarty and if it matches you add custom div with custom class around the #main using the Layout Shadows feature... then in your CSS you add that class e.g. .cat1 #moduleblahblah .box-data {background-color: #ccc} fabricius: or you could put that all in custom HTML HEAD in directly fabricius: don't ask me how you check for category in smarty ;) sylvieg, yes luciash: thanks I think,it will become trickyand I will need help of several people of the community but in the end it might become another point to extend Tikis structuring capabilities I am gonna writing a "how to structure my Tiki site" page I have to go and get some milk - off to the shop nearby - brb lphuberdeau: THX :-) nICE soory caps tikiwiki: 03nkoth * r37757 10/branches/7.x/lang/fr/language.php: [FIX] bad translation with tr causing smarty parse error (not in trunk) tikiwiki: 03nkoth * r37758 10/branches/proposals/6.x/lang/fr/language.php: [bp/r37757][FIX] bad translation with tr causing smarty parse error (not in trunk) re back sylvieg: do you know, how to check categories with smarty? tikiwiki: 03chealer * r37759 10/trunk/lib/smarty_tiki/function.menu.php: [REF] Zend coding standards fabricius: enable Debug and see what smarty vars are available fabricius: maybe it is $categoryId http://doc.tiki.org/Debugger+Console luciash: thx tikiwiki: 03nkoth * r37760 10/trunk/tiki-switch_lang.php: [FIX] Language switching not working when pagename contains characters that need escaping in regex tikiwiki: 03nkoth * r37761 10/branches/7.x/tiki-switch_lang.php: [bp/r37760][FIX] Language switching not working when pagename contains characters that need escaping in regex tikiwiki: 03nkoth * r37762 10/branches/proposals/6.x/tiki-switch_lang.php: [bp/r37760][FIX] Language switching not working when pagename contains characters that need escaping in regex tikiwiki: 03arildb * r37763 10/trunk/ (8 files in 7 dirs): tikiwiki: [FIX] Added wrappers for en/decodeURI and en/decodeURIComponent. Wrappers are now used instead of the direct javascript calls. tikiwiki: Fixed coding issues in tiki-auto_save.php tikiwiki: - Was not encoding reply. Caused failured in javascript. tikiwiki: - No longer decodes entire referer, only the page name. tikiwiki: - Decoding uses rawurldencode, which should match the encoding tikiwiki: toWikiFormat now again uses decodeURIComponent (see: previous comment about breaking wiki syntax). Hopefully OK now. tikiwiki: 03nkoth * r37764 10/trunk/lib/wiki-plugins/wikiplugin_list.php: [FIX] typo rendering contributors filter not working Hi chealer. So, is the big release still on for tomorrow? What's being released btw? 6.5, 7.2 and 8.0 branched? hi arildb. 7.2. it shouldn't be too big :-) we may have a 6.5 but there is more reviewing work (quality team) needed chealer, ok. What about the 8 branch? arildb: as for 8.0, we still need to meet to finalize the schedule chealer, right arildb: so it's just 7.2 for now, and it should be tomorrow if changi|ffa is available chealer, my initial tests after the latest encoding update look really good. I believe the big problem was that the reply from PHP was not encoded. (he's the only one on the packaging team) arildb: great. that sort of issue is about what I expected (although my picture is very vague). really happy if you managed to solve that (I let your commit aside for review later) it's unfortunate we don't have more WYSIWYG experts (Jonny is the main guy and busy these days) arildb: BTW, I was planning to go test 7.x on Windows before 7.2, but I don't know if I'll manage to do that in time now arildb: I'm planning to upload 7.2 to the Web Application Gallery (Windows/IIS) chealer, I think wysiwyg is starting to look good. The formatting is better, now international characters should work. Unless some side-effects come up the status may be quite good chealer, I don't think I will have time to help you out on that one. I am heading on a business trip on friday, and I have lots of things to do before then arildb: all right arildb: it's interesting to hear WYSIWYG is looking so good. did you look at plugins? chealer, no my tests have been very limited so far, but the things that previously had problem now all seem to work