PDA

View Full Version : Latest Threads On Forum Home


Pages : 1 [2] 3

RichieBoy67
12-22-2005, 08:59 PM
Hrm...

You will need to alter the query this time :p

Again, not tested, but in the plugin code, find:
AND forumid NOT IN (0$limitfids)
add above:
AND forumid IN ($showfids)
Now find:
// ## HIDE FORUMS WITHOUT THE CANVIEW PERMISSION ##
if (!$forumperms["$forum[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canview']) {
$limitfids .= ','.$forum['forumid'];
}
add below:
$showfids = x,y,z;
Replace x,y,z with the forumids you want users to be able to view :)

Satan

Just wondering, Has anyone tested this yet????



To block forums from showing I believe this will work. Place the id of the forums here.. replace the zero with the forums you want blocked..

AND forumid NOT IN (0$limitfids)

I just tested this and it works. These are the same instructions as for the other latest threads hack only you edit the xml file instead of the index file...

Prince
12-22-2005, 11:17 PM
I guess I am just stupid because that does not work, I get errors.

Chris M
12-22-2005, 11:37 PM
$limitfids = ',x,y,z';

Chris

Prince
12-22-2005, 11:40 PM
that causes errors, the only way it works is with one number in there:

$limitfids = x;

Lizard King
01-04-2006, 11:51 PM
It is not getting the right threads with correct time.
The last thread time shows : 03:45
But the correct time shall be : 22.39

WoodiE
01-06-2006, 11:11 PM
I'm trying to use this with the Right side menu plugin here on vb.org and when I insert the code into the menu nothing is displayed. Any ideas?

-Michael

Mathiau
01-07-2006, 10:47 PM
Installed on vb 3.5.3 on 6 templates and all work perfect!

Lizard King
01-07-2006, 10:54 PM
is there a way to add ajax auto refresh option to this ?

Vierie
01-08-2006, 09:42 AM
I'm trying to use this with the Right side menu plugin here on vb.org and when I insert the code into the menu nothing is displayed. Any ideas?

-Michael

Add
require_once('./includes/functions_forumlist.php'); once at the beginning of the php code in the xml-file and change the position of the hook to global_start.

After that you should be able to use the code in the right column.

MarsNIIT
01-09-2006, 03:43 AM
Hello,

I have two forum: music and IT,

But i want display Latest Threads of two forum display On Forum Home will divide 2 part, above is latest thread of forum IT, and below is latest thread of forum Music.

How to do it. Thank you.

Bytecon
01-12-2006, 04:58 PM
is there a way to add ajax auto refresh option to this ?

Now that would be too cool ..

imported_yesonline
01-17-2006, 09:04 PM
I imported the .xml and modified the FORUMHOME template and the mod is working on my forum, however, I see there is a "Step 3: Click INSTALL" which I don't know how to do it? I can not find the INSTALL link or something like that on my forum, is it a necessary and must do step? The mod has been working on my forum now, my vb is 3.5.3.

thanks

Vierie
01-18-2006, 12:37 PM
Scroll up to the very first post of this thread. On the right side you will find something like:
Mod Options
Install this Modification
Report this Modification

Click on "Install this Modification". Done.

majoreyeswater
01-18-2006, 10:13 PM
Wouldn't mind some help.

I have installed this on my messageboard - its a great option, but not working quite perfectly for me. I am not 'live' as yet, i.e. just some test users, but I get two different views when looking through different browsers (not surprising)

Through Firefox works ok, but without any icons/smilies (whatever is supposed to be depicted) and through IE I get the unpleasant image not found 'x'.

Could someone advise why this might be as I haven't a clue.

http://www.leedsfanclub.com

mbader71
01-21-2006, 10:21 AM
Installed and working fine,

thanks alot man

Eagle Creek
01-21-2006, 10:25 AM
Having a problem with this :(.

I installed it when my board was at the domain antispywareoffensief.nl. But since we moved it to nucia.nl it gives a doulbe URL at my icons.
Please have a look at the screenshot:
https://vborg.vbsupport.ru/attachment.php?attachmentid=41349&stc=1

As you can see two URL's are give. Is this a bigger problem (something like a setting somewhere) or is this a problem within the hack I can fix?

shaynehammy
01-21-2006, 10:02 PM
Very nice.

Quick question. How many threads will it display in Latest threads and is there a way to modify this?

Thanks

Vierie
01-21-2006, 10:12 PM
It displays 5 threads. If you want to change it, search for DESC LIMIT 5");
in the xml file and change that number to whatever number you need.

shaynehammy
01-22-2006, 09:36 PM
Thank you for your help. Can we marquee this in anyway?

The Chief
02-01-2006, 03:59 PM
installed and works great, thanks!!

/me clicks install

croportal
02-06-2006, 06:19 PM
how can i have that on nobn vbulletin page

Sam Granger
02-08-2006, 11:29 PM
How do I remove the "? Replies: 0 ? Views: 2 " part?

By the way, great mod!! :D

itorrents
02-11-2006, 05:26 PM
Working fine for me, on 3.5.3 :)

bashy
02-12-2006, 12:15 PM
This has stopped working for me...
The box is still there but no threads init...

Legende
02-13-2006, 04:27 PM
is it possible to show the main forum before the sub forum? because at the moment it only shows the subforum and i have like 10 sub-forums with the same name .. hope you understand

greets

somasimple
03-01-2006, 04:33 AM
Hi All,

Is there a way to show the forum belonging (like in the New posts link)?
I wanted to show it just after the thread title.
Thanks.

GuaRRand
03-01-2006, 05:25 AM
Screenshots??

somasimple
03-01-2006, 05:43 AM
Hi,
the forum page of the site www.somasimple.com/forums/ shows the installed feature but I want a little mod because members asked for the forum belonging of threads shown.

Legende
03-05-2006, 05:28 PM
is it possible to show the main-forum infront the sub-forum? because i have some sub-forums with similiar names

MRGTB
03-05-2006, 11:04 PM
is it possible to show the main-forum infront the sub-forum? because i have some sub-forums with similiar names

Does this display "Locked Threads", if NOT how can you make it display them?

The Chief
03-15-2006, 05:03 PM
hey Chris, there is a problem with putting this into all pages, like you said before, we had to write:

require_once('./includes/functions_forumlist.php'); after #################### PROCESS LATEST THREADS #######################;

but with 3.5.4, the functions_forumlist.php has changed since the 3.5.2, and now the ONLY problem I am recieving is in the USERCP subscriptions, the subscriptions are replacing the $threadbits...

can you check this out?

thanks!

Tyegurl
03-19-2006, 10:35 PM
am i dumb or did i do something wrong....i installed it and changed the text...nothing. i am using 3.5.4 ...maybe it doesn't work with that one? but it looks like someone go it to....


www.teamrespawn.com/vBulletin/index.php

xlguy
03-19-2006, 11:37 PM
How do I remove the "? Replies: 0 ? Views: 2 " part?

Edit the forumhome_latestthreadbit template.

Just installed on 3.5.4 and works fine so far (using PHP 4.x)

The Chief
03-20-2006, 02:42 PM
hey Chris, there is a problem with putting this into all pages, like you said before, we had to write:

require_once('./includes/functions_forumlist.php'); after #################### PROCESS LATEST THREADS #######################;

but with 3.5.4, the functions_forumlist.php has changed since the 3.5.2, and now the ONLY problem I am recieving is in the USERCP subscriptions, the subscriptions are replacing the $threadbits...

can you check this out?

thanks!
did anybody find a solution to this??

Tyegurl
03-22-2006, 05:30 PM
can someone please help me??? i would really like to use this.... i want my forum threads on separate pages but if i do that then no one can see the new posts...so this would be wonderful!!!

soma??? someone???

Tyegurl
03-26-2006, 10:16 PM
okay i got mine all sorted out....not really sure what happened but it just showed up one day lmfao!

Stop
03-26-2006, 10:44 PM
Looks fine.
Installed.

Tyegurl
03-26-2006, 11:14 PM
okay i have one question....right now i have this installed at the top above my vbshoutbox...is there a way to get it under the shoutbox?

i can get it on the bottom fo the forum and in the whats going on area....i would prefer under the shoutbox i think...

and one last thing....how do i show 7 threads?

zurv
03-27-2006, 04:20 PM
Hello,

I have a right side menu which I edit through "right_column"

How can I get my latest threads to display here? I have tried and tried but have been unsucessfull.

Btw, the right hand menu shows on all pages.

thanh
03-30-2006, 06:34 PM
I had the errrors

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT post.pagetext AS preview,
thread.threadid, thread.title AS threadtitle, lastpost, forumid, pollid, open, replycount, postusername, postuserid, lastposter,
thread.dateline, views, thread.iconid AS threadiconid, notes, thread.visible


FROM thread AS thread

LEFT JOIN recentlyviewed AS recentlyviewed ON(recentlyviewed.threadid = thread.threadid)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
WHERE thread.threadid IN(4,5,1,2,3,15,19,8,22,23,28,29,11,34,18,24,25,20 ,40,42,57,59,60,62,31,64,65,35,66,6,7,67,41,73,63, 72,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89 ,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104 ,105,106,107,71,111,115,117,127,157,134,181,156,12 0,186,141,159,197,234,217,216,187,237,196,192,243, 211,244,215,133,212,246,158,268,270,272,274,276,27 7,278,279,280,281,282,283,284,285,286,287,289,290, 291,292,294,295,296,298,299,300,301,302,303,68,304 ,307,308,309,310,312,313,314,315,316,317,318,320,3 21,322,323,324,325,326,327,328,180,330,152,331,333 ,221,335,336,337,188,338,341,342,347,340,359,384,3 79,386,155,385,362,344,390,391,358,396,415,441,458 ,463,436,474,476,429,269,461,484,487,493,488,491,5 02,509,511,512,513,514,515,516,517,519,521,522,523 ,524,504,424,496,492,154,421,537,531,470,420,560,5 58,564,477,466,426,542,430,494,475,561,566,520,568 ,604,596,574,600,618,615,614,623,624,585,619,622,5 98,563,577,261,645,423,706,670,757,756,866,937,802 ,808,841,692,960,904,829,1030,1014,1029,1034,1046, 377,1036,1044,1033,1018,375,1022,1051,206,401,409, 367,378,387,13,453,951,1143,1217,1219,1149,1195,10 42,1272,1275,1305,632,275,241,675,1658,373,1303)
ORDER BY recentlyviewed.dateline DESC
LIMIT 5;

