[root]/templates/standard/service

| Author | Changes | Lines of Code | Lines per Change |
|---|---|---|---|
| Totals | 7 (100.0%) | 55 (100.0%) | 7.8 |
| freq77 | 3 (42.9%) | 35 (63.6%) | 11.6 |
| xsign | 1 (14.3%) | 17 (30.9%) | 17.0 |
| vain | 3 (42.9%) | 3 (5.5%) | 1.0 |
- templates dir is now themes ! watch out!
0 lines of code changed in 2 files:
17 lines of code changed in 1 file:
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!
3 lines of code changed in 1 file:
optimized; use of {key} instead for var @ foreach loop
3 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
32 lines of code changed in 2 files: