Search the website and IRC logs

#TYPO3 IRC log from : Friday 23 October 2009

Year: 2007 2008 2009 2010 2011 2012
Month: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
09:20 marcuslind|WORK Hello Peeps, Started developing extensions and got a quick question. How do HTML forms work? I want a form in the backend (mod1/index.php) where I can input data and then recieve it in another function and write it to the database. Pretty basic
09:20 marcuslind|WORK but what's the action="" for the form etc?
09:21 gerards marcuslind|WORK: I suggest you action to the script itself. todo that maybe you can leave it empy?
09:21 gerards s/empy/empty/
09:22 marcuslind|WORK So I just leave it empty? But how does it then know witch function to send it to?
09:23 gerards i suggest you pass in a get/post parameter, indicating what action you want to perform. and in your script, swich-case that parameter.
09:23 gerards TIMTOWTDI marcuslind|WORK :)
09:23 marcuslind|WORK What do you mean with switch-case that parameter?
09:24 marcuslind|WORK I know what a switch is, but didnt get what you meant with switch-casing a post value
09:24 marcuslind|WORK function 1) "outputHtmlForm()", returns html. function 2) insertValue(), it should recieve the data with the $_POST[] and then insert it with a sql.
09:24 gerards so in your form you have <form action=""><input type="hidden" name="action" value="update_db" /></form>
09:25 gerards your script would then have switch($_GET['action']){ case 'update_db': $this->updateDb(); break; default: $this->displayForm(); break;
09:25 gerards er...... does that make sense? :D
09:27 marcuslind|WORK ye I guess.
09:27 marcuslind|WORK but
09:27 marcuslind|WORK you dont send any variables to the updateDb()
09:28 marcuslind|WORK You only tell the code the execute whatever is there dont u?
09:28 marcuslind|WORK updateDb() still needs the $_POST[] variables
09:28 marcuslind|WORK to insert anything to the database.
09:28 gerards yep. :) I'm sure you can work that out. :)
09:28 marcuslind|WORK ye lets hope so
09:28 gerards anywayz that's how I'd do it. you might do it another way.
09:29 marcuslind|WORK Ye, thanks mate.
09:29 marcuslind|WORK appreciate it.
09:29 marcuslind|WORK :)
09:44 MasterYin Good Morning
09:45 nuck_work hello everyone, i'm having a bit of a problem installing typo3, from what i can tell i did everything right but all i get is a blank white page when i point my browser to the adress
09:45 nuck_work MasterYin: good morning
09:51 nuck_work i can even read the INSTALL.txt in the browser, but when i try to access the index.php all i get is a blank page
09:52 nuck_work and the symlink works too
09:53 nuck_work hmm... the index.php is empty o_o
09:56 tPl0ch hello, how do I get the last database update time via typoscript, i.e. I want to show "this website was updated at d.m.Y, H:m:i"
10:02 MasterYin hey tP10ch check this http://www.typo3forum.net/forum/typo3-4-x-fragen-probleme/17225-last-update-nur-startseite.html
10:02 MasterYin It's German but the Script is the same
10:03 maholtz|WORK @tPl0ch:data = page:SYS_LASTCHANGED
10:03 maholtz|WORK afaik
10:03 maholtz|WORK @nuck_work: perhaps your symlinks doesnt work?
10:04 nuck_work maholtz|WORK: im going through the INSTALL.txt one more time
10:04 MasterYin hey Maholtz :)
10:04 maholtz|WORK @nuck_work: what i meant is: perhaps your apache doesnt allow symlinks
10:04 tPl0ch ok, SYS_LASTCHANGED is the way to go. Can I have that globally or only on a per page basis
10:04 tPl0ch as in including subpages i.e.
10:04 maholtz|WORK he MasterYin:)
10:05 maholtz|WORK @tPl0ch: afaik only per page basis
10:05 nuck_work maholtz|WORK: im getting a result now, "install tool is locked" but i know what to do about that =)
10:05 maholtz|WORK @tPl0ch: you could use CONTENT to get the latest updated tt_content object
10:05 tPl0ch maholtz|WORK: hmm, what would be the best approach to get the global lastUpdate time?
10:06 tPl0ch yeh, but then if only page titles are edited, they won't be in there, am I right?
10:06 MasterYin got a question don't know how to google for... tt-news-Topic... I'm storing the news in different sysFolder and I want the news in folder id=xy only beeing visible for the users of FE-Group z ...
10:07 MasterYin setting it per default not setting the access in every news-item
10:07 maholtz|WORK many ways
10:07 maholtz|WORK you could set a default value for that news element
10:08 maholtz|WORK you could change the tt_news config depending on the group via condition
10:08 maholtz|WORK you could add two plugins - one for all, the other only for your special group
10:08 nuck_work hmm, step 1 asks me for username, password and host
10:08 maholtz|WORK (not really sure how good that would work)
10:08 tPl0ch nuck_work: database
10:08 nuck_work i usually create user + db in the same step
10:09 nuck_work tPl0ch: does typo3 create the database by itself? do i need to grant it db creation privileges?
10:09 tPl0ch of course
10:09 nuck_work bleh
10:09 tPl0ch how else would typo3 be able to create one
10:09 maholtz|WORK or you could create the db yourself and select it
10:10 nuck_work oh cool
10:10 tPl0ch either you create it via phpmyadmin i.e
10:14 tPl0ch maholtz|WORK: how would I search CONTENT and pages for the last date? Should I write a little plugin that gets MAX(created) and joins pages and content table?
10:14 maholtz|WORK i would use CONTENT for that (pure typoscript)
10:15 tPl0ch maholtz|WORK: ok, I am gonna look up some scripts in the cookbook
10:16 maholtz|WORK yep, i bet it is in there:)
10:18 nuck_work hmmm the admin asks me for a username and password, but i didn't specify any username :P
10:19 nuck_work or do i have to use the username nad password for the db?
10:21 nuck_work hmmm... doesnt seem to work =(
10:21 tPl0ch maholtz|WORK: so I would select tstamp field for table pages and for table tt_content and then compare and take the one that is the latest?
10:23 nuck_work help?
10:24 tPl0ch nuck_work: go to database analyzer
10:24 tPl0ch in install tool
10:24 nuck_work yup
10:24 nuck_work was there
10:24 tPl0ch create admin user
10:24 xaver any lightbox extansions for content (text ..)
10:24 tPl0ch nuck_work: there is a link at the bottom
10:24 nuck_work tPl0ch: thanks, i didnt see that
10:26 nuck_work hmm... there is already a username called admin
10:28 nuck_work bleh, this is great =(
10:30 tPl0ch yes
10:30 tPl0ch it's the standard admin
10:30 nuck_work well... i don't seem to have the password for that one =/
10:30 tPl0ch just use a different username
10:31 fuchur nuck_work "password"
10:31 tPl0ch since usernames are unique
10:31 tPl0ch or listen to fuchur, the white dragon
10:31 nuck_work tPl0ch: hehe, it's just that i usually use admin myself :P
10:31 tPl0ch nuck_work: don't forget to change the password
10:33 marcuslind|WORK Quick question about using .HTML templates when creating a extension. Do I need to specify the name of the .html template that I want the plugin to use? Or is it enough just to create a "pi1_template.html" file and the plugin will know to use it? =S Can't find much info about specifying the template-adress.
10:33 marcuslind|WORK Been looking through other extensions too like Macina Searchbox, can't find any link to the .html file anywhere.
10:37 tPl0ch maholtz|WORK: http://paste.phlogi.net/global_last_update/ <- would this be the right approach for my last update problem
10:40 tPl0ch marcuslind|WORK: you can use a config var to specify the location/name of the template file yourself
10:40 marcuslind|WORK tPl0ch: But I dont need to?
10:40 marcuslind|WORK If i use the pi1_template.html name will it find it automaticly?
10:40 marcuslind|WORK is there any "standard" name for the template?
10:41 tPl0ch marcuslind|WORK: are you using the kickstarter?
10:41 marcuslind|WORK Yes
10:42 tPl0ch I am not sure right now, but I think you can define a template file in the kickstarter as well
10:42 tPl0ch that will be used as default
10:42 marcuslind|WORK OK.
10:43 marcuslind|WORK Do you have any good source where I can read more about using templates in extensiondeveloping?
10:43 tPl0ch I have books
10:43 tPl0ch <- oldskool
10:43 maholtz|WORK @tPl0ch: looks good
10:43 marcuslind|WORK haha I got my Dmitry Dulepov's TYPO3 Extension Development the other day
10:44 marcuslind|WORK it's nice but there are some small stuff I feel like he didnt say much about.
10:44 tPl0ch Studies showed that reading screen is 30% less efficient
10:44 tPl0ch than reading print books
10:44 marcuslind|WORK Cool.
10:44 marcuslind|WORK Why is that? More disctrations?
10:44 marcuslind|WORK MSN, Firefox etc
10:44 tPl0ch I have TYPO3 4.0 from Galileo Computing
10:45 marcuslind|WORK How is it?
10:45 tPl0ch massive
10:45 fuchur i don't like it
10:45 fuchur it's labled "the developer's handbook"
10:45 fuchur (translated from german) :)
10:45 marcuslind|WORK And it's not?
10:45 marcuslind|WORK why dont you like it
10:46 fuchur no ... i think developing is about 10% if the book
10:46 fuchur they should have called it "the configurator's handbook"
10:46 fuchur ^^
10:46 tPl0ch lol
10:46 tPl0ch marcuslind|WORK: standard should be: O'Reilly Typo3 Cookbook
10:47 marcuslind|WORK ^^
10:47 tPl0ch in it's last edition covering 4.2
10:47 fuchur mh, i looked for a book about extension coding ... but t3 4.0 from galileo teaches me how to set up "last modified" in TS e.g.
10:48 fuchur now i got dmitry's book
10:48 fuchur but didn't get throu it yet
10:49 marcuslind|WORK The "TYPO3 Extension Development" book?
10:49 fuchur yep
10:50 marcuslind|WORK I finished it the other day.
10:50 fuchur it's good i guess?
10:50 marcuslind|WORK well
10:50 marcuslind|WORK while reading it I felt it was pretty hard to get through.
10:50 marcuslind|WORK I read it through
10:50 marcuslind|WORK then went back and started doing my first extension
10:51 tPl0ch just reading those books is only the half way
10:51 marcuslind|WORK and when I went back, that's when I felt that I've actually learnt alot.
10:51 marcuslind|WORK :)
10:51 marcuslind|WORK But in my opinion most developing books are boring and hard to get through
10:52 fuchur the problem is: i'm coding extensions for 2,5 years now ... there is few literature teaching me something new without beeing too boring :)
10:52 marcuslind|WORK I need a lot of exercices and tests in the book
10:52 marcuslind|WORK on each chapter
10:52 fuchur most o the time i start reading, it start's with some basics and that bothers me :D
10:52 florian_ hi
10:53 fuchur and i stop readin
10:53 fuchur hi florian
10:53 fuchur that's why i decided to read dmitry's book from the first to the last page :)
10:53 pmk65 all US books contains a huge pile of useless information. (It's because they get payed by number of pages. so they always include a lot of general info.)
10:53 fuchur even the basics
10:54 florian_ is there a link in the backend to the frontend, which I don't see. Or is it possible to create a shortcut in the backend to the frontend?
10:54 pmk65 Dmitrys book is one of the few really good TYPO3 books.
10:54 fuchur pmk65 good to hear ;)
10:54 StaffanE florian_: the view mode shows the frontend
10:55 florian_ StaffanE: ah, in the menu View
10:55 pmk65 I usually see if I can find a (pirate) ebook version on the net. And if that looks good, I buy it.. :)
10:55 florian_ thanks
10:55 fuchur pmk65 is dmitry's book on the net? i bought it, trusting that he would write something good :D
10:56 tPl0ch pmk65: the old "try before buy" method
10:57 pmk65 fuchur> don't know, but there's a lot of ebooks on this site: http://avaxhome.ws/ (not totally legal. ;) )
10:58 fuchur pmk65 i have to buy anyway :D like readin' stuff in german
10:58 pmk65 try searching for typo3 on that site
10:58 fuchur did it :D
10:59 fuchur lol
10:59 fuchur searched for "typo3"
10:59 fuchur result: "Joomla! Handbook for beginners"
11:06 kotelette Hi everybody! Maybe someone could help me with two questions regarding the sr_language_menu and staticpub
11:07 kotelette when i use staticpub the gif flags for the language menu are broken :-( the image is linked correctly but every program says it's broken...
11:08 ZaFantasy hi
11:09 ZaFantasy if I set some variables for my extensions in setup.txt, how I can get them in plugin .....piN.php file ?
11:10 xaver pmk65: hi ;) i forget the TS config for no head
11:12 pmk65 disableAllHeaderCode
11:13 xaver THX
11:18 schabracke hey there!
11:20 pmk65 ZaFantasy: Read this -> http://wiki.typo3.org/index.php/TypoScript_-_PHP_Interaction
11:21 ndee is there a way to iterate thru all $this->pi_getLL of a pi?
11:21 ZaFantasy pmk65 thanks
11:22 tPl0ch http://www.phlogi.net/f/t3/tsp/sp/-c4442ff59a/ <- why is the CONTENT element not rendered in this example (line 52)
11:24 schabracke can someoone help me with "bddb_flvvideogallery"- i got strange xml errors here: http://www.unseremusik.at/nc/videos/brunnerbrunner-titel-1-5.html
11:24 schabracke the only browser which is working is firefox - all others get xml errors and i dont know why?!
11:24 tPl0ch select should return 1 element with 1 field tstamp, which should be rendered as data
11:25 tPl0ch *date
11:25 tPl0ch but somehow I don't get anything
11:27 tPl0ch ok, it' because of the join
11:28 schabracke noone has a clue?
11:30 Recnelis Hey guys, when having multiple sites in one typo3 backend - I.e. mysite.com and testsite.com - Will testsite.com be made in a frame automatically? If mysite.com is the "orginal" site(The first added to BE) so to speak
11:41 maholtz|WORK @tPl0ch: there is no need to query pages imho
11:45 kotelette @schabracke: i cannot see any errors on the site
11:46 tPl0ch maholtz|WORK: somehow it's giving me a date from last year
11:46 tPl0ch which is impossible
11:46 schabracke @kotelette
11:46 maholtz|WORK wrong order?
11:46 tPl0ch how can I specify the order, tstamp DESC?
11:46 maholtz|WORK orderBy = tstamp DESC
11:46 maholtz|WORK or order
11:46 maholtz|WORK do not know without look into tsref
11:48 schabracke @kotelette it only works with firefox
11:48 kotelette ah ok
11:48 tPl0ch maholtz|WORK: fixed, thanks, might put that into t3 snippets
11:49 kotelette @schabracke: but IE8 looks fine too
11:49 kotelette @schabracke: chrome also
11:51 schabracke and i dont know why??!?! i have no clue, you?
11:52 kotelette has anone a tip for this problem: i want to edit the html content in staticpub (hook already works) and used the DOMDocument::saveHTML at the end but that seems to break the html string (flash installation not found, broken gifs) etc
11:53 maholtz|WORK @tPl0ch: well, snippets is offline since months
11:53 kotelette @schabracke no one of these 3 browser showed me an error ;-) i think i did not get the problem
11:53 schabracke @kotelette: dude, EVERY (safari, ie7, opera) showed me errors
11:54 schabracke except firefox
11:55 tPl0ch oha
11:55 tPl0ch havn't been doing a lot of typo3 recently
11:58 tPl0ch hmm, I need to get all page ids to put into select pidInList for my global date thing? would I select all pages in a temp object and then copy that to pidInList?
11:59 kotelette @schabracke: FF3, IE8, Opera10, Safari4.3, Chrome... no errors visible at all
11:59 schabracke on this brunner & brunner video site???
11:59 kotelette yes
12:00 schabracke hmmmmm
12:02 Gunjubas hi all
12:03 schabracke @kotelette i write you the error in private, cause its very long :)
12:03 kotelette ok :-)
12:03 Gunjubas expland me, how Typo3 & content of page linked? it's need to be described in TS?
12:04 Gunjubas becouse i don't understand where is "left" & "right" area of content
12:05 schabracke @kotelette u got it?
12:05 tPl0ch How can I select ALL tt_content elements?
12:05 Gunjubas *explein
12:05 tPl0ch uidInList = *
12:05 tPl0ch ?
12:07 tPl0ch unfortunately, it's always using the pidInList parameter "this"
12:08 Gunjubas soryy man, i mean wrong word in my message "expland = explain"
12:09 Gunjubas so...who can tell me "How content of page linked with TypoScript in template?"
12:10 Gunjubas i assigning for needed subpart type "tt_content" & next step
12:11 Gunjubas i add a content in "List"-item of menu
12:11 Gunjubas but nothing change
12:12 Gunjubas all worked....i understand...
12:13 pmk65 tPl0ch: TS select is limited. If you write a userfunc, you can do better SQL lookups using PHP
12:14 Gunjubas yeah...it's better way...go to PHPmyAdmin!)))
12:16 tPl0ch Gunjubas: ?
12:16 kotelette is there any other option to edit the staticpub output than using DOMDocument::loadHTML and DOMDocument::saveHTML?
12:16 pmk65 Gunjubas: If you are using TemplaVoila, then only content added via the Page module is visible in the FE.
12:17 pmk65 elements you add using the List module, will show up on the TV page as "unused elements", which you'll have to manually enable if you want them displayed.
12:17 Gunjubas no. i not use templaviola. i use TypoScript itself.
12:17 Gunjubas and dont understand how typo3 detect "content area"
12:19 pmk65 in old style (non TV) the content positions is defined with the field "colPos". The position in the column is based on the field "sorting"
12:20 Gunjubas ok! thnx!)
12:22 Recnelis Hey guys, when having multiple sites in one typo3 backend - I.e. mysite.com and testsite.com - Will testsite.com be made in a frame automatically? If mysite.com is the "orginal" site(The first added to BE) so to speak?
12:22 Recnelis They have separate page tree's and I followed the official guide thingy... yet testsite.com is in a frame..
12:24 tPl0ch pmk65: can I include the t3lib::* classes in my userFunc class?
12:24 tPl0ch is there a constant pointing to the include path?
12:25 tPl0ch there is :)
12:26 tPl0ch or better, can I use the current db connection object in my userFunc class?
12:26 pmk65 tPl0ch: yes and yes. There's a lot of constants like PATH_tslib, which points to the various paths on TYPO3.
12:27 pmk65 generally you have access to all the Tslib functions from your userfunc
12:27 tPl0ch pmk65: is it possible to use the current db connection object used by typo3 in the userFunc class?
12:27 tPl0ch or do I have to instantiate a new one
12:28 pmk65 $GLOBALS['TYPO3_DB'] should work
12:29 pmk65 you can create user func as USER or USER_INT objects, or you can use stdWrap commands link postUserFunc if you need to process some content you retrieved via TS.
12:31 pmk65 predefined TYPO3 constants: PATH_tslib, PATH_t3lib, PATH_typo3, PATH_site.
12:36 coffeeholika hi there
12:36 coffeeholika i have a short question
12:36 coffeeholika is it possible with a HMENU to show just the languages with translated contents?
12:40 xaver pmk65: i have a nice question: you know any extansion for ip in the backend, lik only 192.* in backend for 1 account
12:41 pmk65 xaver: not sure I understand what you mean.
12:43 xaver we use staic ips
12:43 xaver static
12:44 xaver i will set a account only for 1 ip range like 128.* or 192.* intern
12:44 StaffanE xaver: you want to restrict login to certain IP-ranges
12:44 xaver yes i will allow only for some ip-ranges
12:45 pmk65 BE or FE?
12:45 pmk65 for BE there's ext like this: http://typo3.org/extensions/repository/view/cc_ipauth/current/
12:46 pmk65 and for FE: http://typo3.org/extensions/repository/view/cc_iplogin_fe/current/
12:46 pmk65 http://typo3.org/extensions/repository/view/cc_iplogin_be/current/
12:47 xaver thx
12:49 coffeeholika i hate multilang pages...
12:50 coffeeholika the problem is that we are not allowed to create any php or install an extension on the customer project :-(
12:51 BejjWrk that sux, so they want it done, but you're not allowed to touch it :>
12:52 StaffanE coffeeholika: typo3 has good multilang support built in - whats the problem?
12:53 coffeeholika i need to show just those languages flags which are allready translated :-(
12:53 coffeeholika BejjWrk: thats right... i love customers like this one...
12:59 Conic hey all, how can i change the version of my extension in kickstarter?
13:03 Conic also i can't change the State from Alpha to Stable...
13:03 pmk65 Conic: modify ext_emconf.php
13:03 Conic but there it says these values must not be touched
13:04 Conic so i thought one could change this elsewhere
13:16 maholtz|WORK @Conic: usually you change it if you upload it into the TER
13:19 coffeeholika zzzZZzzz
13:19 coffeeholika hate this project..
13:27 pmk65 Conic: The ext_emconf.php generated by the kickstarter is very limited. It lacks code for required/conflict/suggest ext. and several other useful options, so it's always a good idea to update it manually.
13:31 Conic ok, works, thanks
13:37 Recnelis Can someone explain why every time I go http://geomanagement.dk/ it shows the IP adress in the adress bar instead of the actual geomanagement.dk/ ? - It's set up in Typo3 and the other pages work quite fine.. :s
13:41 Recnelis It does so for every site in the BE tree.. all except the "Main site" show the ip-adress instead of the actual name i.e. geomangement.dk and so forth..
13:47 Conic is there an extension that creates an sends an email for me if i give it some parameters?
13:52 Conic ok forget it, it's much easier in php than i thought ;)
14:05 pmk65 Recnelis: have you created a domain record for the site?
14:06 pmk65 Conic: just include class.t3lib_htmlmail.php then you can create full html mails
14:07 Conic oh, thanks
14:16 Conic i don't get it:
14:16 Conic in kickstarter there's "New Database Tables"
14:17 Conic but this seems to be only for CEs, right?
14:17 Conic i want to create a new table, but this should have nothing to do with CEs...
14:18 Conic it's just a collection of relations and doesn't need all this deleted, starttime, versioning stuff etc
14:19 Conic can't i just create a custom table?
14:33 BejjWrk Has anyone here experienced issues with adding article prices in commerce 0.11.15 ? all I get is a page that continuously keeps loading for a few minutes then just stops
14:51 pmk65 Conic: if it's relations table, you should consider using a mm table.
15:21 Conic pmk65: can i do that via kickstarter?
15:24 pmk65 partly. if you select that your relations should use mm instead of comma separated values. But to take full advantage of MM tables, you need to modify the TCA setup manually after creating it in kickstarter..
15:27 pmk65 The TCA seup is all described in the API doc. http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.2.0/view/4/2/#id4272080
15:28 pmk65 If you need an example, then tt_news use advanced MM records for the linking to related tt_news records.
16:01 pcb-dennis hi, i want to upgrade from 4.2.8 to 4.2.10, so i have changed the symbolic links to the new src package but it still says 4.2.8, i also tried database analyzer and upgrade wizard but no changes, you have a manual for that?
17:39 mcoca hello, someone know if jeditvfs works on typo3 4.2?
18:27 flobbie is there a variable like BASE in typoscript, with which I can include images with the full path?
18:44 flobbie is there a community extension for typo3, or is it still in developement?
18:45 flobbie found one
22:49 flobbie can anybody tell me what is wrong with my mailform? http://pastie.org/667188 I can only see this, instead of a full form
23:51 paddyez hi

Technologies


R. van Twisk 2004-2010 R. van Twisk / Avenida Diego de Almagro No: 22-47 y Juan Severino / Quito Ecuador
callto://r.vanTwisk | Support: +1 (803) 4263350

© 2012 R. van Twisk. All Rights Reserved.