


| Directory | Changes | Lines of Code | Lines per Change |
|---|---|---|---|
| Totals | 43 (100.0%) | 1850 (100.0%) | 43.0 |
| install/ | 2 (4.7%) | 1036 (56.0%) | 518.0 |
| modules/shoutbox/ | 6 (14.0%) | 353 (19.1%) | 58.8 |
| templates/standard/shoutbox/ | 6 (14.0%) | 265 (14.3%) | 44.1 |
| languages/de/ | 4 (9.3%) | 110 (5.9%) | 27.5 |
| core/ | 5 (11.6%) | 37 (2.0%) | 7.4 |
| templates/standard/service/ | 3 (7.0%) | 35 (1.9%) | 11.6 |
| templates/standard/ | 2 (4.7%) | 5 (0.3%) | 2.5 |
| / | 1 (2.3%) | 5 (0.3%) | 5.0 |
| modules/admin/ | 2 (4.7%) | 4 (0.2%) | 2.0 |
| templates/core/images/ | 1 (2.3%) | 0 (0.0%) | 0.0 |
| core/smarty/templates_c/ | 11 (25.6%) | 0 (0.0%) | 0.0 |

Some typos fixed. Saving of shoutbox entries works properly! Shoutbox works with javascript turned on (->so save and check by ajax) and with javascript turned off (->send as a normal form request). style of the entries output a little bit improved!
27 lines of code changed in 4 files:
I have further developed the shoutbox module. when using ajax, it correctly checks the entered form values and either displays the errors or saves the entry and displays the success-message. there are some strings in the template shoutbox/show_form.tpl, that have to be translatable (i didn't get it to work). further, my apache says an error when I do not set these two lines in shoutbox_module.php in comments:
$stmt = $db->prepare($sql);
$stmt->execute(array($name, $mail, $msg, time(), $_SERVER['REMOTE_ADDR']));
So I couldn't test the saving, but it should work correctly. please test it.
one thing:
when javascript is deactivated, the request is sent to the page index.php?mod=shoutbox&action=save. There I only see a blank window and I don't know why. When inserting some debug informations into shoutbox.module.php, I get them to see and they are as expected. And when I call the URL directly without sending POST vars, it's also working ... pleas look into this!
234 lines of code changed in 5 files:
Leider schmiert mein Apache sooo oft ab, dass ich kaum weitercoden kann :( Habe nun mal die Shoutbox (zumindest das Formular^^) in die rechte Navi integriert.
145 lines of code changed in 7 files:
Sorry, in the last revision, I forgot to post a log. I made changes in the language.class.php. This class writes into an array all translations from a file and by calling t() it only grabs the translation from this array. this should bringt a better performance ... sorry, I couldn't test it out on my apache because it always gave me an apache error. I think it's because of xampp, but I don't know. So please test it out!!
1 lines of code changed in 1 file:
30 lines of code changed in 3 files:
So nun nochmal die richtige .sql file. Hoffentlich funzt es!
518 lines of code changed in 1 file:
New sql file that contains the cs_shoutbox (table) and the whitelist entry in cs_modules
518 lines of code changed in 1 file:
I got it, created a Template for the Shoutbox. Further, I created a language file for the shoutbox and inserted the first translations.
I implemented a 'Service Template' called 'showErrorList.tpl'. I think Service Templates are great to reduce redudant code because they can handle some thing. The above mentioned one handles the output of an array consisting of errors. They should be assigned by php to smarty after a form validation, if some errors occured (e.g. inserted a non-valid email etc).
I don't know yet, if I can handle the shoutbox to function via ajax ... we'll see. But something wonders me: is it possible to display a module on a particular part of the page? Because a shoutbox should not be displayed on a extra page like the news but in the navi or something like this. to test the shoutbox, you have to enable it via db whitelisting. The used SQL can be found in the shoutbox.module.php. I stop here :D
251 lines of code changed in 6 files:
I added a pre-pre-pre-alpha of the shoutbox system. I don't know yet, where to place templates and assign some vars to it by using your coding-style (for showing the form and save the entries to the db).
126 lines of code changed in 15 files: