***: SEWilco2 has joined #tikiwiki
MartinCleaver has quit IRC ()
MacLeod has quit IRC (verne.freenode.net irc.freenode.net)
jesperj has quit IRC (Remote closed the connection)
jesperj has joined #tikiwiki
chibaguy has joined #tikiwiki
MartinCleaver has joined #tikiwiki chibaguy: 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. ***: Caarrie|away is now known as Caarrie
MacLeod has joined #tikiwiki
marclaporte has joined #tikiwiki
btiffin has quit IRC (Remote closed the connection)
btiffin has joined #tikiwiki chealer: 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... ***: MacLeod has quit IRC ("Page closed")
MartinCleaver has quit IRC ()
Caarrie is now known as Caarrie|sleeping
btiffin has quit IRC (Remote closed the connection)
btiffin has joined #tikiwiki
btiffin has quit IRC (Remote closed the connection)
franck has quit IRC ()
Petjal2 has joined #tikiwiki
franck has joined #tikiwiki Petjal2: 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. marclaporte: Petjal2: I don't think this exists
but countdown plugin is close
http://doc.tikiwiki.org/PluginCountdown Petjal2: Thanks, Marc. Hmm, do you think maybe a novice like me might be able to tweak that plugin to just display the current date? marclaporte: 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} Petjal2: Thanks, Marc. Checking out ./lib/wiki-plugins/wikiplugin_countdown.php now... ***: franck_ has joined #tikiwiki CIA-58: tikiwiki: 03chealer * r20290 10/branches/experimental/modules-doc/ (575 files in 110 dirs): [MRG] Automatic merge, trunk 19945 to 20250 ***: franck has quit IRC (Read error: 113 (No route to host)) Tikiwiki|bot: New Forum Posts: wiki_forum_id bug? - http://tikiwiki.org/tiki-view_forum_thread.php?forumId=&comments_parentId=34017 Petjal2: 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 has quit IRC ("Leaving.")
Petjal2 has joined #tikiwiki chealer: Petjal2: perhaps you want {assign} Petjal2: chealer: ok, thanks, trying that... ***: chibaguy has quit IRC (Read error: 104 (Connection reset by peer)) Petjal2: 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? ***: VK4MSL has joined #tikiwiki
Redhatter has joined #tikiwiki
luminoso_ has joined #tikiwiki
luminoso has quit IRC (Read error: 54 (Connection reset by peer))
VK4MSL has quit IRC (Nick collision from services.)
VK4MSL has joined #tikiwiki
VK4MSL has quit IRC (Read error: 54 (Connection reset by peer)) Tikiwiki|bot: New Forum Posts: Creating Links in Editor for connecting files in filesystem? - http://tikiwiki.org/tiki-view_forum_thread.php?forumId=&comments_parentId=34018 ***: Lucymoz has quit IRC (Read error: 110 (Connection timed out))
Wilkins has joined #tikiwiki CIA-58: tikiwiki: 03axold * r20291 10/branches/experimental/ws/lib/profilelib/installlib.php: [FIX] Fixed a error typo in installlib ***: tobi_h has joined #tikiwiki CIA-58: 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 ***: luminoso has joined #tikiwiki tobi_h: 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... ***: luminoso_ has quit IRC (Read error: 110 (Connection timed out))
tobi_h is now known as tobi_h|away Tikiwiki|bot: 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 CIA-58: 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|sleeping is now known as Caarrie
tobi_h|away is now known as tobi_h tobi_h: 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... Caarrie: ok tobi_h: 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? ***: ricks99 has joined #tikiwiki Caarrie: i have no idea i just put the feed into the script for the bot tobi_h: could it be that the feed itself then is broken/out of order/mangled...? Caarrie: i think the code for rss for forums was not updated at sometime when the url was changed tobi_h: that's what i take as a first idea (and could be completely wrong here...)
ah. jup.
is anyone in charge of that code? Caarrie: no idea, you could make a tracker entry tobi_h: ok, will do when i come back, later today.
thanks for listening, anyway. :) Caarrie: yw -: Caarrie thinks she did a good job acting awake tobi_h: ;) ***: chibaguy has joined #tikiwiki CIA-58: 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 luciash: polom polom
hi chibaguy, hope all is fine at your place with all those floods and landslides :-/ chibaguy: hi luciash, yes, we're ok, thanks. luciash: phew, Hofu city is not that far as google maps say
the floods and storms are over here... now tropical temperatures again :-p chibaguy: Interesting weather these days. sylvieg: in Boston we only perhaps get 5 days with sun since the beginning of the summer - depressing Petjal2: +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; $ sylvieg: Caarrie: do you know how the message we receive on IRC from the forum have no forumId? Caarrie: rss feed sylvieg: thx will check Caarrie: ok sylvieg: ok you are right - fix on the way Caarrie: great luciash: Petjal2: most easy is use module sylvieg: http://smarty.net/manual/en/api.get.template.vars.php to get a smarty var in the php world CIA-58: 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 Tikiwiki|bot: New Forum Posts: syntax for image galleries - http://tikiwiki.org/tiki-view_forum_thread.php?forumId=&comments_parentId=34025 Petjal2: 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 CIA-58: 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 luciash: Petjal2: it's easy like this
Petjal2: {$date|tiki_long_datetime} chibaguy: 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? luciash: Petjal2: put it in a new module chibaguy: (so it's a kind of highly styled form) luciash: chibaguy: yes, pretty tracker chibaguy: ah, ok. luciash: chibaguy: currently playing with it on http://crystals.ourwiki.net
chibaguy: feel free to test
chibaguy: you have to use TRACKER plugin ***: Caarrie is now known as Caarrie|away CIA-58: 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 chibaguy: Does this site use Intertiki, or do I register? sylvieg: ^^ needs 2 validation in order to backport in 3 and fix the forum irc problem luciash: chibaguy: register
sylvieg: thx chibaguy: ok, I registered. luciash: 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 chibaguy: thanks, logged in. :-) luciash: example of wiki page template used to format tracker form output can be http://crystals.ourwiki.net/Edit+User+Post+Template CIA-58: 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 luciash: chibaguy: basically you need a tracker with Item creator can modify his items chibaguy: ok luciash: chibaguy: then you need the user field (type user selector) with option "1," CIA-58: tikiwiki: 03jonnybradley * r20301 10/trunk/tiki-webmail.php: [FIX] Don't refresh if autorefresh == 0 luciash: chibaguy: and your fields you want (I am using the little tracker to embed "micro-blogging" to the user profile page as an example) chibaguy: On the link above, I see variables for tracker items, I guess, not a form or data. Is that as expected? ***: MacLeod has joined #tikiwiki luciash: 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 chibaguy: ah luciash: chibaguy: it is this tracker actually → http://crystals.ourwiki.net/tiki-view_tracker.php?trackerId=4 sylvieg: 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) luciash: 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 marclaporte: +1 to print.css thing -: chibaguy agrees chibaguy: luciash, how are the tabs done, on the wiki page? sylvieg: but it is mystyle-print.css ... I would like it in layout.css MacLeod: Looks like the "3d browser" options have been removed from Admin > Wiki in 3.x ...? chibaguy: sylvieg, doesn't it need to be a separate stylesheet to be used just for print? The link to the css needs media="print". luciash: chibaguy: i made a special module for it using the {tabs} smarty via Admin > Modules chibaguy: I see.
(I was thinking that would be nice to have.)
This is how "versions" should work (no page refresh). luciash: chibaguy: you can view the source there now chibaguy: ok, thanks. marclaporte: MacLeod: : maybe just moved MacLeod: 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. chibaguy: MacLeod: now that I see luciash's tabs-in-wikipage, I think that'd be the best way. ;-) luciash: 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 MacLeod: chibaguy: i don't follow; think i missed some precedent discussion luciash: MacLeod: the VERSIONS plugin is used chibaguy: MacLeod, I think using the versions plugin was agreed on
:-) MacLeod: k, i'll go read about the versions plugin :) luciash: 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")} chibaguy: I think the tabs method is better, since no page refresh is needed.
(better than versions plugin) luciash: chibaguy: i think the VERSIONS plugin can be edited to use tabs if on chibaguy: ok luciash: 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 chibaguy: ok. I'm going to have to spend some time on this. ;-) luciash: if you need help drop me a line chibaguy: thanks ***: MartinCleaver has joined #tikiwiki CIA-58: 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 luciash: chibaguy: just a note, the simmilar way you display the "results" posts of the tracker using TRACKERLIST plugin chibaguy: ok ***: nickleus has joined #tikiwiki nickleus: 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? SEWilco2: Petjal2: Earlier you used smarty to assign a value to 'ret' and then did return $ret ***: ricks99 has quit IRC (Read error: 104 (Connection reset by peer)) SEWilco2: 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. chibaguy: 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. CIA-58: 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 tobi_h: sylvieg: thanks for your fix of the rss prob! :) looking forward to it getting used in tw.o... ;) ***: MartinCleaver has quit IRC () nickleus: 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. chibaguy: 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. nickleus: chibaguy: ok. thanks, i'll try to put together some code then. doesn't seem to easy though for a beginner...
*too* CIA-58: tikiwiki: 03axold * r20304 10/branches/experimental/ws/templates/tiki-admin-include-workspaces.tpl: [MOD] Added an apply button in templates tobi_h: 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 needs to post less... sylvieg: tobi_h: did you upgrade your database too? Tikiwiki|bot: New Forum Posts: Tracker Action Field, anyone have any info? - http://tikiwiki.org/tiki-view_forum_thread.php?forumId=&comments_parentId=34031 tobi_h: 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] <marclaporte> 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 ***: nkoth3 has joined #tikiwiki chibaguy: Will this work for nickleus - {if $group eq "Admin"}{menu id=x}{else}{menu id=y{/if} - anyone? sylvieg: 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 ***: rodrigo_sampaio has joined #tikiwiki luciash: chibaguy: Admins, should work chibaguy: ok ***: ricks99 has joined #tikiwiki CIA-58: 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 tobi_h: 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? sylvieg: remove the lock and try ti upgrade the database tobi_h: 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... sylvieg: 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 tobi_h: i am sorry, i mistook the later for the former.
i guess i'd prefer the commandline option - how would i do that? sylvieg: sh doc/devtolls/sqlupgrade.sh ***: nickleus has quit IRC ("Page closed")
chealer has quit IRC (Read error: 104 (Connection reset by peer)) sylvieg: sorry doc/devtools Petjal2: 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! ***: chealer has joined #tikiwiki luciash: Petjal2: {$date|tiki_long_datetime} in Admin > Modules > User Modules + MODULE plugin and you could save lot of oding time ;)
s/oding/coding/ CIA-58: 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 MacLeod: 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. sylvieg: ohoh all my admin pannel are empty
MacLeod: I think I already reported this to ricks99
:-( and the cookie show php error is broken :-( CIA-58: tikiwiki: 03sylvieg * r20309 10/trunk/modules/mod-wiki_last_comments.php: notice ***: chibaguy has quit IRC (Read error: 131 (Connection reset by peer))
MartinCleaver has joined #tikiwiki
SEWilco2 has quit IRC ("Leaving.") tobi_h: 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! luciash: tobi_h: remove the lock
db/lock
increase memory_limit
check the server logs what php error it gives tobi_h: removing lock does not change a thing. luciash: it unlocks the installer tobi_h: mem-limit is afaik 32m - should i have more? luciash: 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 tobi_h: not afaik
PHP Fatal error: require_
once() [<a href='function.require'>function.require</a>]: 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!) :) marclaporte: tobi_h: http://profiles.tikiwiki.org/Debug_Mode_Enabled tobi_h: marclaporte: thx, looking into it... marclaporte: this section: http://profiles.tikiwiki.org/Debug_Mode_Enabled#I_am_locked_out_of_Tiki MacLeod: sylvieg: ok, so i'm not crazy or blind.... tobi_h: in tiki_preferences, it says tikirelease=3.0 - is that something i should worry about? ***: SEWilco2 has joined #tikiwiki CIA-58: tikiwiki: 03mangapower * r20310 10/branches/experimental/ws/ (4 files in 4 dirs): [MOD] Modified some names and checked some stuff tobi_h: 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) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /var/www/html/tobi/tiki-setup.php on line 20 Tikiwiki|bot: 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 tobi_h: followed by [Wed Jul 22 18:23:11 2009] [error] [client 127.0.0.1] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: 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 CIA-58: 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) sylvieg: 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 tobi_h: thanks for the hint, probably should have thought of that myself: the file does not exist. CIA-58: tikiwiki: 03jonnybradley * r20312 10/trunk/ (3 files in 3 dirs): [FIX] Webmail/GroupMail fixes tobi_h: i will now red/load and verify. MacLeod: has anyone collected performance data on the relative speed of 2.x vs 3.x? luciash: marclaporte: 2 days on TikiFest WS only ? marclaporte: no, 10 days! Petjal2: 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! luciash: 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|") marclaporte: ah! Petjal2: OK, I'll take the bait--how would I construct the part after the pipe? marclaporte: good catch
10th Petjal2: luciash: or point me to a doc luciash: 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 Petjal2: 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? tobi_h: 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? Petjal2: 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 ***: luminoso has quit IRC (Read error: 60 (Operation timed out))
luminoso has joined #tikiwiki CIA-58: tikiwiki: 03nagendra016 * r20313 10/branches/experimental/kaltura_integration/ (5 files in 4 dirs): SEWilco2: 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. ***: marclaporte has quit IRC ("Miranda IM! Smaller, Faster, Easier. http://miranda-im.org")
MartinCleaver_ has joined #tikiwiki luciash: Petjal2: it would be useful but very dangerous when admins accidentaly allow it to be used by common Anonymous/Registered users ***: luminoso_ has joined #tikiwiki CIA-58: 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 ***: tobi_h is now known as tobi_h|away luciash: Petjal2: don't you need eval() ? Petjal2: 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 SEWilco2: 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. Petjal2: I'm looking at ./lib/wiki-plugins/wikiplugin_countdown.php and it uses extract() luciash: SEWilco2: you overlooked Petjal2: like:
function wikiplugin_countdown($data, $params) {
global $tikilib, $tikidate;
extract ($params,EXTR_SKIP);
if (!isset($enddate)) { luciash: SEWilco2: he already uses extract() SEWilco2: 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. Petjal2: maybe I need to add a global?
haven't changed it yet...going now... luciash: $ret = eval($var.'('.$opts.')'); ***: luminoso has quit IRC (Read error: 110 (Connection timed out)) SEWilco2: Petjal2: Why are you trying to indirectly use $var as a function? What options might you be trying to offer? luciash: SEWilco2: he needs date() SEWilco2: luciash: Yes, so he should hardcode date() rather than let users execute any PHP function. luciash: 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 ;) ***: MartinCleaver has quit IRC (No route to host) luciash: universal SEWilco2: 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. luciash: :) Petjal2: the laziest :^)
but that drives me to be efficient, doesn't it? SEWilco2: 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. -: luciash wonders if there's function restrict_everything_except() ;) SEWilco2: Then after you release it someone can write a script which checks all the proper checkboxes, and TW acquires 2,048 new features. luciash: just wondering, does the eval() work for you Petjal2 ? 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 :^) luciash: Petjal2: smarty plugin would be nice if you want contribute back ;) SEWilco2: 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. Petjal2: 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"); luciash: Petjal2: less dangerous than any php but still a bit dangerous Petjal2: 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... SEWilco2: 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. luciash: 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} ***: xavi has joined #tikiwiki luciash: would be handy too, what do you think ? xavi: toctoc luciash: hola xavi xavi: hi luci :-)
I'm attempting to produce a new tiki plugin... Petjal2: luciash: but I needed it to be a variable displaying today's date xavi: .... and I wonder whether is way too far from my skills... luciash: sure, {TIME()/} would do that
(without any params) Petjal2: DATE and TIME plugins do _not_ exist yet, correct? xavi: rodrigo_sampaio: ? luciash: correct, it's homewrok for you ;) Petjal2: and it would be a valuable contribution? xavi: I started the R plugin ( http://r-project.org for statistical computing and scientific graphs, ...) luciash: yep, i think so rodrigo_sampaio: hi xavi! xavi: hi rodrigo_sampaio :-)
I started my first attempt to produce the R plugin rodrigo_sampaio: xavi: and how it is going? xavi: 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.... rodrigo_sampaio: xavi: do you have php error messages enabled? xavi: mmmm, there I go to check... rodrigo_sampaio: 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 Petjal2: luciash: above, you said "smarty plugin would be nice", is that completely different from what I've been doing here today? xavi: rodrigo_sampaio: you are right. First step forward. Cannot redeclare wikiplugin_r() -: xavi is searchying for that line ***: FrankP_german has joined #tikiwiki luciash: 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) xavi: 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.... luciash: xavi: you have declared that function in some other plugin accidentaly xavi: yes, yes, newbie-coder here :-) luciash: xavi: yep, it happens ;) rodrigo_sampaio: xavi: :) luciash: 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 ? Petjal2: 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. luciash: Petjal2: ok, so the TIME plugin is easier task i guess for you ;) Petjal2: yes, I was just thinking the same thing...
will I have a format string quoting problem? luciash: hmm, no idea ***: FrankP_german has quit IRC ("Nettalk6 - www.ntalk.de") Petjal2: I'll probably waste a lot of time failing to escape my quotes properly luciash: in Tiki we can use plugin syntax like {usercount} nowadays, right ?
it's the same like {USERCOUNT() /}, is it so ? xavi: 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? ^ ***: Lucymoz has joined #tikiwiki luciash: anybody knows ? xavi: luciash: no idea myself luciash: xavi: in the plugin function
xavi: if not used anywhere else xavi: 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 luciash: 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 ? rodrigo_sampaio: 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 luciash: oh, sorry, that's nonsense example
:-p xavi: no idea luciash. luciash: it would change with every user so the guy would _always_ see it
*g* xavi: 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... rodrigo_sampaio: xavi: yeah, where this function is defined
? xavi: looking for it...
mm nowhere, apparently....
I must be doing something wrong...
checking again... Petjal2: 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! rodrigo_sampaio: 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 xavi: rodrigo_sampaio: yes rodrigo_sampaio: using a constant called r_dir, not sure, but apparently you need something to run this extension with mediawiki xavi: 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 ***: luminoso_ is now known as luminoso xavi: 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 rodrigo_sampaio: xavi: I also thought this but at the same time I checked and the function Rerror() is not defined in the extension package xavi: Yes, that's what I saw
so I?m confused... rodrigo_sampaio: xavi: have you ever installed this extension on mediawiki?
xavi: maybe by doing this you can have some clue xavi: no, I have never installed mediawiki in fact
yes, I might give it a try
s/might/should rodrigo_sampaio: xavi: it is very easy to install mediawiki xavi: but not today. dinner time here. Tomorrow maybe.
thanks for feedback, rodrigo_sampaio rodrigo_sampaio: xavi: I just checked now to be sure and the Rerror function is not something from the mediawiki itself xavi: btw, where are you right now? UK again? rodrigo_sampaio: xavi: I'm in Sweden xavi: ah :-) long days still there... ***: stevenbrady has joined #tikiwiki rodrigo_sampaio: 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 xavi: I would suggest that you try smokered mackerel, if they prepare it and sell it in sweden, wherever you are rodrigo_sampaio: xavi: what is smokered mackerel? xavi: 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... MacLeod: mackerel = fish rodrigo_sampaio: xavi: I just found MacLeod: pesca? pesce? rodrigo_sampaio: xavi: unfortunately I'm vegetarian :)
but thanks for the suggestion anyway xavi: http://www.skye-seafood.co.uk/cust_images/recipe%20images/Smoked%20Mackerel%201.JPG
ah, sorry :-)
smoked, I meant rodrigo_sampaio: xavi: no problem at all xavi: mmm, so many vegetarians will be around in Barcelona.... you, luci & wife, my wife, ...
we'll have to look for suitable places for veggies :-) rodrigo_sampaio: xavi: good to know that your wife is also vegetarian, I can exchange some recipes with her :) xavi: ok, see you (I'll give it another try tomorrow)
yeah :-) rodrigo_sampaio: xavi: ok, just send me a message if you need more help tomorrow
xavi: good dinner xavi: 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 rodrigo_sampaio: xavi: it just me took me sometime to understand it as I'm not very fluent in english :) xavi: ok, cheers. You seem to be very fluent in many languages... I wish I as so fluent in Brazilian :-)
see you stevenbrady: 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. ***: xavi has left
rodrigo_sampaio has quit IRC ("Leaving.") ricks99: i think the autosave requires ajax? not sure stevenbrady: 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. ricks99: hm.. not sure. sorry :( stevenbrady: S'ok. ***: Caarrie|away is now known as Caarrie
stevenbrady has quit IRC (Read error: 104 (Connection reset by peer))
stevenbrady has joined #tikiwiki
Petjal2 has quit IRC (Remote closed the connection)
ricks99 has quit IRC ("Get more Tiki help from TikiWiki for Smarties: http://twbasics.keycontent.org") stevenbrady: 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. ***: stevenbrady has quit IRC (Read error: 104 (Connection reset by peer))
Petjal2 has joined #tikiwiki
marclaporte has joined #tikiwiki
MacLeod has quit IRC ("Page closed")
franck_ has quit IRC ()
MartinCleaver has joined #tikiwiki
franck has joined #tikiwiki
MartinCleaver has quit IRC ()
MartinCleaver_ has quit IRC (Connection timed out)
Caarrie is now known as Caarrie|away
marclaporte has quit IRC (Read error: 104 (Connection reset by peer))
SEWilco2 has quit IRC ("Leaving.")
Lucymoz has quit IRC (Read error: 110 (Connection timed out))
SEWilco2 has joined #tikiwiki
nkoth3 has quit IRC () SEWilco2: 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.