![]() |
|
The last 10 Comments - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: The last 10 Comments (/thread-6093.html) |
The last 10 Comments - R182 - 2009-11-06 hello, first: sorry for my english. i speak german :-) i have a problem: in the admin userface on the right side is a box with "The last 10 Comments" The Problem is, i can`t. i saw here a "Tutorial" but i can't the script import in my webpage. maybe i'm to stupide?!? is anyone here can show me a functioning script? Thanks. Now i wish you a nice evening. The last 10 Comments - kagutsuchi - 2009-11-06 You can use the function The last 10 Comments - R182 - 2009-11-06 now i found the script in the template-functions.php file. when i this script import in my page then i see a white site Why? The script is still ok? this is "my" script The last 10 Comments - kagutsuchi - 2009-11-06 You don't have to change the function at all or import anything. You just need to make a call to the function where you want the comments to be displayed. The last 10 Comments - R182 - 2009-11-06 ok now i imported in the image.php file (themes/default/...) this script And then my browser saw: Parse error: syntax error, unexpected T_STRING in /home/www/my ordner.../themes/default/image.php on line 87 what is fals on my idea to import this script? The last 10 Comments - micheall - 2009-11-06 You would want to use it like: The last 10 Comments - micheall - 2009-11-07 Edit: wasn't paying atention, you're actually not going to want the "void" in there either. So you would want: The last 10 Comments - kagutsuchi - 2009-11-07 You're also missing a semicolon. The correct code is: `` The last 10 Comments - micheall - 2009-11-07 yeah what he put... lol, I had the semicolon in my code, just kept forgetting to add it here. Thanks for catching that kagutsuchi |