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

arena 10-25-2006 01:32 PM

vB for Version 3.6.2 searching

TurkSipa 10-29-2006 07:46 PM

How to; First post to seem only members. Guests are see error message (please register) ?

taydu 11-04-2006 06:33 AM

please help I don't see where to enable this plug in I didn't see it in Forum Manager like it said in the note

snowlion 11-04-2006 07:36 AM

Quote:

please help I don't see where to enable this plug in I didn't see it in Forum Manager like it said in the note
go to AdminCP > Forum Manager > click to edit a forum you want then scroll to bottom , you will see Show First Post On Every Page
make sure you imported product

4Prometheus 11-21-2006 11:06 PM

Thank you very much for taking the time and trouble to share a working hack.

Happy Holidays!

Peace.

Kadi 12-02-2006 12:18 PM

I could really use this. Will it work on 3.6.4? Has anyone tried?

Neutral Singh 12-02-2006 02:48 PM

Flawless!!

brvheart 12-05-2006 04:42 PM

works on 3.6.4 :)

Guest201202001 12-06-2006 03:44 PM

I had this error when i go at any thread of the forum that i choose to activate this hack


Code:

Database error in vBulletin 3.6.4:

Invalid SQL:

                SELECT
                        post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
                        user.*, userfield.*, usertextfield.*,
                        icon.title as icontitle, icon.iconpath,
                        avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
                        deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,
                        editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
                        editlog.reason AS edit_reason,
                        postparsed.pagetext_html, postparsed.hasimages,
                        sigparsed.signatureparsed, sigparsed.hasimages AS sighasimages,
                        sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight,
                        IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
                       
                        , IF(SUM(photoplog_fileuploads.moderate) > 0 AND 1 = 0,COUNT(photoplog_fileuploads.moderate) - SUM(photoplog_fileuploads.moderate),COUNT(photoplog_fileuploads.moderate)) AS photoplog_filecount
                FROM post AS post
                LEFT JOIN user AS user ON(user.userid = post.userid)
                LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
                LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
                LEFT JOIN icon AS icon ON(icon.iconid = post.iconid)
                LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
                        LEFT JOIN deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND deletionlog.type = 'post')
                LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid)
                LEFT JOIN postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 13 AND postparsed.languageid = 2)
                LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 13 AND sigparsed.languageid = 2)
                LEFT JOIN sigpic AS sigpic ON(sigpic.userid = post.userid)
                        LEFT JOIN photoplog_fileuploads AS photoplog_fileuploads ON(photoplog_fileuploads.userid = user.userid)
                WHERE post.postid IN (0,279296,279174,279135,279095,279077,279030,279028,279028)
                ORDER BY post.dateline DESC;

MySQL Error  : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Error Number : 1140
Date        : Wednesday, December 6th 2006 @ 11:42:31 AM
Script      : http://f********
Referrer    : http://*******
IP Address  : 82.53.131.163
Username    : L'Ingegnere
Classname    : vb_database


When I am a guest i can see very well.. but as a user.. in fact i creatye a custem usergroup and only that custom usergroup doesn't see that:S

Guest201202001 12-07-2006 10:18 AM

The problem consist that everybody can see it only an custom usergroup no..

Kadi 12-26-2006 04:28 AM

Didn't work for me. Would be appreciated if this was updated for 3.6.4.

DjTaz 01-04-2007 10:35 PM

worked great for me - ill update if i have any issues - thanks

jklincoln 01-06-2007 02:43 AM

Everything is working fine for me in vB 3.6.3 however I'm finding that the width of the first post is not as wide as the reply posts or the tool bar above. I've checked the table width and it's set to 100%. Not sure what else to do and was wondering if anyone else has had the same problem.

Thanks

AndyP 01-10-2007 09:18 PM

Quote:

Originally Posted by jklincoln (Post 1151738)
Everything is working fine for me in vB 3.6.3 however I'm finding that the width of the first post is not as wide as the reply posts or the tool bar above. I've checked the table width and it's set to 100%. Not sure what else to do and was wondering if anyone else has had the same problem.

Same here. The first post is not as wide, but it is centred so it doesn't look too messy.

Another "issue" with this mod on 3.6.4 is that the multi-quote button is not available in that first post.

AndyP 01-10-2007 09:28 PM

Quote:

Originally Posted by brvheart (Post 1102164)
will mutilquote system work on this if I copy/paste postbiy or postbit_legacy to the postbit_first template?

