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)

snowlion 10-13-2006 12:06 PM

me too, it work with 3.6.x

ehsanix 10-14-2006 06:09 PM

it's shows first post horizontally
but i want it to be vertically
please help me http://qsmile.com/qsimages/43.gif

snowlion 10-16-2006 10:40 AM

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

tgralex 10-22-2006 02:36 AM

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

brvheart 10-22-2006 05:42 PM

will mutilquote system work on this if I copy/paste postbiy or postbit_legacy to the postbit_first template?

brvheart 10-22-2006 10:24 PM

also any way to keep the first post seperate rather than it looking like just another post?

tgralex 10-24-2006 03:19 AM

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

brvheart 10-24-2006 03:08 PM

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...

tgralex 10-24-2006 07:39 PM

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!

tgralex 10-25-2006 03:16 AM

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 :)


All times are GMT. The time now is 04:55 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.01317 seconds
  • Memory Usage 1,745KB
  • 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_php_printable
  • (3)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