MySQL Error : Got error 28 from table handler
Error Number : 1030
Date : Thursday, March 30th 2006 @ 03:30:52 PM
Script : http://xxxxxxxxxxxxxx/forums/index.php
Referrer : http://xxxxxxxxxx/forums/showthread.php?t=1679
IP Address : xxxxxxxxxxxxxx
Username : admin
Classname : vb_database

thanh
03-30-2006, 06:35 PM
could u please help me fix it yet?

jokerz
03-31-2006, 02:52 PM
Hello,

I have a right side menu which I edit through "right_column"

How can I get my latest threads to display here? I have tried and tried but have been unsucessfull.

Btw, the right hand menu shows on all pages.

I don't know what you did wrong. I installed this hack today and no problem with right column.

Thanks for latest thread hack :)

jokerz
03-31-2006, 03:02 PM
can someone please help me??? i would really like to use this.... i want my forum threads on separate pages but if i do that then no one can see the new posts...so this would be wonderful!!!

soma??? someone???

okay i have one question....right now i have this installed at the top above my vbshoutbox...is there a way to get it under the shoutbox?

i can get it on the bottom fo the forum and in the whats going on area....i would prefer under the shoutbox i think...

and one last thing....how do i show 7 threads?

I know the answers from your question, be patience when people can help you.

Ericsson
04-02-2006, 07:29 PM
Has anyone got any screenshots or demosof this?

xspazx
04-03-2006, 09:23 PM
demo: http://chewonthat.net/ FOOTER

PBX1
04-05-2006, 11:42 PM
How do I place this in a different spot on the forum. I'd rather have it at the top of the page, rather than at the bottom.

SHalliday
04-16-2006, 02:01 PM
Installed and working perfect! Thank you for the Awesome plugin.

Invalid ID
04-18-2006, 04:19 AM
I have installed it, made the required changes, but still no thread is shown on the forum home.

Invalid ID
04-18-2006, 05:30 PM
Nobody knows why? :)

Invalid ID
04-19-2006, 06:46 AM
Still awaiting help

Invalid ID
04-19-2006, 06:41 PM
Ok, I give up hopes.

Bye

jokerz
04-21-2006, 09:03 AM
How do I place this in a different spot on the forum. I'd rather have it at the top of the page, rather than at the bottom.
Just move variable code where you want to show. Not good thinking ay?

Invalid ID
04-24-2006, 06:42 AM
demo: http://chewonthat.net/ FOOTER
R u sure I can see that there?

jason_x
04-27-2006, 05:36 PM
does it work in 3.5.4?

wrang
04-27-2006, 06:49 PM
does it work in 3.5.4?

Yes it work fine on my forum with VB 3.5.4

jason_x
04-27-2006, 07:43 PM
installed but i think there is a permission bug:

can view forum set to no but the thread shows up in the latest threads list.

also the internal area (viewable by administrators only) shows up there

Deska
04-28-2006, 12:14 AM
Anyone know how to make it enable on all pages?

Vierie
04-28-2006, 01:25 PM
installed but i think there is a permission bug:

can view forum set to no but the thread shows up in the latest threads list.

also the internal area (viewable by administrators only) shows up there

Did you test it as a guest? As admin you will see all threads.

RichieBoy67
04-29-2006, 02:43 PM
I would like to disable certain members posts from showing. Can anyone supply the code for this???

Thanks

Pathor
04-29-2006, 06:26 PM
I don´t see anything on my lokal test-system...

php5, mysql5

jason_x
04-30-2006, 11:05 AM
Did you test it as a guest?

yes.

temporary solution:
i have added the forumid to $limitfids (hook forum_complete).

fetch_permissions($forum['forumid']);

$limitfids = "1,2";

// ## HIDE FORUMS WITHOUT THE CANVIEW PERMISSION ##


threads with this forumid will not show up on latest threads (unfortunately for all usergroups!).

Pathor
04-30-2006, 04:53 PM
Pathor? Your SN sounds known for me. Are you from vB Germany?

Yes, I am. ;)

Welche Version hast Du ? L?uft hervorragend unter 3.54. Ich habe einige ?nderungen am Code gemacht, so das die ?bersicht nun als Tabelle dargestellt wird. Ist nur halt das Problem, das G?ste es auch seheh k?nnen, und das m?chte ich nicht. Hast Du irgendeine Idee, wie man das abschalten kann? Meine PHP Kentnisse sind sehr begrenzt - leider :( -Mike

Du musst eine if-condition um den ganzen Templatecode setzen.

<if condition="$bbuserinfo['userid']">
<Latest Threads on Forum Home>
</if>

Somit sehen nur registrierte Benutzer dein Forum. :)

Pathor
04-30-2006, 06:52 PM
Danke mein Freund. Ich schulde Dir was. Wenn ich auch mal irgendwas f?r Dich tun kann - z?gere mich nicht, mich zu fragen -Micha

Kein Prob. ;)

Somit sehen nur registrierte Benutzer dein Forum.

Soll nat?rlich 'Plugin' am Ende hei?en. :D

Tim Simms
05-13-2006, 10:31 AM
I needed to be able to see the names of the forums in the list, so I modified it a bit... Here's the XML code:


