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)
-   -   Last post on forum home, working version (https://vborg.vbsupport.ru/showthread.php?t=28561)

Scott MacVicar 09-20-2001 10:00 PM

I had tried a version suggested by someone else instead of my own and well, all it did was send the load average up by about 10 times what it was.

This version inserts the last title into the forum database when it is updating the last post name and time. There is no difference in loading time as everything is called normally by vBulletin.

This works on 2.0.x and 2.2.x

Updated at 11:34 GMT on 28th September 2002

Thanks to floren for the latest update.

valid 09-21-2001 11:09 AM

DEMO? Screenshot?

anything?

Scott MacVicar 09-21-2001 12:11 PM

ok here is a screen shot

h4p3 09-21-2001 01:20 PM

PPN, if you move a thread, will it display the correct title? That was the problem in all the other "Last post on forum home" versions.

Scott MacVicar 09-21-2001 02:07 PM

yes, i just tested it and it worked ok, but for some reason it left the date and last poster the same in the forum it was being moved from, i will have a look at the vB code just now for that reason.

Delete
Merge
Edit
Copy
all work well its just the move one.

h4p3 09-21-2001 03:12 PM

Yep, many code hackers had this problem, but never solved it ;)

Scott MacVicar 09-21-2001 03:39 PM

ok delete works, it just doesn' t work if the post being deleted is the only post in the forums.

In an unhacked version it still shows date and name even if the hack is not installed, a bug in vBulletin maybe?

anyway everything works apart from if your delete/moving a thread which is the only one within the forum.

Amasov 09-21-2001 04:00 PM

After I tried out the other 2 hacks, I thought this one works.

But it doesn't. I'm running 2.0.3 and either I'm gettin' a Parse Error (as you mentioned the variable in your hack "$form['lasttitle']") or nothing appears ($forum[lasttitle]).

What I'm doing wrong ?

Regards,
Chris.

Scott MacVicar 09-21-2001 04:17 PM

paste in the parse error pls.

the new topics won't take effect until someone posts a reply or new thread.

Amasov 09-21-2001 04:29 PM

As you stated in your installation textfile
Quote:

In the control panel go to the "forumhome_lastpostby" template
within it you may add $form['lasttitle'] to show the last thread title to be posted to, i chose the following format for my board.
(I think the parse error occured while the writing ($form('lasttitle) was'nt legal)

I changed it to this:

Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink"><tr align="right">
                <td nowrap><smallfont>$forum[lasttitle]<br>$forum[lastpostdate] <font color="{timecolor}">$forum[lastposttime]</font><br>
                by <a href="member.php?s=$session[sessionhash]&action=getinfo&find=lastposter&forumid=$forum[forumid]"><b>$forum[lastposter]</b></a></smallfont></td>
                <td nowrap>&nbsp;<a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]"><img src="{imagesfolder}/lastpost.gif" border="0" alt="Go to last post"></a></td>
        </tr></table>

Nothin' happened.
(I think there is nothing in the variable "$forum[lasttitle]" or it's also not legal, therefore nothing appears)

Regards,
Chris.


All times are GMT. The time now is 07:55 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.01415 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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