Sadly, it's overcast here in Tokyo-Chiba region of Japan, so we can't see the sun. But it's definitely getting darker as the eclipse progresses. :-) About 15 minutes more until the peak - 75% obscuration in this area. sylvieg: thanks for the help. I reported this as a bug on I submitted that as http://subversion.tigris.org/issues/show_bug.cgi?id=3446 yeah... Hi all. Kinda dumb question, but hard to google, I think: how do I insert a variable in my wiki page that will render to a simple current date string (like, July 21, 2009). Thanks, Pete. Petjal2: I don't think this exists but countdown plugin is close http://doc.tikiwiki.org/PluginCountdown Thanks, Marc. Hmm, do you think maybe a novice like me might be able to tweak that plugin to just display the current date? a bit what you want: http://dev.tikiwiki.org/wish948 Petjal2: yes, I think you can tweak, learn and share you can use Smarty in modules, so http://www.smarty.net/manual/en/language.variables.smarty.php -> {$smarty.now} Thanks, Marc. Checking out ./lib/wiki-plugins/wikiplugin_countdown.php now... tikiwiki: 03chealer * r20290 10/branches/experimental/modules-doc/ (575 files in 110 dirs): [MRG] Automatic merge, trunk 19945 to 20250 New Forum Posts: wiki_forum_id bug? - http://tikiwiki.org/tiki-view_forum_thread.php?forumId=&comments_parentId=34017 Sorry, in my new ./lib/wiki-plugins/wikiplugin_now.php file, I can't figure out how to get the output of {$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'} into the $ret variable... Any hints would be appreciated! Thanks! Petjal2: perhaps you want {assign} chealer: ok, thanks, trying that... sorry, I just don't have any clue as to how to put the smarty code in the plugin file ./lib/wiki-plugins/wikiplugin_now.php. Grepping for "smarty" in the plugin directory, I saw that the vote plugin uses smarty, like so: $smarty->assign('date', $tikilib->now); return $smarty->fetch('wiki-plugins/wikiplugin_vote.tpl'); This gives me a blank page: function wikiplugin_now() { global $smarty, $tikilib, $tikidate; $smarty->assign('ret', $smarty.now); //{assign var=ret value=$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'} //return "$smarty.now"; return $ret; } Am I close? New Forum Posts: Creating Links in Editor for connecting files in filesystem? - http://tikiwiki.org/tiki-view_forum_thread.php?forumId=&comments_parentId=34018 tikiwiki: 03axold * r20291 10/branches/experimental/ws/lib/profilelib/installlib.php: [FIX] Fixed a error typo in installlib tikiwiki: 03mangapower * r20292 10/branches/experimental/ws/ (4 files in 4 dirs): [MOD] Added tiki-user_ws.php: this interface shows the WS that a user have access hi all - i just tried to upgrade vom 3.0 to 3.1, but the result only gives me a blank page. after checking with the INSTALL-file, http://doc.tikiwiki.org/tiki-index.php?page=Upgrade&bl=y and google, i am somewhat stumped. I backupped, then extracted the 3.1 files overwriting the 3.0 installation, and pointed my browser to .../tiki-admin.php - blank page, as with all others. adjusting permissions by running setup.sh did not make s/vom/from. sheesh... New Forum Posts: tiki-list_file_gallery.tpl not registered - http://tikiwiki.org/tiki-view_forum_thread.php?forumId=&comments_parentId=34022 New Forum Posts: tiki-list_file_gallery.tpl not registered - http://tikiwiki.org/tiki-view_forum_thread.php?forumId=&comments_parentId=34023 tikiwiki: 03mangapower * r20293 10/branches/experimental/ws/lib/workspaces/ (wslib.php wstools/scriptCreator.php): [MOD] Added function set_permissions_for_groups_in_object: it sets differents permissions to differents groups for a signle object tikiwiki: 03mangapower * r20294 10/branches/experimental/ws/tiki-admin_include_workspaces.php: [MOD] Modified some stuff in wslib.php Caarrie: Hi - thanks for picking up my problem with the feeds/forum link from the bot - i just found out that this seems to spread further... ok on http://de.tikiwiki.org/tiki-index.php there is an RSS-feed-area on the left hand side - clicking there results in a similar error - I get sent to tw.o, where it says Notice: this variable may not be empty: $_GET["forumId"] I will have to leave in about 10mins, but if there is anything i can do to hunt down what is wrong there, pls let me know, k? i have no idea i just put the feed into the script for the bot could it be that the feed itself then is broken/out of order/mangled...? i think the code for rss for forums was not updated at sometime when the url was changed that's what i take as a first idea (and could be completely wrong here...) ah. jup. is anyone in charge of that code? no idea, you could make a tracker entry ok, will do when i come back, later today. thanks for listening, anyway. :) yw ;) tikiwiki: 03sylvieg * r20295 10/trunk/tiki-tracker_rss.php: [MOD]tracker: new rss param status tikiwiki: 03sylvieg * r20296 10/trunk/lib/commentslib.php: [FIX]db: "" was doing syntax error with the new db lib for adodb polom polom hi chibaguy, hope all is fine at your place with all those floods and landslides :-/ hi luciash, yes, we're ok, thanks. phew, Hofu city is not that far as google maps say the floods and storms are over here... now tropical temperatures again :-p Interesting weather these days. in Boston we only perhaps get 5 days with sun since the beginning of the summer - depressing +1 Hi again, just bumping this. I'm not a developer and have never written a tw plugin, and I'm a little confused on how tw/smarty/php talk to each other, but I need to pass the content of a smarty variable to the $ret variable in my newly created ./lib/wiki-plugins/wikiplugin_now.php. I think it should be almost as simple as something like this: function wikiplugin_now() { global $smarty, $tikilib, $tikidate; $ Caarrie: do you know how the message we receive on IRC from the forum have no forumId? rss feed thx will check ok ok you are right - fix on the way great Petjal2: most easy is use module http://smarty.net/manual/en/api.get.template.vars.php to get a smarty var in the php world tikiwiki: 03mangapower * r20297 10/branches/experimental/ws/ (3 files in 3 dirs): [MOD] Modified tiki-user_ws.php: now it shows a WS objects when selected New Forum Posts: syntax for image galleries - http://tikiwiki.org/tiki-view_forum_thread.php?forumId=&comments_parentId=34025 luciash: thanks. I just need the current date string in the middle of my wiki page "report" to my user. Can a module output a simple string in the middle of a wiki page? back in an hour+, off to a breakfast mtg with a tech mixer buddy tikiwiki: 03sylvieg * r20298 10/trunk/tiki-forums_rss.php: [FIX]forum: fix the forumId not affected in the IRC message - that was creating a logging error on tw.org Petjal2: it's easy like this Petjal2: {$date|tiki_long_datetime} Is is possible to use Tracker plugin (or something like it) to have a tracker form in a wiki page, but fields aren't just in a table, but rather are inline in the rest of the wiki content, and just one "submit" at the bottom? Petjal2: put it in a new module (so it's a kind of highly styled form) chibaguy: yes, pretty tracker ah, ok. chibaguy: currently playing with it on http://crystals.ourwiki.net chibaguy: feel free to test chibaguy: you have to use TRACKER plugin tikiwiki: 03sylvieg * r20299 10/branches/proposed/tiki-forums_rss.php: [bp/r20298][FIX]forum: fix the forumId not affected in the IRC message - that was creating a logging error on tw.org Does this site use Intertiki, or do I register? ^^ needs 2 validation in order to backport in 3 and fix the forum irc problem chibaguy: register sylvieg: thx ok, I registered. validated :) i have some glitches there still (need to figure out showing content only to friends in the trackers outputs) and few others but you can play to see what it can i can give you source/history reading perms thanks, logged in. :-) example of wiki page template used to format tracker form output can be http://crystals.ourwiki.net/Edit+User+Post+Template tikiwiki: 03sylvieg * r20300 10/trunk/tiki-view_forum_thread.php: [MOD]forum: not anymore necessary to give the forumId to see a post (cost one more request chibaguy: basically you need a tracker with Item creator can modify his items ok chibaguy: then you need the user field (type user selector) with option "1," tikiwiki: 03jonnybradley * r20301 10/trunk/tiki-webmail.php: [FIX] Don't refresh if autorefresh == 0 chibaguy: and your fields you want (I am using the little tracker to embed "micro-blogging" to the user profile page as an example) On the link above, I see variables for tracker items, I guess, not a form or data. Is that as expected? yes, this wiki page is used as "template" to format the actual input form it is called using TRACKER plugin from another wiki page where it renders then ah chibaguy: it is this tracker actually → http://crystals.ourwiki.net/tiki-view_tracker.php?trackerId=4 I would like to do a 'print' for tracker item, forum.... what part do I have to give to css and what part in the tpl/php. I thiought to call tiki-print.tpl and to do the rest like navbar... (display:none) in layout.css (I do not wnat to dupliate the code as we do for tiki-print.php for a wiki page) Is there a beetter practice (because I see the navar in the browser - even if I do not see it in preview / print) chibaguy: i am embedding the input form into another tracker template even → http://crystals.ourwiki.net/tiki-index.php?page=User+Profile+Template sylvieg: i don't know if we actually use the print stylesheet but it works like if you have it in html head it gets automatically recognized by browser when going to print, so there's no need for specially formated print page but CSS only hides what is not desired to print when the CSS is written like that ideally +1 to print.css thing luciash, how are the tabs done, on the wiki page? but it is mystyle-print.css ... I would like it in layout.css Looks like the "3d browser" options have been removed from Admin > Wiki in 3.x ...? sylvieg, doesn't it need to be a separate stylesheet to be used just for print? The link to the css needs media="print". chibaguy: i made a special module for it using the {tabs} smarty via Admin > Modules I see. (I was thinking that would be nice to have.) This is how "versions" should work (no page refresh). chibaguy: you can view the source there now ok, thanks. MacLeod: : maybe just moved What's the strategy in doc.tw.o w/r/t different TW releases? Some pages show the current version, some show earlier versions. Is it the team's intent that a page on a given feature should contain info on multiple versions, or separate pages for older versions, or what? I was going to make some edits to http://doc.tikiwiki.org/tiki-index.php?page=Wiki+3D , but I'm not sure how everyone wants to handle outdated instructions. MacLeod: now that I see luciash's tabs-in-wikipage, I think that'd be the best way. ;-) chibaguy: in the User+Profile+Template you can see the tabs module is embedded using {MODULE(module="user_profile_tabs",decorations="n",flip="n",np="1",notitle="y",nobox="y")}{MODULE} chibaguy: the nobox param is new in trunk, but the site is 3.1 chibaguy: i don't follow; think i missed some precedent discussion MacLeod: the VERSIONS plugin is used MacLeod, I think using the versions plugin was agreed on :-) k, i'll go read about the versions plugin :) chibaguy: in the same page source you can see how the wiki template for the tracker input form is called → {TRACKER(trackerId="4" fields="64:65:66" action="Post It !" showmandatory="y" embedded="y" view="user" wiki="Edit User Post Template")} I think the tabs method is better, since no page refresh is needed. (better than versions plugin) chibaguy: i think the VERSIONS plugin can be edited to use tabs if on ok in trunk there's tabs smarty block and even tabset block available chibaguy: explaining the params: fields means what fields you want to show, action means what to show on the submit button, showmandatory doesn't work i think, embedded does dunno what, view is important if you want to display the form for actual user and fill back the data already submitted (not applied here, because the tracker is not limited to only one entry per user), and the wiki param chibaguy: the wiki param says what page to use as "template" chibaguy: there's even param tpl, which i didn't test yet, but should use smarty tpl instead ok. I'm going to have to spend some time on this. ;-) if you need help drop me a line thanks tikiwiki: 03axold * r20302 10/branches/experimental/ws/lib/ (profilelib/installlib.php workspaces/wslib.php): [FIX, MOD, ADD] Fixed bug in wslib, modified in installlib the ws handler, and added some options to it chibaguy: just a note, the simmilar way you display the "results" posts of the tracker using TRACKERLIST plugin ok having some trouble with menus. i want Admins to have all menu options, but Registered users to only have a list of the wiki pages. what's the easiest way to do this? Petjal2: Earlier you used smarty to assign a value to 'ret' and then did return $ret Petjal2: You got nothing because the Smarty variable 'ret' is separate from the PHP variable $ret. Petjal2: If all you need is the date to be returned, look on php.net for the date formatting function and have your plugin return that date. Pegjal2: If you have PHP in your computer, debug your date formatting element before wrapping it in the plugin. nickleus, normally the menus display links according to what groups can access. You can either assign perms to individual menu items, or you can display different menus for Admins and Registered. tikiwiki: 03mangapower * r20303 10/branches/experimental/ws/ (5 files in 3 dirs): [MOD] Modified get_object_perms_for_group: now it's called get_object_perms_for_user and seeks the perms related to a object for a single user sylvieg: thanks for your fix of the rss prob! :) looking forward to it getting used in tw.o... ;) chibaguy: how do i display different menus for Admins and Registered? that sounds easier. there are 8 pages of menu items in the application menu. i want to disable the top horizontal menu for users too. chibaguy: or have i misunderstood your reply? in the application menu there's only a link to "List pages" under "Wiki", but i only want Registered to see a list of pages. i want the list to be the menu. You'll have to use the custom code textarea for the code to display menu according to group. The standard topbar menu is just on/off. chibaguy: ok. thanks, i'll try to put together some code then. doesn't seem to easy though for a beginner... *too* tikiwiki: 03axold * r20304 10/branches/experimental/ws/templates/tiki-admin-include-workspaces.tpl: [MOD] Added an apply button in templates I already asked this morning, but now there's more ppl: i just tried to upgrade from 3.0 to 3.1, but the result only gives me a blank page. after checking with the INSTALL-file, http://doc.tikiwiki.org/tiki-index.php?page=Upgrade&bl=y and google, i am somewhat stumped. I backupped, then extracted the 3.1 files overwriting the 3.0 installation, and pointed my browser to .../tiki-admin.php - blank page, as with all others. adjusti and btw: http://irc.tikiwiki.org/ seems to cut off entries... ;) tobi_h: did you upgrade your database too? New Forum Posts: Tracker Action Field, anyone have any info? - http://tikiwiki.org/tiki-view_forum_thread.php?forumId=&comments_parentId=34031 sylvieg: not yet - I understood a comment from marc earlier today/last night that that was not necessary or part of what happened after i went to /tiki-admin.php. so should i? sylvieg: there, found it: yesterday: [14:25] 2- Just replace old files by new ones and point your browser to tiki-admin.php It will detect that you DB is not up to date and offer a link to the installer to update DB Will this work for nickleus - {if $group eq "Admin"}{menu id=x}{else}{menu id=y{/if} - anyone? tobi_h: do you have the same problem with tiki-install.php? chibaguy: or to use 2 user modules with {menu{ and group perms on module chibaguy: Admins, should work ok tikiwiki: 03sylvieg * r20305 10/trunk/ (5 files in 4 dirs): [MOD]tracker: item print button(works only for style using layout) tikiwiki: 03sylvieg * r20306 10/trunk/templates/tiki-list_faqs.tpl: tabs sylvieg: thanks for the hint: no, there it says that the installer is disabled. would i now remove the lock? or is there a special/better way to upgrade vs. (re-)install? remove the lock and try ti upgrade the database sylvieg: removed the empy file lock, and pointed browser to /tiki-admin.php, hoping this would update db as per marcs comments. nohing happens, blank page... marc said - it will show you if you need to update the database - but not that it will automatically update the db you need to run tiki-install.php to update the db - or you can use a command line i am sorry, i mistook the later for the former. i guess i'd prefer the commandline option - how would i do that? sh doc/devtolls/sqlupgrade.sh sorry doc/devtools SEWilco2: Perfect! Thank you so much! function wikiplugin_now() { global $tikilib, $tikidate; $ret = date("F d, Y"); return $ret; } I'll try to generalize the formatting now! Thanks again! Petjal2: {$date|tiki_long_datetime} in Admin > Modules > User Modules + MODULE plugin and you could save lot of oding time ;) s/oding/coding/ tikiwiki: 03sylvieg * r20307 10/trunk/ (7 files in 2 dirs): [MOD] some print buttons tikiwiki: 03jonnybradley * r20308 10/trunk/lib/jquery_tiki/tiki-jquery.js: tikiwiki: [FIX] Overlib/ClueTip replacementr: tikiwiki: Small fix - setting html() on a jQuery element to something big (over about 2k) makes it blow up I simply cannot find the options for the Morcego 3d browser in the v3.1 Admin panels. It's turned on, but there used to be settings for several options. ohoh all my admin pannel are empty MacLeod: I think I already reported this to ricks99 :-( and the cookie show php error is broken :-( tikiwiki: 03sylvieg * r20309 10/trunk/modules/mod-wiki_last_comments.php: notice i just upgraded from 3.0 to 3.1. i did a reinstall/upgrade using /tiki-install.php, which ran ok once i deleted the lock. the installer then claimed to have upgraded my db to 3.1 (installer, btw., claimms to be 3.0), and then said "upgrade complete". asked me to lock and go o homepage, which i did. now i get a blank page, no content, nada - only one found working is tiki-install.php, which tells me that there is a lock. i am stumped and happy for any and all input - tia! tobi_h: remove the lock db/lock increase memory_limit check the server logs what php error it gives removing lock does not change a thing. it unlocks the installer mem-limit is afaik 32m - should i have more? 32 is minimum, i'd try 64, but also check u have cleared templates_c/ but 3.0 to 3.1 shouldn't cause such problems.. weird... unles you customized something not afaik PHP Fatal error: require_ once() [function.require]: Failed opening require d 'lib/setup/third_party.php' this is from error.log, last entry sorry, missing: (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/tobi/tiki-setup.php on line 20 increased max-memory, restart httpd, result: empty page. what exactly means "check u have cleared templates_c? (btw: thanks for the input!) :) tobi_h: http://profiles.tikiwiki.org/Debug_Mode_Enabled marclaporte: thx, looking into it... this section: http://profiles.tikiwiki.org/Debug_Mode_Enabled#I_am_locked_out_of_Tiki sylvieg: ok, so i'm not crazy or blind.... in tiki_preferences, it says tikirelease=3.0 - is that something i should worry about? tikiwiki: 03mangapower * r20310 10/branches/experimental/ws/ (4 files in 4 dirs): [MOD] Modified some names and checked some stuff ok - having set error logging to 2047 using phpmyadmin, loading the homepage gives me the following entry in the httpd error log: [Wed Jul 22 18:23:11 2009] [error] [client 127.0.0.1] PHP Warning: require_once(lib/setup/third_party.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/html/tobi/tiki-setup.php on line 20 New Forum Posts: TikiFestBarcelona en breve, y durante 10 días! - http://tikiwiki.org/tiki-view_forum_thread.php?forumId=&comments_parentId=34037 New Forum Posts: TikiFestBarcelona en breu i durant 10 dies! - http://tikiwiki.org/tiki-view_forum_thread.php?forumId=&comments_parentId=34036 followed by [Wed Jul 22 18:23:11 2009] [error] [client 127.0.0.1] PHP Fatal error: require_once() [function.require]: Failed opening required 'lib/setup/third_party.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/tobi/tiki-setup.php on line 20 tikiwiki: 03jonnybradley * r20311 10/trunk/installer/schema/ (3 files): [FIX] Use unix line ends (my ones had Mac ones somehow - app responsible has been reprimanded) check if you have the file lib/setup/third_party.php and it is readeadble by the server some server need a write only for the server thanks for the hint, probably should have thought of that myself: the file does not exist. tikiwiki: 03jonnybradley * r20312 10/trunk/ (3 files in 3 dirs): [FIX] Webmail/GroupMail fixes i will now red/load and verify. has anyone collected performance data on the relative speed of 2.x vs 3.x? marclaporte: 2 days on TikiFest WS only ? no, 10 days! luciash: Thanks for the tip. I created a new User Module called IPMDate with just {$date|tiki_long_datetime} in it (wiki parsed checked), and then put ::{MODULE(module=>IPMDate)/}:: in my wiki page and that displayed the date in the format set on page tiki-admin.php?page=general . This particular wiki page "report" is kind of unique, so I think I prefer not to modify my tiki-wide date formats for this one, so instead I'll use ./lib/wiki-plugins/wikiplugin_now.php for now and hopefully generalize that to a new ./lib/wiki-plugins/wikiplugin_phpvars.php someday soon... Thanks again everyone for you quick help! marclaporte: phew, there was error on the wiki page then saying you departure on AUG1 Petjal2: np :) there is lot of options to display the date using various smarty modifiers in lib/smarty_tiki/ (the stufff after "$date|") ah! OK, I'll take the bait--how would I construct the part after the pipe? good catch 10th luciash: or point me to a doc marclaporte: ah :) Petjal2: instead of the |tiki_long_datetime you can use different modifier or options Petjal2: e.g. |tiki_long_date, |tiki_short_date, etc. see the modifiers in lib/smarty_tiki/ Petjal2: e.g. |tiki_date_format uses PEAR:Date to format datestamps strftime format for output Petjal2: |tiki_date_format|%d.%m.%Y|_user luciash: awesome, cool, thanks. But I would have to construct a user module for each different php variable that I'd like to insert into my wiki page, correct? If I can build a generalized version of my "now" plugin, name it something like PHPVARS, and access it via {PHPVARS(var=>"date" ,opts=>"F d, Y") /}, would that be useful to the community? thanks all, especially sylvieg, for your persistence - it works now, i suspect mc, the nc-clone on linux, having its part in not completely unpacking/copying the 3.1 files from the tar.bz2-file to the dir. just to round things up, sylvie: should i have the devtools in there? as in my also re-d/loaded file, i can't find them? luciash: this first version of my PHPVARS plugin gives me a blank page: function wikiplugin_phpvars($var,$opts) { extract ($params,EXTR_SKIP); global $tikilib, $tikidate; $ret = $var("$opts"); return $ret; } oops, fixed the function line, http://pastey.net/117972 but still get blank page...any suggestions tikiwiki: 03nagendra016 * r20313 10/branches/experimental/kaltura_integration/ (5 files in 4 dirs): Petjal2: Doesn't a plugin get $var as an array? See Hello World's plugin example. Petjal2: Try var_dump($var); And expect an ugly screen because it dumps its output outside the TW wrappings. Petjal2: it would be useful but very dangerous when admins accidentaly allow it to be used by common Anonymous/Registered users tikiwiki: 03stojanovim * r20314 10/trunk/lib/core/ (2 files in 2 dirs): Machine Translation: put titles to lower case so Google Translate doesn't consider the words in it as proper names Petjal2: don't you need eval() ? SEWilco2: are you saying I may have a namespace conflict? I'll try $pjvar... luciash: yes, dangerous, but manageable in my current case, and a pro tw coder could wrap some protection, I would hope. I'll check out eval()... thanks Petjal2: No... I think a plugin is passed its parameters in a format different than an ordinary variable, so you can't use $var directly. You have to extract the parameters into variables. Petjal2: Look at some other plugin. I can't remember whether it's extract() or convert() or something else. I'm looking at ./lib/wiki-plugins/wikiplugin_countdown.php and it uses extract() SEWilco2: you overlooked like: function wikiplugin_countdown($data, $params) { global $tikilib, $tikidate; extract ($params,EXTR_SKIP); if (!isset($enddate)) { SEWilco2: he already uses extract() Oh, he did use extract(). Oops. OK, so from his phrasing I think his parameter might be called "var" and he did have a name collision, but he says he changed that. maybe I need to add a global? haven't changed it yet...going now... $ret = eval($var.'('.$opts.')'); Petjal2: Why are you trying to indirectly use $var as a function? What options might you be trying to offer? SEWilco2: he needs date() luciash: Yes, so he should hardcode date() rather than let users execute any PHP function. SEWilco2: that's what i told, but he's lazy as every programmer ;) SEWilco2: so he wants this "universal" ugly higly flamable stuff under his control ;) universal luciash: A properly lazy programmer would hardcode it rather than trying to figure out how to perform an indirect function call and then add security which restricts everything except "date" in PHP english encoding. :) the laziest :^) but that drives me to be efficient, doesn't it? Or, if you're elitistly lazy, you write a tool which generates the code for the plugin, so you can spit out plugins by clicking checkboxes. Then after you release it someone can write a script which checks all the proper checkboxes, and TW acquires 2,048 new features. just wondering, does the eval() work for you Petjal2 ? I am fully prepared to drop this if the community can't or won't use it. I have my little now plugin that works for me, but everyone has been so helpful to me over the many months, so I figured this could be my little contribution back, but of course, I'll endanger many a site with my efforts :^) Petjal2: smarty plugin would be nice if you want contribute back ;) Petjal2: If the only thing the plugin can do is safely emit the date then it might get accepted. More likely to be accepted if it obeys the TW configuration for the site date format. eval() doesn't seem to work but it could be broken by my other lazy coding. To go back a bit, I just want to generalize this, which works: $ret = date("F d, Y"); Petjal2: less dangerous than any php but still a bit dangerous I figured I could pass in a variable that contains the string "date" and a variable that contains a string "F d, Y"...sounds simple... Petjal2: If you find a piece of code which emits the system-configured date format, you can probably use that. I don't know if it would be best implemented as a plugin or a documented Smarty incantation. DATE plugin could be a good start too to pas params for various formatting and another than current date as option in data maybe or TIME plugin ;) {TIME(format="F d, Y")}July 22, 2009{TIME} would be handy too, what do you think ? toctoc hola xavi hi luci :-) I'm attempting to produce a new tiki plugin... luciash: but I needed it to be a variable displaying today's date .... and I wonder whether is way too far from my skills... sure, {TIME()/} would do that (without any params) DATE and TIME plugins do _not_ exist yet, correct? rodrigo_sampaio: ? correct, it's homewrok for you ;) and it would be a valuable contribution? I started the R plugin ( http://r-project.org for statistical computing and scientific graphs, ...) yep, i think so hi xavi! hi rodrigo_sampaio :-) I started my first attempt to produce the R plugin xavi: and how it is going? but after I placed the first files inside tiki 3 svn, I get blank pages when attempting to edit a paeg page and I don't know how to follow.... xavi: do you have php error messages enabled? mmmm, there I go to check... xavi: go to admin -> general and enable all kind of php errors xavi: then instead of a blank page you will probably get a useful error message that will point you to the error luciash: above, you said "smarty plugin would be nice", is that completely different from what I've been doing here today? rodrigo_sampaio: you are right. First step forward. Cannot redeclare wikiplugin_r() Petjal2: a bit what you wanted to do (universal) plugin but it would return smarty stuff (like in modules and custom code look and feel areas you can use) error is, in fact: Fatal error: Cannot redeclare wikiplugin_r() (previously declared in /var/www/tiki3svn/lib/wiki-plugins/wikiplugin_r.php:21) in /var/www/tiki3svn/lib/wiki-plugins/wikiplugin_r.php on line 116 ah, got it, this one. Silly mistake.... xavi: you have declared that function in some other plugin accidentaly yes, yes, newbie-coder here :-) xavi: yep, it happens ;) xavi: :) Petjal2: i can imagine something like {SMARTY()}{$date|tiki_short_date}{SMARTY} Petjal2: it would be a bit more difficult to create this plugin, because you'd need to pass the data to a smarty tpl file instead of direct ret anybody knows, can be a wiki plugin used as a param of another wiki plugin ? luciash: ok, good, as I was flailing with smarty earlier, I keep thinking that it needs to talk to a .tpl which didn't seem to make sense to _this_ newbie-coder. Petjal2: ok, so the TIME plugin is easier task i guess for you ;) yes, I was just thinking the same thing... will I have a format string quoting problem? hmm, no idea I'll probably waste a lot of time failing to escape my quotes properly in Tiki we can use plugin syntax like {usercount} nowadays, right ? it's the same like {USERCOUNT() /}, is it so ? rodrigo_sampaio: the r extension for mediawiki has something like this: Add in LocalSettings.php the line require_once('extensions/Rext.php'); where should I add this require_once? tiki-setup.php or tiki-setup_base.php for instance? sylvieg? ^ anybody knows ? luciash: no idea myself xavi: in the plugin function xavi: if not used anywhere else oh well, yes, but the localesettings.php seems to be the equivalent to tiki-setup.php. There are a few other php files for the extension out there... which might use it, I guess other require_once are inside the plugin pgp file itself, but not this one, as the R_mediawiki_extension install instructions say i am going to try create USER plugin which would return current $user, then i would like to use this in another plugin as param, e.g. {GROUP(groups={user})}only my user group can see this{GROUP} do you think this would be possible ? xavi: you can include the file extensions/Rext.php in the plugin file or you can copy the functions from Rext.php to the same file of the plugin oh, sorry, that's nonsense example :-p no idea luciash. it would change with every user so the guy would _always_ see it *g* rodrigo_sampaio: I'm already touching problems... Fatal error: Call to undefined function Rerror() in /var/www/tiki3svn/lib/wiki-plugins/wikiplugin_r.php on line 75 and that line 75 is ... file_exists($fn) or Rerror ('Rform', 'can not find R program: ' . $sha1, ''); copied literally from the equivalent R.php extension for mediawiki... so Rerror is not identified as a function... xavi: yeah, where this function is defined ? looking for it... mm nowhere, apparently.... I must be doing something wrong... checking again... Thanks for all the help everyone. Here is my first cut at a new NOW wikiplugin ./lib/wiki-plugins/wikiplugin_now.php http://pastey.net/117976 Comments and suggestions welcome. Be gentle. Thanks again! xavi: I'm looking at the extension code the function Rerror() is not defined there xavi: maybe to use this extension you need some kind of php extention to R (just a guess) xavi: right before the line where Rerror is called it creates a path to a R file rodrigo_sampaio: yes using a constant called r_dir, not sure, but apparently you need something to run this extension with mediawiki btw, Rerror is not defined anywhere else in the code mmm, Ok, I'll double check the requirements... for installation fyi: http://mars.wiwi.hu-berlin.de/mediawiki/sk/index.php/R_Extension_for_MediaWiki_v0.06 mmm, I don't get it. I have no clue what's missing... that original file R.php is only doing a require_once of extensions/Rext.php and I'm doing the same in my wikiplugin_r.php as far as I know, according to their documentation, the only thing needed for that extension to work are the files inside the r_extension package xavi: I also thought this but at the same time I checked and the function Rerror() is not defined in the extension package Yes, that's what I saw so I?m confused... xavi: have you ever installed this extension on mediawiki? xavi: maybe by doing this you can have some clue no, I have never installed mediawiki in fact yes, I might give it a try s/might/should xavi: it is very easy to install mediawiki but not today. dinner time here. Tomorrow maybe. thanks for feedback, rodrigo_sampaio xavi: I just checked now to be sure and the Rerror function is not something from the mediawiki itself btw, where are you right now? UK again? xavi: I'm in Sweden ah :-) long days still there... xavi: I'm going to London just the day before going to Barcelona xavi: yeah, I have a really good brazilian friend that lives here in Sweden I would suggest that you try smokered mackerel, if they prepare it and sell it in sweden, wherever you are xavi: what is smokered mackerel? the one from Norway/Bergen was far better (for my own taste) than smoked salmon... mmm, hold on... I'll search for some url for you... mackerel = fish xavi: I just found pesca? pesce? xavi: unfortunately I'm vegetarian :) but thanks for the suggestion anyway http://www.skye-seafood.co.uk/cust_images/recipe%20images/Smoked%20Mackerel%201.JPG ah, sorry :-) smoked, I meant xavi: no problem at all mmm, so many vegetarians will be around in Barcelona.... you, luci & wife, my wife, ... we'll have to look for suitable places for veggies :-) xavi: good to know that your wife is also vegetarian, I can exchange some recipes with her :) ok, see you (I'll give it another try tomorrow) yeah :-) xavi: ok, just send me a message if you need more help tomorrow xavi: good dinner btw, last comment, I have a present for you at home: some "Creole" spices I found in Uk. for you: you can try to add them to the computer while it's running the MW to TW importer! in case it helps to have better WikiCreole ! ;-) sorry for the bad joke... but seriusly, there some spices here for you called "Creole" that I found in a store in London xavi: it just me took me sometime to understand it as I'm not very fluent in english :) ok, cheers. You seem to be very fluent in many languages... I wish I as so fluent in Brazilian :-) see you Howdy all. I've enabled the auto-save module. Is there a preference or something I need to adjust to make it work? My sessions still expire at the regular time. i think the autosave requires ajax? not sure I turned on Ajax and JQuery and Ajax auto-save. I can see the Ajax stuff is working ... but it's not auto saving ... at least doesn't seem to be. hm.. not sure. sorry :( S'ok. Howdy all. I've enabled the auto-save module. Is there a preference or something I need to adjust to make it work? My sessions still expire at the regular time. Gee, this doesn't look right. http://www.theredbulls.org/article216/lib/phplayers/libjs/lib/phplayers/libjs/lib/phplayers/libjs/lib/phplayers/libjs/lib/phplayers/libjs/lib/phplayers/libjs/lib/phplayers/libjs/lib/phplayers/libjs/lib/phplayers/libjs/lib/phplayers/libjs/lib/phplayers/libjs/lib/phplayers/libjs/... Haven't figured out where it's coming from yet. Started a couple hours ago. I'm not seeing it in my homepage HTML. I noticed it in my access log. Hmm.. .one IP address is doing it.