<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="chrism_latestthreads" active="1">
<title>Latest Threads on Forum Home</title>
<description>This product will show the Latest Threads posted (using permissions) on your forumhome</description>
<version>1.1.2</version>
<codes>
</codes>
<templates>
<template name="forumhome_latestthreadbit" templatetype="template" date="1129992702" username="Chris M" version="3.5.0"><![CDATA[<div class="smallfont">
<if condition="$show['firstnew']">
<a href="showthread.php?t=$thread[threadid]&amp;goto=newpost"><img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a>
</if>
<if condition="$show['icon'] && !$show['firstnew']">
<img src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" />
</if>
<a href="showthread.php?t=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>
<em>$vbphrase[last_post]:</em> $thread[date] <if condition="$vboptions['yestoday'] != 2"><span class="time">$thread[time]</span></if> <phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
&raquo; $vbphrase[replies]: $thread[replycount]
&raquo; $vbphrase[views]: $thread[views]
</div>]]></template>
</templates>
<plugins>
<plugin active="1">
<title>Latest Threads on Forum Home</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[global $globaltemplates;

$globaltemplates = array_merge($globaltemplates, array('forumhome_latestthreadbit'));]]></phpcode>
</plugin>
<plugin active="1">
<title>Latest Threads on Forum Home</title>
<hookname>forumhome_complete</hookname>
<phpcode><![CDATA[// #################### PROCESS LATEST THREADS #######################
// fetch the permissions for each forum
global $vbulletin;

$forumperms = array();
foreach($vbulletin->forumcache AS $forum) {

$forumperms[$forum["forumid"]] = fetch_permissions($forum['forumid']);

// ## HIDE FORUMS WITHOUT THE CANVIEW PERMISSION ##
if (!($forumperms[$forum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums']) {
$limitfids .= ','.$forum['forumid'];
}
}
unset($forum);

if ($vbulletin->options['threadpreview'] > 0) {
$previewfield = ', post.pagetext AS preview';
$previewjoin = 'LEFT JOIN '.TABLE_PREFIX.'post AS post ON(post.postid = thread.firstpostid)';
}

$getthreads = $db->query_read("
## GET LATEST THREADS ##
SELECT thread.*,forum.title AS forumtitle,thread.iconid AS threadiconid $previewfield
FROM ".TABLE_PREFIX."thread AS thread
LEFT JOIN ".TABLE_PREFIX."deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
$previewjoin,
".TABLE_PREFIX."forum AS forum WHERE forum.forumid = thread.forumid
AND open <> 10
AND thread.forumid NOT IN (0$limitfids)
AND thread.visible = '1'
AND deletionlog.primaryid IS NULL
ORDER BY lastpost
DESC LIMIT 5");

while($thread = $db->fetch_array($getthreads)) {

$threads = true;
$thread['title'] = fetch_censored_text(fetch_trimmed_title(unhtmlspec ialchars($thread['title']), 22));
$thread['date'] = vbdate($vbulletin->options['dateformat'], $thread['lastpost'], 1);
$thread['time'] = vbdate($vbulletin->options['timeformat'], $thread['lastpost']);
$thread['preview'] = preg_replace('#\[quote(=(&quot;|"|\'|).*\\2)?\](.*)\[/quote\]#siU', '', $thread['preview']);
$thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbc ode(fetch_censored_text($thread['preview']), false, true), $vbulletin->options['threadpreview']));
$thread['replycount'] = vb_number_format($thread['replycount']);
$thread['views'] = vb_number_format($thread['views']);

// thread icon
$show['icon'] = false;
$icon = fetch_iconinfo($thread['iconid']);

if (is_array($icon)) {
$show['icon'] = true;
$thread['threadiconpath'] = $icon['iconpath'];
$thread['threadicontitle'] = $icon['title'];
}

// show goto new post
$show['firstnew'] = false;
$bbforumview = fetch_bbarray_cookie('forum_view', $thread['forumid']);

if ($bbforumview > $vbulletin->userinfo['lastvisit']) {
$lastread = $bbforumview;
} else {
$lastread = $vbulletin->userinfo['lastvisit'];
}

if ($thread['lastpost'] > $lastread) {

$threadview = fetch_bbarray_cookie('thread_lastview', $thread['threadid']);

if ($thread['lastpost'] > $threadview) {
$show['firstnew'] = true;
$show['icon'] = false;
}
}

exec_switch_bg();

eval("\$threadbits .= \"".fetch_template('forumhome_latestthreadbit')."\";");
}
if ($threads) {
$show['latestthreads'] = true;
}
// memory saving
unset($thread, $threads);
$db->free_result($getthreads);]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="GLOBAL" fieldname="global">
<phrase name="latest_threads"><![CDATA[Latest Threads]]></phrase>
</phrasetype>
</phrases>
<options>
</options>
</product>




Then, in the FORUMHOME, here's the Lastest Threads section:


<!-- latest threads -->
<if condition="$show['latestthreads']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestthreads')"><img id="collapseimg_forumhome_latestthreads" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_latestthreads].gif" alt="" border="0" /></a>
$vbphrase[latest_threads]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_latestthreads" style="$vbcollapse[collapseobj_forumhome_latestthreads]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[latest_threads]" /></td>
<td class="alt1"><div class="smallfont">$threadbits</div></td>
</tr>
</tbody>
</if>
<!-- /latest threads -->


Worked like a charm! :cool:

somasimple
05-16-2006, 10:28 AM
Hi Tim,

The forumtitle you used isn't used in any another place.
The modidfication doesn't show the forum title! :confused:

criscokid
05-17-2006, 05:42 PM
Can this mod be used to show the 'latest threads' block other than on forumhome? like on a portal front page?

jokerz
05-18-2006, 08:53 AM
This hack is not about the latest threads, it is only when you post the threads and it'll show the latest post in threads. Weird.. I thought its only list of new threads not new posts.

eg. If I post in old thread or new thread, both will show up as 'Latest Threads'

harishankar
05-18-2006, 09:08 AM
That's exactly what I'm looking for jokerz. I wanted latest posts. I guess this is the mod.

For the "Latest threads" as you want it, I think there's a tutorial at vbulletin.com which does that using the external hook.

criscokid
05-18-2006, 10:57 AM
I found the HowTo Display Latest Active Threads on ANY normal HTML page (http://www.vbulletin.com/forum/showthread.php?t=158895) document. but it's only the 'last x threads posted' not 'last x postings posted' like this one is.

This is the one that I want - I just loosely used the term 'latest threads' as I took it from the title of this mod. Maybe it should be renamed to be more exact?

Anyway... is it possible to use this mod on a page other than on forumhome ( like on a portal front page)?

harishankar
05-18-2006, 12:57 PM
Any way to control to number of new topics which appear?

steadicamop
05-26-2006, 07:19 PM
I've just updated this from a previous version - I'm not sure if the old one did this, but where do I add "&goto=newpost" on the end of the url .... I do understand some basic PHP but just can't see where it goes (so that each thread which has been read, when you click the link, always goes to the last post).

Cheers!!

Jason

criscokid
05-27-2006, 07:53 AM
Is it possible to use this mod on a page other than on forumhome (like on a portal front page)?

redlabour
06-02-2006, 11:46 AM
Sorry Guys, i have installed the Product and can not find any Options in AdminCP and the Hack is not shown on my Forumhome. Where can i fínd install Instructions ?

wrang
06-02-2006, 01:11 PM
Sorry Guys, i have installed the Product and can not find any Options in AdminCP and the Hack is not shown on my Forumhome. Where can i f?nd install Instructions ?

it dosent show in the ACP after you have logout from the ACP and logged in again

criscokid
06-03-2006, 04:33 PM
Is it possible to use this mod on a page other than on forumhome (like on a portal front page)?
Is anyone able to offer support on this mod? I've asked the same question twice but unfortunately nobody's posted a reply.

Konstantinos
06-08-2006, 12:10 PM
where in admincp do i set the number of threads to display? i cant find the setting

criscokid
06-11-2006, 11:47 AM
Sorry Guys, i have installed the Product and can not find any Options in AdminCP
I can't find any admin controls for this mod either.

shaynehammy
06-12-2006, 05:11 AM
I have two requests. How and where do i exclude certain sections from the latest posts and i would appreciate it if anyone could show me how to have the latest posts scrolling down vertically?

criscokid
06-12-2006, 07:39 AM
Ha ha... I'm getting somewhere! :) :)
There are no controls for this mod in the adminCP - you modify the seetings in the XML file - simply make your edits then upload your XML file. Look for this bit of code in the file:
$getthreads = $db->query_read("
## GET LATEST THREADS ##
SELECT thread.*,thread.iconid AS threadiconid $previewfield
FROM ".TABLE_PREFIX."thread AS thread
LEFT JOIN ".TABLE_PREFIX."deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
$previewjoin
WHERE open <> 10
AND forumid NOT IN (0$limitfids)
AND thread.visible = '1'
AND deletionlog.primaryid IS NULL
ORDER BY lastpost
DESC LIMIT 5");
Change the 5 in 'DESC LIMIT 5' to however many threads you want to show.

Now all I need to figure out is how to cut out the graphic icons, make the thread title longer and do away with the superfulous 'Last Post: x by y ? Replies: a Views: b' text.

dutchbb
06-12-2006, 08:45 AM
@ criscokid: You can change the title length in that plugin too (it's standard set to 22)

And the rest you can find in the template "forumhome_latestthreadbit"

criscokid
06-12-2006, 12:35 PM
Thank Triple T :) :)
Is it possible to exclude specific forums from showing up in the 'latest threads'?

Triple T: What mod are you running at http://forum.dutchbodybuilding.com/links.php?)

criscokid
06-12-2006, 01:02 PM
I originally put the 'latest threads block' at the bottom of the page as suggested. It all displays ok. I've now tried to put it at the top of the page just below the navbar but it breaks the page... I've got a side column on the the left as I'm using vbPortal - the 'latest threads block' and the rest of FORUMHOME gets displayed after the bootom of the left column. Anyone able to help?

criscokid
06-13-2006, 12:39 PM
Is it possible to exclude specific forums from showing up in the 'latest threads'?

criscokid
06-16-2006, 09:52 AM
Is it possible to exclude specific forums from showing up in the 'latest threads'?
Is anyone able to answer my question?

Alysum
06-22-2006, 04:17 AM
Does this work with VB 3.5.4 or has there been a better Addon since then? Thanks

harishankar
06-22-2006, 04:38 AM
Oops wrong thread.

RichieBoy67
06-29-2006, 06:32 PM
Is it possible to exclude specific forums from showing up in the 'latest threads'?


FROM ".TABLE_PREFIX."thread AS thread
LEFT JOIN ".TABLE_PREFIX."deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
$previewjoin
WHERE open <> 10
AND forumid NOT IN (74,75,76,94,86,41,106,118,113,105,107,110,112,119 ,111,108,92,104,121,122,123,124,125,126,127,128,12 9,133,130,146,147,148,149,150,151,152,153,154,158, 88$limitfids)
AND thread.visible = '1'
AND deletionlog.primaryid IS NULL
ORDER BY lastpost
DESC LIMIT 20");



There is some of my code showing how I blocked all these forums from showing...

-=Sniper=-
06-30-2006, 12:39 AM
I added ajax refresh option, for those interested

https://vborg.vbsupport.ru/showpost.php?p=1018508&postcount=5

its simple and it does work :)

letsjoy
07-04-2006, 11:39 AM
thanx for that

asasi
07-08-2006, 09:12 AM
Hi!
in 3.0.X version off latest threads on forumhome the informations scrolling from botton to top in a field. in this version I cant find this and threads is static

dodjer42
07-14-2006, 04:36 AM
Bit of a noob question, but my latest threads appears at the bottom of my forum. Shouldnt it appear at the top? I searched in FORUMHOME and put it in according to the install instructions, but its still at the bottom.

Regards,
D

Snake
07-14-2006, 11:12 AM
Awesome! How can I never notice about this great hack. :D

dodjer42
07-17-2006, 04:55 AM
Bit of a noob question, but my latest threads appears at the bottom of my forum. Shouldnt it appear at the top? I searched in FORUMHOME and put it in according to the install instructions, but its still at the bottom.

Regards,
D
Sorted.

I found also that using the default syntax, the latest threads popped up without a border table. I modded the FORUMHOME insert code to this which seems to be a bit cleaner.

<!-- latest threads -->
<if condition="$show['latestthreads']">
<tbody>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestthreads')"><img id="collapseimg_forumhome_latestthreads" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_latestthreads].gif" alt="" border="0" /></a>
$vbphrase[latest_threads]
</td>
</tr>
</tbody>

<tbody id="collapseobj_forumhome_latestthreads" style="$vbcollapse[collapseobj_forumhome_latestthreads]">
<tr>

<td class="alt1"><div class="smallfont">$threadbits</div></td>
</tr>
</tbody>
</table>

</if>
<!-- /latest threads -->

Is there anyway to modify the text so that forum thread title is truncated less? At the moment it seems to truncate around 10-15 chars along (even though I have hundreds of pixels whitespace on the right of the latest threads table.

Techno05
07-17-2006, 08:59 AM
Anyone know how to make it display on any page?

hnjco
07-17-2006, 06:06 PM
Hi Chirs:

I have following questions for you

1) Is it possible to move latest thread box to the top on forum home? underneath usercp menu?

2) Is it possible to display the thread in a column format like

[Thead] | [Posts] | [Poster]

3) Can we increase the size of the name of the thread ? we want to show the full name of the thread not cut it?

Please give us quote to make these changes?

thanks
hnj

criscokid
07-18-2006, 10:41 AM
Is there anyway to modify the text so that forum thread title is truncated less?
Play around with the settings in the XML file... edit the file then upload it again. Sorry I can't be more specific than that... I had to use a bit of common sense (and tial and error when I made changes for my site).

shaynehammy
07-20-2006, 07:49 AM
I have two requests. How and where do i exclude certain sections from the latest posts and i would appreciate it if anyone could show me how to have the latest posts scrolling down vertically?

BUMP! Please help!!. Looking for a way to add a scolling marquee to this vertically displaying about 10 - 15 latest posts. Options for admin could be up or down, speed etc...

Please, I'd really appreciate it.

Thank you.

Shayne

SiriusBlack22
07-22-2006, 05:52 PM
Good hack but it's messy. You should make it more organized. :(

SiriusBlack22
07-22-2006, 05:56 PM
BUMP! Please help!!. Looking for a way to add a scolling marquee to this vertically displaying about 10 - 15 latest posts. Options for admin could be up or down, speed etc...

Please, I'd really appreciate it.

Thank you.

Shayne
I don't know how to implement this, but it the things you mentioned were easy. All of the aspects of the marquee are HTML codes.

thenetbox
07-24-2006, 09:30 PM
hello

Do you know why it doesn't work on a side bar? I installed https://vborg.vbsupport.ru/showthread.php?t=117989 but it doesn't show anything in side the side bar.

How can I pass the values to the sidebar that exist in forumhome?

Blindchild02
07-25-2006, 03:49 AM
any way to put this in header/footer so it shows on all pages

punk23
07-30-2006, 09:49 AM
Hi all - I don't know if this is still supported but I wonder if someone could please help me change the look of my "Latest Threads" box from this:

http://img89.imageshack.us/img89/9767/beforeiw4.th.gif (http://img89.imageshack.us/my.php?image=beforeiw4.gif)

To this:

http://img100.imageshack.us/img100/7454/afterbj4.th.gif (http://img100.imageshack.us/my.php?image=afterbj4.gif)

Thanks!!

:D

Edog
08-09-2006, 01:32 AM
Im guessing this is good for 3.6?

Coach_Guru
08-09-2006, 08:58 PM
How to display in an external page(vbtemplates)?

Thanks a lot.

criscokid
08-13-2006, 08:18 PM
What edits do I need to make so that clicking on a username opens up that user's profile in a new browser window?

aveon
08-22-2006, 10:52 PM
hey chris how can we make this seen on all pages not only on forum home??

wrang
08-23-2006, 05:44 AM
Is it possible to make so when i click on a thread link came to the last page if it has more than one page. Now you came to the first page and not the last page

Nick0r
08-27-2006, 09:10 AM
There is definitely a permissions issue with this hack, it seems to totally ignore any permissions given - guests/regular members can see restricted forums.

Onkel_Tom
08-27-2006, 07:05 PM
There is definitely a permissions issue with this hack, it seems to totally ignore any permissions given - guests/regular members can see restricted forums.

As I use the original hack from NTLDR for my vb 3.0.x, I ported it today to the new 3.6.0 version on my own because of many changes and additions.

For the permission issue please try to change the following lines in the .xml file to their original syntax an try if the issue is gone. For me it works fine with this lines!

find in product-chrism_latestthreads.xml
$forumperms[$forum["forumid"]] = fetch_permissions($forum['forumid']);

// ## HIDE FORUMS WITHOUT THE CANVIEW PERMISSION ##
if (!($forumperms[$forum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums']) {
$limitfids .= ','.$forum['forumid'];
}
}

Replace it with
$forumperms["$forum[forumid]"] = fetch_permissions($forum['forumid']);

// ## HIDE FORUMS WITHOUT THE CANVIEW PERMISSION ##
if (!($forumperms["$forum[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums']) {
$limitfids .= ','.$forum['forumid'];
}
}

If you want to exclude some Usergroups from viewing the latest threads:
search for:
if ($threads) {
$show['latestthreads'] = true;
}
Add after:
$grouparray = array ( 1,3,4,8);
if (in_array($vbulletin->userinfo['usergroupid'],$grouparray) OR $vbulletin->userinfo['userid'] == 0 )
{
$show['latestthreads'] = false;
}

@ dodjer42
If you want to change the thread title truncation edit the number 22 at the end of this line:
$thread['title'] = fetch_censored_text(fetch_trimmed_title(unhtmlspec ialchars($thread['title']), 22));

e.g. to 50 to truncate at 50 characters.

Don't forget to upload/install the changed file!

aveon
08-28-2006, 01:10 PM
is there any way to show it on all pages instead of only on forum home??

criscokid
08-29-2006, 04:59 PM
How can I get the usernames sisplayed in the 'Latest forum threads' section when clicked on to open in a new window?

shaynehammy
08-31-2006, 04:01 AM
If i want to change the display name to "The latest 20 threads" or similar would i change the phrase after CDATA below?

<phrase name="latest_threads"><![CDATA[Latest Threads]]></phrase>
</phrasetype>
</phrases>
<options>
</options>
</product>

Nick0r
08-31-2006, 07:50 AM
Unfortately Onkel_Tom, that made no difference. On 3.6 guests can still see private threads showing up in the 'Latest threads' section of the homepage.

aveon
09-03-2006, 02:08 AM
does anybody know how to make this hack visible on all pages???

Pathor
09-03-2006, 03:11 PM
<a href="http://www.vbulletin.com/forum/showthread.php?t=198968" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=198968</a>

That´s also possible with this hack.

aeroguy
09-04-2006, 04:48 AM
could some add a join table function as to also enable to show what forum the threads are in. The get thread function within the mod already sees the forum id just need a join to get the name from the id.

Onkel_Tom
09-04-2006, 09:50 AM
could some add a join table function as to also enable to show what forum the threads are in. The get thread function within the mod already sees the forum id just need a join to get the name from the id.
Should be done with:
## GET LATEST THREADS ##
$getthreads = $db->query_read("
SELECT forum.title AS forumtitle, thread.*, thread.iconid AS threadiconid $previewfield
FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN " . TABLE_PREFIX . "forum AS forum ON (forum.forumid = thread.forumid)
$previewjoin
WHERE thread.open = '1'
AND thread.forumid NOT IN (0$limitfids)
AND thread.visible = '1'
AND deletionlog.primaryid IS NULL
ORDER BY lastpost
DESC LIMIT 10");

and to restrict the lenght add after:
$thread['title'] = fetch_censored_text(fetch_trimmed_title(unhtmlspec ialchars($thread['title']), 55));
$thread['forumtitle'] = fetch_censored_text(fetch_trimmed_title(unhtmlspec ialchars($thread['forumtitle']), 50));

To show the name of the forum you have to change the Template forumhome_latestthreadbit, add
<a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]" title="go to $thread[forumtitle]">$thread[forumtitle]
or something like that.

aveon
09-04-2006, 01:22 PM
hey Tom it didnt work mate or did i do something wrong i added the codes where you wanted me to add them and the latest posts still only visible on forum home how can i set permissions and make it visivle on all pages helpme please and i will come up with a really good design for side column...

putergirl
09-04-2006, 02:41 PM
Hello, I am having problems viewing the latest threads. Sometimes I can see it and sometimes I can't. I've tried clearing my cache and the cookies to no avail. Just when I give up, it will show again briefly, then poof, gone again. I mean, I had resined myself to not being able to see it, and it showed up an hour later after I did nothing. Any ideas what could be causing that? The same thing happens with my users, some can see it, some can't, and we didn't have this problem till I upgraded to 3.6. Thanks.

I have also tried re-importing the product and allowed overwrite.

aeroguy
09-04-2006, 04:07 PM
i am too getting an mysql error

Invalid SQL:

## GET LATEST THREADS ##
SELECT thread.*,thread.iconid AS threadiconid , post.pagetext AS preview
FROM CT_thread AS thread
LEFT JOIN CT_deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN CT_forum AS forum ON(forum.forumid = thread.forumid)
LEFT JOIN CT_post AS post ON(post.postid = thread.firstpostid)
WHERE open <> 10
AND forumid NOT IN (0)
AND thread.visible = '1'
AND deletionlog.primaryid IS NULL
ORDER BY lastpost

dodjer42
09-08-2006, 08:17 AM
Awesome mod, and thanks Tom for the info on how to change the title length.

MRGTB
09-08-2006, 02:09 PM
I've just noticed somthing regarding W3C and CCS validation. While it validates OK in W3C. It doesn't in CSS.

The problem seems to be the use of this in the latestthreadbit template.

style="vertical-align: text-middle"

It's failing the validation, anybody got any idea what to use instead that will pass CSS

MRGTB
09-08-2006, 02:20 PM
Here is the fix, change this:

Change this code to in the "forumhome_latestthreadbit" template.

<img src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" />

To this:

<img style="vertical-align: middle;" src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" />

It will then be both W3C and CSS valid

------------------------------

You can also add this code in the same template &nbsp; to create a gap between the Thread Title and the Last Post details.

Look For:

<a href="showthread.php?t=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>

Change to this:

<a href="showthread.php?t=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>&nbsp;

Ninth Dimension
09-10-2006, 03:05 AM
Hi there, I'm looking for a hack just like this, for vB3.6.0 - but rather than have the thread appear at the bottom of the forumhome page, I'd like them listed in a coloum down the right-hand side of the page... Would this hack be easy to change for that purpose?

Thank you

MRGTB
09-10-2006, 03:10 AM
Hi there, I'm looking for a hack just like this, for vB3.6.0 - but rather than have the thread appear at the bottom of the forumhome page, I'd like them listed in a coloum down the right-hand side of the page... Would this hack be easy to change for that purpose?

Thank you

This does work with vBulletin 6, I'm using it on my site. The problem with using it as a side column is the column width will not be wide enough to display all the details. So your better off sticking to a center block.

Ninth Dimension
09-10-2006, 03:46 AM
This does work with vBulletin 6, I'm using it on my site.
That is good to hear :)
The problem with using it as a side column is the column width will not be wide enough to display all the details. So your better off sticking to a center block.
But surely that's just a simple case of editing the html? Maybe start with the thread title, new line, date posted, new line, who posted, etc..

Maybe I'll have a play around with it tomorrow, see if I can get it working the way I want. :)

MRGTB
09-10-2006, 11:05 AM
Yes, I guess you could just intruduce some <br /> into the lines.

Ninth Dimension
09-10-2006, 10:27 PM
I've successfully been able to edit the templates to achieve what I want, you can see the result here: http://theice.co.uk/ :D

MRGTB
09-10-2006, 10:39 PM
I see, well done. I'm thinking you have removed some of the fields. But I'm wondering why you just didn't add some "<br />" in the right places to make the information drop below each other on its own line, so you could have kept a lot more fields displayed in the narrow column. Or did you only want displayed what you have: IE- thread title, time, name.

Ninth Dimension
09-10-2006, 10:47 PM
I decided that info such as number of views and posts were not that important. What was more important were details such as the thread title, when it was last updated, and who was the last to post to it, this would allow me to list more threads in the same ammount of space. I guess I could go back and add a 'title' tag to the title of the thread showing the number of posts and views.. *goes off to do that now*

MRGTB
09-10-2006, 10:53 PM
Yeah, I know what you mean. Each to there own really. I prefer to show as much info as possible like the FORUM link and so on. But thats me, were all different.

Ninth Dimension
09-10-2006, 10:55 PM
A suggestion to the hack owner - to make it so that only threads which have updates the member hasn't yet seen to appear in bold, while the rest remain unbolded.

EDIT: Nevermind, I've just seen you have something like this in place already. :)

Ninth Dimension
09-10-2006, 10:56 PM
Yeah, I know what you mean. Each to there own really. I prefer to show as much info as possible like the FORUM link and so on. But thats me, were all different.
Yeah, I get what you're saying. One thing I think your forum might benefit from is to use a table to make all the info nice and organised into coloums, rather than just lose like it is now...

MRGTB
09-10-2006, 11:02 PM
Yeah, I get what you're saying. One thing I think your forum might benefit from is to use a table to make all the info nice and organised into coloums, rather than just lose like it is now...


Well it's really funny you should say that, because that has crossed my mind, but I was a little unsure how to get each post in it's own column though.

MRGTB
09-11-2006, 12:13 AM
How can you get it so each latest thread displayed uses it's own alternate colour. Like alt1 and alt2 in the box. So it looks nicer. So if you displayed 4 threads, they would be like this: alt1,alt2,alt1,alt2

Ninth Dimension
09-11-2006, 01:18 AM
I think I can do what you want, both with the coloums and alternating colours, but I'm going to need to see some of your templates first.

I'm going to need part of your FORUMHOME template, everything from <!-- latest threads start --> to <!-- latest threads end -->, and the whole of your forumhome_latestthreadbit template.

It would also be handy if you could give me the content of your 'Latest Threads on Forum Home' plugin.

If you can paste that info here, I'll see what I can do for you :D

MRGTB
09-11-2006, 01:24 AM
Here is my template:


<!-- latest threads start -->
<if condition="$show['latestthreads']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('latest_threads')">
<img id="collapseimg_latest_threads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latest_threads].gif" alt="" border="0" /></a>
<!-- title start -->
Latest Threads
<br />
<div class="smallfont">
Read latest threads
</div>
<!-- title end -->
</td>
</tr>
</tbody>
<tbody id="collapseobj_latest_threads" style="$vbcollapse[collapseobj_latest_threads]">
<tr>
<td class="alt1">
<!-- code start -->
$threadbits
<!-- code end -->
</td>
</tr>
</tbody>
</table>
<br />
</if>
<!-- latest threads end -->


Plug-ins attached

Ninth Dimension
09-11-2006, 01:35 AM
I still need the forumhome_latestthreadbit template.

As for the plugin, could you maybe copy/paste the text for me please? The text I need can be found: ACP -> Plugins & Products -> Plugin Manager -> Latest Threads on Forum Home (the one listed next to forumhome_complete) -> then copy/paste all the text from the 'Plugin PHP Code' box please?

I'm just off to bed now, but I'll take a look in the morning and see what I can do for you :D

MRGTB
09-11-2006, 01:38 AM
Here the threadbit code:


<div class="smallfont">
<if condition="$show['firstnew']">
<a href="showthread.php?t=$thread[threadid]&amp;goto=newpost"><img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a>
</if>
<if condition="$show['icon'] && !$show['firstnew']">
<img style="vertical-align: middle;" src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" />
</if>
<a href="showthread.php?t=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>&nbsp;
<em>$vbphrase[last_post]:</em> $thread[date] <if condition="$vboptions['yestoday'] != 2"><span class="time">$thread[time]</span></if> <phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
&raquo; $vbphrase[replies]: $thread[replycount]
&raquo; $vbphrase[views]: $thread[views]
&raquo; $vbphrase[forum]: <a href="forumdisplay.php?f=$thread[forumid]">$forumdata[title]</a></div>


But you could have got the template code for this out the plug-in I attached to the other post above as a zip file

Ninth Dimension
09-11-2006, 06:08 PM
OK, here goes... I've not tested it or anything, and I've not added the alternating colours yet, but try this on for size and see what you think:

FORUMHOME (part)
<!-- latest threads start -->
<if condition="$show['latestthreads']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat" colspan="5"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('latest_threads')">
<img id="collapseimg_latest_threads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latest_threads].gif" alt="" border="0" /></a>
<!-- title start -->
Latest Threads
<br />
<div class="smallfont">
Read latest threads
</div>
<!-- title end -->
</td>
</tr>
</tbody>
<tbody id="collapseobj_latest_threads" style="$vbcollapse[collapseobj_latest_threads]">
<!-- code start -->
$threadbits
<!-- code end -->
</tbody>
</table>
<br />
</if>
<!-- latest threads end -->

forumhome_latestthreadbit
<tr>
<td class="alt1"><div class="smallfont">
<if condition="$show['firstnew']">
<a href="showthread.php?t=$thread[threadid]&amp;goto=newpost"><img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a>
</if>
<if condition="$show['icon'] && !$show['firstnew']">
<img style="vertical-align: middle;" src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" />
</if>
<a href="showthread.php?t=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a></div></td>

<td class="alt2"><div class="smallfont"><em>$vbphrase[last_post]:</em> $thread[date] <if condition="$vboptions['yestoday'] != 2"><span class="time">$thread[time]</span></if> <phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase></div></td>

<td class="alt1"><div class="smallfont">$vbphrase[replies]: $thread[replycount]</div></td>

<td class="alt2"><div class="smallfont">$vbphrase[views]: $thread[views]</div></td>

<td class="alt1"><div class="smallfont">$vbphrase[forum]: <a href="forumdisplay.php?f=$thread[forumid]">$forumdata[title]</a></div></td>
</tr>

MRGTB
09-11-2006, 07:04 PM
what files did you edit, it looks like the only changes you've made are to the latestthreadbit. Is that right?

Because I can just replace that template with your code to test it if that's all you've changed, rather than uploading the changed code as a plug-in

MRGTB
09-11-2006, 07:40 PM
No it did what I thought it would do after looking at your code changes, it put each item in it's own seperate column sideways and looked a right mess. You went along the same lines as me in your thinking. But it doesn't work that way I'm afraid. You just finish up with either more columns than you want, or the threads repeat each other if you try the same method using the $threadbit and more alts in the forumhome box code.

Ninth Dimension
09-11-2006, 07:46 PM
Well, it's a bit hard to work on building what you want remotly like this... I gave it a shot, but i guess I failed... oh well, sorry.... I'm sure you'll be able to work out what you need to do.. good luck.

MRGTB
09-11-2006, 07:57 PM
Not to worry, it no big deal. I'll play around in the future with it. As I'm busy working on another ed2k hack I have installed right now.

aveon
09-11-2006, 09:13 PM
is there any way to show it on header instead of only on forum home i asked that question couple of time now any body can help me??

MRGTB
09-11-2006, 09:25 PM
is there any way to show it on header instead of only on forum home??

you could just put the box in the header, instead of the FORUMHOME template, but I'm not sure if that would work, as I think without trying it, it needs to be in the FORUMHOME template to grab the information. But you can try it.

It's only a case of putting the box that displays the threads in the header instead of the FORUMHOME.

aveon
09-11-2006, 10:34 PM
you could just put the box in the header, instead of the FORUMHOME template, but I'm not sure if that would work, as I think without trying it, it needs to be in the FORUMHOME template to grab the information. But you can try it.

It's only a case of putting the box that displays the threads in the header instead of the FORUMHOME.

it doesntwork that way it needs a modification but i need help on this

MRGTB
09-12-2006, 01:09 AM
the answer to your question is in this thread, When I ran vBulletin 3 and installed her hack (which this is based off) I had it working on an external page, as well as my forumhome. You have to add some code I think to either global.php or another file. The answer is somewhere on the first 15-20 pages of this thread.

https://vborg.vbsupport.ru/showthread.php?t=60544&highlight=latest+threads

aveon
09-12-2006, 02:08 AM
hello gary i tried that but when i tried to edit the index php it gives me error when i upload back to db so is there anyother way to do this ill be really apparitiated

MRGTB
09-12-2006, 02:21 AM
Well there are two things in that thread you has to get right. one was this.

@SuperG: Put the code just above the following in global.php so its run on everypage and you could be able to add the $threadbits variable in any of the templates:

// parse some global templates

If vB use that variable on any page then you'll need to change this line:


require_once('./includes/functions_forumlist.php');
eval("\$threadbits .= \"".fetch_template('forumhome_latestthreadbit')."\";");

And replace $threadbits with something unique like $my_latest_threads for example and change the variable in the template accordingly.

try that, becuase you might have missed the bit were the guy got an error like you and had to add another line to the code I've highlighted in red.

aveon
09-12-2006, 07:27 PM
ok gary

i put this code

require_once('./includes/functions_forumlist.php');
eval("\$threadbits .= \"".fetch_template('forumhome_latestthreadbit')."\";");

above this on global.php

// parse some global templates

ad then on chris's produck i changes hook name to global start but it gave me this error

Fatal error: Call to undefined function: fetch_iconinfo() in /kunden/137092_81737/www.e-paylas.de/forum/global.php(357) : eval()'d code on line 1334

i really need this if you can help me out with this or did i do something wrong??

MRGTB
09-12-2006, 09:01 PM
sorry I'm not sure.

aveon
09-13-2006, 12:25 AM
hmm np anybody else??

phovanxua
09-25-2006, 07:07 AM
Thanks Chris M and everyone here ...I just Installed tonight ....and It's worked fine ....It's took me almost a day to read all this post here then I installed it.

Eagle Creek
09-28-2006, 05:34 PM
Any change it will work at 3.6.1?

seric
10-03-2006, 10:33 PM
I just installed it on 3.6.1 and it seems to be working fine so far.

L-Mane
10-05-2006, 11:52 PM
I dont know why I seem to get this

http://www.wordofsouth.com/myblock/http://www.wordofsouth.com/myblock/images/icons/4icon.gif

saman
10-07-2006, 11:22 PM
will this work with vb 3.6.1 ?

shaynehammy
10-10-2006, 04:52 AM
I would appreciate it if anyone could show me how to have the latest posts scrolling down vertically?

Anyone?

aveon
10-11-2006, 08:17 PM
Anyone?


hey shaynehammy ill give u a custom made code that wiil doo the trick



<if condition="$show['latestthreads']">
<tbody>
<tr>
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestthreads')"><img id="collapseimg_forumhome_latestthreads" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_latestthreads].gif" alt="" border="0" /></a>
$vbphrase[latest_threads]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_latestthreads" style="$vbcollapse[collapseobj_forumhome_latestthreads]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[latest_threads]" /></td>
<td class="alt1"><div style="overflow: auto; height: 250px;"><div class="smallfont" align="left">$threadbits</div></div></td></tr>


yea i tested this code and it works perfectly

somasimple
10-13-2006, 04:23 AM
Hi All,

I'm using this mod with great success
www.somasimple.com/forums
but is there a simple way to make it work with a scroll like this one? =>
http://www.somasimple.com/forums3/

Renmiri
10-25-2006, 07:17 PM
To put the last thread on all pages:

Edit the plugin Latest Threads on Forum Home (found under forumhome_complete)

1) Change the Hook Location to parse_templates

2) Find
// #################### PROCESS LATEST THREADS #######################

ABOVE it add the following
if (!function_exists("fetch_iconinfo"))
{
require_once('./includes/functions_forumlist.php');
}

3) Put the code you added to the FORUMHOME template (above) on any page you would like the latest thread added to.

Markith
10-25-2006, 10:39 PM
I really like this script, is there a way to put this on an external page?

Renmiri
10-26-2006, 05:38 PM
I really like this script, is there a way to put this on an external page?
I did it with RSS
http://ffproject.net/

But you may find a way to do it if you can code a bit
https://vborg.vbsupport.ru/showthread.php?t=62164

cdembek
10-29-2006, 02:14 AM
I installed this hack, updated the template.. but where do you go to turn on the hack?? Or adjust the settings.. I am only looking to get the last created thread or post...

using 3.5.5

cdembek
10-29-2006, 04:20 AM
I answered my own question..

didn't add it after the....

</tr>
</tbody>
</if>

works nice!!

Foxsake
10-29-2006, 05:34 AM
Hi All,

I'm using this mod with great success
www.somasimple.com/forums
but is there a simple way to make it work with a scroll like this one? =>
http://www.somasimple.com/forums3/

WOW i like that idea, how did you do that?

kafi
11-04-2006, 09:04 PM
I am using this hack for quite time and I am very satisfied.

Now I have encountered that I need small solution, because I have few private forums on the webpage where I set up that they are not Active (which means they are not displayed on forumhome page). BUT they are shown within last threads...

Is there any <IF ...> solution? Thank you .-)

ICY ICE
11-10-2006, 06:55 PM
Easy install and works perfectly on 3.6.2.

Thank you,

ICE

phovanxua
11-20-2006, 08:30 PM
Work fine on 3.6.3

here demo : www.hatnang.com/forum.php

aveon
12-05-2006, 11:45 PM
can anybody edit this order to work on all pages of the forum instead of forumhome??

Agent0
12-20-2006, 11:09 AM
Hi aveon
Your question is at least easy to answer...

When scrolling back one page you could find Renmiri's posting with the following:

To put the last thread on all pages:

Edit the plugin Latest Threads on Forum Home (found under forumhome_complete)

1) Change the Hook Location to parse_templates

2) Find

Code:
// #################### PROCESS LATEST THREADS #######################ABOVE it add the following

Code:
if (!function_exists("fetch_iconinfo"))
{
require_once('./includes/functions_forumlist.php');
}3) Put the code you added to the FORUMHOME template (above) on any page you would like the latest thread added to.


Working perfect!



But I have another problem and reading through the 29 pages of this thread didn't solve it either. Whenever I activate the plugin I can't login anymore neither to the board nor to the admincp and it says invalid username or password. So I needed to deactivate plugins over config.php to access the board again.
I can see this cool plugin in action only when I deactivate the plugin in order to access the admincp, then activate it from there and view the Forum Home Page from there.
Does someone know how to fix this?

Thank you in advance
:cry:

Nikke
01-08-2007, 10:01 AM
How do I get the Latest threads to show at the place I've marked with green in the picture? I would want to display latest news there, and I think it would be a perfect solution if I just got it to work!


http://www.pokerimestari.com/kuvat/thread.jpg

Nikke
01-09-2007, 01:21 PM
Shameless BUMP

thincom2000
01-25-2007, 12:53 AM
Has anyone updated this yet to be done without the query?

zompus
02-01-2007, 08:26 PM
Can someone help me, im trying to get the code to display as:

title
by user on date

without all the other extra crap.

How can i do this?

thincom2000
02-03-2007, 10:26 PM
Edit the template: forumhome_latestthreadbit

Xplorer4x4
02-06-2007, 09:52 AM
I am using the alternate version posted back here
https://vborg.vbsupport.ru/showpost.php?p=806419&postcount=194
but cant get the forum names to display.

I am on 3.6.4.

Xplorer4x4
02-06-2007, 09:54 AM
How do I get the Latest threads to show at the place I've marked with green in the picture? I would want to display latest news there, and I think it would be a perfect solution if I just got it to work!


http://www.pokerimestari.com/kuvat/thread.jpg

Edit the plug in hook to be global_start. The instead of editing the navbar template put the edit in the threadbit template. I cant say where at the moment as I cant test it for myself but later I can. If you need more info PM me.

EDIT: Sorry Nikkie i did not realize that was your forumhome. PM me and will look into it.

Sarthek
02-06-2007, 09:29 PM
Where do you set how many latest threads are shown?

Xplorer4x4
02-07-2007, 08:05 AM
Where do you set how many latest threads are shown?

$thread['title'] = fetch_censored_text(fetch_trimmed_title(unhtmlspec ialchars($thread['title']), 22));
Allows you to set the number of characters in the title and
DESC LIMIT 5");
Changes the number of threads shown. Just change 5 to the number you want.

Staxed
02-08-2007, 12:22 AM
ok, i'm not a coder my any means...i'm just a little 'ole designer...and for the life of me I can't get the threads to show in someplace other than the forumhome.

I'm trying to use this mod, but instead of having all the forumhome stuff...i just want to have the lastest thread titles put into a side column...i've looked at the added templates...copied what's there...and all it will do is post the sections titles..."last post by reviews views"...but doesn't put the actual info in there...

can someone possibly shed some light on how to get just the titles to show in another template other than forumhome?

Staxed
02-09-2007, 07:04 PM
no one has done this? or knows how?

Chris?

thincom2000
02-10-2007, 02:36 AM
You need to change the hook the plugin uses to fill the variables (by default it is forumhome_complete).

Staxed
02-11-2007, 08:07 PM
You need to change the hook the plugin uses to fill the variables (by default it is forumhome_complete).

there is no hook i could change it to...i'm trying to put it into a custom template...

Xplorer4x4
02-11-2007, 08:27 PM
there is no hook i could change it to...i'm trying to put it into a custom template...

Could you elaborate on what your trying to do with it?

shaynehammy
02-12-2007, 08:02 AM
hey shaynehammy ill give u a custom made code that wiil doo the trick



<if condition="$show['latestthreads']">
<tbody>
<tr>
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestthreads')"><img id="collapseimg_forumhome_latestthreads" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_latestthreads].gif" alt="" border="0" /></a>
$vbphrase[latest_threads]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_latestthreads" style="$vbcollapse[collapseobj_forumhome_latestthreads]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[latest_threads]" /></td>
<td class="alt1"><div style="overflow: auto; height: 250px;"><div class="smallfont" align="left">$threadbits</div></div></td></tr>