Is this the answer?

DjTaz 01-10-2007 09:58 PM

Im not on 3.6 so i cant really speak for it , but i edited the first_post template in 3.5 to suit my needs and it worked out quite well.

I added things like
Code:

<if condition="$post[postcount] == ''"><br><b>Original Post:</b></if>
and also
Code:

  <if condition="$post[postcount] != ''">HERE I PUT IN THE SECTION WITH THE USERNAMES POST COUNTS , ETC ETC </if>
so that the initial post on the top of the page looked a lot different.
I had some changes if it was the initial post , and excluded other sections for the same reason.

The initial post ended up looking like this

djjeffa 01-14-2007 02:26 AM

Quote:

Originally Posted by djjeffa (Post 1082798)
im wondering if there is a way to make it an option in any post instead of making it everyone in that section.

bump!!!!

vBintense 01-14-2007 03:11 AM

Sorry I have not been very active as of late, just now getting back to the communities after working on many other projects offline.

It is possible but would totally change the hack, and something I have found no need for in my communities.

djjeffa 01-14-2007 04:02 PM

Quote:

Originally Posted by vBintense (Post 1158565)
Sorry I have not been very active as of late, just now getting back to the communities after working on many other projects offline.

It is possible but would totally change the hack, and something I have found no need for in my communities.


ok thanks for responding, ill take a shot at it but im sure i wont figer it out lol
i have sections with a few tutatorials and for the post that are tutatorials i woull like to make them like that , even if i had to do it from the admin cp

Smoothie 01-14-2007 08:50 PM

The problem with this mod is if you let members select which postbit to use, or if you use postbit legacy. There should be 2 templates to this mod.

Chicago_VLNU_4s 01-26-2007 04:55 AM

Is there a way for this to only work on selected forums, not all forums?

stan111 01-26-2007 08:06 AM

which one should i dl? there are two files

Blindchild02 01-26-2007 05:28 PM

Hm, is there a way to add another one, because I want a certain postbit for one forum, and i'd like a different postbit for my news forum... and I want both to show on all pages.. does that make sense? :p I tried to edit the product, and I was unsuccessful :(

any help would be great, thanks

Blindchild02 01-28-2007 12:49 PM

Quote:

Originally Posted by Blindchild02 (Post 1167894)
Hm, is there a way to add another one, because I want a certain postbit for one forum, and i'd like a different postbit for my news forum... and I want both to show on all pages.. does that make sense? :p I tried to edit the product, and I was unsuccessful :(

any help would be great, thanks

bump

Blindchild02 01-30-2007 03:32 PM

Quote:

Originally Posted by Blindchild02 (Post 1167894)
Hm, is there a way to add another one, because I want a certain postbit for one forum, and i'd like a different postbit for my news forum... and I want both to show on all pages.. does that make sense? :p I tried to edit the product, and I was unsuccessful :(

any help would be great, thanks

bump again

zylstra 01-30-2007 08:36 PM

Quote:

Originally Posted by vBintense (Post 822900)
Admincp>
Maintenance>
Execute SQL Query>
Code:

UPDATE forum SET showfirstpost = 1
You may have to add your preffix if you use one.

The original question was how to have the Add New Forum page have the "checked" value of showfirstpost be Yes by default. What you suggest will set all forums to show the first post, correct? This is different than having the default set to Yes, which your solution does not do.

COBRAws 02-02-2007 01:32 AM

This does not work on 3.6.4, ALL posts on a particular thread on a particular forum where this hack is enabled, all share the same postbit, not only the first post as it should.

:S
Anyone help please? I can go and work it around with GARS, but I dont want to use it in that paarticular forum I have.

TheDPQ 02-05-2007 12:04 AM

Works great THANKS!

Using 3.6.4 BTW

anywares 02-05-2007 05:04 PM

HOLY $#&%^#*$&#$( !!!!

THis is AWESOME! thanx man!

-Installed

Desibabu19 02-07-2007 05:47 AM

I just downloaded and installed this product. This is really useful product.

I have one problem.

It displays the first message in all pages only if the setting is

Thread Display Mode = Linear Newest First ( User CP >> Edit Options )

It does NOT work if the setting is,

Thread Display Mode = Linear Oldest First ( User CP >> Edit Options )

Many of our members use both settings. Is there a fix ?

FYI ,I am using 3.6.4


All times are GMT. The time now is 11:12 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.01676 seconds
  • Memory Usage 1,839KB
  • 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
  • (4)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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