vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB3 Style - "Last Posts" Modification (v1.2a) (https://vborg.vbsupport.ru/showthread.php?t=47726)

Krakken 01-14-2003 10:00 PM

vB3 Style - "Last Posts" Modification (v1.2a)
 
vBulletin Hack: vB3 Style - "Last Posts" Modification.
Version: 1.2a

Designed and Coded by: Krakken
Copyright ? 2003


This hack will change the "Last Post" section on your Forum Homepage to a style similar to vBulletin 3.0.
It will show the last active thread someone posted and it's current icon in on the forum homepage in the place of the date and time. The date is completely removed in this version and the time is placed underneath the thread title next to the name of the last person to post in that thread.

Example:
http://www.inspire-fx.com/images/lastpostex.png

Working Demo:
http://www.randomrubbish.net/bulletin

Files to Edit: "index.php" "forumdisplay.php" (x2)
Templates to Edit: "forumhome_lastpostby" (x1)

Current Releases:
v1.2a - Added a fix so the thread shows in the category view as well.
v1.1a - The script now only uses two querys (one for thread and one for thread icon) to display for all forums. Also, thread icons can now be seen next to thread title.
v1.0a - Changes "Last Post" template and adds last active thread view to forum home.

If you like this hack please click INSTALL. Thanks. ;)

Krakken 01-15-2003 12:20 AM

You can view an active demo here:
http://www.randomrubbish.net/bulletin

I have also attached a small screenshot to give you the idea.

snyx 01-15-2003 12:42 AM

yeah ppn (i think, oh tech) created this ages ago
but not the vb3 style.. none the less I prefer to use my own style.

Brad 01-15-2003 12:47 AM

how many querys dose it add to go to the last thread? I also released something that would go to the last thread (not post) that works like the method vB uses to send a user to the lastest post in a forum.

Krakken 01-15-2003 01:02 AM

PPN's was a lot more complicated to install than this one is.

Vivi Ornitier 01-15-2003 01:07 AM

wat's the dif between just using the lasttitlehacks we have right now and changing the layout around a bit to achieve that. Good hack tho, good job!

alkatraz 01-15-2003 01:08 AM

Installed, works great, thx!

Here is a live demo on my forums:
http://forums.northwestnissans.com/

BigJohnson 01-15-2003 01:11 AM

one query per forum right?

So which one uses less queries this one or PPN's?

Krakken 01-15-2003 03:18 AM

Okay that is now fixed; the script uses only two querys altogether.
I have also added the thread icon display.

Boofo 01-15-2003 05:15 AM

Without the date, though, how do you know when the last post was done? PPN's hack is better in that way. :)

TECK 01-15-2003 06:16 AM

This hack will add 2 queries to your forumhome.
PPN's is more complicated, true, but it will add no extra queries.
Also, you could use a LEFT JOIN for the icon, if you want to get the path, so you save a query...

BigJohnson 01-15-2003 08:33 AM

true also this hack right here doesnt work on subdomains. It just doesn't show the thread title.

Erwin 01-15-2003 10:13 AM

TECK is absolutely correct. PPN's hack adds no additional queries. This is why I use his hack. :)

Krakken 01-15-2003 11:20 AM

Quote:

Originally posted by TECK
This hack will add 2 queries to your forumhome.
PPN's is more complicated, true, but it will add no extra queries.
Also, you could use a LEFT JOIN for the icon, if you want to get the path, so you save a query...

Hmm could you elaborate on how to do this? I have never used "LEFT JOIN" before. Thanks.
Also there was a little bit I left out of the installation file which is fixed now sorry.

Krakken 01-15-2003 11:21 AM

Quote:

Originally posted by BigJohnson
true also this hack right here doesnt work on subdomains. It just doesn't show the thread title.
That might have been because of a bug in the installation. Sorry, fixed now.

Krakken 01-15-2003 11:24 AM

Quote:

Originally posted by Boofo
Without the date, though, how do you know when the last post was done? PPN's hack is better in that way. :)
You can add the date very easily by adding:
PHP Code:

$forum[lastpostdate

...where you want it to appear in the template.

USODJA 01-17-2003 09:56 PM

I am having problems wth this picking up the proper thread in sub forums!

Krakken 01-18-2003 12:00 PM

All fixed. :)
Download and follow instructions to upgrade from v1.1a to v1.2a.

Krakken 02-03-2003 05:28 PM

That was just a little side-thing I made. I may make it into a proper hack one day. Contact me on AIM: "Krakkius" and I will try to show you what to do.

Boofo 02-03-2003 05:31 PM

Quote:

