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 XX Posts on non-vB page (https://vborg.vbsupport.ru/showthread.php?t=12324)

Snoozy 05-10-2001 08:36 PM

I am having a problem with the topic icons. The hack is posting the wrong ones!

I don't know how to explain it, check out:

http://www.juniorsailing.com/

I have the hack on the very bottom of the page. Look at the icons, then click on the forum name and look in the thread list...the icon is different?!?!

Byron 05-13-2001 07:48 AM

How do we show the topic starter for each thread?

Byron 05-13-2001 08:15 AM

I think it's better to remove the "&goto=newpost" part for the thread url. Think it's better for the reader to start from the first post.

julius 05-13-2001 09:15 AM

If it's the first time you connect, you go to the first post anyway (last post for you is the first post of the thread).

bbqfan 05-14-2001 03:50 AM

i have a question. When $showforumtitle = "1" in the last10config.php, and at the same time $includeforums = "3,4", it displays "can't select info".

If I leave $showforumtitle = "0" or $excludeforums and $includeforums blank, everything ok. Any idea?

Another request: if i want to display the threads starter, threads start time (can be ordered by this?) and the massege of the threads' first post, would you plaese add these variables into your hack?

Thanks again for the great hack.

tubedogg 05-14-2001 04:08 AM

bbqfan: Do me a favor and download the zip file from the first post again. I have added mysql_error() so it will give the exact error. Run that and then let me know what exactly the error is. ("Can't select info" is a generic error I put in there when I first wrote it and never changed it.)

I'll look into those requests.

tubedogg 05-14-2001 04:10 AM

Quote:

Originally posted by Snoozy
I have the hack on the very bottom of the page. Look at the icons, then click on the forum name and look in the thread list...the icon is different?!?!
It appears to be displaying the icon minus one. So for example, if the icon's file name is icon18.gif, it is showing icon17.gif. I don't know why this is and I'm looking into it.

Edit: I just realized what the problem is and I'll post a fix in a minute.

tubedogg 05-14-2001 04:14 AM

Here's a fix for the problem in the previous post.

In last10.php, find
Code:

                if ($postii != "0" && $postii != "") {
and right below it, add
Code:

                        $postii = $postii+1;
Then find
Code:

                if (($postii == "0" || $postii == "") && $threads[iconid] != "0" && $threads[iconid] != "") {
and right below it, add
Code:

                        $threads[iconid] = $threads[iconid]+1;
Or you can just download the updated zip file in the first post in this thread, and reupload last10.php (no need to reupload last10config.php).

bbqfan 05-14-2001 04:19 AM

tubedogg,

this time it display:

MySQL reported this error while trying to retreive the info: Column: 'forumid' in where clause is ambiguous

tubedogg 05-14-2001 04:42 AM

That I can fix very easily. :) I'll post the fix in a couple minutes.


All times are GMT. The time now is 04:57 AM.

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.01306 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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