Webapps chatlog - 2007-06-21

Back to overview|Highlight a word

00:21:55   <-- Do`` has quit stating (Ping timeout)
00:36:47   --> Do`` has joined #webapps
00:49:42   --> Orcinus has joined #webapps
00:52:33   --> dinoo has joined #webapps
00:52:44   <-- dinoo has quit stating (Quit: dinoo)
00:54:00   <-- Orcinus has left #webapps stating ()
01:35:30   --> dinoo has joined #webapps
01:35:49   <-- dinoo has quit stating (Quit: dinoo)
01:43:00   --> dinoo has joined #webapps
01:46:13   <-- dinoo has left #webapps stating ()
02:02:31   <-- Remco has quit stating (Ping timeout)
02:20:36   <-- aleksanteri has quit stating (Ping timeout)
03:02:05   <-- Do`` has quit stating (Ping timeout)
03:17:23   --> Do`` has joined #webapps
04:43:57   --> dinoo has joined #webapps
04:51:56   <-- dinoo has left #webapps stating ()
05:15:23   --> Ramunas_ has joined #webapps
05:16:29   <-- Ramunas has quit stating (Ping timeout)
05:24:13   <-- Do`` has quit stating (Ping timeout)
05:39:06   --> Do`` has joined #webapps
05:54:33   <-- dantesoft has quit stating (Quit: dantesoft)
05:55:21   --> dantesoft has joined #webapps
06:05:40   <-- dantesoft has left #webapps stating ()
07:12:09   --> mali has joined #webapps
07:12:45 mali hello
07:16:07 mali hey blogger what new apps have you developed
07:18:53   <-- mali has left #webapps stating ()
07:35:00   --> LarsKL has joined #webapps
07:39:37   --> Ryhan has joined #webapps
07:42:29   <-- Ryhan has left #webapps stating ()
07:50:16   --> maka_Don has joined #webapps
07:58:33   <-- maka_Don has left #webapps stating ()
08:03:41   --> roentgen has joined #webapps
08:27:11   --> dantesoft has joined #webapps
08:30:05   --> nfs has joined #webapps
08:33:16   <-- nfs has left #webapps stating ()
08:34:11   <-- roentgen has quit stating (Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)
08:51:31   --> Do``2 has joined #webapps
08:53:30   <-- Do`` has quit stating (Ping timeout)
08:53:30   -!- Do``2 is now known as Do``
09:05:59   --> ROBOd has joined #webapps
09:13:54   -!- Ramunas_ is now known as Ramunas
09:38:04   <-- LarsKL has quit stating (Quit: )
09:40:48   --> Remco has joined #webapps
09:43:34   --> LarsKL has joined #webapps
09:52:09   --> aleksanteri has joined #webapps
10:51:19   --> coxy has joined #webapps
10:51:44 coxy hey chaps
10:51:51 coxy i have some n00b questions to ask
10:52:39 LarsKL lol
10:52:41 LarsKL :P
10:53:01 coxy right, i have a site that I'm making
10:53:07 coxy but I'm not too familar with PHP
10:53:32 LarsKL am i supposed to laugh now or should i wait a bit?
10:53:37 coxy :P
10:53:48 * coxy thinks LarsKL should wait a little longer
10:54:04 * LarsKL will wait till coxy asked the question
10:54:11 coxy I want to change the logo at the top of the site, depending on what the url string is. Can this be done without having a database?
10:54:22 LarsKL yes
10:54:38 coxy how?
10:54:58 coxy would the url be something like mywebsite.co.uk/?MCR
10:55:05 coxy and it'd show mcr.jpg
10:55:16 LarsKL simple way is: if ($_SERVER["REQUEST_URI"] == "abc") { print "<img src="logo1.png" />"; } else { print "<img src="logo2.png" />"; }
10:55:50 coxy what if I have... 20 different logos to switch between?
10:56:15 LarsKL is it always "part after the ? == logo name"?
10:56:43 aleksanteri if ($_SERVER["REQUEST_URI"] == "abc") { print "<img src="logo1.png" />"; } elseif($_SERVER["REQUEST_URI"] == "def") { print "<img src="logo2.png" />"; } else { print "<img src="logo3.png" />"; }
10:56:47 coxy well, it can be anything. if it needs to be /?id=mcr it could be
10:57:06 coxy what's the 'else' part of things doing?
10:57:33 LarsKL coxy: if (this is true) { do this } else { do something else }
10:57:35 coxy am I right in saying it's going 'if it's this or this show thing, or if none of these, show this'
10:57:41 coxy yes
10:57:45 coxy that's fine then
10:58:05 LarsKL coxy: if (this is true) { do this } elseif (something else is true) { party! } else { do something else }
10:58:35 aleksanteri party? :)
10:58:47 coxy ok, so I'd do that in a similar fashion for all my logos?
10:58:54 LarsKL if $_SERVER["REQUEST_URI"] is always = image name you don't need the if-else, stuff
10:59:07 LarsKL but i guess you want like 3 logos for 10 pages?
10:59:24 LarsKL gotta reboot, brb
10:59:27   <-- LarsKL has quit stating (Quit: )
11:00:06 aleksanteri well use switch if you have a ton of them
11:00:51   --> LarsKI has joined #webapps
11:01:08 coxy what it is, is that x number of companies (i dont know how many yet; could be 3, could be 23) are all linking to this same site... except that when each company arrives, the page needs to have their logo on
11:01:26 coxy so I'll be directing them to mywebsite.co.uk/?identifier which i want to change the logo
11:01:36 coxy i was just trying to work out the best way of going about that
11:02:16 LarsKI if there's an image named "company.png" for "?company" you can just get that string and put it in the code
11:02:23 LarsKI like
11:02:24 aleksanteri yeah
11:02:40 LarsKI <img src=".$_SERVER["QUERY_STRING"]."png />
11:03:04 coxy ah, that's cooooool. that's what I'll do then. :D
11:03:08 coxy you guys are ace.
11:03:11 aleksanteri "<img src={$_SERVER["QUERY_STRING"]}png />" to be accurate :P
11:03:12 LarsKI but when someone accesses mywebsite.co.uk/?unknown_company then he won't get a logo, so you'll have to set a fallback
11:03:19 aleksanteri print "<img src={$_SERVER["QUERY_STRING"]}png />" *
11:03:34 LarsKI aleksanteri: my code is correct
11:03:41 aleksanteri mine is too
11:03:42 aleksanteri lol
11:03:47 LarsKI print "<img src=".$_SERVER["QUERY_STRING"]."png />";
11:04:00 aleksanteri well that's correct now
11:04:06 LarsKI coxy: but you'll better do it like this:
11:04:31 aleksanteri if (!$_SERVER["QUERY_STRING"]) { print '<img src="fallback.png />'; } else { print "<img src={$_SERVER["QUERY_STRING"]}png />"; }
11:04:49 LarsKI if (isset($_SERVER["QUERY_STRING"])) { $image = $_SERVER["QUERY_STRING"]; } else { $image = "fallback"; }
11:05:05 LarsKI and then: <img src=".$img." />
11:05:33 LarsKI aleksanteris and mine code basicly is the same, just written in different ways :)
11:05:43   --> LarsKL has joined #webapps
11:05:45 coxy ah, ok then. :)
11:05:57 coxy Thanks for that. :D
11:10:27   <-- coxy has quit stating (Ping timeout)
11:12:14   <-- derenth has quit stating (Connection reset by peer)
11:12:21   --> coxy has joined #webapps
11:12:35   --> derenth has joined #webapps
11:20:32   <-- derenth has quit stating (Connection reset by peer)
11:20:36   --> derenth has joined #webapps
11:24:10   <-- LarsKL has quit stating (Quit: )
11:28:50   <-- aleksanteri has quit stating (Client exited)
11:29:05   <-- coxy has left #webapps stating ()
11:31:44   <-- dantesoft has quit stating (Quit: dantesoft)
11:33:29   --> Benjamin has joined #webapps
11:34:09   <-- Benjamin has left #webapps stating ()
11:34:16   --> Benjamin has joined #webapps
11:34:22   <-- Benjamin has left #webapps stating ()
11:41:07   --> aleksanteri has joined #webapps
11:46:12   --> LarsKL has joined #webapps
11:49:51   <-- Ramunas has quit stating (Quit: Foje forever!!)
11:49:52   --> Ramunas has joined #webapps
11:53:33   <-- LarsKI has quit stating (Ping timeout)
12:28:56   <-- aleksanteri has quit stating (Ping timeout)
12:40:56   --> Orcinus has joined #webapps
12:43:03   --> nfs has joined #webapps
12:44:31   <-- nfs has left #webapps stating ()
12:46:05   --> UNNI has joined #webapps
12:47:22   --> dantesoft has joined #webapps
12:48:08   <-- UNNI has left #webapps stating ()
14:01:34   --> kris has joined #webapps
14:08:45   <-- dantesoft has quit stating (Ping timeout)
14:26:54   --> aleksanteri has joined #webapps
14:33:09   --> dantesoft has joined #webapps
14:41:15   --> letham has joined #webapps
14:45:46   --> BedBug has joined #webapps
14:46:12   <-- BedBug has left #webapps stating ()
14:52:44   <-- kris has left #webapps stating ()
14:53:24   --> DEXY has joined #webapps
14:57:08   <-- aleksanteri has quit stating (Client exited)
15:11:51   <-- DEXY has left #webapps stating ()
15:23:25   --> pffYussupov has joined #webapps
15:28:37   --> DEXY has joined #webapps
15:32:32   <-- DEXY has left #webapps stating ()
15:37:25   --> sree has joined #webapps
15:38:56   <-- sree has left #webapps stating ()
15:39:15   <-- pffYussupov has quit stating (Quit: Every time I make a website using frames god kills a Pokemon or two)
15:47:32   <-- letham has quit stating (Connection reset by peer)
15:51:33   --> TONI has joined #webapps
15:52:58   <-- TONI has quit stating (Client exited)
16:17:04   --> DrLaunch has joined #webapps
16:17:05   <-- DrLaunch has quit stating (Connection reset by peer)
16:17:10   --> DrLaunch has joined #webapps
16:52:08   --> letham has joined #webapps
17:04:24   --> pffYussupov has joined #webapps
17:08:01   --> Lexa has joined #webapps
17:08:18   <-- Lexa has left #webapps stating ()
17:08:25   --> Lexa has joined #webapps
17:08:39 Lexa тут есть кто небудь?
17:08:57 Lexa ÿ ÿт?
17:09:02 Remco English please
17:09:56 nicomen or utf-8 at least ;)
17:10:13 Remco That would help too :)
17:10:21 Remco Not that I can read it :P
17:10:31 nicomen is it chinese or russian?
17:10:37   <-- Lexa has left #webapps stating ()
17:13:21 Orcinus it's russian
17:15:19   <-- pffYussupov has quit stating (Ping timeout)
17:24:50   --> hati has joined #webapps
17:31:36   --> pete has joined #webapps
17:31:45   <-- pete has left #webapps stating ()
17:46:14   <-- letham has quit stating (Ping timeout)
17:52:16   --> roentgen has joined #webapps
17:53:08   --> aleksanteri has joined #webapps
17:59:03   <-- dantesoft has quit stating (Quit: dantesoft)
17:59:18   <-- roentgen has quit stating (Ping timeout)
18:03:08   --> letham has joined #webapps
18:14:31 fearphage should this work? http://pastebin.ca/581773
18:15:08   <-- hati has left #webapps stating ()
18:16:44   --> roentgen has joined #webapps
18:17:36 nicomen fearphage: can't see any obvious errors
18:17:58 nicomen oh what's e.element?
18:23:04 fearphage well i just changed it. it wasn't working. just ssilently failing
18:23:15 fearphage event.element (the script file)
18:23:53   <-- DrLaunch has quit stating (Ping timeout)
18:26:16   --> DrLaunch has joined #webapps
18:34:29   <-- DrLaunch has quit stating (Ping timeout)
18:34:37   --> DrLaunch has joined #webapps
18:36:26   <-- letham has quit stating (Ping timeout)
19:06:00   --> Lars_G has joined #webapps
19:06:13   <-- Lars_G has left #webapps stating ()
19:22:03   --> TONI has joined #webapps
19:22:17 TONI llfllf,lg,flg,f,glf,gl,lfr,lfl,gowerky'kyker+fp, .b,d
19:22:58 nicomen orly
19:23:02   <-- TONI has quit stating (Client exited)
19:24:53   <-- aleksanteri has quit stating (Client exited)
19:27:55   --> DEXY has joined #webapps
19:29:36   --> aleksanteri has joined #webapps
19:34:35   <-- DrLaunch has quit stating (Ping timeout)
19:38:01   --> DrLaunch has joined #webapps
19:55:59   <-- DrLaunch has quit stating (Ping timeout)
19:58:43   --> DrLaunch has joined #webapps
20:01:40   <-- DrLaunch has quit stating (Ping timeout)
20:01:56   --> DrLaunch has joined #webapps
20:06:01   --> TONI has joined #webapps
20:06:05   <-- TONI has quit stating (Connection reset by peer)
20:09:04   <-- LarsKL has quit stating (Quit: )
20:20:40   <-- DrLaunch has quit stating (Ping timeout)
20:22:23   <-- DEXY has left #webapps stating ()
20:22:29   --> LarsKL has joined #webapps
20:23:02   --> DEXY has joined #webapps
20:23:33   <-- DEXY has quit stating (Quit: DEXY)
20:40:21   --> DrLaunch has joined #webapps
20:43:41   <-- ROBOd has quit stating (Quit: http://www.robodesign.ro )
21:02:03   <-- Do`` has quit stating (Ping timeout)
21:07:57   --> Do`` has joined #webapps
21:42:47   <-- aleksanteri has quit stating (Ping timeout)
21:55:21   <-- Orcinus has left #webapps stating ()
21:58:40   --> aleksanteri has joined #webapps
22:04:50   --> yedu has joined #webapps
22:05:03   <-- yedu has left #webapps stating ()
22:08:06   --> ildottore has joined #webapps
22:09:35   <-- ildottore has quit stating (Broken pipe)
22:10:21   --> ildottore has joined #webapps
22:11:09   <-- ildottore has left #webapps stating ()
22:25:01   <-- LarsKL has quit stating (Quit: )
22:32:15   <-- DrLaunch has quit stating (Quit: Leaving.)
22:48:04   <-- aleksanteri has quit stating (Quit: I'm not actually quitting you're seeing an illusion)