Originally posted by Krakken
That was just a little side-thing I made. I may make it into a proper hack one day. Contact me on AIM: "Krakkius" and I will try to show you what to do.
I'd be interested in seeing that also. ;)

Krakken 02-03-2003 05:36 PM

Heh, alrite, I will see what I can do this weekend! :)

Xyphen 03-03-2003 08:38 PM

Works Perfectly fine on vB2.3.0, thank you so much!

Krakken 03-04-2003 02:53 PM

Your most welcome. :)
Thanks for the comment buddy!

Matt 03-16-2003 02:30 PM

I tried using this hack but it seemed to grab threads from the wrong forums so I had two of the same threads showing up as the last thread in two seperate forums when the thread only exists in one of them :-\

Fi_InCogNiTo 03-17-2003 04:47 PM

I found a small bug in this. If the topic has been moved, and it is the most recent topic in a forum, it doesn't redirect you to the new location. It just shows you a blank section that you may reply to ;)

I have the quick reply hack and that's all I can see when this happens.

Fi_InCogNiTo 03-17-2003 04:52 PM

Other than that, looks very nice <me clicks install>

Fi_InCogNiTo 03-17-2003 10:06 PM

Quote:

Yesterday at 11:30 AM Matt said this in Post #24
I tried using this hack but it seemed to grab threads from the wrong forums so I had two of the same threads showing up as the last thread in two seperate forums when the thread only exists in one of them :-\

I am also having this problem. I see 3 of the same topics in 3 different forums. Two of them are incorrect.

Krakken 03-18-2003 09:06 AM

Hmm I really have no idea why it's doing that. I'll take a look at the code in a bit. Could you give me a little more information? Maybe a screenshot and vB version? Thanks.

Krakken 03-18-2003 09:10 AM

Ah I just visited your forums and it's because of the way you structure your forum. I will try to make a fix for it and release it as soon as I can.

Fi_InCogNiTo 03-18-2003 01:19 PM

ty, hack looks great. I'll uninstall until there is a fix ;)

Fenriz 03-30-2003 07:14 PM

Why "Show a default icon" is totally desabled in this hack? I enabled it in Control Panel, but no effect.. Please, correct it.
------------------
Show a default icon if a user doesn't choose a message icon or is unable to choose one based on forum settings? {imagesfolder}/icons/icon1.gif will be used

theXME 04-23-2003 02:40 AM

A very great Hack :) I installed it, but i had a problem (vB 2.2.9). I could find the problem and now the hack works fine *hehe*
I can't explain the problem in english, but i will try it.
You must delete the spaces on the left of the code.
For ex:
// Wrong:
Code:

  if {
// Right:
Code:

if {
Sorry for my bad english, but i'm german (15) :D

Airs 04-23-2003 03:17 AM

Is there a way to remove the time and put there "By" instead? thnx in advance!

theXME 04-23-2003 04:23 AM

That's simple.

Replace this
Code:

<font color="{timecolor}">$forum[lastposttime]</font>
with this
Code:

by
I hope you meaned that.

Airs 04-23-2003 04:52 AM

Quote:

Today at 05:23 AM theXME said this in Post #34
That's simple.

Replace this
Code:

<font color="#FF9C58">$forum[lastposttime]</font>
with this
Code:

by
I hope you meaned that.

i cant seem to find
PHP Code:

<font color="#FF9C58">$forum[lastposttime]</font

anywhere? oO

theXME 04-23-2003 05:19 AM

Ohh, the Forum replaced it :D
Code:

<font color="{/timecolor/}">$forum[lastposttime]</font>
But without the '/' at timecolor.

Krakken 04-23-2003 04:32 PM

Thanks for everyones comments. Unfortunately I cannot provide support for this hack anymore because my server ran out and I am not intending on re-installing my forums until I can get a graphics person. This looks like it will probably take a while. Sorry to anyone who I said I would help and haven't. I may be able to pick up this project again and make a v2 for you all with a nice menu etc. in the future sometime. ;)

theXME: Strange. That shouldn't make any difference seeing as PHP ignores whitespaces.

Tungsten 04-28-2003 09:43 PM

What's the thread ID for PPN's hack?

Boofo 04-28-2003 09:50 PM

Check his profile. ;)

Tungsten 04-29-2003 01:36 AM

Quote:

Today at 05:50 PM Boofo said this in Post #39
Check his profile. ;)
Tried that. He's no longer listed as PPN, ostensibly because he has changed his user name. I guess I should know what he changed it to, but I've been lax at keeping up with such things. ;)


All times are GMT. The time now is 04:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01450 seconds
  • Memory Usage 1,818KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete