| User | Post |
|
2:21 pm 28 May 2008
| RAMI7250
Member
| | | |
|
| posts 10 |
|
|
hay, i want to make for my users list of the new posts (lets say 5 posts) from my SPF in the sidebar .
how can i do that?
thanks on the help,
rami
|
|
|
|
|
Go to the online help (from admin) and read up on the template tags available.
|
|
|
2:41 pm 28 May 2008
| RAMI7250
Member
| | | |
|
| posts 10 |
|
|
i was addin' this line:
<?php sf_latest_posts(5); ?>
into my sidbar (under Forum Letest Posts:) and nothing show's up.
see for yourself:
http://handspot.com/
my forum address is:
http://handspot.com/forum/
any idea's?
|
|
|
|
|
I just tried that tag and it is nastily slow. I wouldn't use it if I were you until I have taken a look at the code.
Why not try:
<?php sf_recent_posts_alt_tag(5); ?>
instead? That seems to be more efficient.
|
|
|
3:34 pm 28 May 2008
| RAMI7250
Member
| | | |
|
| posts 10 |
|
|
it the same:
http://handspot.com
maybe its becouse i am using widgets?
edit:
still not working. maybe its becouse the permissions?
|
|
|
|
|
Then why not use the forum widget?
|
|
|
3:50 pm 28 May 2008
| RAMI7250
Member
| | | |
|
| posts 10 |
|
|
haha i was notice it just now.
excellent! working like a charm!
|
|
|
|
|
|
8:00 pm 29 Aug 2008
| BLoom1s
Guest
| | | |
|
| |
|
|
I have the same problem, with widget work fine, but I need insert the code, because I try tu put recent coments in a tab of a Widget. But if I put the <?php sf_latest_posts(1); ?> code in a text widget, don't work, and obiosly in the tab make the same, nothing Some help?
|
|
|
|
|
Afraid I don't really understand. You are using widgets yet you can not use the forum widget? Why not?
|
|
|
10:02 pm 29 Aug 2008
| BLoom1s
Guest
| | | |
|
| |
|
|
When I use the widget, all work fine. but I like to put the last comments in a tab of a widget. Its complex to explain, but if you go to http://www.d3porte.com you can understand better. In the up right, there are a widget with 3 tabs, I like to put last coments in one of them, and the only way its put the tag code, but dont work. And even if put that code in a a simple text widget, dont work anyway :S Sorry for my english
|
|
|
|
|
Sorry that I ONLY speak English!
I understand now. have you tried ot with the tag sf_recent_posts_tag()? I think this might be better and it is the one used by the widget…
|
|
|
4:09 am 30 Aug 2008
| Mr Papa
Moderator
| | Arizona, USA | |
|
| posts 1602 |
|
|
or try the sf_recent_posts_alt_tag()…. I like it even better… 
|
|
|
5:48 am 30 Aug 2008
| BLoom1s
Guest
| | | |
|
| |
|
|
I try the both codes in a text widget, and dont work, but with the forum widget work perfect. What can happend?
|
|
|
|
|
I am sorry to say I am not going to be much help. This is mainly because I don't use widgets and have not looked into their behaviour.
Is a text widget allowed to take a php tag? I know you can put text or HTML in one but I am unsure on whether it can execute php as well?
Can anyone else shed some light on this issue please?
|
|
|
12:49 pm 30 Aug 2008
| BLoom1s
Guest
| | | |
|
| |
|
|
I solve the problem, you are on the right. I write bad the code in the PHP area of the tab, and the text widget allow HTML but no PHP. Both problems combined loose me. But, now work perfect. Thanks for all, and congratulation for your work
|
|
|
|
|
That is good news. And I will remember this if it comes up again.
Thanks for letting me know.
|
|