Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
First post on every page of thread. Details »»
First post on every page of thread.
Version: 1.0.1, by vBintense vBintense is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 08-04-2005 Last Update: 08-08-2005 Installs: 351
DB Changes Uses Plugins
 
No support by the author.

I had a use for it, so I thought I would share it.

Requires no file edits (Thanks Kirby!).
Adds no quarys when viewing threads

This is something like here on vbulletin.org , it allows you to select forums where the first post of the thread is shown thru out the thread.

It uses stock template looks now , if someone wishes to make a template and share it feel free.

I will offer support as I can.

Ps. If you install this hack please click the install :nervous:

Templates for first post:
https://vborg.vbsupport.ru/showpost....&postcount=124
https://vborg.vbsupport.ru/showpost....&postcount=161

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #242  
Old 10-13-2006, 12:06 PM
snowlion snowlion is offline
 
Join Date: Mar 2005
Location: STY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

me too, it work with 3.6.x
Reply With Quote
  #243  
Old 10-14-2006, 06:09 PM
ehsanix ehsanix is offline
 
Join Date: Oct 2003
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's shows first post horizontally
but i want it to be vertically
please help me
Reply With Quote
  #244  
Old 10-16-2006, 10:40 AM
snowlion snowlion is offline
 
Join Date: Mar 2005
Location: STY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
t's shows first post horizontally
but i want it to be vertically
please help me
copy and paste your postbit_legacy into postbit_first template
Reply With Quote
  #245  
Old 10-22-2006, 02:36 AM
tgralex tgralex is offline
 
Join Date: Jun 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was looking for that hack for a long time!
And I am yet step away of using it...

I have installed the XML file and I can tell that
  • There is a new "Show first post on every thread page?" field in each forum's property (I can set it to "Yes")
  • There is new showfirstpost field in the forum table

But what I can't find - how to "create a new template called 'postbit_first' "...
I just simply don't have it in my style and there is no button to create a new template...
Please help!

I am using the latest version 3.6.2
Reply With Quote
  #246  
Old 10-22-2006, 05:42 PM
brvheart's Avatar
brvheart brvheart is offline
 
Join Date: Jul 2005
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will mutilquote system work on this if I copy/paste postbiy or postbit_legacy to the postbit_first template?
Reply With Quote
  #247  
Old 10-22-2006, 10:24 PM
brvheart's Avatar
brvheart brvheart is offline
 
Join Date: Jul 2005
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also any way to keep the first post seperate rather than it looking like just another post?
Reply With Quote
  #248  
Old 10-24-2006, 03:19 AM
tgralex tgralex is offline
 
Join Date: Jun 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by brvheart
also any way to keep the first post seperate rather than it looking like just another post?
Here you go: http://www.vbulletin.com/forum/showt...38#post1237638
Reply With Quote
  #249  
Old 10-24-2006, 03:08 PM
brvheart's Avatar
brvheart brvheart is offline
 
Join Date: Jul 2005
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well...I read that it just linked back to this post...

What I am looking for is a way to make it look like they do here....so that the first post stands out like the release section...
Reply With Quote
  #250  
Old 10-24-2006, 07:39 PM
tgralex tgralex is offline
 
Join Date: Jun 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tgralex
I was looking for that hack for a long time!
And I am yet step away of using it...

I have installed the XML file and I can tell that
  • There is a new "Show first post on every thread page?" field in each forum's property (I can set it to "Yes")
  • There is new showfirstpost field in the forum table

But what I can't find - how to "create a new template called 'postbit_first' "...
I just simply don't have it in my style and there is no button to create a new template...
Please help!

I am using the latest version 3.6.2
Disregard my that post - I got the answer...

I have installed it - Great job!!!

BTW, I use vertical (old) stile of posts and for firstpost I copied not postbit_legacy, but postbit template and I have the first post in my threads very different from others - looks good!

In addition, I remember, that somebody was complaining that changing every forum to set to show first post field to "yes" is not fun...
Agree, and what I did instead - just run a query to set all my forums to show first post:

PHP Code:
UPDATE XX_forum
set showfirstpost 

(instead of XX put whatever starting you have for your forum)

1 sec and all forums are set

Thanks!
Reply With Quote
  #251  
Old 10-25-2006, 03:16 AM
tgralex tgralex is offline
 
Join Date: Jun 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Even though I liked the feature, for some users it was kind of unusual... and they want the old way back. So I decided to make it user choice.
Here how I accomplished it:

Added a new user Field, with "Yes"/"No" option (in my case field was field8)
Opened Plugin Manager and slightly changed templates First Post On All Pages only the folowing two hooks:
showthread_post_start and showthread_query

in both plugins right in the first IF statement's condition I added following line:
PHP Code:
AND $vbulletin->userinfo[field8]=='Yes' 
so instead of
PHP Code:
if ($forum['showfirstpost']) 
this
PHP Code:
if ($forum['showfirstpost'] AND $vbulletin->userinfo[field8]=='Yes'

Note that Field8 is my user-defined field and in your case you need to replace with the one you create in your system.

That is it - I am happy and my users have a choice and they are happy too
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04971 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete