Myrkul: <brag> To everyone who was saying removing the tiki- prefix on pages is a huge task that probably isn't really worth it, I just accomplished it with a grand total of three (3) lines of code in the .htaccess file. I win. </brag>
For anyone interested, this is what I did:
ReWriteCond %{THE_REQUEST} ^[A-Z]{3,9} /tiki-(.+).php
ReWriteRule ^tiki-(.+).php %1.html [R=301,QSA,L]
ReWriteRule ^(.+).html $1.php [QSA]
Feel free to post it on the tiki site if you want :)
Oh, sorry, I forgot one more line further down in the file: ReWriteRule ^(.+).php tiki-$1.php [QSA] lphuberdeau: that's only half of the issue
you still need to get tiki to generate those links Myrkul: Eh, it's good enough
If you click on a tiki link that goes to a tiki- page, it'll change it to a non-tiki- page...the only time users will see the tiki- is in the little bar at the bottom of their browser that says where a link goes to when they mouse over it
hmm...i take that back, it appears to prevent me from logging in :(
meh, i was so close :(
why is there a tiki- in front of all the pages anyway? lphuberdeau: someone thought it was a good idea nearly a decade ago and the convention stuck Myrkul: maybe i'll try renaming all the files again...
it's sad really, seems like tikiwiki is a great cms, one of the best i've tried, but this is really preventing me from using it :( ***: rodrigoprimo has quit IRC (Quit: Leaving.) Myrkul: all right, i can't get this to work :(
you said before there's a ton of templates and some php to modify...any hints on where i should start looking for these? ***: redflo has quit IRC (Quit: Leaving.) Myrkul: anyone here? chealer: Myrkul: For the PHP side, tiki-sefurl.php, lib/smarty_tiki/modifier.sefurl.php and/or the tiki_sefurl_regex_out table. Myrkul: ok, 2 files, that's not so bad chealer: For templates, see for example templates/tiki-lastchanges.tpl line ~53 ( {$lastchanges[changes].pageName|sefurl} ) Myrkul: how many templates do i need to change? lphuberdeau: probably a few hundreds
but the sefurl out table wih the option enabled might help ***: Myrkul_ has joined #tikiwiki
Myrkul has quit IRC (Ping timeout: 265 seconds)
goj has quit IRC (Disconnected by services)
goj_killedByISP has joined #tikiwiki
goj_killedByISP is now known as goj Myrkul_: all right, well, there's no way i'm gonna change a few hundred templates
thanks for all the help, but tikiwiki is useless for me, i'll have to find a different cms lphuberdeau: sad to hear hiding the CMS was your #1 priority
good luck Myrkul_: ok, i'm trying to understand how these template files work...in the one chealer posted before (templates/tiki-lastchanges.tpl), there's a link that looks like this: <a href="{$lastchanges[changes].pageName|sefurl}" ... does this mean that all i need to do to add the sefurl is add |sefurl to every link in every .tpl file in the templates directory?
when you said that i need to edit a few hundred template files, i thought it would actually involve major changes, a lot of work...if all i need to do is add |sefurl, i can write a script to do that in a matter of minutes...
and it's not that i'm trying to hide the CMS btw, removing the powered by tiki in the footer of every page would be a lot more effective if i was trying to do that...i just find it looks bad
the guy in the sourceforge post chealer posted earlier sums up my thoughts well: "You would never hide this from anyone who desired to check, but IMO having that info in urls is just "noise" for end users."
as an aside, what global permission is it that makes admins able to see everything in menus even if they shouldn't be able to?
and how do i rename to myrkul without the underscore? :P ***: Caarrie|away is now known as Caarrie|sleeping Tiki|bot: Recent Bug: Tracker item: #4046 - - Category field in tracker not displayed - http://dev.tiki.org/tiki-view_tracker_item.php?trackerId=5&itemId=4046 Myrkul_: If you guys aren't answering me because I said tikiwiki is useless, I sincerely apologize for that... I didn't mean to offend anyone, and I do still plan on using tiki, whether or not I figure out how to get rid of the tiki- prefix.
And I do want to stress, again, that I don't want to remove the tiki- prefix from the pages because I'm trying to hide the CMS I'm using, of course I'll give credit where credit is due, I didn't remove the powered by link in the footer of all the pages. I just want to remove the prefix because I don't particularly like seeing it there on every page, it isn't needed. luciash: Myrkul_: hi, in theory u should be able to get rid of the prefix by using rewrite mod in .htaccess Myrkul_: I tried that, it only works one way though luciash: hmm Myrkul_: Getting user_preferences.php to point to tiki-user_preferences.php is easy, but if you click on the preferences link under mytiki in the menu, it still goes to tiki-user_preferences.php luciash: i think i was able to do something like that, let me check Myrkul_: I added a rule to the tiki_sefurl_regex_out table in the database, but as I found out here, it doesn't actually do anything unless you modify a couple PHP files and a few hundred templates, and I'm afraid I have no clue how to do that :(
I did come up with a hack using the rewrite mod as you said, with a couple extra redirects, but it had side effects, notably making it impossible to log in :P
Never did figure out why that happened :( luciash: Myrkul_: on http://www.kincwood.cz/?no_bl=y&page=home if u use the switch lang dropdown, it doesn't show the tiki-index.php
Myrkul_: i don't remember exactly how i did that though :) Myrkul_: Yes, turning on SEFURLs in the preferences fixes some pages, notably wiki pages which is a majority of the site...but it doesn't do everything
BTW, how do I rename? :P luciash: here ?
use /nick Myrkul ***: Myrkul_ is now known as Myrkul Myrkul: thank you :)
ok, so, i have a few pages on my site which i want to be visible to everyone, and the rest will only appear when you log in. when logged out, only the public pages will appear obviously, but once you log in i want all those public pages to collapse under one header, public site
i came up with a hack, where i have two sets of the pages, the first set at the root level of the menu, and visible to anonymous, and the second set as subpages under a public site section, all only visible to registered
(if anyone has a better solution, i'm open to ideas btw)
but the problem with that is, admins see both sets, even though in theory they shouldn't see the first set - it's set to be visible only to anonymous
is there a global preference or something that allows admins to see every menu item regardless of the permissions set to them?
a global permission, i mean luciash: there is setting "Display anonymous modules only to anonymous" if that helps Myrkul: hmm, i'll try that...are menu options considered modules though? luciash: nope
menu options are menus related, menus can be assigned and displayed through modules Myrkul: hmm, so you're saying make two different menus? that could work luciash: yup Myrkul: let me try that - btw, where is that setting? :P luciash: on Modules Admin panel i believe
tiki-admin.php?page=module Myrkul: ah yes, hide anonymous modules from admins, that would do it :)
my anonymous-only set of menu options are still showing though, i guess i do need to make a separate menu
thanks for the help :) luciash: you could also put in the Custom User module something like {if empty($user)}{menu id=43}{else}{menu id=44}{/if}
then you would have only one assigned module for all and it will show the menu depending on logged in/out state Myrkul: i'm not really sure how to do that, so i'll stick with the solution i understand :P
<-- tiki newb luciash: but be careful, if you make syntax error u can easily lock yourself out on blank page
yup yup, np Myrkul: it would be nice if the positions of menu options renumbered themselves when you move things around, like module orders do
is that already a feature request? luciash: not sure, iirc they go by 10 steps so you can fit something in between usually Myrkul: yeah, i could, but i'm ocd so i'd renumber them all anyway to keep them 10 apart if i had to fit something in between :P luciash: ocd ?
:) Myrkul: obsessive compulsive disorder luciash: ah
:) Myrkul: works perfectly :)
where would i go to submit a feature request?
found it luciash: ok Myrkul: do wish list items submitted go to a pending place first, where they need to be accepted by admins, or something?
i filled everything in and hit save, and it seems nothing happened... :(
oh, never mind, i wasn't sorting by date :P Tiki|bot: Recent Bug: Tracker item: #4047 - - Renumbering menu option positions - http://dev.tiki.org/tiki-view_tracker_item.php?trackerId=5&itemId=4047 Myrkul: ah, there it is :)
anyone here? luciash: i am back Myrkul: found and fixed my first tiki bug :) luciash: cool
bbl ***: arildb has joined #tikiwiki arildb: hm-m ... The intro message to this IRC channel says "Tiki 7.2 is out!"...should probably be updated marclaporte: Myrkul: ready for commit access? ***: arildb_ has joined #tikiwiki
arildb has quit IRC (Ping timeout: 240 seconds)
Caarrie|sleeping has quit IRC (Quit: bye see you later)
rodrigoprimo has joined #tikiwiki
rodrigoprimo has quit IRC (Quit: Leaving.)
arildb__ has joined #tikiwiki
arildb_ has quit IRC (Ping timeout: 240 seconds)
Caarrie has joined #tikiwiki
Trebly has joined #tikiwiki
Trebly has quit IRC (Read error: Connection reset by peer)
arildb_ has joined #tikiwiki marclaporte: polom
Myrkul: ping ***: arildb__ has quit IRC (Ping timeout: 240 seconds)
sylvieg1 has joined #tikiwiki
arildb_ is now known as arildb
Caarrie is now known as Caarrie|away
Trebly has joined #tikiwiki
redflo has joined #tikiwiki
arildb_ has joined #tikiwiki
arildb has quit IRC (Ping timeout: 240 seconds)
xavi has joined #tikiwiki xavi: polom ***: arildb__ has joined #tikiwiki
arildb_ has quit IRC (Read error: Connection reset by peer) Jyhem_laptop: Polom ***: lindonb has joined #tikiwiki xavi: hi Jyhem_laptop Jyhem_laptop: hi Xavi
did you upgrade your site to 8.1 ? xavi: using svn in a couple of sites with 8.x, and yes, they are updated
and I'm currently testing a slight improvement to the newsletters ui (to show the icon for archives), but I'm failing...
it should be trivial... but I don't get the icon to show... (yet )
btw, I need to learn how to use the "screen" program...
and I remember you told me you were a fan of it :-)
do you have a link to a good tutorial or howto use screen (or equivalent in ubuntu) for newbies?
^ Jyhem_laptop
brb ***: xavi has left
xavi has joined #tikiwiki Jyhem_laptop: No doc right on hand xavi: ok Jyhem_laptop: I see 2 main ways of using screen xavi: quick question: how do I have to start a ssh session to a remote server so that when the conection is liost, I can re-conect and keep working where I was before loosing connection? Jyhem_laptop: on the remote server: screen -S NAME
(choose the name)
then work normally
When you lose connection, do ssh again there and type: screen -x NAME
there you are
Plus, you can ssh from a third computer and also do screen -x NAME and share the session with yourself :-) xavi: thanks! :-)
I saw that on ubuntu, there seems to be some easier program: byobu, based on screen. https://help.ubuntu.com/community/Byobu
"easier": well, I don't know. Extending screen maybe (and maybe then, more complicated?) Jyhem_laptop: First time I hear about it xavi: I'll see (I'll have to learn how to use the basics of screen). thanks for your tip
ok Jyhem_laptop: "ctrl-A l" readapts to the terminal size (can be useful)
there are many other commands starting with ctrl-a but less immediately useful :-) xavi: ok, thanks
brilliant, Jyhem_laptop, it works! :-)
thanks heaps :-D Jyhem_laptop: np ***: sylvieg1 has left xavi: mmm, I need some help with newsletters... what is the purpose of $channels[user] in line 101 in 8x of templates/tiki-newsleters.tpl ?:
line is: {if $channels[user].tiki_p_subscribe_newsletters eq 'y'}
I'm willing to add the icon for newsletter archives...
and if I add an if clause like:
{if $channels[user].tiki_p_view_newsletters eq 'y'} foo {if}
nothing is shown
but if I just add something without this $channels[user] thing (as in tiki-admin_newsletters.tpl), then the "foo" is shown
i.e.:
{if $tiki_p_view_newsletter eq 'y'}
Jyhem_laptop: any clue? ^
or maybe sylvieg or lphuberdeau around for this question? -: Jyhem_laptop not very familiar with channels yet :-( xavi: ok
neither do I ***: Trebly_ has joined #tikiwiki
Trebly has quit IRC (Ping timeout: 240 seconds)
Trebly_ is now known as Trebly CIA-46: tikiwiki: 03xavidp * r38788 10/branches/8.x/templates/tiki-newsletters.tpl: [FIX]Show link to newsletter archives for users with the permission to see them.
tikiwiki: 03xavidp * r38789 10/branches/7.x/templates/tiki-newsletters.tpl: [bp/r38788][FIX]Show link to newsletter archives for users with the permission to see them.
tikiwiki: 03xavidp * r38790 10/branches/proposals/6.x/templates/tiki-newsletters.tpl: [bp/r38788][FIX]Show link to newsletter archives for users with the permission to see them. ***: arildb__ is now known as arildb Myrkul: can i change the page you get sent to after logging in? CIA-46: tikiwiki: 03chealer * r38791 10/trunk/lib/language/WriteFile.php: [REF] get_strings: Try to clarify comment on punctuation handling ***: Trebly has quit IRC (Ping timeout: 240 seconds) xavi: Myrkul: yes, you can. Serch for "group homepage" or similar in the documentation
each group of users can have a page defined as their homepage Myrkul: cool :)
and it'll redirect there after you log in? currently after logging in you stay on the same page, except in logged in state... chealer: polom xavi: yes
hi chealer chealer: hi xavi. FYI, there are no more releases of Tiki 7 planned, they're very unlikely, so only grave issues would deserve a fix there xavi: Myrkul: there is also some option somewhere to also make that you are not redirected if you are doing login for an specific url (forum post, etc) Myrkul: i must be blind, i can't see the box to set the homepage in the group editor :P xavi: "deserve" I know Myrkul: the screenshots in the documentation seem to be from tiki8, i'm using 7.2.... xavi: but I might be using tiki7svn for some site, while some features that I need are buggy in 8.x
I've just found that contributions by author don't work properly in 8.x...
and contribution (types) either... I don't konw why Myrkul: yeah, i've looked 3 times, it's definitely not here... xavi: and I can't invest tons of hours each time to identify the extent of the broken part in the new tiki release.... :-/ (currently, 8x)
that's why I would appreciate coders backporting fixes to previous (supported) releases . If we are not supporting 7.x, then 6.x, etc. (and not many coders do, even for harmless backports)
Myrkul, it is. your help to fix documentation will be very appreciated
we seem to run a lot in tiki community...
and documentation (among many other things) is left behind
:-/ Myrkul: i can try... xavi: sorry I can't help more Myrkul: but i need to find where the setting is before i can add it to the docs :P xavi: I need to have some work done myself
yes, good luck navigating in the admin panels :-)
you'll get used to it (or using the search function, if you are lucky, you'll find what you are searching) Myrkul: do you think i should upgrade to 8.x, btw?
and how does upgrading work? will it revert the changes i've made to the source? xavi: upgrade: I'm not the best person to suggest you to upgrade. for important production sites, I'm still using 6.x (7.x was too bumpy by the time I tested some upgrsdes)
tiki 7.x seems more stable right now, but it's not supported any more ( :-/ ) Myrkul: hmm xavi: tiki 8.x is the current stable release, but it has some number of bugs still around unnoticed (not many people tested real upgrades)
so if your site is small, and you are using a relatively small amount of features, then yes, test an upgrade locally asap to latest 8.x
I would say Myrkul: all right, i'll try that xavi: if your site is big, and you have enough time, test an upgrade to 8.x locally asap also Myrkul: will it revert the changes i've made to the source, though?
no, it's small (atm anyway)
i only started working on it seriously yesterday :P xavi: if you have limited time, and your site is in real production with many users and many features, ... then "good luck" with whatever decision you make Myrkul: one user so far :P xavi: changes to the source: yes, you'll have to reply them, if you haven't comited to svn
s/reply/re-apply Myrkul: no clue how do to that :P xavi: which changes? Myrkul: there was a bug in the login module
coloring problem xavi: did you commited the fix? Myrkul: and i made a corresponding change in my css, too
i don't think i can xavi: chnges in css: if you apply then in "Admin home > look and fell> custom css/customization", then you'll keep them Myrkul: no, it was in the actual file xavi: otherwise, you 'll need to re-aply your changes to the new theme in tiki8 Myrkul: hrm, ok xavi: consider committing yor changes to svn, if they are fixes or general improvments Myrkul: how do i do that? xavi: http://dev.tiki.org/Commit Myrkul: page not found :P xavi: he he, hold on... (I'll make an alias...)
:-/ the alias was present already... but the alias links feature is broken in 8.x (chealer, fyi also) :-/
Myrkul: see this: http://dev.tiki.org/Commit+Code Myrkul: yeah, i found it :P xavi: another example of the still broken basic features in 8x
basic: of course, if you were using them extensively in your site (I was)
and we are/were in *.t.o sites
ok, back to work in other things
good luck, Myrkul ***: Trebly has joined #tikiwiki
xavi has left Myrkul: well, if basic features are broken, maybe i won't upgrade just yet... :P
mutter, i'm an idiot :P
i found how to set the group homepage Tiki|bot: New Forum Posts: Mobile Theme - http://tiki.org/tiki-view_forum_thread.php?forumId=14&comments_parentId=42633 ***: Trebly has quit IRC (Ping timeout: 240 seconds)
arildb_ has joined #tikiwiki
arildb has quit IRC (Ping timeout: 240 seconds)
Myrkul has quit IRC (Ping timeout: 265 seconds)
mark_doe has joined #tikiwiki
pascalstjean has joined #tikiwiki
marclaporte has quit IRC (Quit: Leaving.)
lindonb has quit IRC (Quit: lindonb)
pascalstjean has quit IRC (Quit: pascalstjean)
Trebly has joined #tikiwiki
pascalstjean has joined #tikiwiki
Trebly has quit IRC (Read error: Connection reset by peer) CIA-46: tikiwiki: 03changi67 * r38792 10/trunk/lib/ (4 files in 4 dirs): [ENH] Zend Code Styling - http://quality.tiki.org/job/Tikitrunk/146/violations/ ***: mark_doe has quit IRC (Ping timeout: 240 seconds)
fabricius has joined #tikiwiki fabricius: polom ***: pascalstjean has quit IRC (Quit: pascalstjean) CIA-46: tikiwiki: 03changi67 * r38793 10/trunk/lib/wiki-plugins/wikiplugin_dbreport.php: [ENH] Zend Code Styling - http://quality.tiki.org/job/Tikitrunk/147/violations/