fabricius: polom
PenguinMan98: an interesting idea
PenguinMan98: and interesting problem
astroo-: hello
PenguinMan98: I'm glad you agree
It seems like enabling that feature would automatically put that link somewhere
sup astroo
astroo-: hello yes and you?
PenguinMan98: fantastic.
Tiki|bot: New Forum Posts: Exciting times ahead with WebRTC (audio/video/data) - http://tiki.org/tiki-view_forum_thread.php?forumId=26&comments_parentId=47746
h2mster|afk: joined #tikiwiki
fabricius: PenguinMan98: maybe some different smarty necessary?
PenguinMan98: You tell me. I haven't really cracked open any of Tiki's code except for the tiki-login.php
can you even use smarty in the url like that?
fabricius: I do not think so .. let me think about that for some moments
PenguinMan98: yeah, http://screencast.com/t/gBaP0WpOtFy
didn't work
luciash: PenguinMan98: so you have the arg variables enabled ?
PenguinMan98: should be
I turned em on today
luciash: PenguinMan98: and also Admin > General > Navigation > Allow HTML in menu option names and URLs ?
PenguinMan98: hmm, let me check on that
erm...
luciash: PenguinMan98: and yes, you can REALLY allow THAT, unless you give admin permissions to edit the menu to someone you do not trust
PenguinMan98: http://screencast.com/t/mlttAfik
ok
I'll REALLY allow that
-: luciash knew that question will come next
PenguinMan98: heh
luciash: now lets see if the {{user}} is stil being escaped
*still
i recommend to use only User:{{user}} if you have SEFURLs enabled site
without wiki link syntax
PenguinMan98: still escaped
luciash: PenguinMan98: btw, if it is just single item menu it really makes no sense to put it as a menu but you could do that directly in custom module using smarty syntax
as i read more carefully now what you did
PenguinMan98: thanks. I'll try that
luciash: PenguinMan98: so you can scratch that idea, remove that menu and just put this into your custom module: <a href="User:{$user}">My Page</a>
fabricius: ah yes .. that
PenguinMan98: kk. In trying to delete that menu, I deleted my main left hand menu
-: PenguinMan98 headdesks
fabricius: ouch
PenguinMan98: dammit
luciash: oh man :) hope you have some recent backup
PenguinMan98: not of the database
fabricius: luciash PenguinMan98 .. I recon he means the main application menu
PenguinMan98: anyone know the id of the main application menu?
luciash: nope, i think he means his custom left hand menu ;)
PenguinMan98: default
fabricius: and I recon, he just deleted the module
PenguinMan98: I did both
fabricius: arrrghhh
luciash: ah, you just unassigned the module of app menu ? easy to put it back then
fabricius: deleted both???
PenguinMan98: kk
luciash: main menu is 42
default application menu
fabricius: module: "menu" -> param menuId=42
PenguinMan98: I deleted both modules. The menus are still there
42
gooood number
fabricius: yesss
luciash: yep, just do not delete the menus please ;)
fabricius: especiaslly not this one
luciash: modules can be easily assigned back
you lost just some params if you had them there
PenguinMan98: yay, my menu is back
fabricius: is it possible to delete 42? I do not think so
luciash: (it is not possible to delete app menu actually)
fabricius: not anymore, right
PenguinMan98: I eventually intend to hide it after I get my own navigation working
luciash: in some older versions it was possible
PenguinMan98: I hadn't modified it so I'm good
luciash: PenguinMan98: btw, did you know you can design your own menu in a wiki page and use that wiki page as your menu using the page menu module ?
PenguinMan98: it is not even possible to modify it ;)
PenguinMan98: menu 42
PenguinMan98: I know. I wanted to but it told me I needed to clone it first
I decided to put that off for later
smart features
@luciash pagemenu sounds awesome! I'll look into that
luciash: so hopefully now you are back on track :)
PenguinMan98: yes
thanks
luciash: see the docs, use force
bbl :)
PenguinMan98: link doesn't work
-: PenguinMan98 chuckles
luciash: wiki syntax must be off if you use HTML and smarty syntax in custom module
PenguinMan98: ((User:{$user}))
that worked for the link after I turned the wiki parsing on for the module
thanks for the tip
So if I wanted to do a custom php, I just do that in a plugin?
And then use that plugin in a custom module
What if I wanted to access the db in a plugin? Is there already hookups for that? Or do I need to add a connection string to the plugin?
Maybe I'll take a few modules apart and see what's inside
I gotta go
See you guys later on
thanks again!
redflo: left #tikiwiki
kstingel: joined #tikiwiki
polom
I'm trying to set up some trackers, but initial data is in a seperate SQL DB ...
astroo-: hello
kstingel: when adding the individual internal trackers, is "item_id" consecutive accross all trackers, or can each tracker commence numbering from "1"?
fabricius: hi kstingel afaik consecutive
kstingel: thanks fabricius, np ... I can add the consec ids to original DB once I've set data
goj_killedByISP: joined #tikiwiki
arildb_: joined #tikiwiki
luciash: kstingel: i think you can choose if it should be auto-assigned by item id or start at defined value
kstingel: luciash: I vaguely recall an option to keep original item IDs, but wasn't sure how that worked
will tinker a bit once I finish compiling src data and figure out best option ...
may be easier to just use customised SQL queries to interact with data
arildb__: joined #tikiwiki
arildb: joined #tikiwiki
arildb_: joined #tikiwiki
astroo-_v: joined #tikiwiki
astroo-_v_s: joined #tikiwiki
PenguinMan98: joined #tikiwiki
Back
ok. So I ran into an issue today
I had a module that showed the most visited forum posts
It let my registered users see guide-only material
lucky this wasn't a huge problem this time.
maybe I configured the module wrong?
If I don't set the category on the module, it should honor the category of the material it's asking for right?
On a totally unrelated note, does tikiwiki support content tagging?
I realize I could mimic this with categories but it'd be clunky
arildb: joined #tikiwiki
arildb__: joined #tikiwiki
arildb: joined #tikiwiki
-: PenguinMan98 flicks the switch on and off on arildb's router
PenguinMan98: *trollface*
chibaguy: joined #tikiwiki
polom
Happy to be here and hoping to be more in touch. New pc should make it easier. :-)
PenguinMan98: woot
I had a module that showed the most visited forum posts
It let my registered users see material that I'd restricted with a permissions category
maybe I configured the module wrong?
If I don't set the category on the module, it should honor the category of the material it's asking for right?
I know the most recent forum posts module works this way
chibaguy: hi PenguinMan98 -
PenguinMan98: sup chibaguy
chibaguy: Sorry I can't help much on that. ;-)
The module should respect the forum perms, I'd expect.
What Tiki version are you using?
If it's a version that's actively being worked on (9LTS or 11), then you could make a bug report at dev.tiki.org.
PenguinMan98: 10
right in between
Here's a question,
Say I wanted a module for the most recent forum threads posted in.
Do you think I should go ahead and create my own in the tikilib.php?
Or is it wiser to stay out of the core and add it perhaps as a plugin?
chibaguy: Hmm, good question. Maybe you could post that on the dev mailing list. (I'm a font of information here. ;-) )
PenguinMan98: fount*
chibaguy: heh
PenguinMan98: hehe
And say I did add it as a module, you all would desire that I push said module to the repo?
I know I have such little experience in the code base compared to you all but it seems to me from what I've seen so far that the forums are not quite added in the same manner as the other features
I just want to make sure my changes don't blow things up for future upgrades
Tiki|bot: New Forum Posts: Error configuration - Redirect to myself - http://tiki.org/tiki-view_forum_thread.php?forumId=6&comments_parentId=47750
arildb: joined #tikiwiki
joined #tikiwiki
chibaguy: PenguinMan98, normally new features etc are added in svn trunk for testing and then ported to the branch that'll be the next release (so trunk and then tiki 11). It'd be best to ask on the dev list about adding the module, I'd say. And thanks for taking the initiative on that.
(if you want to do it)
-: PenguinMan98 shrugs
PenguinMan98: As long as I'm doing the coding, I may as well share
chibaguy: Yes, that'd be nice.
PenguinMan98: As it says on the doc.tiki, no two sites have the same needs and indeed it seems that the one or two things I really want are two it just doesn't do out of the box
chibaguy: About the module, if an existing module could be given another parameter to show what you want it to show, that'd be a good route to go, rather than making a new module from scratch.
PenguinMan98: I can't believe there is a module for most viewed forum topics and one for most recent forum posts, but not one for most recent forum topics posted in.
chibaguy: I don't know about the code, though, and what'd be the best way.
Yeah, that seems like an obvious thing to be able to show.
PenguinMan98: And the one for most viewed forum topics seems to have issues displaying the wrong content. That or my site was configured wrong.
chibaguy: hmm, well, some things haven't seen much love for a while, so could be acting strange.
PenguinMan98: I created a category that restricts viewing a certain forum topic. However I don't think the forum post in that forum was tagged with the same category the forum topic itself was
I'm not sure if this could be the issue. I assumed if you post in a restricted forum, then it inherits that restriction
chibaguy: That'd be logical.
fabricius: joined #tikiwiki
PenguinMan98: I find that logic very much 'usually' applies around here
hehe
chibaguy: :-)
Emenems: Allo allo. Is there someone here that could give me information about cartograf ? I don't understand how to create a map. Is it linked to trackers ?
Jyhem_, salut :)
Jyhem_: Emenems: not much time (on the ove). What is it you want to do? Reproduce the cartograf website or just understand how maps are used?
s/on the ove/on the move/
Emenems: Jyhem_, both :) firt, understand the architecture behind cartograpf, and how to create a map
Jyhem_: I think that's the wrong way around :-)
Cartograf is so much more complicated and customized than "how to create a map"
Emenems: ok, any suggestion to better understand the cartograf project ?
Jyhem_: To create a map, you put the MAPS plugin in a page. Then the plugin will magically look for geotagged links in the middle column of the page
So you need to put some there with some other plugin which lists geotagged objects (like articles)
or like the user in the bottom of the page ("last mofied by user").
Then you get more control with the ''scope'' param
so it only shows what you want
Emenems: Jyhem_, if i'm not wrong, trackers are also geotagged items, aren't they ?
Jyhem_: they can when you give them a geolocate field, yes
Emenems: ok ok ... merci :) i'll take a look deeper in the documentation and i'll try
chibaguy: joined #tikiwiki
Jyhem_: Emenems: you might experiment on demo.tiki.org and come back with concrete questions :-)
redflo: joined #tikiwiki
fabricius: joined #tikiwiki
chibaguy: joined #tikiwiki
rodrigoprimo: joined #tikiwiki
chibaguy: joined #tikiwiki
Tiki-KGB: tikiwiki 03lphuberdeau r46454 10(7 files in 5 dirs)
tikiwiki [MRG] Automatic merge, branches/11.x 46417 to 46447
dabright: joined #tikiwiki
arildb: joined #tikiwiki
Tiki-KGB: tikiwiki 03arildb r46455 10trunk/lib/userslib.php
tikiwiki [FIX] Delete user's structure routes, when the user is deleted
chibaguy: joined #tikiwiki
rinnan1: joined #tikiwiki
nkoth|nelson: joined #tikiwiki
joined #tikiwiki
dhazel: joined #tikiwiki
Tiki-KGB: tikiwiki 03lphuberdeau r46456 10trunk/installer/installlib.php
tikiwiki [MOD] Allow to use an alternate database dump for clean installations
lphuberdeau: joined #tikiwiki
Sp4rKy: joined #tikiwiki
chibaguy: joined #tikiwiki
Sp4rKy: joined #tikiwiki
changi: joined #tikiwiki
fabricius: joined #tikiwiki
Tiki-KGB: tikiwiki 03lphuberdeau r46457 10trunk/ 03db/install.ini.dist 10installer/installlib.php
tikiwiki [MOD] Use a .ini file to configure the dump to load
dabright: joined #tikiwiki
luciash: polom
chibaguy: joined #tikiwiki
Tiki|Log: joined #tikiwiki
Topic: for #tikiwikiis now Tiki Wiki CMS Groupware - The Free and Open Source Web Application with the most built-in features - Tiki 10.2, 9.4 LTS and 6.10 LTS are out! Question? Just ask. We log the channel @ http://irc.tiki.org (start line with [off] to exclude message from log)
dabright1: joined #tikiwiki
dabright: joined #tikiwiki
arildb: joined #tikiwiki
Telesight: joined #tikiwiki
dabright: joined #tikiwiki
dabright1: joined #tikiwiki
sipherdee: joined #tikiwiki
zaki: joined #tikiwiki
arildb: joined #tikiwiki
PenguinMan98: joined #tikiwiki
dabright: joined #tikiwiki
lphuberdeau: joined #tikiwiki
dabright: joined #tikiwiki
joined #tikiwiki
arildb: joined #tikiwiki
PenguinMan98: So, I finally found the docs that tell me the correct way to add modules
I started work on my first custom module. I got it all set up the way I thought it should have been but it seems the template file in templates/modules is loading without calling the php function file in (modules/)
so it's trying to load without data
unfortunately I won't have access to those files again until tonight
dabright: joined #tikiwiki
joined #tikiwiki
Tiki-KGB: tikiwiki 03lphuberdeau r46458 10trunk/lib/core/ 10(19 files in 3 dirs)
tikiwiki [MOD] Allow tracker fields to declare available facets
dabright: joined #tikiwiki
Tiki|bot: New Forum Posts: Error configuration - Redirect to myself - https://tiki.org/tiki-view_forum_thread.php?forumId=6&comments_parentId=47750
New Forum Posts: Exciting times ahead with WebRTC (audio/video/data) - https://tiki.org/tiki-view_forum_thread.php?forumId=26&comments_parentId=47746
New Forum Posts: tracker autoresponder tpl - https://tiki.org/tiki-view_forum_thread.php?forumId=26&comments_parentId=47745
changi_: joined #tikiwiki
Tiki|bot: New Forum Posts: Error configuration - Redirect to myself - http://tiki.org/tiki-view_forum_thread.php?forumId=6&comments_parentId=47750
New Forum Posts: Exciting times ahead with WebRTC (audio/video/data) - http://tiki.org/tiki-view_forum_thread.php?forumId=26&comments_parentId=47746
New Forum Posts: tracker autoresponder tpl - http://tiki.org/tiki-view_forum_thread.php?forumId=26&comments_parentId=47745
arildb_: joined #tikiwiki
dabright: joined #tikiwiki
PenguinMan98: Hey guys,
back on the question of custom user pages...
dabright1: joined #tikiwiki
PenguinMan98: It does something really weird when you try to edit it
http://screencast.com/t/LnYnoSYghegr
Fixed it by changing ((User:{$user}|{$user}))
to [/tiki-editpage.php?page=User:{$user}|{$user}'s page]
luciash: PenguinMan98: why you did not use the <a href="User:{$user}">User's page</a> ?
saves some parsing time
PenguinMan98: because it didn't work
luciash: it must work
PenguinMan98: I musta done something wrong yesterday then cuz it works today
luciash: it should just tell you the page does not exist if it does not and ask if you want to create it
in worst case
yep
might be
dabright: joined #tikiwiki
redflo: joined #tikiwiki
PenguinMan98: Nope, still doesn't work
Bsfez: joined #tikiwiki
PenguinMan98: It makes a pretty looking link but when you click on it, nothing happens
dabright1: joined #tikiwiki
arildb: joined #tikiwiki
dabright: joined #tikiwiki
luciash: PenguinMan98: nothing ?
PenguinMan98: nothing
luciash: ah, i see, it is because of the :
it thinks User: is a protocol simmilar to http:
you need to put ./ in front of it
PenguinMan98: why you did not use the <a href="./User:{$user}">User's page</a> ?
like thsi
*this
PenguinMan98: <a href="./User:{$user}">User's page</a>
s/it/browser/
dabright1: joined #tikiwiki
luciash: in "it thinks" ;)
PenguinMan98: ...
Now I don't have permission to access it?
-: PenguinMan98 headdesks over the silliness of a single link
luciash: did you put "./" or "/" ?
the dot is mandatory
PenguinMan98: [/tiki-index.php?page=User:{$user}|{$user}'s page] Works. If you click on it and the page isn't there, it asks you to create it
I copied your example exactly
luciash: ok, maybe you do not have .htaccess enabled site for SEFURLs
that is why you need to put the tiki-index.php?... there
-: PenguinMan98 shrugs. Alls I know is: this works
PenguinMan98: It's the syntax used to link to forums / etc
arildb: PenguinMan98: You can check if SEFURL is activated in the admin panel: tiki-admin.php?page=sefurl
PenguinMan98: what is a SEFURL?
arildb: Search Engine Frriendly URLs, which enables you to use the url: "MyPage"m, instead of "tiki-index.php?page=MyPage"
dabright: joined #tikiwiki
PenguinMan98: brilliant!
Bsfez: joined #tikiwiki
Hello Lu, all
PenguinMan98: yo
dabright1: joined #tikiwiki
dabright: joined #tikiwiki
luciash: hey Bsfez
dabright1: joined #tikiwiki
arildb: joined #tikiwiki
dabright: joined #tikiwiki
joined #tikiwiki
joined #tikiwiki
PenguinMan98: even the link I'm using fails if the username has a space in it
Who even wrote this thing?
How were they intending the feature be accessed?
dabright1: joined #tikiwiki
PenguinMan98: gonna try this: [/tiki-index.php?page=User:{$user|replace:' ':''}|{$user}'s page]
dabright: joined #tikiwiki
PenguinMan98: aaaaand that makes the module explode
joined #tikiwiki
-: PenguinMan98 kicks his router
arildb: joined #tikiwiki
rinnan1: left #tikiwiki
rinnan: joined #tikiwiki
Tiki-KGB: tikiwiki 03lphuberdeau r46460 10trunk/lib/ 10test/core/Search/Elastic/TypeAnalyzerTest.php 10test/bootstrap.php 10core/TikiDb/Initializer.php
tikiwiki [FIX] Test suite, PHP 5.5 compatibility
dhazel: joined #tikiwiki
lphuberdeau: joined #tikiwiki
joined #tikiwiki
joined #tikiwiki
astroo-: joined #tikiwiki
hello people
dabright: joined #tikiwiki
arildb: joined #tikiwiki
rinnan: Howdy
astroo-: hello
rinnan: Does anyone know if there is a way to script renaming of users? We are moving to a new domain and I need to rename most users from <user>@old_domain to <user>@new_domain. I am able to do this manually using the Admin - Users - Adit Account Settings menu but I would love to be able to automate this procedure to enable a swift (and hopefully error free) migration. Any pointers would be most appreciated :)
We're using LDAP for user authentication, hence the need to rename to keep user history
PenguinMan98: Well..I'm pretty new around here but I'll take a stab
You could create a custom module to do this. load it anywhere and turn off all the display elements so it just quietly runs.
$query = "somequery to rename stuff"
$tikilib->query($query)
when you don't need it anymore, you just remove the module
rinnan: PenguinMan98: Thanks, I'll look into that approach. Just need to figure out the query itself. I'll dive into the code once I get som time on my hands
arildb: rinnan: beware of the many references by name (username in this case).
PenguinMan98: SHould be the email field in the users_users table right?
rinnan: arildb: I know, thats why I'm reluctant to take any chances
arildb: rinnan: see userslib.php function change_login. Maybe it does what you want (for 1 user)
rinnan: arilldb: It seemed to do the job properly when executed via that adminmenu
havent gotten around to examining exactly what that menu executes yet
arildb: rinnan: You could create your own PHP script to load all affected users and calling change_login
PenguinMan98: and put it in a custom module?
arildb: a regular PHP script should do
place the script in the tiki root, and include require_once ('tiki-setup.php');
at the top. Then you should have access to tiki functionality
PenguinMan98: global $tikilib;
arildb: yes, you may have to create instances of diffent libs
use TikiLib::lib('tiki'); instead of global $tikilib
rinnan: excellent suggestion
will try it
Tiki-KGB: tikiwiki 03arildb r46461 10trunk/tiki-mailin-code.php
tikiwiki [NEW] Add logging to mail-in module
tikiwiki 03arildb r46462 10trunk/lib/logs/logslib.php
tikiwiki [SEC] Always use parameters in queries to prevent XSS
tikiwiki 03arildb r46463 10branches/11.x/lib/logs/logslib.php
tikiwiki [bp/r46462][SEC] Always use parameters in queries to prevent XSS
tikiwiki 03arildb r46464 10branches/9.x/lib/logs/logslib.php
tikiwiki [bp/r46462][SEC] Always use parameters in queries to prevent XSS
rinnan: left #tikiwiki