[root]/templates/standard/shoutbox

| Author | Changes | Lines of Code | Lines per Change |
|---|---|---|---|
| Totals | 28 (100.0%) | 752 (100.0%) | 26.8 |
| freq77 | 6 (21.4%) | 265 (35.2%) | 44.1 |
| vyper | 2 (7.1%) | 217 (28.9%) | 108.5 |
| xsign | 10 (35.7%) | 181 (24.1%) | 18.1 |
| vain | 10 (35.7%) | 89 (11.8%) | 8.9 |
- templates dir is now themes ! watch out!
0 lines of code changed in 4 files:
- new template drathgitter
- renamed {translate} to{t} and {/translate} to {/t}
7 lines of code changed in 1 file:
Fixed all XHTML errors
217 lines of code changed in 2 files:
2 lines of code changed in 1 file:
3 lines of code changed in 1 file:
3 lines of code changed in 2 files:
106 lines of code changed in 2 files:
typo {
1 lines of code changed in 1 file:
1 lines of code changed in 1 file:
positioned things, shoutbox headline added
2 lines of code changed in 1 file:
1 lines of code changed in 1 file:
65 lines of code changed in 2 files:
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!
19 lines of code changed in 2 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!
131 lines of code changed in 1 file:
added {key}
11 lines of code changed in 1 file:
1. renamed to entries_box.tpl, 2. fixed show entries, 3. added cycle to switch styleclasses
todo: style it!
14 lines of code changed in 1 file:
renamed
54 lines of code changed in 1 file:
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.
84 lines of code changed in 2 files:
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
31 lines of code changed in 1 file: