View Full Version : Latest Threads On Forum Home
Chris M
06-15-2005, 10:00 PM
Installation Instructions
Step 1: Upload the .xml file to the Product Manager
Step 2: Modify the FORUMHOME template
Find:
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
</if>
Add below:
<!-- 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 -->
Step 3: Click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=83230):D
Credits
NTLDR (https://vborg.vbsupport.ru/member.php?u=10435) - For allowing me to port his vB3 hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=60544) of this
Updates
Version 1.1.0: Simple update to make this work with vBulletin 3.5.0 Beta 2 - If you are installing for the first time, follow the installation instructions - If you are upgrading, please delete the previous plugin, and upload the new one - This new plugin also has the uncached template fix :)
Version 1.1.1: Simple update to fix a permissions bug - Wasn't showing on my board because I had already fixed it and forgot about it lol :) - To upgrade, simply replace the plugin with the one attached ;)
Version 1.1.2: Simple update to fix a permissions bug again:) - To upgrade, simply replace the plugin with the one attached ;)
Chris
Reverend
06-16-2005, 06:38 PM
Getting error at top of page with this:
Warning: Invalid argument supplied for foreach() in /index.php(450) : eval()'d code on line 11
Chris M
06-16-2005, 06:43 PM
Try changing:
$forumcache
to
$vbulletin->forumcache
Satan
Reverend
06-16-2005, 06:47 PM
Try changing:
$forumcache
to
$vbulletin->forumcache
SatanIn the plugin or template ??
Chris M
06-16-2005, 06:47 PM
The plugin...
Satan
Reverend
06-16-2005, 06:49 PM
The plugin...
Satan
New error:
Parse error: parse error, unexpected ')' in /****************/index.php(450) : eval()'d code on line 46
Chris M
06-16-2005, 07:02 PM
I'm not sure then - The original not an invalid arguement here... :ermm:
Satan
Reverend
06-16-2005, 07:19 PM
Both errors relate to this line in index:
($hook = vBulletinHook::fetch_hook('forumhome_complete')) ? eval($hook) : false;
???
Chris M
06-16-2005, 07:24 PM
Yeh that is the code that calls the forumhome_complete hooks...
For some reason your board is rejecting the foreach in the code :ermm:
What other plugins/hacks do you have installed that utilise the forumhome_complete hook?
Satan
Reverend
06-16-2005, 07:26 PM
The only other plugin i use is this one New Posts & Threads Since Last visit (https://vborg.vbsupport.ru/showthread.php?t=82774)
and that uses forumhome_start
Chris M
06-16-2005, 07:28 PM
Indeed - I do not believe that this is the cause of the clash...
Hrm - This is a puzzle - Hopefully Zero Tolerance will see this and shed some light :p
Satan
Reverend
06-16-2005, 07:29 PM
The latest threads do still display fine though regardless of the error. :confused:
I've taken it off for the moment until a possible solution can be found.
Chris M
06-16-2005, 07:32 PM
The latest threads do still display fine though regardless of the error. :confused:
Would you mind turning the plugin on, so I can see for myself?:p
Satan
Reverend
06-16-2005, 07:33 PM
Would you mind turning the plugin on, so I can see for myself?:p
SatanTurned back on. http://www.techzonez.com/forums/
Chris M
06-16-2005, 07:37 PM
Thanks...
A thought just occurred to me:
Add:
unset($forum);
before:
$forumperms = array();
in the plugin code...
Satan
Reverend
06-16-2005, 07:40 PM
Nope
Parse error: parse error, unexpected ')' in /****/index.php(450) : eval()'d code on line 47
Chris M
06-16-2005, 07:46 PM
Yeh - I have found the problem :(
https://vborg.vbsupport.ru/showpost.php?p=667526&postcount=14
If you view that post, Zero Tolerance explains about there being a bug in the vB Plugin System - Sadly, since this plugin also uses regular expressions, the plugin system is stripping the slashes from the code, causing errors -.-
The "unset($forum);" step may be required by some users, but the cause of the second error generated once the first is fixed is a vBulletin bug which the vB devs will have to fix :(
Sorry about that ... :ermm:
Satan
Reverend
06-16-2005, 07:52 PM
OK.
Will disable it until the plugin system bug is fixed.
bing11
06-18-2005, 12:22 AM
How can we do?
I very love this hack
Chris M
06-19-2005, 09:44 PM
Update
Version 1.1.0: Simple update to make this work with vBulletin 3.5.0 Beta 2 - If you are installing for the first time, follow the installation instructions in the first post - If you are upgrading, please delete the previous plugin, and upload the new one from the first post - The new plugin also has the uncached template fix :)
Satan
dreck
06-19-2005, 09:55 PM
I got the same error with 'latest threads on forumhome 110.xml':
Warning: Invalid argument supplied for foreach() in /index.php(450) : eval()'d code on line 78But the lastest threads appear to be fine.
*Edit* It also affects the size of the forum width?
This is on my '/testvb/index.php' forum.
Great hack if we can get rid of the error!
Thanks!
Marco van Herwaarden
06-20-2005, 03:42 AM
@dreck
What is the PHP version you are using?
I get this error (except it says line 4 instead of 11):
Getting error at top of page with this:
Warning: Invalid argument supplied for foreach() in /index.php(450) : eval()'d code on line 11
and the latest threads show up just fine. So I do this to get rid of the error:
Try changing:
$forumcache
to
$vbulletin->forumcache
Satan
And the latest threads disappear. :(
dreck
06-20-2005, 04:39 AM
@dreck
What is the PHP version you are using?PHP version 4.3.11
Thanks.
Chris M
06-20-2005, 10:07 AM
Hrm - I still do not get this error on my board - I guess they haven't fixed the bug that strips the slashes...
It should not affect the size of the forum width - You might need to alter the template mod to reflect whatever custom forumhome width modifications you have made...
http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=184
In this, Freddie Bingham suggests editing class_core.php to remove this bug, or disabling magic_quotes_gpc in php.ini
As this will be a necessary alteration for all hacks and plugins that use regex, I suggest doing one of the two ;)
Satan
dreck
06-20-2005, 05:16 PM
Hrm - I still do not get this error on my board - I guess they haven't fixed the bug that strips the slashes...
It should not affect the size of the forum width - You might need to alter the template mod to reflect whatever custom forumhome width modifications you have made...
http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=184
In this, Freddie Bingham suggests editing class_core.php to remove this bug, or disabling magic_quotes_gpc in php.ini
As this will be a necessary alteration for all hacks and plugins that use regex, I suggest doing one of the two ;)
SatanO.. ic, I will try that. I guess their will be a fix for this in the next beta.
Thanks!
Reverend
06-20-2005, 07:39 PM
*Edit* It also affects the size of the forum width?Same here as well.
Reverend
06-20-2005, 07:49 PM
Also, editing class_core.php as suggested by Freddie hasn't fixed the error
Warning: Invalid argument supplied for foreach() in /index.php(450) : eval()'d code on line 4
grundybin
06-21-2005, 01:55 AM
Ok I have it working on BETA 2 without any errors but...
telewizor OLED (http://telewizor.eu/oled.html)
It shows threads that have had a recent reply... when the User doesnt have access to it (such as in an restricted forum admin section)
Chris M
06-21-2005, 08:35 AM
Ok I have it working on BETA 2 without any errors but...
It shows threads that have had a recent reply... when the User doesnt have access to it (such as in an restricted forum admin section)
Are you entirely sure?
I have tested this extensively myself and cannot reproduce this :ermm:
Satan
Chris M
06-21-2005, 08:45 AM
O.. ic, I will try that. I guess their will be a fix for this in the next beta.
Thanks!
Apparently according to the Devs this has already been fixed, but evidently it has not... :ermm:
I guess the fix that Freddie gave for Beta 1 is no longer the problem...
Apparently however they "fixed" it it broke somewhere else...
About the table width - You might have to alter the HTML code a bit - It is almost a direct copy of the "forumhome events" HTML so there shouldn't be a problem...
Satan
Chris M
06-21-2005, 10:00 AM
Update
Version 1.1.1: Simple update to fix a permissions bug - Wasn't showing on my board because I had already fixed it and forgot about it lol :) - To upgrade, simply replace the plugin with the one attached in the first post ;)
Satan
bing11
06-22-2005, 03:12 AM
Update
Version 1.1.1: Simple update to fix a permissions bug - Wasn't showing on my board because I had already fixed it and forgot about it lol :) - To upgrade, simply replace the plugin with the one attached in the first post ;)
Satan
very good
thank you
bing11
06-22-2005, 07:57 AM
How can hide some forums?
Chris M
06-22-2005, 10:54 AM
Not tested, but should work ;)
In the plugin code, add:
$limitfids = ,x,y,z;
before:
foreach($vbulletin->forumcache AS $forum) {
Replace x,y,z with the forumids you wish to exclude :)
Satan
bing11
06-23-2005, 03:06 AM
Not tested, but should work ;)
In the plugin code, add:
$limitfids = ,x,y,z;
before:
foreach($vbulletin->forumcache AS $forum) {
Replace x,y,z with the forumids you wish to exclude :)
Satan
thank you so much
How about just want to show 1 or 2 forms?
Chris M
06-23-2005, 10:59 AM
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
albarq
06-23-2005, 11:46 AM
hellsatan, thank you for this plug-in
what about if i want these last topics appear in all my forum pages? not just in the form home?
thank you
Chris M
06-23-2005, 11:52 AM
Hrm...
I suppose in theory you could change the "forumhome_complete" hook location to a "global_complete" location, and then edit something like the footer template to include the table and $threadbits variable...
Satan
albarq
06-23-2005, 12:00 PM
i did something like this but i edit the navbit template ... that works just in form home...
then i tried to change from forumhome_complete to ... global_complete but i got an error :
Fatal error: Call to a member function on a non-object in /home/users/public_html/board/includes/functions.php(4118) : eval()'d code on line 22
Chris M
06-23-2005, 12:05 PM
I would imagine that you might have to require_once functions_forumlist.php
require_once(DIR . '/includes/functions_forumlist.php');
Only a guess...
Satan
albarq
06-23-2005, 12:49 PM
:s
i dont think so,
i searched in file functions.php and it was requird once ... , or do you mean i need to added in some where in your plug-in?
thank you for your helping
Chris M
06-23-2005, 02:45 PM
In index.php there are calls to three files, global.php, functions_bigthree.php and functions_forumlist.php
A call to non-member function suggests that there is an element in functions.php that is missing that is obviously called upon in one of those three required files in index.php :)
Satan
bing11
06-25-2005, 07:34 AM
I try and very well done.
Could you tell me How can make it order by the new thread time
Chris M
06-25-2005, 01:15 PM
I'm not sure I understand this request - It shows the newest thread replied to...
Satan
bing11
06-25-2005, 01:56 PM
I'm not sure I understand this request - It shows the newest thread replied to...
Satan
Just show new threads . If Post reaply .It's cannot be up
:)
Chris M
06-25-2005, 02:23 PM
Ah I see - You want it to show the most recent created threads, not ones that have just been replied to ;)
I shall look at the code and have something probably by monday (going out tonight and working tomorrow) :)
Satan
bing11
06-27-2005, 02:08 AM
Ah I see - You want it to show the most recent created threads, not ones that have just been replied to ;)
I shall look at the code and have something probably by monday (going out tonight and working tomorrow) :)
Satan
Have you done? :)
Thanks a lot
Kirk Y
06-29-2005, 03:46 AM
Two of the posticons aren't showing up properly. When I tried to find the path from which it was attempting to pull the image from I got this: http://www.socomcity.net/forum/http://www.socomcity.net/forum/images/icons/icon10.gif
It appears to be adding the full link, instead of just images/icons/icon10.gif.
Any help would be much appreciated. Also, the URL is directing itself to the wrong folder... it should be going to forum_beta2, not forum.
Loki12
06-30-2005, 05:09 AM
I installed as you said, but nothing is showing up on the forumhome ... :ermm: I am running on 3.5.0 Beta 3
Chris M
06-30-2005, 05:28 AM
I installed as you said, but nothing is showing up on the forumhome ... :ermm: I am running on 3.5.0 Beta 3
Nothing as in no "Latest Threads" box or just the content within it?
Satan
Chris M
06-30-2005, 05:29 AM
Two of the posticons aren't showing up properly. When I tried to find the path from which it was attempting to pull the image from I got this: http://www.socomcity.net/forum/http://www.socomcity.net/forum/images/icons/icon10.gif
It appears to be adding the full link, instead of just images/icons/icon10.gif.
Any help would be much appreciated. Also, the URL is directing itself to the wrong folder... it should be going to forum_beta2, not forum.
Check your image paths and make sure you have set your vBulletin Options forum url correctly :)
Satan
Loki12
06-30-2005, 10:44 AM
Nothing as in no "Latest Threads" box or just the content within it?
Satan
Nothing new at all ... no "Latest Threads" box or any content.
Chris M
06-30-2005, 01:00 PM
Then you haven't edited the FORUMHOME template correctly;)
Satan
Loki12
06-30-2005, 07:19 PM
Then you haven't edited the FORUMHOME template correctly;)
Satan
You are right! :rolleyes: Works like a charm now ...
Chris M
06-30-2005, 08:07 PM
Update
Beta 3: Update to confirm that this plugin works with vBulletin 3.5.0 Beta 3;)
Satan
Michael2
07-01-2005, 04:00 PM
Any way to only have this pull new threads from specified forums? Would definitely like to use this, thanks for your work on it. :)
Chris M
07-01-2005, 04:44 PM
https://vborg.vbsupport.ru/showpost.php?p=724575&postcount=37
:)
Satan
Michael2
07-01-2005, 05:13 PM
Haha, I was sure it must have been asked already but missed it. Thanks!
Loki12
07-02-2005, 09:14 AM
Check your image paths and make sure you have set your vBulletin Options forum url correctly :)
Satan
I get the same ... the post icons' path is incorrect. Is there any way to change this, because it is annoying?
Loki12
07-02-2005, 03:52 PM
Two of the posticons aren't showing up properly. When I tried to find the path from which it was attempting to pull the image from I got this: http://www.socomcity.net/forum/http://www.socomcity.net/forum/images/icons/icon10.gif
It appears to be adding the full link, instead of just images/icons/icon10.gif.
Any help would be much appreciated. Also, the URL is directing itself to the wrong folder... it should be going to forum_beta2, not forum.
Please let me know if you've found a solution to this. Since it looks bad on the forum home, I will uninstall if a solution is not available soon.
Chris M
07-02-2005, 04:44 PM
The only solution I can give you would be to check your icon paths are correct, and to check your templates to make sure you haven't got any incorrect image paths saved in your templates...
Satan
Chris M
07-02-2005, 04:49 PM
As you can see from this screenshot I have attached, they work for me :squareeyed:
Satan
Jenta
07-02-2005, 05:46 PM
It works but as someone mentioned earlier. If someone doesnt have permission to view a forum they can still see the threads created there and the thread content is visible to them when they hover over the links.
Had to disable it since it was sensitive information being displayed to everyone. :(
Chris M
07-02-2005, 05:54 PM
It works but as someone mentioned earlier. If someone doesnt have permission to view a forum they can still see the threads created there and the thread content is visible to them when they hover over the links.
Had to disable it since it was sensitive information being displayed to everyone. :(
I fixed this in a previous version :ermm:
Satan
Loki12
07-02-2005, 06:02 PM
As you can see from this screenshot I have attached, they work for me :squareeyed:
Satan
Yours looks nice.
Well, I am using the default vB 3.5.0 Beta 3 templates / files. How can that be wrong?
Kirk Y
07-02-2005, 06:43 PM
Yeah, I've corrected my Forum's URL in the ACP Options, but the problem is still there. It's trying to get the image from, "http://www.socomcity.net/forum_beta2/http://www.socomcity.net/forum/images/icons/icon10.gif".
Loki12
07-02-2005, 06:47 PM
Two of the posticons aren't showing up properly. When I tried to find the path from which it was attempting to pull the image from I got this: http://www.socomcity.net/forum/http://www.socomcity.net/forum/images/icons/icon10.gif
It appears to be adding the full link, instead of just images/icons/icon10.gif.
Any help would be much appreciated. Also, the URL is directing itself to the wrong folder... it should be going to forum_beta2, not forum.
I found the solution for us acidburn:
Go: Post Icons > Post Icon Manager > Generic Icons > Edit
Then take away http://www.sodomcity.net/forum/ , leaving only images/icons/icon10.gif (for each icon) and things will work like a dream. :)
Kirk Y
07-02-2005, 07:02 PM
I found the solution for us acidburn:
Go: Post Icons > Post Icon Manager > Generic Icons > Edit
Then take away http://www.sodomcity.net/forum/ , leaving only images/icons/icon10.gif (for each icon) and things will work like a dream. :)
Ahh, I love you Loki, great job! Thank you, thank you! :classic:
Edit: Oh, I just remembered, Satan, have you finished with the edits so that the plugin will get only New Threads, not just the ones most recently replied to? And Satan, I was just noticing your Screenshot you posted a few posts up, what would I need to do to put an image next to the Latest Threads box?
Edit: I figured the image out.1. Locate in your FORUMHOME template: <td class="alt2"> </td>
2. Replace this with:
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[latest_threads]" border="0" /></td>
Jenta
07-03-2005, 04:35 AM
I fixed this in a previous version :ermm:
Satan
Well I downloaded whatever version was up there about 10 hours ago. So I'm presuming that had the fix.
ForYou
07-03-2005, 06:17 AM
Hello ,
Is there a way to let the latest theards like line Marquee on the top of forums ,
Regards
Chris M
07-03-2005, 08:33 AM
Well I downloaded whatever version was up there about 10 hours ago. So I'm presuming that had the fix.
It should have yes...
Edit: Oh, I just remembered, Satan, have you finished with the edits so that the plugin will get only New Threads, not just the ones most recently replied to? And Satan, I was just noticing your Screenshot you posted a few posts up, what would I need to do to put an image next to the Latest Threads box?
Yes that is the code you use to add an image :)
I have not had time to do this yet as I have not had a chance to review the code for it - I am taking a look at this now however...
Hello ,
Is there a way to let the latest theards like line Marquee on the top of forums ,
Regards
There is yes - You would need to alter the HTML of the "forumhome_latestthreadbit" template, to display a <marquee> tag or whatever the XHTML equivalent is, and use the variables contained within the template to create the information you want and need for the marquee :)
Satan
Jenta
07-03-2005, 09:13 AM
I guess you missed my point. I installed the version that contains the fix but it's still showing private threads.
Loki12
07-03-2005, 09:20 AM
I guess you missed my point. I installed the version that contains the fix but it's still showing private threads.
Edit your xml file in plugins.
Find: $limitfids .= ','.$forum['forumid'];
Then merely insert the forumid's you want to be excluded between the ','
Chris M
07-03-2005, 11:34 AM
I guess you missed my point. I installed the version that contains the fix but it's still showing private threads.
I understand what you are saying, but I'm saying it shouldn't be as it doesn't on my test forum or on several others :ermm:
As Loki suggested, remove the part about permissions and just have a static $limitfids:
$limitfids = ',1,2,3,4,5,6,7,8,9';
:)
Satan
Chris M
07-03-2005, 11:42 AM
The only solution I can give you would be to check your icon paths are correct, and to check your templates to make sure you haven't got any incorrect image paths saved in your templates...
Satan
I found the solution for us acidburn:
Go: Post Icons > Post Icon Manager > Generic Icons > Edit
Then take away http://www.sodomcity.net/forum/ , leaving only images/icons/icon10.gif (for each icon) and things will work like a dream.
I suspected it was to do with your icon paths :)
Satan
bing11
07-03-2005, 06:26 PM
Ah I see - You want it to show the most recent created threads, not ones that have just been replied to ;)
I shall look at the code and have something probably by monday (going out tonight and working tomorrow) :)
Satan
please help this :nervous:
Chris M
07-03-2005, 06:59 PM
I think this is correct:
In the plugin code, find:
ORDER BY lastpost
replace with:
ORDER BY dateline
In theory this should order it by the newest posted threads :)
Satan
Kirk Y
07-03-2005, 07:57 PM
I think this is correct:
In the plugin code, find:
ORDER BY lastpost
replace with:
ORDER BY dateline
In theory this should order it by the newest posted threads :)
Satan
Yes, that seems to work. Thanks Satan! :)
Chris M
07-04-2005, 10:05 PM
Glad to hear it :)
Satan
bing11
07-05-2005, 01:17 AM
thank you hellsatan
I have a plan .I hope there are 2 different Latest Threads on my Forum Home.
I try do it by myself :(. But not working . So hope you help :)
Kirk Y
07-05-2005, 04:57 AM
thank you hellsatan
I have a plan .I hope there are 2 different Latest Threads on my Forum Home.
I try do it by myself :(. But not working . So hope you help :)
...Huh? Sorry... I'm confused. :ermm:
aldo7a
07-05-2005, 02:17 PM
thanks nice hack
is work great
best regard
Chris M
07-05-2005, 03:27 PM
...Huh? Sorry... I'm confused. :ermm:
He wants two versions of the hack, one with the latest threads, and one with the latest posts?
In order to do this, you will have to change the variables within the plugin for the second of the two, otherwise it will not work :)
i.e.
Change:
$getthreads = $db->query_read("
to:
$getposts = $db->query_read("
continue to change the variables and it should work :)
Satan
Kirk Y
07-05-2005, 10:31 PM
Ahhh... okay. Satan saves the day... again. :p
Edit: That's actually not a bad idea... I may do the same.
Chris M
07-06-2005, 11:38 AM
Oh incase you are wondering, you can increase or decrease the number of latest threads/posts displayed by altering:
DESC LIMIT 5");
Change the 5 to whatever you like, i.e. 3 or 10 :)
I'm going to release another version of this as soon as I get the time, with some Admin CP Settings for this, so you can alter what forums do and do not show, the number of results to display etc :)
Satan
ohgenki
07-07-2005, 04:28 AM
pardon me, but where is the plugin to download ? i don't see any anywhere...
Biker_GA
07-07-2005, 04:52 AM
latest-threads-on-forumhome-111.xml is the file you need. Along with the txt file for your instructions.
Chris M
07-08-2005, 03:01 PM
Yeh upon the next release I will .zip it all up ;)
Satan
Rover416
07-10-2005, 03:10 AM
Thank for this.
Although i moved it to the top of the forum. :D
Chris M
07-13-2005, 02:37 AM
Update
Beta 4: Update to confirm that this plugin works with vBulletin 3.5.0 Beta 4;)
Satan
southernlady
07-13-2005, 12:01 PM
Thanks, Satan...I LOVE this plugin. Liz
Gary King
07-13-2005, 07:23 PM
Run this through the w3 validator. Fix the & so that it is &, otherwise you get hundreds of XHTML errors.
Chris M
07-13-2005, 09:09 PM
Run this through the w3 validator. Fix the & so that it is &, otherwise you get hundreds of XHTML errors.
It was & on my testboard - Hrm...
I'll re-validate it ;)
Satan
Chris M
07-13-2005, 09:20 PM
Made it all XHTML compliant now :p
Satan
mholtum
07-13-2005, 11:32 PM
Worked like a charm, thanks
SlowRoasted
07-14-2005, 12:04 AM
will this work for 3.07? where do i upload the plugin file to?
Dream
07-14-2005, 12:13 AM
will this work for 3.07? where do i upload the plugin file to?
only vb3.5 has a plugin system
ForYou
07-14-2005, 10:06 AM
Hello hellsatan ,
Please can you tell me the steps to how can i put the marquee of lasttheard on forumhome ,
please
Regards
Had this on 3.0.6 .. great to have it back on 3.5.0.
Thanks hellsatan.
Wayne Luke
07-14-2005, 06:06 PM
Any screenshots of how people have this implemented?
southernlady
07-14-2005, 06:17 PM
Yeah, I can post one. Liz
Chris M
07-14-2005, 06:39 PM
I have added a image in the first table, but it's essentially the same ;)
Satan
southernlady
07-14-2005, 06:43 PM
Your's is a better shot but mine proves it works! Liz
Wayne Luke
07-14-2005, 06:53 PM
Ahh thanks.. I was looking for something more on the lines of SitePoint's Index page.
http://www.sitepoint.com/forums/index.php
albarq
07-14-2005, 07:08 PM
hi ...
i've updated my forum to Beta 4 .. and its work fine ... but its appear the topics for hidden forums :(
// #################### 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']) {
$limitfids .= ','.$forum['forumid'];
}
}
unset($forum);
so when i checked for the value of $limitfids it was empty ... :)
have i messed something?? i upgread also this hack :s
guied me please
thank you
Chris M
07-14-2005, 07:14 PM
hi ...
i've updated my forum to Beta 4 .. and its work fine ... but its appear the topics for hidden forums :(
// #################### 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']) {
$limitfids .= ','.$forum['forumid'];
}
}
unset($forum);
so when i checked for the value of $limitfids it was empty ... :)
so any help?
thank you
I will recheck the limitfids section of this :)
Satan
Chris M
07-14-2005, 08:57 PM
Update
Version 1.1.2: Simple update to fix the permissions bug again - It keeps cropping up lol :)
I've also altered the fetch_userinfo location of the template cache plugin to cache_templates so that it is cached for guests as well :)
To upgrade, simply delete the previous plugins and upload the new .xml file :)
Satan
albarq
07-14-2005, 09:09 PM
thanks you
its work now :)
Chris M
07-14-2005, 09:12 PM
Your welcome :)
I hadn't noticed it had become incorrect because I formatted my board, and forgot to add back my registered "testuser" ;)
Satan
ForYou
07-15-2005, 06:38 AM
Hello Satan ,
please if you can to let me how can i do marquee last theard at the top of forum home page ,
and there is another thing , is there a way to view the orginal poster of theard and and lastposter togather ,
regards
Brinnie
07-15-2005, 07:05 AM
Hey... I think it would be cool if you could set it to only Hot Topics... Yea, that way people could add a caption like "Highlighted Forum Discussions" like sitepoint (http://www.sitepoint.com/forums/) does.
I probably wouldn't use it, as I don't like to clutter my board index, but it's just a thought. ;)
ForYou
07-17-2005, 10:38 AM
Hello Satan ,
please if you can to let me how can i do marquee last theard at the top of forum home page ,
and there is another thing , is there a way to view the orginal poster of theard and and lastposter togather ,
regards
Satan Hello ,
Please help
Regards
Hello,
I installed it but didn't see any changes there!! How would this hack appear in my forum?!
albarq
07-21-2005, 12:53 PM
please if you can to let me how can i do marquee last theard at the top of forum home page ,
Regards
change the code inside forumhome_latestthreadbit to this one:
<a href="showthread.php?t=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a> <a title="$thread[date] $thread[time]? $vbphrase[replies]: $thread[replycount] ? $vbphrase[views]: $thread[views]" href="showthread.php?goto=newpost&t=$thread[threadid]"><span style="text-decoration: none"><font color="#000000">$vbphrase[last_post] by </font></span></a> <phrase 1="member.php?find=lastposter&t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase> .:|:.
you can change it if you wish...
then go to the FORUMHOME and change the position of this hack from down to the top ..
so you need to search for
<!-- latest threads -->
<if condition="$show['latestthreads']">
<table class="tborder" border="0" width="100%" align="center">
<tbody id="collapseobj_forumhome_latestthreads" style="$vbcollapse[collapseobj_forumhome_latestthreads]">
<tr>
<td class="alt1"><div class="smallfont"><marquee dir="rtl" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=2" scrollAmount="4" scrollDelay="50" direction="right" height="35">$threadbits</marquee></div></td>
</tr>
</tbody>
</table>
</if>
<!-- /latest threads -->
hope that will work...
thank you
albarq
07-21-2005, 01:00 PM
hellsatan, sorry
i found a small issues , i have a small forum which its topics just appears to them owner and moderator... so, could you upgrade this hack please to work with this forum ??
thank you
Chris M
07-21-2005, 02:47 PM
I'm not sure I understand the request...
You want threads that are only viewable by the user who posted it and moderators to remain so in the Latest Threads box? Or you don't want them to show up at all?
If the user does not have permission to view the threads then they won't show up in the box - If you want to exclude the forum from showing on the latest threads box altogether, alter the plugin, replacing:
AND forumid NOT IN (0$limitfids)
with:
AND forumid NOT IN (0,X$limitfids)
Replace X with the forumid of that forum, but DO NOT add a comma after the X ;)
Satan
albarq
07-22-2005, 01:22 AM
hummm No, i dont want to hide all the fourm topics,
i just want this topics appear to the people who have the permission to view (poster or moderator)... otherwise, not.... rather than appearing/hiding all topics to every one .
BECAUSE now all the topics appears to every one :(, if there is a problem from my side, please guide me.
thank you for your replying
albarq
Chris M
07-22-2005, 09:25 PM
hummm No, i dont want to hide all the fourm topics,
i just want this topics appear to the people who have the permission to view (poster or moderator)... otherwise, not.... rather than appearing/hiding all topics to every one .
BECAUSE now all the topics appears to every one :(, if there is a problem from my side, please guide me.
thank you for your replying
albarq
It should already do this - If it does not, make sure you are running the latest version of this plugin :)
Satan
albarq
07-23-2005, 11:47 AM
ya, i have the last plug-in
see this example for your code
## 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");
Chris M
07-23-2005, 03:32 PM
ya, i have the last plug-in
see this example for your code
## 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");
The only reason I can see for it showing the threads to people who aren't allowed to see them is that you have not got the latest plugin running :ermm:
Satan
Chris M
07-26-2005, 11:23 PM
Update
RC1: Update to confirm that this plugin works with vBulletin 3.5.0 RC 1:)
Satan
What do I need to edit to not show the post icons on the latest threads list ?
Chris M
07-26-2005, 11:57 PM
There are two ways:
One way disables it (in case you want to enable it in the future), and another completely removes it...
To disable it, alter your plugin, and find:
if (is_array($icon)) {
$show['icon'] = true;
$thread['threadiconpath'] = $icon['iconpath'];
$thread['threadicontitle'] = $icon['title'];
}
Replace with:
if (is_array($icon)) {
$show['icon'] = false;
$thread['threadiconpath'] = $icon['iconpath'];
$thread['threadicontitle'] = $icon['title'];
}
:)
To remove it completely;
In the forumhome_latestthreadbit template, remove:
<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>
Now edit the Plugin:
Remove:
// 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'];
}
You may also want to consider altering the query :)
Satan
There are two ways:
One way disables it (in case you want to enable it in the future), and another completely removes it...
Satan
Thanks Satan .. that worked :)
Chris M
07-27-2005, 11:02 AM
Thanks Satan .. that worked :)
Your welcome :)
Satan
chikkoo
08-01-2005, 06:21 AM
Nice Mod.
But, I've Two Questions.
1) Will it work in Beta 3? as I didn't upgrade to RC1, I'm waiting for final.
2) If I don't want all the threads to appear, can I specify only a specific forum or forums?
Chris M
08-01-2005, 12:30 PM
Nice Mod.
But, I've Two Questions.
1) Will it work in Beta 3? as I didn't upgrade to RC1, I'm waiting for final.
2) If I don't want all the threads to appear, can I specify only a specific forum or forums?
1) Yes - The version only indicates that it will work with the latest version but it does work with Betas 1 - 4 :)
2) I have explained how to do this earlier on in the thread :)
Satan
mcyates
08-16-2005, 01:35 PM
i've installed this but nothing shows?
Chris M
08-16-2005, 02:21 PM
Make sure you have added both the forumhome_latestthreadbit template and made the modification to the FORUMHOME template :)
Satan
mcyates
08-16-2005, 02:55 PM
Make sure you have added both the forumhome_latestthreadbit template and made the modification to the FORUMHOME template :)
Satan
I have done, would you be able to have a quick look for me? Its only a test board. I'll give you admin permissions if you sign up. That's if your not too busy.
Chris M
08-16-2005, 04:50 PM
Absolutely nothing shows? o.O
Send me the info by email: chris[dot]d[dot]murphy[at]btinternet[dot]com ;)
Satan
Satan ..
I dont know it you can do this or not ..
How can i call the var ($threadbits) from the tamp (forumhome_forumbit_level2_post) .. ?
i want to add IF condition to use it in forumdisplay ..
------------------------
forum row bit content .. bla bla bla ............
then ..
<if condition="$forumid = 11">
$threadbits
</if>
------------------------
* Please can you provide ur help .. i asked alot before but no response ..
does the idea clear for you satan ?
thanks in advance ..
Vierie
08-20-2005, 12:35 PM
Is there someway to change this script, so that the latest threads can be displayed on other pages?
Xplorer4x4
08-27-2005, 05:12 PM
If you are running vBAdvanced there is no possibly way to get your post icons to show up in both. Trust me I tried all the solutiongs in this thread. Therefore iturned them off in vbadanced. Porblem fixed there.
I notice there is a small table next to the icons that is empty. For the other columns like Who Is Online there is a icon in this table which will be linked to www.yousite.com/forums/images/misc/whos_online.gif (http://www.yousite.com/forums/images/misc/whos_online.gif) or in the cae of the birthdays table there is a calender icon. Would it be possible to align the thread icons into that table and still have them corespond to the post icon asigned to that thread?
SlowRoasted
08-27-2005, 07:02 PM
what do I change to select the latest posts instead of latest threads?
thx
Xplorer4x4
08-28-2005, 06:32 AM
what do I change to select the latest posts instead of latest threads?
thx
https://vborg.vbsupport.ru/showpost.php?p=730919&postcount=84
SlowRoasted
08-28-2005, 08:25 PM
okay that helps a little, but wont I have to change a query to grab post titles instead of thread titles?
Xplorer4x4
08-28-2005, 08:49 PM
okay that helps a little, but wont I have to change a query to grab post titles instead of thread titles?
Give it a shot and see. ;) I am fairley confident that changes the query seeing as your changing $getthreads to $getposts and it is executing a query.
SlowRoasted
08-28-2005, 10:32 PM
k ill give it a shot, thanks:)
thetoolman
08-31-2005, 12:39 PM
Hi
I have successfully installed the script, but how do i make it appear on a nother part of the forum? I tried adding it to the footer tempalte becuase i have a right hand column there, but it doesnt show anything. Any ideas?
roundhost
09-05-2005, 06:57 PM
Hi
I have successfully installed the script, but how do i make it appear on a nother part of the forum? I tried adding it to the footer tempalte becuase i have a right hand column there, but it doesnt show anything. Any ideas?
Same, I changed the hook location to global_compelte as well but that gives an error, I am trying to work out how to fix that now :ermm:
roundhost
09-05-2005, 06:58 PM
Change it to global_start, then it will work :D
thetoolman
09-07-2005, 01:14 PM
where do i change it to global_start?
kwopper
09-08-2005, 01:00 AM
@ hellsatan...how can I remove the "replies" and "views" from the list and then possible adding a little space between thread link and the last post info...just so it doesnt appear all cramed together. Or even just to spread out the current stuff there so its not all cramed on the left site...easier to read. Great mod by the way..
thetoolman
09-09-2005, 02:06 PM
anyone?
Vierie
09-11-2005, 04:20 PM
Probably in the xml-file. Look for forumhome_complete and change that to global_start.
thetoolman
09-11-2005, 06:38 PM
that didnt seem to do anything, still displays in the same place and not anywhere else
thetoolman
09-22-2005, 09:00 PM
i've tried everything. i will pay someone to install this for me....
Kirk Y
09-24-2005, 05:20 AM
Login to your AdminCP -> Scroll to Plugin System -> Click Plugin Manager -> Look in the list for "Latest Threads on Forum Home" -> Click the "Edit" link next to it -> Select in the DropDown bar next to "Hook Location", global_start.
You've gotta paste the code you pasted into the "forumhome" template to wherever you want it...
That'll be $29.95. Ha ha... just kidding.
Vierie
09-24-2005, 10:34 AM
If I do that, I get a
Fatal error: Call to undefined function: fetch_iconinfo() in /home/www/web1/html/politikpla.net/forum/global.php(351) : eval()'d code on line 49
Kirk Y
09-24-2005, 03:12 PM
Sorry, I typed the wrong thing in, change the hook location to "global_start". My apologies.
Vierie
09-24-2005, 05:09 PM
I did use global_start. Still get the same error.
Maybe I changed the wrong one. I have two plugins with "latest threads on forumhome", one with the hook "cache_templates" and one with the hook "forumhome_complete". I changed the second one.
Kirk Y
09-24-2005, 05:21 PM
Try changing both.
Vierie
09-24-2005, 05:45 PM
No change. :(
Kirk Y
09-24-2005, 05:53 PM
Change it to global_start, then it will work :D
Hmm... strange. According to roundhost, that's all you needed to do. I'll see if I can't get it to work on mine, and I'll get back to you.
Vierie
09-24-2005, 06:01 PM
Thank you. :)
Xplorer4x4
09-30-2005, 08:44 AM
Not tested, but should work ;)
In the plugin code, add:
$limitfids = ,x,y,z;
before:
foreach($vbulletin->forumcache AS $forum) {
Replace x,y,z with the forumids you wish to exclude :)
Satan
Doesn't seem to work for me. :(
$limitfids = ,167,168,;foreach($vbulletin->forumcache AS $forum) {
Here is the line of the plug in. I get this error:
Parse error: parse error, unexpected ',' in /public_html/forums/index.php(459) : eval()'d code on line 6
Xplorer4x4
10-06-2005, 01:21 PM
Ok I realize Chris is gone, but anyone?
Also note the permision bug is back when using this on vB3.5 GOLD!
EDIT 10/06/05:Pretty sure the Permision bug was my dumbass fault. Please check it though.
EDIT 10/7/2005: Permision bug was my fault:o! Ok I found a fix for this. Instead of yours I had to use:
$limitfids .= '167,168';
Is there a way to include hte forum name in the display?
Bytecon
10-08-2005, 07:13 PM
Thank you
*installed*
ScooterQ
10-09-2005, 04:37 PM
Is anyone else seeing a problem with new post icons? I'm seeing posts marked as new in the latest threads display, but if I click on "new posts" it says "Sorry, there are no new threads to view." That is correct - the new post icon in latest threads is wrong for me. Thus far the only way I've found to clear the new posts icon is to mark my forums read.
For example, I can log in as a test user and see 10 threads as unread using "new posts". If I click on a thread title it takes me to the thread. If I click on "new posts" again the thread is no longer listed, but if I go to my forum home the thread is still showing up as unread in the latest threads block. I'm using the database with automatic thread marking to track unread items.
I'm guessing that I need to modify the SQL to look at the threadread table for each post and add it to the show goto new post section (listed below).
// 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;
}
}
Am I alone here? If so, I'll just quietly go fix my problem on my forum, but if not I'd like to solve this for all of us, not just me.
ScooterQ
10-09-2005, 05:30 PM
I've pretty much figured out that the problem I'm seeing has to do with the forum_view cookie not being set, thus causing my unread status to fall back to using lastvisit instead. The forum_view cookie is only set in two places in all of the VB3.5 code and in both cases it's only set if you **are not** using threadmarking.
function_bigthree.php
if ($vbulletin->options['threadmarking'] AND $userid)
{
$db->query_write("
REPLACE INTO " . TABLE_PREFIX . "forumread
(forumid, userid, readtime)
VALUES
($foruminfo[forumid], $userid, $time)
");
if (!$check_parents)
{
return;
}
// check to see if any parent forums should be marked as read as well
$parents = array();
$parents_sql = $db->query_read("
SELECT forum.forumid
FROM " . TABLE_PREFIX . "forum AS forum
LEFT JOIN " . TABLE_PREFIX . "forumread AS forumread ON (forum.forumid = forumread.forumid AND forumread.userid = $userid)
WHERE forum.forumid IN ($foruminfo[parentlist])
AND forum.forumid NOT IN ($foruminfo[forumid], -1)
AND (forum.lastpost = 0 OR
IF(forumread.readtime IS NULL, " . (TIMENOW - ($vbulletin->options['markinglimit'] * 86400)) . ", forumread.readtime) > forum.lastpost
)
");
while ($parent = $db->fetch_array($parents_sql))
{
$parents[] = "($parent[forumid], $userid, $time)";
}
if ($parents)
{
$db->query_write("
REPLACE INTO " . TABLE_PREFIX . "forumread
(forumid, userid, readtime)
VALUES
" . implode(', ', $parents)
);
}
}
else
{
set_bbarray_cookie('forum_view', $foruminfo['forumid'], $time);
}
So it looks like I may just have to modify the getthreads query for this plugin.
Basit
10-09-2005, 05:39 PM
Does this work with 3.5.0 Gold ?
Mr Chad
10-09-2005, 05:50 PM
Does this work with 3.5.0 Gold ?
doesnt look like it.
Chris M
10-09-2005, 06:45 PM
It should do, but it's untested on my end - I haven't had time to install 3.5 Gold yet :)
Chris
albarq
10-10-2005, 09:45 AM
ya it does work :)
thetoolman
10-13-2005, 11:13 AM
will this hack work if i put it in the header or footer?
Chris M
10-13-2005, 11:57 AM
You will need to make it a global plugin location not a forumhome location ;)
Chris
Vierie
10-13-2005, 12:13 PM
And how would I do that?
Xplorer4x4
10-13-2005, 01:23 PM
In the admin CP, go to your plug in manager. Find the two plug ins called latest threads on forum home. There will be two drop down menus. One says title and the one below says Hook Location. Open the drop down menu and search for "forumhome"
Chris, again, is there a way to make the forum show up in the latest thread tbale?
Vierie
10-13-2005, 01:46 PM
If I do that, I get :
Fatal error: Call to undefined function: fetch_iconinfo() in /home/www/web1/html/politikpla.net/forum/global.php(349) : eval()'d code on line 48
How do I resolve that?
twitch
10-13-2005, 04:28 PM
how do I "Create a GLOBAL phrase called latest_threads"
nevermind, I found it.
thetoolman
10-17-2005, 07:02 PM
Hi
Is there a way i can display the latest threads on one line instead of a new line for each thread?
albarq
10-18-2005, 07:16 PM
Chris M ,
Is this hack work with forumpermission[canviewothers] ?
i am using this hack since you have released but it isnt working fine with this permission.
Xplorer4x4
10-20-2005, 07:16 AM
Chris, sorry to make this repetive posts but it would be a huge help if you could tell me how to print the forum names?
Vierie
10-22-2005, 04:06 PM
If somebody wants to use that on a different page than forumhome, you have to add require_once('./includes/functions_forumlist.php'); to the php code of the xml and change the hook to global_start.
VaaKo
10-22-2005, 10:38 PM
I'm facing this annoying problem
the post icon isn't showing, it's giving me an X, when I right click it gives me this address:
http://www.lebforces.org/forum/http://www.lebforces.org/forum/images/icons/icon1.gif
I tried to fix it from the post icons admincp but didn't work
it's showing me the X when there are no replies on the topic!
any suggestions?
Chris M
10-23-2005, 12:18 AM
Open the forumhome_latestthreadbit template:
Change:
<img src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" />
to:
<img src="$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" />
That should work :)
Chris
VaaKo
10-23-2005, 09:57 AM
thank you!
it worked
nobita
10-23-2005, 03:08 PM
How to I can change from 5 to 10 threads show on forumhome?
igoravr
10-23-2005, 03:43 PM
Uncached templates: forumhome_latestthreadbit (5)
How to fix?
p.s. vb 3.5 gold
Vierie
10-23-2005, 08:46 PM
How to I can change from 5 to 10 threads show on forumhome?
Find DESC LIMIT 5 in the xml-file and change that number to 10.
Vierie
10-23-2005, 08:49 PM
Uncached templates: forumhome_latestthreadbit (5)
How to fix?
p.s. vb 3.5 gold
You have to create a template forumhome_latestthreadbit.
Put <div class="smallfont">
<if condition="$show['firstnew']">
<a href="showthread.php?t=$thread[threadid]&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&t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
» $vbphrase[replies]: $thread[replycount]
» $vbphrase[views]: $thread[views]
</div>
into it.
Chris M
10-23-2005, 10:53 PM
I forgot to add the "cache_templates" plugin to the product :p
Re-download it, uninstall the previous product and install this new one :)
Chris
nobita
10-24-2005, 03:37 AM
How to I can place latest threads in under navbar?
Xplorer4x4
10-25-2005, 06:47 AM
Just put the template edit for forumhome and aply it to your navbar. Thats what I did.
Any chance of getting this to display the forum name as well?
Chris M
10-25-2005, 12:34 PM
In the main plugin code, find:
$thread['title'] = fetch_censored_text(fetch_trimmed_title(unhtmlspec ialchars($thread['title']), 22));
Add below:
$forumdata = fetch_foruminfo($thread['forumid']), 1));
Then alter the template to add $forumdata[title] where you want it to show :)
That should work but it's untested :)
Chris
shardex
10-25-2005, 07:22 PM
That syntax was close but did not work.
Try this:
Find: $thread['views'] = vb_number_format($thread['views']);
Add Below:
$forumdata = fetch_foruminfo($thread['forumid']);
If you wanted to add a link to the forum name add this to your template:
<phrase 1="member.php?find=lastposter&t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
in the <a href="http://www.YOUR_SITE_HERE.com/forumdisplay.php?f=$thread[forumid]"> $forumdata[title] forum</a>.
nobita
10-26-2005, 01:45 AM
Find DESC LIMIT 5 in the xml-file and change that number to 10.
Thank a lot ;)
Any chance of getting this to display the forum name as well?
Plz send me your code, i have placed it under navbar but it show isn't good.https://vborg.vbsupport.ru/external/2005/10/3.gif
Xplorer4x4
10-26-2005, 12:34 PM
@ Chris thanks for the effort.
@ Shardex thanks for the fix.
@ Nobita. Sorry my navbar template isn't really a good example as it is bassicly fully customized. Sorry..
lairnoc
10-26-2005, 07:26 PM
this is more latest thread replies
Is there a hack about the latest threads posted.?
akanevsky
10-27-2005, 09:26 PM
I'm not quite sure you need to globalize $vbulletin in forumhome_complete ;)
Also, don't write
$forumperms[$forum["forumid"]]
... write
$forumperms["$forum[forumid]"]
Reason: the first one doesn't necessarily work on all the systems... Had troubles with that way of writing. The second way of writing works everywhere ;)
akanevsky
10-27-2005, 10:09 PM
In case you want it, here is an updated XML and an updated FORUMHOME html that needs to be inserted according to Chris M's instructions:
<!-- 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"><table width="100%">$threadbits</table></td>
</tr>
</tbody>
</if>
<!-- /latest threads -->
I have changed the template, which is now perceived better (see screenshot), and I've changed a few things in the code, you might wanna compare ;) Anyhow, this is a great hack, and I did click "Install". ;)
http://img271.imageshack.us/img271/858/screenshot16xc.th.png (http://img271.imageshack.us/my.php?image=screenshot16xc.png)
admiralapril
11-02-2005, 04:35 AM
Thank you Chris M and Dark Visor. I've installed this and it works perfectly. :)
Xplorer4x4
11-02-2005, 04:42 AM
I could of sworn I replied to this thread about your version Dark Visor mentioning that the first new icon was showing up but not the default post icon. Either way it was because of the way i set the image directorey in vB options to work for my portal.
Dark Visor, may i suggest making note that people can edit the table pixels to control the size.
@Chris AND Shardex niether of your variables for forum names worked as far as the link goes. The forum names show up fine but they only link to www.yourstie.com/showthread (http://www.yourstie.com/showthread) and not www.youstie.com/forums/showthread (http://www.youstie.com/forums/showthread).
Anyways this is defenitley on the top of my list for favorite hacks. :)
joelc73
11-03-2005, 07:01 PM
This is a great hack - Thanks! How can I move it up higher on the page? Just below (or above possibly) the Nav bar?
Thanks,
Chris M
11-03-2005, 07:06 PM
I could of sworn I replied to this thread about your version Dark Visor mentioning that the first new icon was showing up but not the default post icon. Either way it was because of the way i set the image directorey in vB options to work for my portal.
Dark Visor, may i suggest making note that people can edit the table pixels to control the size.
@Chris AND Shardex niether of your variables for forum names worked as far as the link goes. The forum names show up fine but they only link to www.yourstie.com/showthread (http://www.yourstie.com/showthread) and not www.youstie.com/forums/showthread (http://www.youstie.com/forums/showthread).
Anyways this is defenitley on the top of my list for favorite hacks. :)
Change the link to:
<a href="$vboptions[bburl]/forumdisplay.php?f=$thread[forumid]"> $forumdata[title] forum</a>.
:)
Chris
shardex
11-07-2005, 06:05 PM
@Chris AND Shardex niether of your variables for forum names worked as far as the link goes. The forum names show up fine but they only link to www.yourstie.com/showthread (http://www.yourstie.com/showthread) and not www.youstie.com/forums/showthread (http://www.youstie.com/forums/showthread).
That's because my forum lives at the root level, and that was the example I was basing it off of. You would just need to modify the URL to match your own site but the concept should work OK.
I actually added two of these bad boys to my homepage so that one displays the latest posts from all the general forums and the other one displays the latest posts from my blog.
Check it out at: http://www.shardex.com
This is a great hack.
Xplorer4x4
11-07-2005, 07:31 PM
As you can see I had already made the changes. ;) Yeah I migh consider that if my members wouldn;t kill me. Then again I could proabbly do it at the bottom of my forum as i put this in my navbar.
VaaKo
11-08-2005, 09:52 AM
I just have something wrong, it's supposed to have a post icon beside each topic, right?
but on my board, whenever I "mark as read" all forums, the post icon disappears, take a look:
this is before I mark as read
https://vborg.vbsupport.ru/
and this is after I mark as read
https://vborg.vbsupport.ru/
I just want to place the default post icon beside the non-new threads, how's that?
Chris M
11-08-2005, 12:21 PM
I just have something wrong, it's supposed to have a post icon beside each topic, right?
but on my board, whenever I "mark as read" all forums, the post icon disappears, take a look:
this is before I mark as read
http://img.photobucket.com/albums/v217/snitz0/ebb43dd0.jpg
and this is after I mark as read
http://img.photobucket.com/albums/v217/snitz0/2b3340c5.jpg
I just want to place the default post icon beside the non-new threads, how's that?
You need to check the icon path in the template :)
It has $vboptions[bburl]/ in front of the thread's icon path - Some people need it, some don't ;)
Chris
VaaKo
11-08-2005, 06:32 PM
I remove the $vboptions[bburl]/ but still the default post icons isn't appearing
Chris M
11-08-2005, 09:25 PM
Then your default icon is not set correctly in the vBoptions :)
Chris
VaaKo
11-09-2005, 05:30 PM
I didn't find anything related to the post icons in vBoptions, but I went to Post Icons and the default post icon's path is set to:
http://www.oneforum.org/images/icons/icon1.gif
anything wrong?
wrang
11-13-2005, 07:45 AM
It dosent work for me at all.
I haved installed the xml file in acp and put the text in to the forumhead template and made a new template called forumhome_latestthreadbit
http://www.saltvattensguiden.se/forumet/
MarsNIIT
11-14-2005, 01:24 PM
I have some forum don't want display in Latest Threads On Forum Home , can you help me :(
Thanks.
MarsNIIT
11-15-2005, 03:47 AM
I have some sub forum don't want display in Latest Threads On Forum Home , can you help me
Thanks.
Vierie
11-15-2005, 07:49 AM
Look for
// fetch the permissions for each forum
global $vbulletin;
$forumperms = array();
in the xml-file.
Below that add
$limitfids = x,y,z;
x,y,z are the ids of the forums you want to remove.
MarsNIIT
11-16-2005, 01:55 PM
Error when i add: $limitfids = x,y,z;
but add: $limitfids = x; it work ok
Parse error: parse error, unexpected T_LNUMBER in /home/niit2it/public_html/index.php(458) : eval()'d code on line 6
Can limit also sub forum of this forum???
Lowfyr
11-18-2005, 11:59 AM
hey Chris M,
is it possible to add this mod on 3.5.1 in the header template instead of the forumhome template?
Vierie
11-18-2005, 05:38 PM
hey Chris M,
is it possible to add this mod on 3.5.1 in the header template instead of the forumhome template?
Add
require_once('./includes/functions_forumlist.php');
at the beginning of your php code in the xml-file and change your hook position to global_start.
Lowfyr
11-19-2005, 12:14 PM
thank you vierie, works fine :D
sbryan
11-22-2005, 01:14 AM
Hi guys, just installed this onto my newly upgraded 3.5.1 forum :D
Just a few questions..
Can you confirm that visitors will only be able to see the forums that they have permission to?
Secondly, is there a way to edit the display a bit? Please see this pic..
What i want to do is increase it to 10 (or give users the ability to edit it to display as many as they each want) and expand the number of characters from the thread title as you can see i have a bit of extra screen space available.
Cheers!
Shane
southernlady
11-22-2005, 01:18 AM
sbryan, I don't know about you but I use a different browser to verify that info. I typically use FF for all my browsing so I bring up my web site in IE and I'm usually not logged in...I see it as a guest there. That way I see it as a guest would see it. :) If IE doesn't work that way for you, try opera. Liz
sbryan
11-22-2005, 01:26 AM
sbryan, I don't know about you but I use a different browser to verify that info. I typically use FF for all my browsing so I bring up my web site in IE and I'm usually not logged in...I see it as a guest there. That way I see it as a guest would see it. :) If IE doesn't work that way for you, try opera. Liz
cool, i actually just created a test user account with no admin/mod rights and none of the hidden forums appear, thanks :)
any way to edit how the latest threads bit displays though?
Chris M
11-22-2005, 02:10 AM
Edit the forumhome_complete part of the product (via Plugin Manager)
Change:
DESC LIMIT 5");
to
DESC LIMIT 10");
Change 10 to whatever value you want to display that many results
Now change:
$thread['title'] = fetch_censored_text(fetch_trimmed_title(unhtmlspec ialchars($thread['title']), 22));
to:
$thread['title'] = fetch_censored_text(fetch_trimmed_title(unhtmlspec ialchars($thread['title']), 35));
Change 35 to whatever value you want your thread title length to be before it's trimmed
:)
Chris
sbryan
11-22-2005, 03:10 AM
thanks Chris M, worked an absolute treat :D
wrang
11-22-2005, 04:49 AM
You have to create a template forumhome_latestthreadbit.
Put <div class="smallfont">
<if condition="$show['firstnew']">
<a href="showthread.php?t=$thread[threadid]&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&t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
» $vbphrase[replies]: $thread[replycount]
» $vbphrase[views]: $thread[views]
</div>
into it.
I haved tried to this great plugin but it doesent work for me at all.
www.saltvattensguiden.se/forumet
I run 3.5.1 in my forum Installed the XML file change in the forumhome template but it still dosentwork. What do i do wrong
Can some one help me!?
best regards
ps I have another today but this one isnt so good so i want to change to this one!
MPDev
11-22-2005, 12:27 PM
Thanks, Chris! Worked like a charm first time.
b6gm6n
11-22-2005, 11:13 PM
very handy! cheers
-b6
wrang
11-29-2005, 09:08 PM
Bumb can some one help me please!
I haved tried to this great plugin but it doesent work for me at all.
www.saltvattensguiden.se/forumet
I run 3.5.1 in my forum Installed the XML file change in the forumhome template but it still dosentwork. What do i do wrong
Vierie
11-29-2005, 10:19 PM
Did you create that template forumhome_latestthreadbit?
Can you put some punctuation marks into your sentences? Makes them easier to understand.
WhatChaMissin
12-01-2005, 04:09 PM
*installs*
Thanks we needed this!
bing11
12-06-2005, 09:36 AM
How can make a second Latest+Threads on my Forum Home?
fabianv
12-06-2005, 10:44 AM
Brilliant!
You can see it working on
http://forum.cgcentral.net
Mastar
12-06-2005, 12:18 PM
There is no title in the window bar, any help?
https://vborg.vbsupport.ru/external/2005/12/16.jpg
Am I suppose to add a phrase?
wrang
12-06-2005, 12:41 PM
im realy sad i haved made the template. Installed the XML file
?Put it in to the default template
BUT it dosent still show.
http://www.saltvattensguiden.se/forumet/index.php?styleid=1 :cry: :cry:
somasimple
12-12-2005, 01:50 PM
Hi all,
Is there a way to put this enhancement on the top of the page?
Between navbar and forums.
It seems more useful for long list forums?
Thanks.
somasimple
12-13-2005, 10:33 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 />
BiReL41r
12-16-2005, 07:56 PM
I'm getting an error, it's not showing up but the code is placed in the right spot...
sross
12-17-2005, 01:36 AM
ok i got mine mostly working can someone have a look and tell me why only some threads to the left have the "go to last post" icon and others do not? hmm http://www.itburnouts.com
Thanks!
*edit- ok weird now they are all showing, it seems to be a bit random, oh well..
midnightwalker
12-17-2005, 05:39 AM
It;s not display the topic icon in my case :(
the link becomes http://www.rmitportal.info/forum/http://www.rmitportal.info/forum/images/icons/5.gif
instead of
http://www.rmitportal.info/forum/images/icons/5.gif
Any idea?
somasimple
12-17-2005, 07:41 AM
It seems that you've customized the forum icons.
Normally you need a common forum_new.gif and it will work.
midnightwalker
12-17-2005, 09:56 AM
so how can I solve it?
somasimple
12-17-2005, 10:54 AM
Hi all,
I modified some forums pics as you did but I have also a common/default set in case of normal procedures/functions calls.
You may hard code the changes in your template with the custom image adress.
wrang
12-17-2005, 03:49 PM
It dosent work for me at all
Hope someone els can do some to 3.5.2 or help me
somasimple
12-17-2005, 04:38 PM
Hi replace this
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[latest_threads]" /></td>
by
<td class="alt2"><img src="http://www.rmitportal.info/forum/images/icons/5.gif" alt="$vbphrase[latest_threads]" /></td>
normally it may work.
notice that on my site I needed to add a width statement to have it equal with forums.
midnightwalker
12-17-2005, 04:53 PM
hi,
Thanks for your help somasimple but it's not what I expected.
Every topic users may chose the different emtion and it's not only the 5.gif so I have to find another way to set the path :)
somasimple
12-20-2005, 05:54 AM
Hi,
What is the adress of you forums?
I have pictures in front of messages and it works!
www.somasimple.com/forums/
himerus
12-20-2005, 06:36 PM
Okay, this is a great plugin, however, I need to make some modifications, and this is the first time I've worked with vB since 3.0.3....
The plugin system is a little new to me...
I need to have this plugin show up on EVERY vbulletin page... I'm not worried about queries affecting performance... but I looked at moving the settings on the plugin to a different location, but it won't show up.
I have had to move the template code to the footer template in order to accomplish what I'm looking for, so can someone give me the quick tip on what I'm going to need to do to get this plugin to work with my footer template, and on every page????
Vierie
12-20-2005, 06:53 PM
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 footer.
himerus
12-20-2005, 07:11 PM
require_once('./includes/functions_forumlist.php');
You are AWESOME!!!!
Worked like a charm....
nmu98
12-21-2005, 04:39 PM
The forum thread icons will not show in this. it shows http://www.thedieselgarage.com/forums/http://www.thedieselgarage.com/forums/images/icons/icon4.gif
2 addys? How do I get it to remove the first part?
Chris M
12-21-2005, 06:03 PM
Alter forumhome_latestthreadbit:
Find:
<img src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" />
change to:
<img src="$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" />
Chris
Prince
12-21-2005, 06:06 PM
can someone please tell me how many queries this adds to forum home?
thanks
nmu98
12-21-2005, 06:24 PM
Thanks Chris, that worked perfectly!!!!!
Chris M
12-21-2005, 11:34 PM
can someone please tell me how many queries this adds to forum home?
thanks
1 :)
Chris
Prince
12-22-2005, 02:06 AM
can some one post the code to either limit forums or choose the forums you want it to display please?
I have read all through this thread and the only thing that sort of worked is this:
$limitfids = x;
but it only allows you to exclude ONE forum from the latest threads and I have 6 that I want exclude.
thanks
wrang
12-22-2005, 05:29 PM
What do i do wrong it still dosent work and dont know what i shuld do to
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.