Hey guys. I've just upgraded to svn trunk; I ported most of my data over, but dropped admin settings and so on. How do I change the wiki page that tiki-index.php shows? There's a bunch of home page settinsg but they don't seem to actually work. I also noticed that the old admin view and the new admin view on the same options look very different. @rlpowell: tiki-admin.php?page=wiki has a setting for "Wiki Home Page". Worked for me. using v2.0 MacLeod: WHere on the page? I don't see anything like that. Oh, wait, no; I'm not where you mean. Sec. Ah, neat. Worked? Dunno yet; I"m just surprised because since Look & Feel is where the Wiki settings used to be, I assumed it had subsumed them. So I'm just surprised that that section still exists. :) in something this complex, I'm sure it's hard to achieve a perfectly intuitive admin interface And, and that option isn't in http://www.lojban.org/tiki/tiki-magic.php?featurechain=/1/2 , which is where I'd expect it to be in the new style. so many features & functions could be placed in more than one spot MacLeod: Oh, sure. Just commenting, mostly on my own stupidity. Neat. All wiki page links point to /tiki/page+name instead of /tiki/tiki-index.php?page=page+name Anyone know what that's about? Oh, that's the search-engine-friendly URLs. Not so much with the working, apparently. :) Or maybe there's httpd.conf stuff I'm supposed to do. SVN: Commit by rlpowell :: r 14703 /trunk/lib/tikilib.php: Makes a PHP error go away. SVN: Commit by rlpowell :: r 14704 /trunk/lib/setup/categories.php: Another PHP error fix. Wow. It's a miracle. I don't update for a few months, and nobody broke the mail <-> forum gatewaying. l polom polom polom marc :) hi luciash! and hungry how are you? Hi. TikiWiki is stripping out the javascript on the front paeg of our site, ModernSciFi.com. Which .tpl is most likely corrupted? correction: "front page" Govnor: if you mean that you put javascript into a wiki-page and it is stripped - that's a security feature It's a feature, not a bug :-) yeah, didn't want to put it that way... reminds me so much of Microsoft... ;) moloq marc btw :) I tried to ad Google Adsense code just below the picture of Heath Ledger.(modernscifi.com) It is being added, like everything else on the page, within an HTML editor. And yes, it was stripped out the java code. Is there a work around? there is an adsense plugin afaik put it templates/footer.tpl polom amette how is return to reality? much worse than ten days of fiction ;) how's it with you? I'll look into it. I have a unique way of putting html content into my page and was hoping I could insert the adsense peppered within that content. But i will look into the plugin and the footer suggestion. thank you. np, you're welcome, Govnor - good luck hey bro :) marclaporte: i'm fine, it just started to be damn cold here so we have to burn some woods already :-p marclaporte: enjoy the big apple if that's all you can eat now to get rid of the hunger ;) SVN: Commit by pkdille :: r 14705 /trunk/templates/ (2 files): [MOD] formatting navbar in some templates hehe I am not really back to reality My life used to be about project management and web development. Now, it's conferences, meetings, talks and hotel rooms... :) what about cats ? my parents are taking good care of my cats luciash: : is it thinkable for you to come to Montreal for a 5 day tikifest on design/marketing ? in November? marclaporte: that's good, at least they're not hungry ;) marclaporte: i'll *think* about it ;) hehe we'd start with http://www.webcom-montreal.com/ marclaporte: sounds tempting, i'll let you know then, 4 days of TikiFest Nove 13-14-15-16 gotta run now to pick up my son and wife later ok! We have 2 people from Portugal confirmed (Matthew and Pauline) + local people (Patrick, Nelson's team) need Gary, Rick and you and we have the dream team all together for 4 days! (design/marketing dream team) Hi. I tried putting my adsense code into the adsense module and the module is stripping out my java script. I use an html editor for my front page and tiki is stripping out the java code eveywhere on the site. (modernscifi.com) Is there a particular tpl. that may have been corrupted? Govnor: : just put your adsense code directly in tpl if it's for that type of ad top baner or bottom banner I have done that as well and it is still being stripped. The same thing was happening to my games section and then I uploaded a fresh copy of the games tpl. and it fixed it. Is it possible that I have corrupted a tp that is stripping the java code from my site?. I'll try the banners. one moment if it's a type of ad, for a banner, you can use the adsense module but it's a little tricky to setup I just tried the banner and it is stripping the java code out there as well. For some reason, no matter how I approach it, the java script is being stripped out. imagine you are an evil hacker and everytime you are trying an evil xss maneuver, tiki is blocking you (to lower frusutration until we find a solution) Govnor: : http://doc.tikiwiki.org/adsense If you put js in Smarty, you need to put {literal} {/literal} around it Thank you for the tips. I'll keep at it. You've been very helpful. I updated wiki page please make sure to update as well once you find the solution I will. Thank you. 'morning! :) Q: If I wanted to modify my theme to make the comments link in tiki-view_blog show up highlighted when comments>0, how could I do that? It doesn't seem to be feasible with just a *.tpl change, and I'm not sure if or how it can be done in the *.php file(s). I like how the ARTICLES plugin does this, but again, I'm not sure how it does it. mornin' MacLeod ! How are you? :) fine, amette! you? good flight? stayed warm at the train stations? :) hehehe, yeah, I'm pretty well - I then with lots of luck got a nighttrain to munich, so I could sleep six hours on the train instead of at Hannover train station ;) :) yeah, nice city - just not too much going on there at night ;) amette: you around? ah, I think I found the answer! class="linkbut {if $listpages[ix].comments_cant > 0}highlight{/if} dunno how the hell i missed that b4 earlier question. :) re: yours, she was around a few minutes ago. i think amette is a guy he, then :) i got an idea about his irc logging issue but i cant seem to find when he is active on irc ;) an "online" indicator here would be nice. Caarrie|mac: pong hey ho can you run an eggdrop on your ssh? yeah, I'm pretty sure about that eggdrops can do the logging and you can run the rss script for the commits that i do ;) yeah, that sounds like a good idea... I thought of running a bot for the logging, too... but here are many bots already... ;) if you run the bot i can take PS|bot away ;) tiki|bot sounds better anyway :P still: with doing the logging _and_ offering the commit messages - it would make real sense to run that combination on irc.tw.o hehe ;) yea do you know how to setup an eggdrop? never did that, but I'm sure I will find out ;) and otherwise I have you as my living manual! ;) hehe how is eggdrop compared to supybot? never used a supybot I ran a supybot once for this channel and I found it rather nice.. >roulette *click* phew that's the _best_ feature of a supybot ;P hehe eggdrops have lots of scripts already on the net and are not too hard to setup [on linux] heh... to an American reader, anything with an "-ette" ending suggests a feminine name or word of French origin :) like the rss script i use i found on the website of the irc client i use :P MacLeod: yeah, that's true.. ;) Caarrie|mac: there are RSS scripts for Supy, too... I had something like that set up... don't remember for what.. I think Tiki bug-tracker... >rss hmm, nope :P >help hehe (help [] []) -- This command gives a useful description of what does. is only necessary if the command is in more than one plugin. >plugins >plugins list >help rss helps to know how to use the bot ;) Error: There is no command rss. hehe !tikiwiki SVN: Commit by pkdille :: r 14705 /trunk/templates/ (2 files): [MOD] formatting navbar in some templates SVN: Commit by rlpowell :: r 14704 /trunk/lib/setup/categories.php: Another PHP error fix. SVN: Commit by rlpowell :: r 14703 /trunk/lib/tikilib.php: Makes a PHP error go away. LOL - yeah, it has been some time ;) >help list (list [--private] []) -- Lists the commands available in the given plugin. If no plugin is given, lists the public plugins available. If --private is given, lists the private plugins. >list Admin, Alias, Anonymous, Channel, Config, Factoids, Filter, Fun, Google, Lookup, Misc, Owner, Seen, Services, and User tadaaaa! :D and no rss yup, seems so >list misc action, apropos, author, contributors, help, hostmask, last, list, more, notice, plugin, private, revision, source, tell, and version >list services ghost, identify, invite, nicks, op, password, unban, and voice >list admin addcapability, channels, ignore, ignores, join, nick, part, removecapability, and unignore >list amette Error: 'amette' is not a valid plugin. hehe LOL >whatis amette 'amette' could be (#1) real mind-bro of luciash, or (#2) a bot answering greetings *g* >whatis Caarri Error: No factoid matches that key. >whatis Caarrie 'Caarrie' could be a clever Tiki girl :) well, I'll look into the bots once irc.tw.o is setup... thanks for the good input Caarrie|mac :) i have not found a decent logging script but i bet you could ;) yw well, I will do my very best ;) gotta work a bit now - cu later :) hehe ;) it is just starting LOL at all hi luciash hey Caarrie :) enjoy laughing at us? sure :) enjoy your class Caarrie|mac business law not sure how much to enjoy aye :) but maybe you could re-use it sometime though to fight for open source ;) i am not going to school for law ;) i see :-p Is it possible to move a complete installation from one domain to another? what's the best way to set up a bunch of wiki entries that one group can read add and edit while another group can only read, do I have to set the prermisions on each individual page? you can use categories scooby99: assign permissions to the categories of the pages. I did that but some of the pages still can't be accessed... Paragtim: sure, just dump out the database, put all the files in a package, unpack, import db @scooby99: what permissions did you assign to the categories? the catagory perm says the user even has rights to view but they still can not "Permision denied" @scooby99: there's a new category permission in v2.0, tiki_p_view_categorized view tiki_p_view_categories Give them tiki_p_view_categorized as well By "them" he probably means the user groups. Look under Admin for "Groups" and give the proper groups that permission. still no joy :( I was thinking he'd need to assign it for the categories that he wants the read-only group to view Do I need to log out and back in again? I wouldn't think so... but :S i wouldn't think so, either I think I saw someplace that permissions are cached. Refresh the page which you're testing. But then, caching is screwed up if you have parts of the page restricted based on permission. But that's different from access control to the page. still no joh joy going to start the catagories from scratch this is starting to piss me off!!! now it's worse!! ! scooby99: Did you use the TikiWiki tool to clear the cache? multiple page delete doesn't work eiter... :( not sure where that is... found it that seems to be working :D Which is "that"? The act of clearing the cache, or are your categorized permissions working? hmm as soon as I add the pages to a catagory I get Permision denied.... You mean the permission denied comes when trying to save an edit which adds a category to a wiki page? no, I have pages that exist and when I add them to the catagory and browse them I get the permission denied... when the page was not in a catagory I could browse it... Does the user which is trying to browse belong a group which is allowed to read wiki pages? Their group has to be able to access wiki, then the categorized permission restricts what they can view. The wiki read permission has a name something like tiki_view_wiki that is on by default "inherited from anonymous" OK. Are you tying to browse the page as the same editor which added the categorization? That implies that the editor was earlier able to access the page. Oh, wait, I remembered something... looking for it.. the pages were built by admin, the person I'm trying to get to view the pages is called support Go to Admin>Categories and you probably have to turn OFF "Permission to all (not just any) of an object's categories is required for access" If you have topic categories, rather than only permission categories, you need that OFF because your topic categories have no permissions assigned. (topic categories are for things like "forest" and "tree" rather than the new "Group category editor" type of permission categories) That's got it! not sure what a topic is... Categories used to be used for connecting pages by subject, such as due to the pages being related to "forest" or "family" or "cars". Those categories probably don't have permissions attached. okay I get that, but where would the topic be set? or how I was referring to something like "cars" as a topic. I'm presently working on one site where topical categories include "family" and "event". I freely mark pages related to those topics with topical categories. The more restricted pages also get some "categoriezed" permission cats. ah okay, I see what you mean what did we toggle off though, it's not supper clear as to what it does has anyone noticed a problem with the search_new module not producing results from categories with individual permissions? we've got one tree of "restricted" categories and an associated group, but users in that group are not finding pages in that category with the search module. I think I saw documentation that it's not supposed to unless you have the permission. There are several options to turn off the restrictions on searching. i saw at least one restriction option, and left it on, because we're going for WYSIWYCA. but these users *have* permission You might check dev.tikiwiki.org for bug reports about searching. hm, looks like plugins can no longer be self-closed, e.g. {MODULE()/} In 2.0 I'm having trouble getting stuff to show in debugger console. $debugger->msg('ID is now: '.$id); I did use "global $debugger;" Ick. In 2.0 debugger console, typed: "print $url" Displayed was "print $url" and error message. I thought the was fixed in 2.0 stable. lphuberdeau: Would the cache permission leak bug be solved by adding smarty variable "group" to the $_smarty_cache_id in setup_smarty.php? Is smarty_setup.php part of Smarty, or is it TW addons to Smarty? hmm... what's the purpose of the freetag_current module, given that the freetag module does all the same stuff and more, and looks cooler? There isn't a comment in either one stating why one was created? you mean in doc.tw.o ? No, I meant a comment in the *.php haven't looked at the code yet many users won't :) Oh, sorry. Thought it was a dev question rather than a doc question. mod-freetags_current.php doesn't have any explanatory comments doesn't look like any of the mod-freetag* modules do Well, then they obviously don't exist. No worries, then. What is db/features.csv used for? fill tiki_feature ... which is used to display the new admin menus Grumble. The wiki cache is only about parsing the wiki? So I'll have to add an external cache. How do I make external cache aware of permissions? Alter the URL structure? lphuberdeau: You "Louis-Philippe" for the caching bug? http://dev.tikiwiki.org/tiki-view_tracker_item.php I've been stumbling around it all day. Looks simple...again. caching does not support perms - you can ony cache pages with no perm it may be assigned to me, but I have no plans for fixing it in the near future... priorities sylvieg: In 2.0 I don't see a perm test in tiki-index.php. get_perm_object redefined tiki-Pview.... And a page with no perms still gets cache refilled by someone who is an editor, causing edit icons to appear for non-editors. the cache should include a perm checking - but it is not done yet ... . icons on section? because I do not think edit on navbar are cached... it's only the section edit stuff and it is the plugin too that's 3.0 ;) Also {GROUP} gets cached, allowing invisble stuff to show up for wrong group. no plugin like GROUP.. you need to disable the cache on those pages How about if I add &$group on the page name, then have invalidate_cache($page) delete LIKE $page&% ... an easy patch will be to add the group who builds the cache and in tiki-indes if the user does not belong to the cache - rebuild the cache - this is easy to do.... but perhaps not efficient What do you mean "if the user does not belong to the cache - rebuild the cache"? I'm thinking of just creating different "page" names for each $group, so each gets own cache. Then making sure invalidate_cache clobbers all. godd idea - we have / had ? already that for menu or module... I do not remember... Looks like I just have to change a little in tiki_index.php and only change needed in tikilib.php is using LIKE in invalidate_cache(). Is '&' a good separator character? It seems illegal in wiki page names, and something impossible is best in such a separator. the cache name has a md5 or something like that of the list of groups of a user sylvieg: Eh? lib/wikilib.php shows no md5 on $page in update_cache(). sylvieg: Oh, I see. You think some kind of object has a group hash but can't remember which of the numerous kinds of objects has it. I think I noticed such a group hash someplace also as I stumbled around looking for this cache, but don't remember either where it was. I can not remember .. but i think that doing a name cache pageName.md5(concatenated list of group order by alphabetic name ) should work Yup. I'm trying to test now the format of $group. Hmm... the debug console isn't appearing for my normal multigroup user on my multigroup site. Better add Admin group to my list. Heh. Broke my debug console with a php typo in the print command. Does SQL with 'LIKE stuff&%' have portability problems? Eh? The wiki cache is kept within the same table as the original page? Ick. One line change in tiki-index.php to make only anon users get cached pages... is_null() might be enough, so is this overly cautious programming? Oh, foo. I closed my X terminal and lost the paste buffer. is there any page that explains how to link to a file in the file gallery (or is this possible?) I'd rather not link to a download page, but the file itself so it can be viewed inline if necessary if($prefs['wiki_cache']>0 and (is_null($group) or $group=='' or $group=='Anonymous')) { Landon: no. When files are uploaded they get a unique filename, so only TikiWiki knows the relationship between the given name and where the data is stored. With some hacking, in some configurations, it might be possible to do what you intend, but it would be a fragile situation. hm, I figured it would be that way what about attaching a file to a page? I've seen it referenced in places, but I've never seen the option on the tikiwiki I'm using (1.9.*) Good question. If nothing else, you can insert an IFRAME using {TAG}. .. with the IFRAME pointing at the file URL. Let's hear if someone else is aware and has other suggestions. Me, it's time to leave. thanks for the suggestions to view inline - I think you have to change the code tiki-download_file does a header("Content-Disposition: attachment; filename=\"$file\"") soo it means you are asked to download ok, well, I guess I might have to just put them in the main directory then and link from there seems to have a parameter display not to do that..