yea i tested this code and it works perfectly

Thanks for this. Tested the code and I maybe didnt quite explain what i was after. I want a box the size of twenty latest posts but inside a scrolling marquee that displays the last 50 posts. If a member hovers over the scrolling latest posts, it will stop. Once it gets to the bottom of the list, it starts from the beginning. Seen it on a few websites but cant remember any to show you an example.

Staxed
02-12-2007, 10:36 AM
Could you elaborate on what your trying to do with it?

it's in my first post...a few above yours...

but basically...you know the module for vbadvanced that shows new threads...trying to get something similar in a custom template (for a left column)...by using this mod...just need to reformat the coding so it only displays the title of the mod (don't need all the other info like poster, views, etc)...i've got that part done...i just can't get it to display the information...

Xplorer4x4
02-12-2007, 02:10 PM
Hmm try adding the phrase "$vbphrase[latest_threads]" to your left column. Your custom template is, i assume, is inserted into forum home in order to show on your forum index, so try leaving the hooks alone.

Staxed
02-12-2007, 07:21 PM
already tried inserting that...i know how to get it to show (I'm a Designer)...issue is...it will show the titles (Posts, Views, etc) if I put them in...but the second it calls that variable it won't output anything else...and that's where i'm stuck...(I'm NOT a coder...lol)

Xplorer4x4
02-12-2007, 07:26 PM
already tried inserting that...i know how to get it to show (I'm a Designer)...issue is...it will show the titles (Posts, Views, etc) if I put them in...but the second it calls that variable it won't output anything else...and that's where i'm stuck...(I'm NOT a coder...lol)

You lost me, can you link to a demo or a screen shot?

Staxed
02-12-2007, 07:28 PM
in about 30 mins I can...

(at work right now and can't get to it from behind work firewall)...i undid my modifications since they didn't work.

where are you lost?...it just doesn't show the info that it's supposed to show...(come to think of it...I think I have the call to the custom template in the navbar...i'll check when i get home...where would i change the hook for that?)

Xplorer4x4
02-12-2007, 07:40 PM
Oh in that case maybe try navbits as the hook.

croportal
02-12-2007, 09:16 PM
is this work with 3.6 version, and if not, do you know hack like this with 3.6. version

Xplorer4x4
02-12-2007, 09:23 PM
is this work with 3.6 version, and if not, do you know hack like this with 3.6. version

Works fine for me on 3.6.4.

croportal
02-12-2007, 09:25 PM
thanks ; xplorer ;)

croportal
02-12-2007, 09:28 PM
how can add more threads, its only 5 Croportal (http://www.croportal.net/forum/)

Xplorer4x4
02-12-2007, 09:32 PM
Go back a page or so and I explained it in one of my posts.

croportal
02-12-2007, 09:36 PM
thanks ;) really thanks ;)


just one question

how can i remove smilyes and icons, and the thread go to new posts, last page, not first

Xplorer4x4
02-12-2007, 09:46 PM
Smileys will not be parsed. Icons can be removed in the "forumhome_latestthreadbit" template. Simply search for .gif and when you find it you will see it in a code like
<img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /> Just remove everything starting at <img all the way to the /> including />

and the thread go to new posts, last page, not first
Not sure I follow but you want it to go to the last page of any thread listed in the latest threads table? The only way I could think of doing this is simply to have the template edited so when you click a thread name it would go to the last post of the thread instead of the first unread post. Would you be interested in that?

croportal
02-12-2007, 09:49 PM
Smileys will not be parsed. Icons can be removed in the "forumhome_latestthreadbit" template.


what mean parsed? sorry but my english is bad :D

how i remove icons in template? i dont understand


Not sure I follow but you want it to go to the last page of any thread listed in the latest threads table? The only way I could think of doing this is simply to have the template edited so when you click a thread name it would go to the last post of the thread instead of the first unread post. Would you be interested in that?


i want when i click on thread to go to the last post, not first


yes this is nice idea

but i am newbie in this stuff, so can u explain a little bit better

thanks and sorry for my bad english

croportal
02-12-2007, 10:20 PM
Smileys will not be parsed. Icons can be removed in the "forumhome_latestthreadbit" template. Simply search for .gif and when you find it you will see it in a code like
<img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /> Just remove everything starting at <img all the way to the /> including />


Not sure I follow but you want it to go to the last page of any thread listed in the latest threads table? The only way I could think of doing this is simply to have the template edited so when you click a thread name it would go to the last post of the thread instead of the first unread post. Would you be interested in that?


i have done that, and look now? what with POST ICONS

thanks ;) Croportal (http://www.croportal.net/forum/)

Xplorer4x4
02-12-2007, 10:56 PM
what mean parsed? sorry but my english is bad :D

how i remove icons in template? i dont understand




i want when i click on thread to go to the last post, not first


yes this is nice idea

but i am newbie in this stuff, so can u explain a little bit better

thanks and sorry for my bad english
I mean smilies will not show up as smilies, they will only show up as :) instead of :)

I uploaded an updated XML file. Just upload it and make sure you choose YES to overwrite. It will redirect to the last post and will also not have any images except one.

croportal
02-12-2007, 11:00 PM
yes i did, and as you seen its the same like before?

when you click thread it opens first post not last

Xplorer4x4
02-12-2007, 11:28 PM
If you over write the old hack there I don't see how. I have personally tested it on my forum.

Regardless, replace your forumhome_latestthreadbit template with the following:
<div class="smallfont">
<a href="showthread.php?t=$thread[threadid]&amp;goto=newpost" title="$thread[preview]"><strong>$thread[title]</strong></a>
<em>$vbphrase[last_post]:</em> $thread[date] <if condition="$vboptions['yestoday'] != 2"><span class="time">$thread[time]</span></if> <phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
&raquo; $vbphrase[replies]: $thread[replycount]
&raquo; $vbphrase[views]: $thread[views]
</div>

KrisP
02-18-2007, 02:50 PM
I have installed it (added code to the forum home template and imported the product) but nothing shows up on my forum home page. Have I missed something ?

Moon!
02-18-2007, 07:20 PM
Hello thanks for this it was just what I was looking for, I have installed it on 3.6.4 fine, I put this at the top of my forums just under the nav bar and just had to modify the template for it up there.

Eagle Creek
02-19-2007, 07:11 AM
Is it possible to excluse one forum?

Vierie
02-22-2007, 07:38 AM
I get the error message Cannot use a scalar value as an array in /search.php on line 2179 if I use the new posts button in my forum. By deactivating plugins I found out that it seems to be caused by this product.

Any idea what could cause that and how to resolve it? I don't want to remove the product. :(

Vierie
02-22-2007, 07:43 AM
ok, i'm not a coder my any means...i'm just a little 'ole designer...and for the life of me I can't get the threads to show in someplace other than the forumhome.

I'm trying to use this mod, but instead of having all the forumhome stuff...i just want to have the lastest thread titles put into a side column...i've looked at the added templates...copied what's there...and all it will do is post the sections titles..."last post by reviews views"...but doesn't put the actual info in there...

can someone possibly shed some light on how to get just the titles to show in another template other than forumhome?

Try putting in
require_once('./includes/functions_forumlist.php');
at the start of the php code in the code xml-file and change the hook to global_start.

Works for me. :)

Vierie
02-22-2007, 07:48 AM
@Eagle Creek

Look for

// fetch the permissions for each forum
global $vbulletin;

$forumperms = array();

in the xml-file.

Below that add

$limitfids = x

x is the ids of the forum you want to exclude.

maxicep
02-26-2007, 10:17 AM
found my problem :)

wrang
03-03-2007, 05:12 PM
I should do a update with this plugin but now i cant find where i should write with forum who dosent should show in this plugin.
Can some one help me again.

In the forumhome_complete

// #################### PROCESS LATEST THREADS #######################
// fetch the permissions for each forum
global $vbulletin;

$forumperms = array();
foreach($vbulletin->forumcache AS $forum) {

$forumperms[$forum["forumid"]] = fetch_permissions($forum['forumid']);

// ## HIDE FORUMS WITHOUT THE CANVIEW PERMISSION ##
if (!($forumperms[$forum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums']) {
$limitfids .= ','.$forum['forumid'];
}
}
unset($forum);

if ($vbulletin->options['threadpreview'] > 0) {
$previewfield = ', post.pagetext AS preview';
$previewjoin = 'LEFT JOIN '.TABLE_PREFIX.'post AS post ON(post.postid = thread.firstpostid)';
}

$getthreads = $db->query_read("
## GET LATEST THREADS ##
SELECT thread.*,thread.iconid AS threadiconid $previewfield
FROM ".TABLE_PREFIX."thread AS thread
LEFT JOIN ".TABLE_PREFIX."deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
$previewjoin
WHERE open <> 10
AND forumid NOT IN (0$limitfids)
AND thread.visible = '1'
AND deletionlog.primaryid IS NULL
ORDER BY lastpost
DESC LIMIT 10");

while($thread = $db->fetch_array($getthreads)) {

$threads = true;
$thread['title'] = fetch_censored_text(fetch_trimmed_title(unhtmlspec ialchars($thread['title']), 45));
$thread['date'] = vbdate($vbulletin->options['dateformat'], $thread['lastpost'], 1);
$thread['time'] = vbdate($vbulletin->options['timeformat'], $thread['lastpost']);
$thread['preview'] = preg_replace('#\[quote(=(&quot;|"|\'|).*\\2)?\](.*)\[/quote\]#siU', '', $thread['preview']);
$thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbc ode(fetch_censored_text($thread['preview']), false, true), $vbulletin->options['threadpreview']));
$thread['replycount'] = vb_number_format($thread['replycount']);
$thread['views'] = vb_number_format($thread['views']);

// thread icon
$show['icon'] = false;
$icon = fetch_iconinfo($thread['iconid']);

if (is_array($icon)) {
$show['icon'] = true;
$thread['threadiconpath'] = $icon['iconpath'];
$thread['threadicontitle'] = $icon['title'];
}

// show goto new post
$show['firstnew'] = false;
$bbforumview = fetch_bbarray_cookie('forum_view', $thread['forumid']);

if ($bbforumview > $vbulletin->userinfo['lastvisit']) {
$lastread = $bbforumview;
} else {
$lastread = $vbulletin->userinfo['lastvisit'];
}

if ($thread['lastpost'] > $lastread) {

$threadview = fetch_bbarray_cookie('thread_lastview', $thread['threadid']);

if ($thread['lastpost'] > $threadview) {
$show['firstnew'] = true;
$show['icon'] = false;
}
}

exec_switch_bg();

eval("\$threadbits .= \"".fetch_template('forumhome_latestthreadbit')."\";");
}
if ($threads) {
$show['latestthreads'] = true;
}
// memory saving
unset($thread, $threads);
$db->free_result($getthreads);

Where do i put the forum ID number??
Is it like this
$limitfids = 55,135,140,142


i run Vbulletin 3.5.4

KrisP
03-06-2007, 03:30 PM
I would like to ad forum title.

Anybody who can tell me how to join forum.title to the following:

SELECT thread.*,thread.iconid AS threadiconid $previewfield, thread.lastposter AS lastposter
FROM ".TABLE_PREFIX."thread AS thread
LEFT JOIN ".TABLE_PREFIX."deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
$previewjoin
WHERE open <> 10
AND forumid NOT IN (0$limitfids)
AND forumid NOT IN (69,22,75)
AND thread.visible = '1'
AND deletionlog.primaryid IS NULL
ORDER BY lastpost
DESC LIMIT 15");

Jacqueline
03-13-2007, 05:03 PM
Installed in my 3.6.4 forum and it seems to be working great. I made some changes to put it in the header and removed some table information.

Krali
03-14-2007, 10:02 AM
Hello,

great hack, I have a question: is it able to have a special topic id every time on the top of the list, like an announcement?

Kind regards

DieselMinded
03-22-2007, 10:33 PM
I have this working real nice took me awahile trying to figgure out how not to display certian forum the first few posts about that didnt fit it but the one on page 17 fixed it ,

How can i seperate the information down there so it isnt just one big line of data

www.dieselbombers.com

Thanks Guys

DM

gamelandz
03-27-2007, 03:13 AM
How can I make this an entire page of the last 50 posts???

DieselMinded
03-28-2007, 05:50 AM
How do I place this info in tables with headers that state Member Thread Forum Ect...

Thanks

DM

vdi
03-28-2007, 03:55 PM
Hello
Good hack.

Now, when i click on the last post in your hack, i will see the top of the thread (1. post).

But it is possible to see the last post (last answer) when i click on it ?

Xoligy
04-02-2007, 05:35 PM
For those getting errors on search.php, change $lastread with something like $last_read, otherwise you'll get error messages.

This should solve:Cannot use a scalar value as an array in /search.php on line 2179

Vierie
04-03-2007, 01:26 PM
For those getting errors on search.php, change $lastread with something like $last_read, otherwise you'll get error messages.

This should solve:

Thank you very much. That error was driving me crazy.

DieselMinded
04-04-2007, 02:45 PM
How do I place this info in tables with headers that state Member Thread Forum Ect...

Thanks

DM

amagab
04-08-2007, 04:08 AM
I am happy to have found this add-on. I am currently using it on my new site http://openfortea.com

However, I'm only able to get it to show on the home page. Why doesn't it show on any of the other pages?

Thanks!

amagab
04-08-2007, 04:44 AM
I am happy to have found this add-on. I am currently using it on my new site http://openfortea.com

However, I'm only able to get it to show on the home page. Why doesn't it show on any of the other pages?

Thanks!

Disregard my question. After reading this thread more carefully I found my answer/solution.

Thanks and sorry for my lazyness.

amagab
04-08-2007, 05:33 AM
I know several people before me has asked this question but I couldn't find any answer:

I'd like a link for the user to be taken to the last post in the thread. Actually, I'd like to link the words Last Post: to the last post in the thread.

How can I do that?

Thanks!

kaptanblack
04-08-2007, 07:43 AM
Thanks...

Nathan2006
04-11-2007, 03:24 AM
Hi all,
Solved. Added some lines for the table and moved the code after $navbar.

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<!-- latest threads -->
<if condition="$show['latestthreads']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestthreads')"><img id="collapseimg_forumhome_latestthreads" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_latestthreads].gif" alt="" border="0" /></a>
$vbphrase[latest_threads]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_latestthreads" style="$vbcollapse[collapseobj_forumhome_latestthreads]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[latest_threads]" /></td>
<td class="alt1"><div class="smallfont">$threadbits</div></td>
</tr>
</tbody>
</if>
<!-- /latest threads -->
</table>
<br />


Hi,

I tried your code but I keep getting this (Screenshot)

is there anyway to fix the style to fill the whole box?

Thank you for any help :)

