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)

dwh 08-16-2002 05:58 PM

Quote:

Originally posted by Boofo
Can you supply a screenshot?
Sorry, I only installed it in my test forum...and then deleted it...But it's the same exact screenshot as the other versions of this hack but with the same icon as the user selects showing up on the forumhome and forumdisplay.

dwh 08-16-2002 06:01 PM

Quote:

Originally posted by Webmasta XT
damn, when editing admin/functions.php in vb 2.2.6

PHP Code:

then look for

      
$lastposts=$DB_site->query_first("SELECT lastpost,lastposter FROM thread WHERE lastpost='$lastposts[lastpost]'");
                        
$lastpost=$lastposts['lastpost'];
                        
$lastposter=$lastposts['lastposter'];

change to

      $lastposts
=$DB_site->query_first("SELECT lastpost,lastposter,title FROM thread WHERE lastpost='$lastposts[lastpost]'");
                        
$lastpost=$lastposts['lastpost'];
                        
$lastposter=$lastposts['lastposter'];
                        
$lasttitle=$lastposts['title']; 

That part is not possible, so I can't install the hack.. any help with this?

Yah, the original currently has that section wrong...I don't have the code in front of me but bascially you need to look for the section that say $lastpost=$DB_site...there's only one. The only part you need to worry about is to add "title" to the SELECT statement so instead of "SELECT lastpost,lastposter" it should be "SELECT lastpost,lastposter,title" and then add $lasttitle=$lastposts['title'] and you should be ok..but don't forget that in the template to fix that little error I mentioned $form['lasttitle'] should be $forum[lasttitle]

hope this helps..

Boofo 08-16-2002 06:03 PM

I guess I'm still lost here. :confused: What icon did you use and where did you put it? Are you talking about the little arrow icon?

Quote:

Originally posted by dwh


Sorry, I only installed it in my test forum...and then deleted it...But it's the same exact screenshot as the other versions of this hack but with the same icon as the user selects showing up on the forumhome and forumdisplay.


dwh 08-16-2002 06:13 PM

Here's a screenshot :banana:

Boofo 08-16-2002 06:21 PM

Ok, I understand now. LOL Thanks. :)

BTW: Who's crappy board is that? They ought to have their vB license revoked.

All seriousness aside now...could you have different icons for each one? And would it pick them from a group or is this all manual labor stuff?

Quote:

Originally posted by dwh
Here's a screenshot :banana:

Webmasta XT 08-17-2002 12:45 PM

can we get a new updated file? for ppl with vb 2.2.6?

Webmasta XT 08-17-2002 12:53 PM

well, I got it working!

Boofo 08-21-2002 01:19 AM

Any way to get this working in the Search > Thread Results screen? :)

Boofo 08-27-2002 12:15 AM

Scott, did you ever figure out why when I have a user with an apostrophe in the name that when I run update counters on the forum, that it gives me a db error is the user with the apostrophe is the user with the last post? And every once in a while I get a thread that gives me an errorid error if I click on it but when I go to edit the thread, it fixes it so it is clickable again.

Scott MacVicar 08-27-2002 12:33 AM

let me guess syntax error due to the lack of a slash. Can you post the query it was trying to run if possible.

Ill get an update file done soon, its changed in 2.2.7 so I'll have to post a new one.


All times are GMT. The time now is 09:09 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.01249 seconds
  • Memory Usage 1,744KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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