New Forum Posts: Google map and KML - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=42486
polom
polom
hi there, how can I filter trackerlist ta
by field that contains text or not
jp_, you can filter on fields in trackerlist.
or maybe use negation for filterfield
Merbster, yes, that is what I normally do, but for now I have to filter trackerlist by field that is "" or not
in case that is "" simple filtervalue="" do the thing, but how to negate such thing?
jp_, I guess you have to experiment
jp_, sometimesI look at the phpå code to figure out what options are available for ap lugin, the documentation is not always entirely up to date.
documentation usually isn't up to date ;) ok, I will go by php code, thanks
polom
polom Bernard1
:(
sorry (r2l smileys) :D
hehehe
tikiwiki: 03yonixxx * r38313 10/branches/proposals/6.x/tiki-newsletter_archives.php: [FIX]Newsletter archives permission
tikiwiki: 03yonixxx * r38314 10/branches/proposals/6.x/templates/sent_newsletters.tpl: [FIX]Newsletter archives permission and style tag
tikiwiki: 03yonixxx * r38315 10/branches/proposals/6.x/templates/tiki-newsletter_archives.tpl: [FIX]Newsletter archives permission and style tag
tikiwiki: 03yonixxx * r38316 10/branches/8.x/tiki-newsletter_archives.php: [FIX]Newsletter archives permission
tikiwiki: 03yonixxx * r38317 10/branches/8.x/templates/sent_newsletters.tpl: [FIX]Newsletter archives permission and style tag and minor
tikiwiki: 03yonixxx * r38318 10/branches/8.x/templates/tiki-newsletter_archives.tpl: [FIX]Newsletter archives permission and style tag and minor
I am using tikilib and categorieslib to write some glueware between wiki and our ERP system. But in order to use tiki's libs I need a session with a valid login. How would I login programmatically?
polom ricks99 and marclaporte
tikiwiki: 03sylvieg * r38319 10/trunk/lib/ (articles/artlib.php wiki-plugins/wikiplugin_articles.php): {ENF]ARTICLES: param articleId: to choose the article to display and notArticleId not to display article
polom y'all
tikiwiki: 03durkin10 * r38320 10/branches/8.x/ (4 files in 4 dirs): Correct implementation of favicons.
tikiwiki: 03sept_7 * r38321 10/trunk/ (lib/init/smarty.php tiki-edit_templates.php): [FIX] Try to fix Smarty {include} with the transition to Smarty 3
polom devs
tikiwiki: 03sept_7 * r38322 10/trunk/styles/layout/layout.css: [FIX] Align edit section icons...
New Forum Posts: Ideas for Modules - make them tabbable - http://tiki.org/tiki-view_forum_thread.php?forumId=14&comments_parentId=42487
tikiwiki: 03lphuberdeau * r38323 10/branches/8.x/templates/tiki-list_trackers.tpl: [ENH] Layout improvement to avoid tiny columns
tikiwiki: 03lphuberdeau * r38324 10/branches/8.x/lib/filegals/scormlib.php: [MOD] Store the link to the file as part of the SCORM metadata tracker item
is tikilib->create_page() a performance hog?
Merbster: It does a lot of work
but the bigger part of it these days is the fact that it updates the index too
lphuberdeau, Ok. I was speculating it was something like that. Thanks for the verification. :)
If you need to call it multiple times, you'll get a performance bump by wrapping the series of calls around a transaction
which will make sure the index is updated only once
lphuberdeau, how can I do that?
wrap it in a transaction that is.
$transaction = $tikilib->begin();
// ...
$transaction->commit()
And wrap it around tikilib->create_page ?
it's not an actual db transaction yet ;)
well, multiple calls to create_page()
groups the index writes
ok.
nice to know :)
but really, sites with large write volumes are better off disabling incremental indexing and doing a full re-index periodically
you get stale index issues, but that's manageable in most cases
lphuberdeau, I have been writing glueware last week that uses tikilib and categories lib to create pages and categories automatically based on data from our ERP system.
lphuberdeau, So I don't mind if it takes a minute or two.
yup, that could benefit from a transaction
lphuberdeau, will that "transaction" trick work with all calls to tikilib?
well, it's actually part of TikiDb
polom
lphuberdeau, You are implying it will work everywhere?
(that implements TikiDB)
but yeah, works with everything that involves the incremental indexing, and thanks to arildb, will also handle transactions when we make the switch to InnoDB official
TikiDb::get()->begin() will work as well ;)
it's not deployed much as it was pretty much added 2 weeks ago
but it's currently used for a few batch operations
New Forum Posts: A problem with user and group watches! - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=42488
lphuberdeau, what happens if several queries are executed within the aforementioned codeblock?
several _different_ queries
in the future, it will create a database transaction, but for the moment, it's just a trick to prevent the index commit
lphuberdeau, nice.
lphuberdeau and Merbster: Please not that if you intent to prepare for transactions, always contain the transaction scope within a try/catch block to make sure the transaction is completed as expected
arildb, my roadmap is to move most actions to the MVC broker and make sure transactions are handled properly at that level
lphuberdeau: ok
for the other places, it should be easy enough to grep the begin/commit usage and fix it later
actually, they would be prime targets to move to MVC
tikiwiki: 03sept_7 * r38325 10/branches/8.x/ (lib/init/smarty.php tiki-edit_templates.php): [FIX/bp 38321] Try to fix Smarty {include} with the transition to Smarty 3
arildb, it is noted. Thanks :)
I have a tiki 8 SVN which doesn't implement this (I only upgrade when I have a need and so far stuff is working here).
marclaporte: polom
marclaporte: Is there an existing feature in Tiki that allows you to moderate wiki?
yes
marclaporte: url?
http://doc.tiki.org/Flagged+Revisions
cool!
marclaporte: Working on textback-link protocol
polom
Bernard1: are you here?
chealer: polom
chealer: Used syntaxHighlighter recently, any more complaints?
(other than broken mode dependencies)
(Which I think will have to wait till v9)
tikiwiki: 03sampaioprimo * r38326 10/branches/8.x/ (4 files in 3 dirs): `cat svn-commit.2.tmp`
RobertPlummer: I have one! When using lists, it would be nice that the content of the list items not be green and use the formatting too
hi RobertPlummer :-)
# Some __info__!
lphuberdeau: Codemirror doesn't support nesting states.
really?
lphuberdeau: But changing the list color is no big deal.
RobertPlummer: I do have one, still about the scrollbars, let me see...
lphuberdeau: Yea, real bummer.
could you make it that the green and indent only applies to the # or *, but the rest of the line just be text?
oh, I'm surprised too
hi lphuberdeau
really looked like a state machine you had full control over when I looked at the code
lphuberdeau: That'd be doable.
good idea
lphuberdeau: I'm sure it is possible, but I've not seen it in practice.
to me, only the marker is the list syntax, the rest really is text, and right now it kind of looks like a comment
lphuberdeau: good idea
lphuberdeau: I will take a look at it and change as soon as I get a chance.
lphuberdeau: But as for functionality, syntaxHighlighter = good to go?
lphuberdeau: you were right about the TRACKERSTAT issue, it was caused by my categlib refactoring. I fixed in r38310. thanks for investigating
RobertPlummer: I have regressions in http://ido.ath.cx:8080/tiki/8.x/Services again. for a while we got that page to work perfectly the last time, but after you left I found these issues
chealer, what is the regression?
RobertPlummer: the clear problem is the third last CODE plugin call, the one with 2 scrollbars in section PLUGINS: Code
that one clearly shouldn't have a horizontal scrollbar
chealer: When looking at source, I see "{CODE}{CODE}"
chealer: np, I can usually fix the issues caused by refactoring quite fast, because it's usually just a mis-spelled variable, but that code seemed a bit harder than I could spend time on
chealer: Looks like a nested code plugin call.
RobertPlummer: hum, oops. OK, will cleanup that page
chealer: THat is probably the problem.
(I didn't fix it)
lphuberdeau: yes, just investigating helped and I was able to spot the issue quickly after identifying it was my commit
I figured you'd find it faster as you made it a 100 times
RobertPlummer: how does wordwrap work in codemirror?
nkoth|nelson: It doesn't
nkoth|nelson: codemirror doesn't support soft breaks.
in v2
ok, thanks. will wait for v3...
nkoth|nelson: At first it was making the page super wide, so I just added overflow: auto, and made it scrollable, which is more like a code editor.
nkoth|nelson: Oh come on, turn it on!
lol, yes I had that superwide problem a week ago, and I see it is fixed nw
nkoth|nelson: Yea, in most cases, it makes things much easier to edit.
nkoth|nelson: I think the lack of a soft break is actually a nice feature. Although it would be nice to turn it on or off.
nkoth|nelson: I always get mixed up with real breaks/soft breaks when editing in a textarea.
I can't selectively keep it on for certain pages right? (because it works ok, in fact better, oon some pages and then I hit one page where it is just totally irritating (e.g. due to lack of soft wrap)
nkoth|nelson: That is correct, it is an on/off thing.
also, say I change the highlighter, is that a global thing?
lphuberdeau: Did you see the new jQuery event I added in 8?
RobertPlummer: oh you're right, it's actually a CODE plugin call inside a CODE plugin call. but the inner one is not parsed
chealer: Which would be correct behavior.
RobertPlummer, nope, what is it?
lphuberdeau: It is partially integrated, it uses a timeout and calls is(':visible') on the item untill it is visible.
lphuberdeau: I looked tons of places, couldn't find the answer, I needed it to list things correctly with codemirror.
lphuberdeau: It is an awesome event, one that should be in jQuery core I feel.
RobertPlummer: note that non-parsed plugin calls inside a CODE plugin are shown fine in other places (the QUOTE call just above and the FANCYTABLE at the end)
so it does stuff when the container becomes visible?
$(obj).visible(function() {});
tikiwiki: 03jonnybradley * r38327 10/branches/8.x/lib/ (2 files in 2 dirs): [FIX] carousel plugin: Add a small timeout to help loading failures on first reload (also add .carousel CSS class to help styling)
lphuberdeau: Right
yeah, there are a few places where that can be handy
chealer: I'm not sure I understand your problem.
lphuberdeau: It isn't fully integrated, ie there is no trigger("visible"), and it stacks calls with no management.
lphuberdeau: So it can use some improvement, but it is a very nice feature to have.
well, there is a hook that can be improved later, so good enough
try to make it better for 9 ;)
lphuberdeau: My view as well.
sylvieg, quick question, any known source of WSOD in 6.4 trackers, likely involving image fields?
New Forum Posts: No search bar at Milkyway theme - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=42491
RobertPlummer: I checked more. The wrap 1 breaks the display. I think the correct behavior would be to display the entire code (no scrollbars)
RobertPlummer: there is another case which shouldn't have scrollbars in that page, the one in Autonumbering in headings
New Forum Posts: AD setup on new installation of TW7 - http://tiki.org/tiki-view_forum_thread.php?forumId=17&comments_parentId=42493
polom all
tikiwiki: 03jonnybradley * r38328 10/branches/8.x/lib/init/smarty.php: [FIX] smarty 3: Make sure $style_base is set and don't use tikidomain if empty
hi jonnyb
hi chealer - looks like another blocker unblocked! :)
pretty much :-)
have a quick profiles question... currently when i try to export a site to YAML, is PREFERENCES the only object type currently available?
hi ricks99 - yes, i'm afraid so
been meaning to fix the tracker one (sylvieg started it but it got broken in the tracker revamp)
OK. For items that are not automatically exported, is it enough to simply add PREFERNCE = VALUE to the YAML?
for example, the blog handler http://profiles.tiki.org/Blog+Handler does not list all the possible fields/prefs for blogs and blog posts.
can I simply add them? is the YAML name identical to the Tiki pref?
for example, for the blog post object, i want to include an excerpt. Is it as simple as excerpt = FOO ?
ricks99: no, i don't think so - check the handler syntax on profiles.t.o - each object has it's own names for things
right. but for blogs, for example, i don't see the "excerpt" field in the handler example
tikiwiki: 03jonnybradley * r38330 10/trunk/ (19 files in 11 dirs): [MRG] Automatic merge, branches/8.x 38294 to 38328
does that mean it is unsupported?
are there some things that you cannot pre-load with a profile?
usually you can see the pattern of how things are named for profiles, and usually the code will have a go at it, so worth trying?
yes. thats what i thought.
tx jonnyb
last profiles question from rick...
i'm checking the code... 1 mo
anyone know if profiles (or more specficially, the YAML) can be copyrighted?
is YAML treated the same as any other codebase
i'd have thought so - i'd guess a CC one would be appropriate (but IANAL ;) )
thats what i was thinking. tx again
it's not really functional code, more like a recipe i'd say
looking at Tiki_Profile_InstallHandler_Blog it seems excerpt isn't handled (nothing after post_heading)
ok. so not all options are possible via YAML. only a specfic sub-set
hm..
tx for the info
just the ones that existed when it was written i'd guess - not hard to add missing ones (i'll try if i get some spare time ;) )
im sure you've got LOTS of spare time. Tx
RobertPlummer: https://trunkdev.tiki.org/tiki-editpage.php?page=Online%20Publishing%20House the horizontal scroll is nicer indeed
https://trunkdev.tiki.org/tiki-editpage.php?page=Online%20Publishing%20House (try going in full page edit mode)
RobertPlummer: codemirror: is it intentional that ! and !! are the same size?
tikiwiki: 03sampaioprimo * r38331 10/branches/8.x/templates/canonical.tpl: [FIX] wrong if condition to generate canonial url was always evaluating to true
just need to sanity check some behaviour in tracker csv import - either it should replace an item in the same tracker if itemId is in the csv data and it matches an existing item, or it should make a new one right? It seems there's a 3rd option which i don't understand in $trklib->import_csv()
tikiwiki: 03sampaioprimo * r38332 10/branches/7.x/ (. templates/canonical.tpl): [bp/r38331][FIX] wrong if condition to generate canonial url was always evaluating to true
tikiwiki: 03sampaioprimo * r38333 10/trunk/ (4 files in 3 dirs): [MRG] Automatic merge, branches/8.x 38328 to 38329
tikiwiki: 03chealer * r38334 10/branches/8.x/templates/tiki-edit_templates.tpl:
tikiwiki: [FIX] Edit templates: restore save button which doesn't save a style-specific template and style-specific templates deletion link (style_local is not a preference, r9574 regression)
tikiwiki: [FIX] HTML special characters encoding
thanks rodrigoprimo
marclaporte: Probably not.
marclaporte: Let me take a look
marclaporte: Yes it is.
marclaporte: I can't really change the size of the text in the editor.
marclaporte: I'm just showing that it is header-fyd.
marclaporte: Would it also be an acceptable fix to only highlight the "!" at the beginning of the block of script?
marclaporte: lp proposed a fix for order/unordered lists where only the first char is highlighted.
marclaporte: If I change this behaivoir, it will affect all block-level syntaxes, including header.
tikiwiki: 03chealer * r38335 10/branches/8.x/tiki-edit_templates.php: [FIX] Edit templates: also create subdirectories of style-specific templates directories if they don't exist
tikiwiki: 03chealer * r38336 10/branches/8.x/lib/prefs/feature.php: mark feature_edit_templates as experimental
tikiwiki: 03chealer * r38337 10/trunk/templates/tiki-edit_templates.tpl: [FIX] Smarty notice "Undefined variable: template"
tikiwiki: 03jonnybradley * r38338 10/branches/8.x/lib/trackers/trackerlib.php:
tikiwiki: [FIX] tracker import: Set-up data in auto_inc tracker fields for new items and
tikiwiki: remove strange "third option" for importing new items but keeping a nonexistent
tikiwiki: itemId which would lead to database problems (as it's an auto_increment index).
tikiwiki: 03chealer * r38339 10/branches/8.x/lib/init/smarty.php: [FIX] MultiTiki: when including Smarty templates, look for them in the domain's default templates directory (r36090 regression)
tikiwiki: 03chealer * r38340 10/trunk/lib/init/smarty.php: [REF] remove unused _smarty_include() (useless from r36090)
lphuberdeau: You around?
yes
lphuberdeau: I need some help in php, not sure how to accomplish.
lphuberdeau: For universal reports, I'm creating a definition parsing capability.
lphuberdeau: The form object is where you build it, and then send it back to the server to create your repor.t
RobertPlummer: no need to change anything for ! and !!, I was just curious
Names are like this rootReportObject_childAttribute_childAttribute.
marclaporte: Thanks Marc
lphuberdeau: I need a way to turn the naming convention used in forms to turn into relational objects.
in this case:
Tracker->value = 1
Tracker->Field->23
in javascript result[tracker]=1;result[tracker_field] = 23;
I want to go from obj_obj as mear text, to full object relation...
obj->obj
tikiwiki: 03jonnybradley * r38341 10/trunk/ (7 files in 5 dirs): [MRG] Automatic merge, branches/8.x 38329 to 38339
lphuberdeau: So I'm sorry so confusing.
lphuberdeau: I don't know the terminology of what I'm trying to do, which is part of the problem.
classes are usually UpperCase_Underscore_ForDirectory
I don't really get what you're asking
lphuberdeau: Case is not an issue, it might even be upper case. I just need a clean way to go from form to class.
you mean HTTP form?
lphuberdeau:From a definition we create a generic json string, the string is used in generation of the form used to create the universal report.
lphuberdeau: I need a way to read what was generated.
lphuberdeau: What the user sets everything to.
lphuberdeau: so I was thinking, because form's use the input's name, I'd just use that.
I still don't get what you're trying to do
lphuberdeau: So it is a shortcut method of hierarchy from the definition.
any code I can look at as a reference?
tracker is sort of the root item, and it can have attributes.
definition of what?
universal reports
it is a made up thing.
Take a look in trunk at lib/core/UniversalReports/
Builder.js and Builder.php do most of the work.
Builder.js takes a definition that you create and generates a form from it.
...updating...
lphuberdeau: So for instance a base item to report from is Tracker.
lphuberdeau: Trackers can be joined, so there can be multi trackers, multi of many values, and some values are depandant on another value.
For instance, tracker fields, you wouldn't want to list all tracker fields in you entire db, only those assiciated to a tracker.
to you have hierarchy of dependency "tracker_field" as an example.
to=>so
tracker is the base item, with field as value found after the dependancy was met.
looking at the code
I just want a simple way or turning tracker_field into an array in php tracker array or object in php.
ok
I see a bunch of empty functions
take a look at the definition for tracker.
a sign you're trying to work out too many details at once
fn = definition
lphuberdeau: I have most of the functionality there already, need to commit it.
lphuberdeau: I just want to turn "tracker_field=0" into an array of array("tracker"=>array("field"=0));
ah
or rather array("tracker_field"=0); to this: array("tracker"=>array("field"=0));
there is something for that somewhere
lol
lol lol lol
lphuberdeau: I figured that much.
tikiwiki: 03jonnybradley * r38342 10/branches/8.x/lib/init/smarty.php: [FIX] smarty: TikiLib doesn't exist in the installer
it does the filter~content=stugg => filter['content'] = stuff handling for search
lphuberdeau: Where should I look?
I don't remember just now, searching
TikiFilter_PrepareInput
takes the separator as a constructor argument
tiki-setup_base.php line 494 for usage, also some unit tests I believe
tikiwiki: 03jonnybradley * r38343 10/trunk/ (. lib/init/smarty.php): [MRG] Automatic merge, branches/8.x 38339 to 38342
jonnyb: regarding Carousel again, there is still a small problem with it on http://themes.tiki.org/Themes - there are 2 404 errors about the problematic images we discussed not long ago
jonnyb: that page uses $jq('#carousel').infiniteCarousel().show();
yes, needs to use $('#carousel').tiki('carousel') instead (been telling Gary for ages)
but now it should use the carousel wiki plugin really
jonnyb: you read my mind... http://themes.tiki.org/Infinite_carousel advises to use something similar to what the homepage uses.
i added a comment there a while ago
(or somewhere)
jonnyb: oh, didn't realize they were in file galleries cool.
jonnyb: when you say you've been telling Gary for ages, does that need to be changed in many places? is it more than changing the homepage and perhaps the documentation page?
possibly others, but those two certainly
jonnyb: I see your comment, thanks
lphuberdeau: it is like a well orchestrated ballet.
lphuberdeau: Committing in a min.
RobertPlummer: you mean it's boring and old-fashioned?
lphuberdeau: no it works great.
lphuberdeau: Is it old fashoined? Is there a better way you think?
no, it's fine
lphuberdeau: I added a method to TikiFilter_PrepareInput that allows you to use it as static.
why?
Like this: TikiFilter_PrepareInput::delimiter('_')->prepair($array);
jonnyb: I suppose the plugin wouldn't allow to have captions link to the themes?
should do - not tested
lphuberdeau: It seemed like a lot of code just to use such a simple method.
lphuberdeau: I can remove it if you like.
2 lines?
:)
1 line as apposed to 2 is half as much code.
50% less code here, 50% less there, pretty soon, you see impact everywhere.
lphuberdeau: My question to you is, "Why not?"
just not the kind of component that's used very frequently
jonnyb: the plugin uses the file's name and its description, but doesn't parse anything. I suppose the description could be parsed
indeed - there are quite a few css improvements needed too (after 8.0 i was thinking)
tikiwiki: 03robertplummer * r38344 10/trunk/ (5 files in 3 dirs):
tikiwiki: [NEW] Added parser ability and some testing to universal reports builder, made use of PrepareInput to do so.
tikiwiki: [NEW] Added new static method to TikiFilter_PrepareInput::delimiter() that returns itself for usage.
hum, file descriptions are currently treated by nl2br
jonnyb: I tried to switch to the plugin anyway but the size is reduced. do you see where it's coming from?
the div sets a width and a height
it's in progress now, there are two carousels for comparison, the top one uses the wikiplugin
chealer: i thought the plugin wasn't setting the div size - maybe it's in css somewhere?
jonnyb: Firebug shows it as inline CSS on the wpcarousel div, but it's not in the HTML source
so something starting from the tiki handler must set it
jonnyb: but the tiki handler is not called with these dimensions in its parameters
no, it's the js that's doing that - if you look at the page source it's not there
jonnyb: right, that's what I tried to say (it's not in the HTML source)
maybe there's a little one in that gallery - seem to be more thumbnails on the plugin one
jonnyb: and the tiki handler itself does not touch dimensions...
nope
still work in progress i guess...
jonnyb: ooh... I see, indeed
(since tiki 4! :) )
the newsletters image is 120x73
maybe it picks the smallest one as the default
yeah, seems to (sorry, that didn't come to me as a possibility)
can we move files between galleries?
yup - worked for me last time i tried
oh, yes, there's an action for that at the bottom of file listings
thanks jonnyb
(moved to Others)
Hi all, hi jonnyb i rechecked the bug of the module parameters while within another module we discuss a few days ago. It is still there (http://www.shocksite.com/8x.html/), didn't you say it was corrected in 8 ?
hi Bernard1 - yes, i thought so
ooh, we lose links, but we get descriptions for free :-)
hi Bernard1. did you get Jonny's mail from this morning about your commit 38315?
Bernard1, if I can make a recommendation, use a different font
oh, I just notice that the theme screenshot thumbnails in the carousel are just a crop of the upper left corner of the full size screenshots :-/
and no tooltips when hovering over the thumbnails :-(
hello. Do we have something like I can download a file if I enter one code that is in a tracker or in the params of a plugin? or I can use a token to give me access to a membership?
...and that's actually an upstream jQuery Infinite Carousel bug; http://www.catchmyfame.com/2009/12/30/huge-updates-to-jquery-infinite-carousel-version-2-released/comment-page-3/#comment-12381
sylvieg, token access is essentially a code, you could have a GET form to input it, or joining a group which has access to a file with a code (that might not be in, but it might be on my roadmap for 9)
chealer: i've just recheck… didn't see the email. Hu, again ?
lphuberdeau: where are the token values stored?
tiki_auth_tokens
Bernard1: see http://sourceforge.net/mailarchive/forum.php?thread_name=078D7389-E5BA-41DC-B0E7-32391C56AD7C%40nospaces.net&forum_name=tikiwiki-cvs
I thought Nelson wrote a membership on token .. but can not find out some doc...
Bernard1: also, do you know how backporting works? fixes for old branches are supposed to be done on newer branches before. so for Tiki 6, you should first commit to 8.x, and then to proposals/6.x.
Bernard1: see https://dev.tiki.org/Quality+Team#How_it_works for more information
lphuberdeau: you don't like the font on shocksite.com ? Usually people like it. I'll be glad you tell me more (not readable ? don't like it, etc)
Bernard1, reminds me of ComicSans, and that's a terrible thing if you want me to trust anything written on that site
chealer: ok got the message now. I understand about
. The template title (