![]() |
How to display latest threads in forumhome?
I created an empty block in forumhome. How can I put there latest threads?
thanks |
Quote:
|
yes but I want something that looks like Featured Hack, but with latest threads.
https://vborg.vbsupport.ru/showthread.php?t=73507 thanks |
Follow Kall's link, can make it look like the forum home in my Featured Hack just by changing templates here and there.
|
thanks! I installed the featured hack already. I want to keep it.
and in addition I'll add the latest threads. Do u know how its possible to do something like: 5 featured threads, and 5 latest threads. Possible? |
yes why not, you just need to add in some code in the index.php file ( or portal.php if you are using the portal version ).
If you need help with that let me know. |
thanks! I think I got it :)
|
ok i have two problems
the latest threads titles are displayed. but the message itself is not. and nor the forum of the thread. I used $thread[message] and $thread[forumname] :ermm: |
cinq? anyone?
|
What is the code you added ?
|
in index.php I didnt add anything
in the template I added $thread[message] and $thread[forumname] there is something to add I guess this is the code from index.php... PHP Code:
|
That's the only added code in index.php ?
There is no $thread[message] and $thread[forumname], thats why they don't show on the template as well. |
what excatly should I add? can u write down the whole lines?
here is the whole code added for Latest Treads: PHP Code:
|
No guarantees this will work.
Using $thread[message] and $thread[forumname] in the templates. Code in index.php you can try: PHP Code:
|
I'm gettin an error
Code:
Parse error: parse error, unexpected T_STRING in /forums/index.php on line 456 PHP Code:
The thread message is working! :) I added just this line Code:
$thread['message'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode(fetch_censored_text($thread['preview']), false, true), $vboptions['threadpreview'])); |
instead of preview in [message] I used pagetext as used in featured threads. it works smootly.
I resolved everything exept the forum name. I'm getting database errors when trying to insert those code lines. if anyone can help me resolve this I would really appreciate it. thanks in advance |
All times are GMT. The time now is 01:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|