vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   First post on every page of thread. (https://vborg.vbsupport.ru/showthread.php?t=93706)

Asterik 08-05-2005 11:26 PM

Quote:

Originally Posted by insane-topics
Ok , I am looking into it now (I know how to do it hard code, but I will find the plugin and update it with update instructions in a few)

Thanks, the plugin system confuses me alot but... yea it can be done hard coded easily enough.

vBintense 08-05-2005 11:59 PM

Update on a small problem with template cache ,I fixed the zip if you already downloaded you can use this xml in 'plugins' not in product and it will fix it.

Barakat 08-06-2005 02:10 AM

what about the attachments ! hope u do it soon

vBintense 08-06-2005 02:11 AM

Attachments should show in the first post (if it had attachments) I will go check.

vBintense 08-06-2005 02:24 AM

Quote:

Originally Posted by Barakat
what about the attachments ! hope u do it soon

Fixed the zip and if you installed already here is the change (thanks for pointing it out)

open showthread.php find
PHP Code:

     if($forum['showfirstpost']==1){
    
$postids "post.postid IN (0" ", " $thread['firstpostid'] . $ids ")";
    } 

Delete it, then find
PHP Code:

$postids "post.postid IN (0" $ids ")"

before it add
PHP Code:

if($forum['showfirstpost']==1){ $ids =  $ids ', ' $thread['firstpostid'];} 

Done now attachments work :)

Boofo 08-06-2005 02:35 AM

The file edit can't be done via a plug-in?

vBintense 08-06-2005 02:37 AM

None that I have found effective. If you look at the showthread.php you will find no hooks inbetween where it 'has' to be called with out adding a quary.

So I went with this option one line of code adding is better then one quary ;)

Boofo 08-06-2005 02:38 AM

Maybe Kirby will come to the rescue. ;)

vBintense 08-06-2005 02:39 AM

/me hides from the all knowing Kirby

But I still think one line added is not too bad, yet if someone can offer a more viable solution using hooks I am willing to listen.

Boofo 08-06-2005 02:42 AM

No, sir, it isn't bad at all. But no file edits are even better. ;)


All times are GMT. The time now is 04:41 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.01357 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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