04:51.59 | *** join/#wowroster DazedMonkeyAFK_ (n=chatzill@c-24-7-80-209.hsd1.ca.comcast.net) |
09:29.01 | *** join/#wowroster poetter (n=poetter@f054049166.adsl.alicedsl.de) |
10:42.41 | *** join/#wowroster rapmoc (i=rapmoc@it-funzocker.com) |
20:00.02 | *** join/#wowroster DazedMonkeyAFK (n=chatzill@c-24-7-80-209.hsd1.ca.comcast.net) |
20:36.34 | DazedMonkeyAFK | just upgraded roster from r1930 to r1984, cleaned cache directory, getting some eval errors in template.php |
20:36.51 | ScratchMonkey | http://matureasskickers.net/wowroster/MA/index.php?p=guild-memberslist&a=g:2 |
20:37.14 | ScratchMonkey | oh, now it's in a template, let me clean cache again |
20:38.03 | PleegWat | First time round it's eval()ed code |
20:38.06 | ScratchMonkey | ok cleared cache, and it's back in lib/template.php |
20:38.24 | PleegWat | Since it compiles the template then saves it in cache, but that first run it evals rather than including the generated template |
20:38.36 | ScratchMonkey | reloading page puts it in cache/tpl_default_menu.html.inc |
20:38.56 | PleegWat | Ah, right. You've got the 'the default template doesn't work right now' bug |
20:38.57 | ScratchMonkey | getting some undefined indices |
20:39.18 | ScratchMonkey | should I change templates? haven't used those before, so don't know where to change that |
20:39.28 | PleegWat | the roster3 template will be the new default |
20:39.38 | PleegWat | If nobody comes up to fix the default template we'll probably drop that |
20:40.04 | ScratchMonkey | where do I find the template setting? |
20:40.28 | ScratchMonkey | under Display Config I only see Default |
20:41.02 | ScratchMonkey | under ./templates I see default, install, roster3 |
20:41.48 | PleegWat | Hm roster3 comes up as a theme fine for me on my install |
20:42.49 | ScratchMonkey | how does the template list get populated? |
20:42.59 | ScratchMonkey | and is install a template? |
20:44.40 | PleegWat | im not sure |
20:45.28 | ScratchMonkey | settings.php looks for directories containing theme.php |
20:45.49 | PleegWat | You're looking for admin/roster_config_functions.php |
20:46.00 | PleegWat | It excludes '.svn' and 'install' |
20:48.48 | PleegWat | The theme.php include is just so templates can run some dedicated code during init |
20:49.32 | PleegWat | The border and messagebox functions are defined there |
20:49.38 | ScratchMonkey | I don't see templateList in roster_config_functions ever called, just defined |
20:50.29 | ScratchMonkey | and the <select> gets populated from the input $values, not from the scanned direcotry names |
20:50.53 | ScratchMonkey | ignore the last |
20:51.10 | PleegWat | templateList is used as a callback |
20:51.17 | ScratchMonkey | been awhile since I did a select form the <option> gets populated from the directory list, <select> is for the var name |
20:51.40 | ScratchMonkey | how does it get called? I don't see the symbol referenced anywhere else |
20:51.56 | PleegWat | See lib/dbal/structure/mysql_data.sql, line 96 |
20:52.35 | ScratchMonkey | ah ok |
20:52.39 | PleegWat | and lib/config.lib.php, line 208 |
20:52.49 | PleegWat | ehm, 300 |
20:52.52 | ScratchMonkey | I'll double-check the DB, make sure it has that |
20:52.54 | PleegWat | 208 is for function-generated pages |
20:53.46 | PleegWat | You could try inserting debug code in the templateList function - aprint() should work fine and end up somewhere visibly on the page |
20:55.02 | PleegWat | Try putting 'aprint($arrFiles)' on line 196 - a gray box should pop up with the options above the main config pane |
20:56.47 | ScratchMonkey | ok, problem was PEBCAK |
20:57.02 | ScratchMonkey | my eyes didn't see the Roster3 in the drop down, text was very tightly spaced |
20:57.09 | PleegWat | ah |
20:57.42 | ScratchMonkey | k, now in Roster3 |
20:57.52 | ScratchMonkey | only complaint so far is that the MOTD isn't centered ;) |
20:59.18 | PleegWat | Yeah, there's more stuff that no longer centers. I think adric doesn't like centering. |
21:03.10 | ScratchMonkey | would be fine if the box stretched all the way across the container, looks funny only being about 75% of its container and left-aligned |
21:03.20 | ScratchMonkey | and word-wrapped |
21:04.45 | PleegWat | heh |
21:04.51 | PleegWat | I think it has a text mode |
21:05.28 | PleegWat | Yeah. Display config, MOTD display mode |
21:05.34 | ScratchMonkey | Aha, I see it's implemented as an img, so server-side rendering needs to know how wide to make it |
21:05.44 | PleegWat | yeah |
21:06.02 | PleegWat | IIRC it gets passed the MOTD as a parameter, but it may be fetching it from the DB itself |
21:06.34 | PleegWat | It used to fetch itself, but I think I changed it to a parameter to not have to use the DB cause I had to change it anyway for multiguild |
21:08.21 | ScratchMonkey | k, now I can see the table with the honor and pvp is left aligned |
21:08.26 | ScratchMonkey | btw, do you use firebug? |
21:08.31 | PleegWat | yeah |
21:08.32 | ScratchMonkey | just started doing css, it's a godsend |
21:08.52 | ScratchMonkey | been working on a Joomla installation for the office |
22:31.26 | ScratchMonkey | after uploading data with curl, I'm seeing <b>Fatal error</b>: Call to a member function displayMenu() on a non-object in <b>/var/www/html/wowroster/roster_svn/index.php</b> on line <b>100</b><br /> |
22:33.00 | ScratchMonkey | that line has $roster_menu->displayMenu(); |
22:34.18 | ScratchMonkey | yep, bug, menu isn't created if show_menu isn't set |
22:35.21 | ScratchMonkey | looks like the conditional that creates the menu should be moved after the header, and the displayMenu call moved inside the braces |