Torben

Unregistered less info
27 reputation
3
bio website spillersmart.dk
location
age
visits member for 2 years, 2 months
seen Mar 2 '12 at 0:44

Mar
12
awarded  Popular Question
Mar
1
accepted How to display a “NEW”-icon on posts from today
Mar
1
comment How to display a “NEW”-icon on posts from today
IT WORKS! I love you... Thanks :-)
Mar
1
comment How to display a “NEW”-icon on posts from today
What should "close" the function, if not <?php endif; ?>?
Mar
1
comment How to display a “NEW”-icon on posts from today
As you may have figured out by now, i'm pretty much a noob. Thanks for your patience :-) The code now looks like this: <?php if( date('U') - get_the_time('U', $post->ID) < 24*60*60 ); ?> test <?php endif; ?> And gives me the following error: Parse error: syntax error, unexpected T_ENDIF in /var/www/titanen.dk/public_html/spillersmart/wp-content/themes/WPTube4/index.php on line 82
Mar
1
comment How to display a “NEW”-icon on posts from today
Thanks for your reply! I've put the code in functions, but then adding this to the loop: <?php if( date('U') - get_the_time('U', $post->ID) < 24*60*60 ) { /*do something*/ }; ?> test <?php endif; ?> i get the following error Parse error: syntax error, unexpected T_ENDIF in public_html/wp-content/themes/WPTube4/index.php on line 82
Mar
1
asked How to display a “NEW”-icon on posts from today
Feb
16
comment Error when searching without any results
I didn't know where else to ask, sorry :-) What do you mean by add a nem to my call?
Feb
16
asked Error when searching without any results
Feb
16
accepted How to make simply “report” button on posts
Feb
16
awarded  Student
Feb
15
comment How to make simply “report” button on posts
You can take a look here: spillersmart.dk (its a testpage atm). The videos are stored via custom fields. I just need the url of the post, to know which video is broken. So really its just a button that saves the url of the page its being activated on.
Feb
15
asked How to make simply “report” button on posts
Feb
13
asked Need help with my template
Feb
12
comment How to sort by most watched in X days/months
Thanks for that. But adding day=7 to the query string just shows posts from the last 7 days - not the most watched posts in the last 7 days :-) As started below, it is not possible. What a shame :(
Feb
12
comment How to sort by most watched in X days/months
Oh no, thats bad. Do you know of any alternative method to do so?
Feb
12
asked How to sort by most watched in X days/months
Feb
12
awarded  Scholar
Feb
12
accepted How to sort a loop after most viewed
Feb
12
comment How to sort a loop after most viewed
Wow. Thank you my good man - you did the job. It actually works know. I know what you mean - and if I knew how to make some kind of order-function, I would. But for know - this will have to do :P Thanks a lot!