tikiwiki: 03marclaporte * r34984 10/branches/7.x/templates/tiki-edit_article.tpl: [FIX] when editing an old article (ex.: 2004), make sure it doesn't reset to current year minus 5 years tikiwiki: 03robertplummer * r34985 10/branches/7.x/lib/wiki-plugins/wikiplugin_sheet.php: [FIX] html output for sheets is required, strip_tags was removing it. killed strip_tags so that sheets.... work. New Forum Posts: Installation into subdomain - http://tiki.org/tiki-view_forum_thread.php?forumId=6&comments_parentId=41584 Good morning fellas. What scope does the dynamic variables have? (the one enclosed in %) Could I, say, in a plugin run from the content area, set a value to a dynamic variable, and then read it from a module in the right sidebar? hey guys is it possible to create an article with predefined topic, and type? SJ-Jay & Merbster: I don't know SJ-Jay : if this exists, I suspect it would be a param of a module for articles (there is a way to set category of wiki page when creating via a module) Merbster : dynamic variables are global thus, I would think they would appear in module perhaps not in same page load, but after a refresh Ah. So the setting of the dynamic variables are dependant on module load order? i.e. you cannot read the value before the module that sets the value has been loaded. marclaporte, the scenario is this: Based on the category of the page shown in the content area, a right side "toolbar" will be generated with links to different wiki pages (based on the case number) We are thinking that maybe we should just include the toolbar in the modules directly. instead of putting it outside the module. (then we would solve the problem of module load order) Merbster : http://themes.tiki.org/tiki-index.php?page=Template%20Tricks&pagenum=4#Categories_used_in_templates marclaporte, thank you, I will look at this. marclaporte could you tell me where to look for this? :) http://doc.tiki.org/All+Modules take a look at all modules with "article" in it the doc may be missing some info so you should try with module helper and check if any param makes sense As a reference for wiki pages, this one http://doc.tiki.org/Module+quick_edit it would be something like {MODULE(module=quick_edit categId=5) /} SJ-Jay : if you code a little, you could perhaps change the Tiki code a bit to support a link to tiki-edit_article.php?topic=general marclaporte, we are trying to include the forum functionality on a wiki page. first we included the forum in an iframe and set fullscreen = y but that affected the rest of the site when we would move around on the site. why are you including forum in wiki page? we need to make a "landing page" for for example building information modellers. And they have a separate forum. So we include some stuffa bout the current cases the user is assigned to, maybe som RSS streams, and then a preview to their forum So that the user can get a nice overview of thei workday without haveing to move between 5 different pages. that is why we want to include the forum with a preselected forum area (we do that with forumId parameter) and that is also why we are trying to make a "new article" button with predefined type and topic that is only shown in that wiki page New Forum Posts: How syncing AD groups with Tiki? - http://tiki.org/tiki-view_forum_thread.php?forumId=17&comments_parentId=41585 Merbster : how about including last x forum posts? http://doc.tiki.org/Module+forums_last_posts might work. Allthough SJ-Jay is more into the requirements in that section.. He's currently out smoking. I will direct his attention to here when he comes back. marclaporte forums_last_posts with a category ID works like a charm! marclaporte, a colleague suggested that we tried using af form for the articles, do you think this is possible? New Forum Posts: Translation function doesn't work properly... - http://tiki.org/tiki-view_forum_thread.php?forumId=3&comments_parentId=41587 New Forum Posts: Tiki 7 for intranet - with pictures of employees - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=41588 New Forum Posts: Multi Site functionality and Automated Site creation ? - http://tiki.org/tiki-view_forum_thread.php?forumId=4&comments_parentId=41589 tikiwiki: 03sylvieg * r34986 10/branches/7.x/templates/tiki-admin_include_login.tpl: [FIX]LDAP: tabs name explicitely to mention LDAP polom y'all hi all SJ-Jay: i'm not sure you want to go there but i had to use something very close to articles but to control input form and output page. I turn out using Trackers to do it all and gain complete control. (i'm no coder too) Bernard1 what i'm trying to do is make it simple for the users to create an article with predefined topic and type.. you think this is possible with trackers? Bernard is talking about (I believe) using tracker *instead* of articles yes. i had to build a knowledge base (at first they use Articles) with specific fields (mandatory) and a unified design so all page look alike. yeah exacly the same here! i used trackers (you have plenty of fields there to do whatever you have in mind) and wiki page as template. it is not meant to use that way but… i have a gift to go into troubles by myself. :D good solution. only downside is that you cannot do "article"-specific searches, right? pretty trackers/trackers are very powerfull and can be used with every sort of plugins that will help during the filtering and search process so it is possible to search the content? yes, you can search, but you can't filter, using where=articles if you use where=trackers, then you'll search *ALL* trackers, not just the "article" trackers well with trackerfilter plugins you can filter even better ! :) You do in the tracker: category, branch, type, kind, etc…. and in the filtertrackers plugin you select in a powerfull/user friendly way than the search bar. so did you replace/customize the site seach bar? i believe you can even integrate the plugin in the top bar with some css skills (this i didn't needed). ah no, i didn't needed this for now, but this is clearly possible. btw, i have a plan to improve the search result presentation (thumbnail, better designed presentation, etc). In the eyes of standard user it look like bulk results and not very sexy. +100 back SJ-Jay: You have to prepare a tracker (may several if you use dynamic list) with all the fields you need (text fields, text area, dropdown [categories, branch], user selector [the author], email, date, etc…). you have more possibilities than with articles so this cannot be a problem. step 2 (option 1) you edit the trackers and use a Wiki page to display the items (so you keep the tracker structure around the item). If this you gain control of the display of the items. step (option 2) you can use directly "pretty tracker" system (do a search) to display the item in a Wiki page. [Pro you control all the page, Cons it is more complicate to bring back the tracker structure (pagination, listing, etc). thanks dude.. will have a look at it you have the required fields and you have a nice way to display them… next input. you built a Wiki page and you use the trackerinput plugins. nothing to explain it is quite obvious you create a Wiki entry page with a trackerfilterplugin and here too you use a wiki template. that's it, built you template with the necessary class, span, div etc… using CSS you should be able to built something that even don;t look like a tracker… but is. :) never thought of using trackers in that way :) ;) SJ-Jay: note you can enter in some kind of problems if you use special encoding like hebrew… working on it (Sylvie solved one issue) Can I set a default value when creating a new preference like some default text in a textarea? Ok. I put it in the database. Bernard1 - need some help with the tracker! :) i've created a tracker, and added it to a wiki page.. everything looks fine except the item is not saved :( explain a little more…. an exemple ? well i've created the tracker with a topic and a text field.. i've then created a wiki page that uses the tracker.. when i fill the text fields and saves it.. it doens't show in the tracker! a link ? it's a corporate intranet.. so it's closed for public access M… :) doh found it! ItemId=1 :) ok another one then how do i show the trackers on another wiki page? like you did the tracker i created is for news on a knowledge base specific for a group, i want to show these "tracker news" SJ-Jay: well it depens… first what do you really need to display ? the trackers ? Do you mean trackers items ? sorry the tracker items :) good monday morning and polom to all nkoth: i shouldn't have tested when i didn't have time last fri aft. sorry to pop out on ya. hi, how can I turn off question mark (to create page) for not logged on users? I want it to be visible only for logged on users, or even editors only if possible. k… i ain't got much time but i'll what i can hello codyg there are different ways to display a tracker item. a single ? a list ? SJ-Jay: i got to go. If you follow my exemple above and use wiki template from within the tracker (edit tracker) you should be all set. think i found a solution.. just trying to make it more presentable :) else (if you want to display item outside trackers feature) check : http://doc.tiki.org/Pretty+Tracker but thx! << was watering the plants trackers are fun qb: still looking for that permission? codyg: yes i'm still having permission problems with this: {events calendarid="1" categId="8" maxdays="60" max="10" datetime="0" desc="0"} Is group a variable? Because all the group member sees is No Records found. qb: by default anonymous can't create pages. so, it must have been turned on for anon are you talking wiki pages or articles? codyg, but they see quotationsmark if page is not created, and I want them to see it not, as they print pages, and thinks that those are questions :( wiki pages, but not about permissions to create, only about visibility of quotation mark qb: i guess i'm thinking on another page. can you show me? if it isn't a permission, then it's a setting tiki-admin.php?page=wiki << out with the dog for 20 minutes if you edit any tiki page and add "here is place for ((test))." sentence you will receive "here is place for test?." as test page was not created yet. and it is ok for me to see ? as it makes easier to create new pages, but for casual (not logged in) users, and in printed version there are also ? marks, so they don't know are this questions or what... qb: there is no standard way to selectively hide the ? like that, but if you can do css, you can add a print css perhaps to hide the wikinew class you could also login as someone with no permission to edit wiki pages, that person will probably not see the ? nkoth, i think i will override wikinew class for everyone not in editor, maybe it will work yes, it should be visible only for users who has right to use it qb: for sure. i'm surprized there isn't an option somewhere. But css would fix it too. will try hey guys. I'm working with user pages today. Is there a way to make a new user page automatically be part of a structure? not automatically, afaik Hello, is it possible to create a custom watch action? I want to add an entry to another database as opposed to send an email. Is this something that can be extended like a module or will it require custom code to the actual code base? ok, next question. Is it possible to automatically add content to a user page? could use a template to "seed" the page, maybe polom polom chealer hi ricks99 ricks99: how do you do that? any docs on it? should be.. look for 'content template' josha: you could create a custom watch action, but it's not designed for that. there is no module system and the schema is only designed for emails or at least users Ok, can you point me to where I would create the custom watch action? Or I can pipe it through an email I suppose too josha: you could add functions to notificationlib. I don't know what feature you want notifications for, but for example with blogs, see blog_post() in lib/blogs/bloglib.php to see how it works I am looking to do this on wiki pages. josha: so see wikilib's attach_file() for example ricks99: I read the docs page. I understand how the templates work now. What did you mean by "seed"? chealer: yeah just looking for the appropriate save function now :) @overseer: whatever content you put in the content template will appear as part of the wiki page, when a user applies the template. so a user has to apply it. It can't be auto-applied? for example: http://twbasics.keycontent.org/Using+Content+Templates I *think* that the Quick Edit module allows you to specify a template when creating a new page. Not 100% sure though josha: right, that would probably be in tikilib hmm. ok. what im trying to do is make it so that new users will get a user:{{user}} page when they get their account, and it will have some default info/modules/etc on there. chealer: was just on my way there when I saw the extends but didint see it in wiki josha: see tikilib->update_page() just got there :) @overseer: will probably need some sort of customization. so that when you create a user page, specific content gets added to it. what would you recommend for doing this? i was thinking i could do an exec on a separate php script to have it keep my main code out, or i can open a db connection and just do what i want inline ricks99: Yeah, that's what im looking for. Any ideas on how? josha: the watches are stored in tiki_user_watches. as I wrote it's designed for user watches. if you want something else you may want a new table, or if it's simple just to hardcode it yeah im leaning towards hardcoding, and just noting what i do so on upgrades i can reintegrate easily enough @ overseer: not off the top of my head. i suggest either digging in the code or posting something to the forums and dev list josha: what kind of installation are you modifying? is it a Subversion checkout? sadly no, i ddint think that far ahead ;) just a straight tar.gz install ricks99: ok, thanks. That get's me started josha: what would be the advantage of doing an exec? all of my custom code would be in a separate file, so it would only be a one-line modification instead of calling a class function which then id be modifying the class more extensively josha: you can include a different file where you put functions and then call the functions too. there's not much difference between that and putting new functions straight in notificationlib yeah its 6 in one hand half a dozen in the other :) if i am testing and insert code inline for now, i shouldnt have an issue with opening a new db connection right so long as i close up when im done? or will i need to reissue a mysql_use_database err select_database rather josha: it's already connected well for my custom event i need a different database josha: tikilib extends TikiDb_Bridge, in lib/coore josha: oh. you'd better open a new connection then josha: the code that does it for Tiki is in db/tiki-db.php Yeah, when I open the connection I just wondered if doing a mysql_select_db will then break tiki or if it will reinitialize when i close it properly. josha: mysql_select_db() will only affect 1 connection, if you do it on your connection there should be no effect on Tiki's Ok, that is what I figured. tikiwiki: 03chealer * r34988 10/trunk/lib/setup/last_update.php: we apparently moved from CVS New Forum Posts: Dreamhost anyone? - http://tiki.org/tiki-view_forum_thread.php?forumId=6&comments_parentId=41594 Hello, can anyone help me with a Tiki question regarding the {icon} function? !help You can get a more complete list of commands that work with this bot at http://tiki.org/TikiBot . !icon Hello, lphuberdeau hello Are you good with TikiWiki and Smarty? owenconti: just ask your question I need to know whether or not text is being produced in addition to an icon with the following code: {icon _id=exclamation alt="{tr}Error{/tr}" style="vertical-align:middle;align:left;"} and if text is being produced, where can I edit it? owen, that's not something I know on top of my head and I don't have time to look it up for you that's fine. thank you anyways I wish TikiWiki was a little better documented owenconti : text is part of the generated HTML. Do you want to translate it? No, I need to know where that HTML text is being generated from, so I can change the text. Do you know where it is generated from? lib/smarty_tiki/function.icon.php seems likely candidate I checked that As far as I can see, that just generates the image and not the text that is beside the image Here's a screen shot, with the icon and the text beside it that I need to change. http://d.pr/SjAy ah what is the name of the PHP file you see in the browser? tiki-user_validate.php or something like this? tiki-remind_password.php look for templates/tiki-remind_password.tpl mhm I have that open that's where {icon _id=exclamation alt="{tr}Error{/tr}" style="vertical-align:middle;align:left;"} comes from you could also find that string in lang/en/language.php and make an English to English translation there Ohhh. so if I find that string that I don't want in the comments of language.php and change it after the => it will be changed? owenconti: the text must not come from icon bbl That's what I figure now, chealer, but I don't know where else I'm not familiar with bbl...? I'll be back later and marclaporte, I tried changing the text in language.php, but it did not work. Okay, thanks Chealer owenconti : empty cache after changing language file (Tiki cache, not browser cache) ok still no luck :( look in lib/userslib.php grep -r "You must validate your account first" * oooo let me change it and see what happens marclaporte I owe you everything! thank you so much! how did you find it? I did a search through all the files for that exact text grep is your friend :-) ah i didn't know that was possible can i use grep from Terminal? yes grep -r "You must validate your account first" * so it search recursively (-r) for that text anywhere (*) alright Im going to try ah it says I dont have permission to log in from terminal Thank you again for your help my pleasure hi all ... hi SiL3NC3 & nkoth re ricks99 tikiwiki: 03sylvieg * r34989 10/branches/7.x/lib/tikilib.php: [FIX]edit page: diff2 needs to be declared