gamelandz
04-12-2007, 10:18 PM
I am getting this error when i try and post a thread:

Warning: strpos() [function.strpos]: Empty delimiter. in /global.php(349) : eval()'d code on line 178

Vbulletin message:

Unable to add cookies, header already sent.
File: /home/teambow/public_html/forum/includes/class_core.php
Line: 2984

What do i do???
PLease help

DieselMinded
04-13-2007, 09:04 PM
I dont think this is right ... $limitfids = x

But I cant get = 'x,x,x,x,' to work either

The only place this edit will work is under the permissions based section of the xml it wont work for me in global ,,, i have $limitfids = 6 and it works but cannot add more than one with out an error

DM

Tralala
05-04-2007, 12:47 AM
Very nice! Installed.

kevcj
05-09-2007, 01:51 PM
Thank you -- marked as installed and running on 3.6.5

See this mod in action on my site - http://www.survivalistboards.com

flup
05-14-2007, 01:02 PM
Nice mod, thanks!

gamelandz
05-14-2007, 03:45 PM
I am getting this error now:

Warning: strpos() [function.strpos]: Empty delimiter. in /global.php(349) : eval()'d code on line 178

The following errors occurred when this message was submitted:

1. This forum requires that you wait 30 seconds between posts. Please try again in 29 seconds.

Any help with this?

gamelandz
05-14-2007, 04:11 PM
everything else is working fine....just this darn error...only started after i installed this mod.

but i want to keep the mod!!

gamelandz
05-14-2007, 04:33 PM
ok, so the problem was not with this mod....sorry folks...

kollam003
05-24-2007, 09:32 AM
wonderful mod thanks 4 sharing

cassanova792
05-31-2007, 12:29 AM
How do i space out the categories or stretch out the topic so it fills out the width of the table??


INSTALLED

Grunt
07-06-2007, 04:52 AM
For all those asking how to exclude forums in addition to the permission restrictions inherent in the hack:

In the .xml file, or by editing the Plugin PHP Code (vBoptions/Plug-in Manager/Edit):

FIND:
AND forumid NOT IN (0$limitfids)

Directly below the above, add:
AND forumid NOT IN (x,x,x)


The x's are the forumid's to exclude.

:cheers:

amagab
07-26-2007, 12:33 AM
It is possible to added an icon that will take you to the last post in the thread. Also, I'd like the name of the forum to show underneath the thread title.

Can anyone please help me with this.

Thanks!

amagab
07-26-2007, 12:34 AM
Oh, one more request if possible but the previous two are more important. I'd like the feature to click down to even older posts like an arrow down just like is used on the latest post module on this site http://www.mylpga.com

Thanks!

duditas
07-28-2007, 01:27 AM
It works in 3.6.8. Thanks a lot :)

** Installed**

mahz
08-31-2007, 03:27 PM
where do you change the amount of latest threads to display?

imk
09-06-2007, 02:44 PM
can somone please write the code for me to hook ONE percific forum in a side collum please?

control1110
09-21-2007, 04:21 AM
if I wanted to to show the forum that the lastest post came from instead of the reply count how would I edit the code to do so?

Thank you

control1110
09-21-2007, 04:26 AM
duplicate post

vwdforum
10-03-2007, 07:33 AM
Just added to my close protection (http://www.closeprotectionworld.co.uk) forum, works well.

Is it possible to get it to give links with vRewrite (https://vborg.vbsupport.ru/forumdisplay.php?f=182) with search engine friendly links?

kansei
12-03-2007, 12:28 AM
I'm pretty new to vB admin stuff and had a question about this hack.

I've seen something similar done before, but in a column on the right in the forum home. I have a right column on my forum home (via another hack) and just figured I could paste the template edit that this hack called for into that template, but no this does not work at all.

any guidance? I can give you any information needed (copy and paste of template files or whatever)

thanks in advance!

oh the site is www.themazdaforum.com if you wanted to see what is going on right now.

Edit: I hacked up the part you are supposed to paste into FORUMHOME such that it fits into the right column template. Still nothing appears. It is as if <if condition="$show['latestthreads']"> is returning false so it just isn't processing anything. Is that a var I have to set somewhere?

I'm such a n00b with this stuff :P

pdhaudio83
02-25-2008, 03:34 AM
bump?

asasi
04-19-2008, 11:02 AM
Hi
I saw on a forum home page that two copies of this hack was working.
There was two columns . one of them show latest posts on some forums (for example download forums) and another one shows all other new posts (on all other forums)

How can I do this?
thanks