PDA

View Full Version : Show Thread Enhancements - Chief First Post - Every Page [Forum Based]


Atakan KOC
10-27-2008, 10:00 PM
Chief First Post - Every Page [Forum Based]
With this mod, you can convert the view of the thread in to 4 different type. Additionally you can change the view as you edit click the edit button. The 1st message of the thread will stay at top all the time even while you are checking other messages related to this subject.



Thread Type
Postbit New Comment Type
Postbit Flipped
Postbit Normal
Postbit Legacy


install

Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-atabbda.xml' from your computer then press 'Import'

Modifications Info

Plugin : 7
Phrases : 8
Template : 3
Setting : 0

Versions:
v1.0 - 12 Octaber 2008
-First release

With this mod, you can convert the view of the thread in to 4 different type. Additionally you can change the view as you edit click the edit button. The 1st message of the thread will stay at top all the time even while you are checking other messages related to this subject.

Atakan KOC
10-28-2008, 05:19 PM
Reserved.

crkgb
10-28-2008, 05:33 PM
Is there a way with your mod just to make a first post the chief post without using all those
Thread Type
Postbit New Comment Type
Postbit Flipped
Postbit Normal
Postbit Legacy

myown
11-20-2008, 06:45 AM
reserved......

Diago
11-20-2008, 10:25 AM
good addons


Is there a way with your mod just to make a first post the chief post without using all those

may be you can do it by useing the Postbit Normal

Fr4n-FX
11-20-2008, 06:35 PM
great! i like it. thanks

DarkWolf74
12-05-2008, 03:50 AM
Is there a way with your mod just to make a first post the chief post without using all those

To answer this Q since no one else did. Yes, you can disable all that and set a default style. Just edit the postbit_select template and change the html to a hidden field with the value of the thread type you want as default.

You can also limit the view as to who sees it (admins, mods) by using standard template coding.

jojo77
12-05-2008, 04:52 AM
I know what this mod does but can some of you show me examples of how you guys are using it on your site? Are you using it to showcase products? what?

eTiKeT?
12-05-2008, 04:06 PM
Thank Veri Nice Atakan Ellerine Saglık İnstalled :)

natecoupons
12-06-2008, 02:05 AM
Does this work for 3.7.x ? I like the idea of this being forum specific. I have an articles section and really would like to use this, but really do NOT want it to be applied to the rest of my site. I love the concept. Thanks!!

Wordplay
12-09-2008, 05:54 PM
Does this work for 3.7.x ?3.7 version: https://vborg.vbsupport.ru/showthread.php?t=178331

lazydesis
12-10-2008, 01:37 PM
Database error in vBulletin 3.8.0 Release Candidate 1:

Invalid SQL:

SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
user.*, userfield.*, usertextfield.*,

avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
spamlog.postid AS spamlog_postid,
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, editlog.hashistory,
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


FROM vb_post AS post
LEFT JOIN vb_user AS user ON(user.userid = post.userid)
LEFT JOIN vb_userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN vb_usertextfield AS usertextfield ON(usertextfield.userid = user.userid)

LEFT JOIN vb_avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN vb_customavatar AS customavatar ON(customavatar.userid = user.userid)
LEFT JOIN vb_spamlog AS spamlog ON(spamlog.postid = post.postid)
LEFT JOIN vb_deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND deletionlog.type = 'post')
LEFT JOIN vb_editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN vb_postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 21 AND postparsed.languageid = 1)
LEFT JOIN vb_sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 21 AND sigparsed.languageid = 1)
LEFT JOIN vb_sigpic AS sigpic ON(sigpic.userid = post.userid)

WHERE post.postid IN (0,296880,296880)
ORDER BY post.dateline */;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/' at line 30
Error Number : 1064


I got this error when I tried to use it one of the forums .. any help wud be appreciated :)

This is what I did

I installed the product using product manager, went to the forums and moderators tab and selected one of the forums and selected yes for the "This Forum Chief First Post ?" option and selected style as Postbit

Then I went to that particular forum and clicked on a thread and got the above error.

The forums for which I didn't use this mod, are functioning correctly.

EDIT: and yes I am using 3.8 RC1

ManagerJosh
12-10-2008, 04:45 PM
Is there any difference between the 3.7 and this version?

lazydesis
12-12-2008, 04:13 PM
Database error in vBulletin 3.8.0 Release Candidate 1:

Invalid SQL:

SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
user.*, userfield.*, usertextfield.*,

avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
spamlog.postid AS spamlog_postid,
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, editlog.hashistory,
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


FROM vb_post AS post
LEFT JOIN vb_user AS user ON(user.userid = post.userid)
LEFT JOIN vb_userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN vb_usertextfield AS usertextfield ON(usertextfield.userid = user.userid)

LEFT JOIN vb_avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN vb_customavatar AS customavatar ON(customavatar.userid = user.userid)
LEFT JOIN vb_spamlog AS spamlog ON(spamlog.postid = post.postid)
LEFT JOIN vb_deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND deletionlog.type = 'post')
LEFT JOIN vb_editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN vb_postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 21 AND postparsed.languageid = 1)
LEFT JOIN vb_sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 21 AND sigparsed.languageid = 1)
LEFT JOIN vb_sigpic AS sigpic ON(sigpic.userid = post.userid)

WHERE post.postid IN (0,296880,296880)
ORDER BY post.dateline */;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/' at line 30
Error Number : 1064


I got this error when I tried to use it one of the forums .. any help wud be appreciated :)

This is what I did

I installed the product using product manager, went to the forums and moderators tab and selected one of the forums and selected yes for the "This Forum Chief First Post ?" option and selected style as Postbit

Then I went to that particular forum and clicked on a thread and got the above error.

The forums for which I didn't use this mod, are functioning correctly.

EDIT: and yes I am using 3.8 RC1


anyone? pls help :)

lazydesis
12-20-2008, 02:11 PM
this mod says "supported" .. its been almost 10 days since i had an error :( and no reply .. may be it shud be changed to "not supported"

kmohamed
12-31-2008, 11:01 PM
how can i edit the first post in postbit

because i see 3 template and postbit is not one of them

installed great add

TFEX
01-04-2009, 08:14 PM
3.7 thread states it does not work past 3.7.2 PL1, and cannot be set forum-specific. Any word on this one being backward compatible at all? I'd love to throw it in now rather than hold off until 3.8 is done and in. Much appreciated. :)

crkgb
01-08-2009, 04:29 AM
Is there a way to just display the first post as the chief post without using these "Thread Type:" not needed by me thing?

lazydesis
01-14-2009, 04:29 PM
ok dropped it from my tagged modifications .. this kind of is *NOT* supported i guess .. mods shud change it

KevinL
01-14-2009, 08:48 PM
This is sick. There is nothing wrong with it...at least nothing I have seen :confused:

carubmun
01-16-2009, 08:44 AM
I still dont get what the difference between this one and THIS (https://vborg.vbsupport.ru/showthread.php?t=194830)one is... other than the title.

chrisdaman77
01-18-2009, 01:16 PM
Just to answer some of your questions. I am using the 3.7x version with 3.8 with no issues at all. I believe it was just a re-post and nothing more in this section as there is not an update to the mod listed in the first post.

srkrocks
01-22-2009, 03:22 AM
Database error in vBulletin 3.8.0 Release Candidate 1:

Invalid SQL:

SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
user.*, userfield.*, usertextfield.*,

avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
spamlog.postid AS spamlog_postid,
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, editlog.hashistory,
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


FROM vb_post AS post
LEFT JOIN vb_user AS user ON(user.userid = post.userid)
LEFT JOIN vb_userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN vb_usertextfield AS usertextfield ON(usertextfield.userid = user.userid)

LEFT JOIN vb_avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN vb_customavatar AS customavatar ON(customavatar.userid = user.userid)
LEFT JOIN vb_spamlog AS spamlog ON(spamlog.postid = post.postid)
LEFT JOIN vb_deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND deletionlog.type = 'post')
LEFT JOIN vb_editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN vb_postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 21 AND postparsed.languageid = 1)
LEFT JOIN vb_sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 21 AND sigparsed.languageid = 1)
LEFT JOIN vb_sigpic AS sigpic ON(sigpic.userid = post.userid)

WHERE post.postid IN (0,296880,296880)
ORDER BY post.dateline */;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/' at line 30
Error Number : 1064


I got this error when I tried to use it one of the forums .. any help wud be appreciated :)

This is what I did

I installed the product using product manager, went to the forums and moderators tab and selected one of the forums and selected yes for the "This Forum Chief First Post ?" option and selected style as Postbit

Then I went to that particular forum and clicked on a thread and got the above error.

The forums for which I didn't use this mod, are functioning correctly.

EDIT: and yes I am using 3.8 RC1

have you tried other styles? like comment type ?? it works good for me! I dont know what mistake are you making!

Twilkey
01-22-2009, 10:24 PM
Thanks for this. I am glad I didnt have to make this myself. I did however edit the template I am using to better make the first post look like an article.

GrendelKhan{TSU
01-28-2009, 02:16 PM
thanks. love it :) no problems with 3.8.0 for me :) :D

Doctor Death
01-30-2009, 09:50 AM
I too would like to see a "normal" option for display of threads (e.g. an option to turn off all the types of displays).

TFEX
02-01-2009, 03:13 PM
I too would like to see a "normal" option for display of threads (e.g. an option to turn off all the types of displays).

I second this. No idea why it wouldn't be included as an option.

TFEX
02-01-2009, 03:24 PM
Just edit the postbit_select template and change the html to a hidden field with the value of the thread type you want as default.

Care to elaborate some? Change the html to a hidden field... value of the thread type... To most people who read this you are speaking another language. I may be painting myself a newb here, but I'm not a coder, so shoot me. If I was, I'd be writing my own hack for this, not trying to use this one.

I use postbit legacy display on my forums, and this mod offers no option to keep the postbit area to the left of the post. It also removes the text position formatting in the post and aligns it over to the left. I'd just like a way to keep my posts looking the same as they do normally, yet still display on every page.

tafreeh
02-03-2009, 12:27 AM
i have a question... is it possible if i do not want to change the view of thread... but display them in all pages..?

buileminh
02-05-2009, 05:48 AM
Anybody tested on 3.8.1? Can I use horizon postbit instead of vertical postbit (postbit_legalcy)?

Doctor Death
02-06-2009, 07:12 PM
Anybody tested on 3.8.1? Can I use horizon postbit instead of vertical postbit (postbit_legalcy)?

No you can not as currently implemented. The developer (Atakan KOC) -- even though he has been on and seen requests from users to allow this has elected to not reply or acknowledge.

Personally I am about to uninstall this mod because -- although it holds promise -- in its current state does not allow flexibility for boards that dont look good with vertical PBs.

My recommendation is to NOT install until the developer figures out if he is really supporting this or not.

goxy63
02-17-2009, 07:58 AM
Is there any difference between the 3.7 and this version?

I think this mod was not on vb.org before

This mod is diffrent than 'thread based' one, as this one does not alow user to choose anything, administrators chose flipped, legacy...

I was just wondering about postbit and postbit legacy option, at my forums they are just the same !?
I guess option is there cuz some peope use postbit or postbit-legacy in Vb main settings

And one more thing, 'new comment' type option is cool but in my forums I cant see rest of details near avatar, I guess thats normal and just an option to save space, right !?

Forum without 'chief first post' is not forum if you ask me
Thanks for this must have mod

MissKalunji
02-20-2009, 01:24 PM
it's typical he does it all the time...So there's nod ifferene between the 3.7 and 3.8 version? cause i'm still using the 3.7 and i haven't noticed any problem?

NJAquaman
03-14-2009, 04:57 PM
the thread starter is suppose to stay on the top but when i post a reply they go to the top???
maybe cause i have post newest show first on ???

it does not stay on the top of the thread !
is their a button to make it chief????:confused:

thanks

TheLastSuperman
03-14-2009, 07:23 PM
Thanks :D

TheLastSuperman
03-14-2009, 07:38 PM
Thanks :D

NJAquaman
03-14-2009, 10:54 PM
hello
is it possible to show the article format (chief post hack) for Evey post in that thread?

also i installed the mod and the chief post doesn't show up first for some reason , every time i add a comment the comment goes to the top!!:confused:

great hack just want it to get it working !!!!:rolleyes:

thanks so much:up:

TurkSipa
03-22-2009, 06:38 PM
Alternate ada_postbit_articles code..

$template_hook[postbit_start]
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis]>
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px" align="$stylevar[right]">
&nbsp;
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" />
</if>
</td>
</tr>
<tr valign="top">
<td class="alt1" id="td_post_$post[postid]" align="left" colspan="2">
<table width="100%" align="right" border="0" cellpadding="0" cellspacing="0">
<tr><td width="100%" valign="top">
<div> <strong class="bigusername">$post[title]</strong> </div>

<div><span id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</span> $post[onlinestatus] $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
</div>
<if condition="$thread['rating']">
<div><strong>$vbphrase[rating]:</strong>
<img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="" /> <span class="smallfont">(<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[ada_x_votes_y_average]</phrase>)</span>
</div>
</if>
<hr />
$template_hook[postbit_messagearea_start]
<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->
<if condition="$show['attachments']">
<br />
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">

<if condition="$show['thumbnailattachment']">
<div class="bigusername" style="border-bottom: 2px solid $stylevar[tborder_bgcolor];">$vbphrase[attached_thumbnails]</div>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
<br />
</if>

<if condition="$show['imageattachment']">

<div class="bigusername" style="border-bottom: 2px solid $stylevar[tborder_bgcolor];">$vbphrase[attached_images]</div>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
<br />
</if>

<if condition="$show['imageattachmentlink']">
<div class="bigusername" style="border-bottom: 2px solid $stylevar[tborder_bgcolor];">$vbphrase[attached_images]</div>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
<br />
</if>

<if condition="$show['otherattachment']">
<div class="bigusername" style="border-bottom: 2px solid $stylevar[tborder_bgcolor];">$vbphrase[attached_files]</div>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
<br />
</if>

<if condition="$show['moderatedattachment']">
<div class="bigusername" style="border-bottom: 2px solid $stylevar[tborder_bgcolor];">$vbphrase[attachments_pending_approval]</div>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
<br />
</if>

</div>
<!-- / attachments -->
</if>

$template_hook[postbit_signature_start]

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

$template_hook[postbit_signature_end]

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>
</td><td width="200" valign="top">
<br />
<div style="float: right; width: 200px; z-index: 1;">
<table width="200" align="right" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td>
<div class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; margin: 4px; padding: 5px;">
<if condition="$show['avatar']">
<div style="padding: 5px;" align="center">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
<div>$post[musername]</div>
<div class="smallfont">
<if condition="$post['usertitle']"><div>$post[usertitle]</div></if>
<if condition="$post['rank']"><div>$post[rank]</div></if>
$template_hook[postbit_userinfo_left]
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
$template_hook[postbit_userinfo_right_after_posts]
</div>
</div>
<div class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; margin: 4px; padding: 2px;">
<div>
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr> <td class="alt2">
$post[onlinestatus]
<if condition="$show['reputationlink']">
<span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
</if>
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
&nbsp;
</td></tr>
</table>
</div>
</div>
</td></tr></tbody></table>

</div>
</td></tr></table>
</td>
</tr>
<tr class="alt2">
<td align="right" colspan="2">
<div style="float: left;"> $vbphrase[views]: $thread[views] </div>
<div>
<!-- controls -->
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['multiquote_post']">
<a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<if condition="$show['deletedpost']">
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
$template_hook[postbit_controls]
<!-- / controls -->
</div>
</td>
</tr>
</tbody>
</table>
$template_hook[postbit_end]

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
</if>
$template_hook[postbit_user_popup]
</table>
</div>
<!-- / post $post[postid] popup menu -->

Gnappy
03-25-2009, 05:54 PM
amazing hack, thank you!

frightie
04-23-2009, 02:24 PM
Would be a great hack if the chief first post was only on the first page

shipfriends
05-27-2009, 10:18 AM
I used to have an older version which had the following problem:

When I was editing the time stamb of a new post in order to make it first of the topic, the chief first post wasn't applying for the other pages (apart form the first). It was giving the style but not keeping the post the same.

I had stopped using it and then installed this mod. It worked perfect for all the posts including the ones that didn't used to work. But if I make again an edit on the time stamp on a new post to bring it first, then it gives me the same problem as described in the very beginning.

What am I missing?

ShiZoPhreN
05-29-2009, 01:31 AM
Thanks :)

Im searching for the postbit_legacy-template, dont find this only "ada_postbit_articles, ada_postbit_comment, ada_postbit_flipped" i'll edit this postbit_legacy-template from the first post...eg: send email to a friend... how i can? :D

goxy63
06-01-2009, 10:29 AM
When I set"no comment type" or postbit flipped" Iam having problems with these template edits
[XGFX] Default Post Colour
https://vborg.vbsupport.ru/showthread.php?t=214147&page=2
just the same with
User selected default posting font and color
https://vborg.vbsupport.ru/showthread.php?t=171870&page=5

With these template edits Iam trying to allow users to select their default posting font or color

Can anyone help me ?!
===============================

Help is not needed anymore as new mod is working just fine with 'Chief First Post '
https://vborg.vbsupport.ru/showthread.php?p=1824826#post1824826

shipfriends
06-03-2009, 10:53 AM
on going from my previous post, now there are cases that the first 2 posts are chiefed (articlebit) with only one repeating on the 2nd page thereafter

Subah
06-10-2009, 10:55 AM
Would be a great hack if the chief first post was only on the first page

Great idea !

asking
06-18-2009, 03:33 AM
Is there any way on how to display the totw stamps of TOTW mod. Coz i notice that after nominating the thread, the stamps are not appearing in the postbit. Please help how to solve it?

Kintaro81
07-10-2009, 03:50 PM
Chief post is always editable from the user who posted it?

edit:
I test it and the answer is: no
It can be possible implement this function?

Kintaro81
07-17-2009, 12:06 PM
?_?

any idea?

Tilly
07-19-2009, 04:20 PM
I know what this mod does but can some of you show me examples of how you guys are using it on your site? Are you using it to showcase products? what?

http://www.gixxernation.com/forums/showthread.php?t=6707

http://www.sportbikex.com/showthread.php?t=48&page=6

DivineMessenger
07-20-2009, 04:52 AM
I don't get this at all. I imported the product but how do I choose what forums use what setup?

Brother Malachi
07-20-2009, 10:33 PM
Is it possible to enable this for certain threads only?
As in, in my case I'd like for users to be able to check a checkbox "Article" and use this mod, otherwise the post is a regular thread.

KevinL
07-20-2009, 11:51 PM
I don't get this at all. I imported the product but how do I choose what forums use what setup?

Go into the forum setup and choose the setting...

Is it possible to enable this for certain threads only?
As in, in my case I'd like for users to be able to check a checkbox "Article" and use this mod, otherwise the post is a regular thread.

Look at his profile and go to his other one that is thread based...

Mahar
07-21-2009, 11:49 AM
Is there any way to have the chief posts postbit_legacy coding? I want all of my posts to actually look like the first one.

KevinL
07-21-2009, 12:08 PM
What?

Mahar
07-21-2009, 12:40 PM
His first screenshot....I want to instead of making all replies look like comments with no stats or anything, I want it to look like the chief post.

KevinL
07-21-2009, 01:44 PM
Well..yeah, you have the 4 options that are shown to you. You mentioned something about the postbit legacy, that is one of the options you have. So the first post will look like the 'article' then all the rest will look like the legacy...

In the attachments in the first post it shows all the different styles......

Mahar
07-21-2009, 06:37 PM
I'd like all of my posts to look like this, not just one like that, all posts in specific forums.

da_judge
07-21-2009, 07:28 PM
Wicked mod.... strange though.... all screwed up in IE but works great in fire fox...

Cant download attachments and looks all over the place in IE

Cheers

MissKalunji
07-21-2009, 07:41 PM
Can i see your screen shot?

I'm still using his old version.....tho

da_judge
07-21-2009, 08:58 PM
I found the problem lol

In ada_postbit_articles

Search for

<a href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>

then remove the M which looks like typo

$post[musername]

so it reads

$post[username]

Worked for me :D

Brother Malachi
07-25-2009, 04:39 PM
Is it possible to have only certain threads have this chief post enabled for them?

CiyaEzIM
10-01-2009, 11:11 AM
atakan bey burda bir problemim var. Bu eklentiyi aktif yerlerde, mesaj içindeki reklamlarım yok oluyor. Ona bir çözüm bulamazmıyız acaba?

deluxmall
10-05-2009, 07:50 AM
Is there anyway to put the adsense inside the chief post?

I used to have adsense on the right side but with chief post, it does not appear no more

Miras
10-05-2009, 04:27 PM
hi

nice mod, working fine!

i got only one problem:
http://www.dieneuewelt.de/forum/showthread.php?p=612271

the text of the chief-posting goes over the edge into the user-info, seen on the attached pic

Trek
10-05-2009, 07:47 PM
For those that want the first post to look like all of the other posts in a thread, do this:

Edit this plugin: Chief First Post - Every Page [Forum Based] - Postbit Display Complete

Search for: $this->templatename = 'ada_postbit_articles';

Change 'ada_postbit_articles' to whatever postbit you'd like to use, I used: 'postbit_legacy' as that is the default on my forums. Although I think I'm going to change this.

When they all look the same, it doesn't stand out as the original post. I think I'll probably replace the original template of ada_postbit_articles with my postbit_legacy template and then edit it a bit to make it look just a little different, but keep within the same style.

deluxmall
10-05-2009, 08:45 PM
Is there anyway to put the adsense inside the chief post?

I used to have adsense on the right side but with chief post, it does not appear no more

Anyone can help ?

AS I have changed, postbit, postlegacy .. ad_showthread_firstpost_start etc and nothing seem to work ...

deluxmall
10-06-2009, 08:01 AM
hi

nice mod, working fine!

i got only one problem:
http://www.dieneuewelt.de/forum/showthread.php?p=612271

the text of the chief-posting goes over the edge into the user-info, seen on the attached pic

Did you solve your problem?

I have the same problem too

Miras
10-06-2009, 09:21 AM
Did you solve your problem?

I have the same problem too
No, still waiting for the clue.

CiyaEzIM
10-21-2009, 03:08 PM
Ya bu kulanıcı isimleri sağda çıkıyor. Bunu sola alsaydık. Herkes solda kulanıyor.? Ayrıca b kodu aktif kalıyor. Yazılar kalın çıkıyor.

Kaleem
11-21-2009, 02:36 PM
Can this mod be transferred to vB 4.0.

mykkal
12-05-2009, 02:34 AM
Hey there, i'm able to "chief" every post on the first page but i'm only able to use one template. i'm not exactly sure which postbit template is being used...Doesn't matter which one I select as the default for the forum.

Does anyone know how to fix this?

marshal_ramdev
12-13-2009, 06:08 AM
thanks ...

taffy056
12-22-2009, 01:27 PM
Can this mod be transferred to vB 4.0.

Just tried it on vb4.0 and got a database error, think it needs to be ported over

ZexTasy
12-23-2009, 12:00 AM
Check the plugin for the hook "showthread_query"

Current Code:
$ids .= ",$thread[firstpostid]";
$postids = "post.postid IN (0" . $ids . ")";

Should be changed to:
$ids[] = $thread[firstpostid];
$postids = "post.postid IN (0" . implode(',', $ids) . ")";

I use Legacy Postbit, I haven't tested anything else, but for me it works now in vbulletin 4.0.

- ZexTasy

iyama
01-01-2010, 02:59 PM
Thnx ZexTasy: works here on vb4 gold

arena
01-06-2010, 03:18 PM
Check the plugin for the hook "showthread_query"

Current Code:
$ids .= ",$thread[firstpostid]";
$postids = "post.postid IN (0" . $ids . ")";

Should be changed to:
$ids[] = $thread[firstpostid];
$postids = "post.postid IN (0" . implode(',', $ids) . ")";

I use Legacy Postbit, I haven't tested anything else, but for me it works now in vbulletin 4.0.

- ZexTasy
thank you my friend I am posbit works

laztrix
01-08-2010, 06:10 AM
Sorry guys but I couldn't find the settings page in Vbulletin Options.
Where do I get to the setting page?

Taurus1
01-08-2010, 02:43 PM
Sorry guys but I couldn't find the settings page in Vbulletin Options.
Where do I get to the setting page?

Man this is awesome!! Works 100% on 3.8.4 P2

And to your question, there is no setting in your vb Options. Open your Forums & Moderators tab on the left in your ACP. Select Forum Manager......select the forum you want to enable this on.....scroll right to the bottom....Chief First Post ....and make your selection....Save...

Done!! ;)

LuckyNeo
01-10-2010, 09:35 AM
Please! Make this hack on vB4!!! Please!

iyama
01-15-2010, 09:47 AM
See #77. Its work on vb4.01

LuckyNeo
01-16-2010, 11:58 PM
See #77. Its work on vb4.01

I try it... DON'T WORK :confused:
repeat again: please, made it for vB4 :)

MegaZ
01-17-2010, 07:46 PM
I can confirm that this plugin does not work well in vBulletin 4.0, especially if the forum has attachments stored in the file system. It simply fails with a database error.

If you remove the attachment clause completely, it works, but then it has the old style and is very ugly...

Hopefully the forum creator will modify it to work with vBulletin 4.0!

kimof911
01-21-2010, 07:57 AM
well....i have installed but it didnt appear in my my options...i uninstalled and reinstaled again but noway...

any hints

vb 3.8.4

arena
01-21-2010, 09:38 AM
The setting:

Forums & Moderators>>Forum Manager>>Your Forum>> Edit forum>> setting below

dimmicosacerchi
01-29-2010, 07:19 AM
Please excuse my bad English.
I installed this change, and I did the test enabled in a category.
But I have this display problem:
First of all I had to change the display model from that horizontal to a vertical
Before
http://img191.imageshack.us/img191/6874/immagine3ed.png

After:
http://img30.imageshack.us/img30/5738/immagine2wv.png

If you notice the avatars moving in the comments.

Taurus1
01-29-2010, 06:08 PM
This really works great, but I only just realized that other than admins, when creating a new thread, a normal member can't attach files.....get's an error message. Anyone else has this??

dimmicosacerchi
01-29-2010, 06:33 PM
No one can help me?

Fraxter
01-29-2010, 09:42 PM
Yes, an update for vb4 would be awesome. :)

dimmicosacerchi
01-29-2010, 09:57 PM
Thanks, but I would not do the upgrade for now.
I prefer to stay with the 3.8.4 currently.
There are other solutions?

cionfs
01-30-2010, 11:44 AM
Thanks, but I would not do the upgrade for now.
I prefer to stay with the 3.8.4 currently.
There are other solutions?

Try with default template.

dimmicosacerchi
01-30-2010, 07:32 PM
I just installed this mod in this post.
This is my result, different from what you see in your forum:
http://img190.imageshack.us/img190/4233/immagine1i.gif

http://img20.imageshack.us/img20/7130/immagine1h.gif
Perhaps it is some other product to see the answers to the first post as comments?
As in this forum?

Gamelobby
02-01-2010, 08:54 PM
What's the difference between "Thread Based" & "Forum Based"..?

They look the same. :)

LuckyNeo
02-01-2010, 09:25 PM
Check the plugin for the hook "showthread_query"

Current Code:
$ids .= ",$thread[firstpostid]";
$postids = "post.postid IN (0" . $ids . ")";

Should be changed to:
$ids[] = $thread[firstpostid];
$postids = "post.postid IN (0" . implode(',', $ids) . ")";

I use Legacy Postbit, I haven't tested anything else, but for me it works now in vbulletin 4.0.

- ZexTasy


Fine! It's work! Thanks a lot! :)

Gamelobby
02-02-2010, 03:50 AM
What's the difference between "Thread Based" & "Forum Based"..?

They look the same. :)

Anyone..?

Gamelobby
02-05-2010, 04:16 PM
Ok from what i can tell is..
This one is set to a forum section, & is not able to be edited by the poster. The other one has a drop down option with each new thread.

Seems like in MOST cases this one is the right one to use, but i could be wrong.. depends on how knowledgable & trustworthy your members are in the usergroup that is able to do this.

Erica1977
02-20-2010, 08:06 PM
Hi i installed this Mod was wondering what this is in the picture with the yellow i circle around it novStats and how can i remove that word novStats Thanks.

MrPHD
02-20-2010, 08:47 PM
I try it... DON'T WORK :confused:
repeat again: please, made it for vB4 :)

Hi, work on 4.0.x vb version uninstall and install again.

vijayninel
02-21-2010, 03:27 AM
For those that want the first post to look like all of the other posts in a thread, do this:

Edit this plugin: Chief First Post - Every Page [Forum Based] - Postbit Display Complete

Search for: $this->templatename = 'ada_postbit_articles';

Change 'ada_postbit_articles' to whatever postbit you'd like to use, I used: 'postbit_legacy' as that is the default on my forums. Although I think I'm going to change this.

When they all look the same, it doesn't stand out as the original post. I think I'll probably replace the original template of ada_postbit_articles with my postbit_legacy template and then edit it a bit to make it look just a little different, but keep within the same style.

Hey thanks so much for this. Exactly what I was looking for. :)

Erica1977
02-27-2010, 08:15 PM
Hi i installed this Mod was wondering what this is in the picture with the yellow i circle around it novStats and how can i remove that word novStats Thanks.

Hmm anyone ? i see none must have what i show in the picture i still got that not sure why would be nice if somene knows on how to take that part out in pic the novStats .

skatchkins
03-09-2010, 11:46 PM
Check the plugin for the hook "showthread_query"

Current Code:
$ids .= ",$thread[firstpostid]";
$postids = "post.postid IN (0" . $ids . ")";

Should be changed to:
$ids[] = $thread[firstpostid];
$postids = "post.postid IN (0" . implode(',', $ids) . ")";

I use Legacy Postbit, I haven't tested anything else, but for me it works now in vbulletin 4.0.

- ZexTasy

:( Even with this altered, v4.0.2 Database Errors in any of my forums where CFP is switched on, regardless of Article Style.

Augustito
03-14-2010, 05:05 AM
doesnt work in vb4.0.2 , SELECT dateline, thumbnail_dateline, filename, filesize, visible, attachmentid, counter,
postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize,
attachmenttype.thumbnail AS build_thumbnail, attachmenttype.newwindow
FROM attachment
LEFT JOIN attachmenttype AS attachmenttype USING (extension)
WHERE postid IN (-1Array)
ORDER BY attachmentid;

iyama
03-18-2010, 08:04 AM
Worked in 4.02 buth cms "Promote to Article" pencil is not showing. I have deinstal it.
Possible to upgrade to 4.02?

incurable
03-21-2010, 05:16 AM
i think this is an interesting hack man.

CiyaEzIM
03-21-2010, 06:49 AM
selam sayın atakan..

vbulletin 4 versiyonu ne zaman çıkan bu eklentilerin. 4 gözle bekliyoruz.

3.8 de kulanıyorduk ama 4 de kullanamıyoruz?

MagicThemeParks
04-09-2010, 12:30 PM
Does this still apply ... https://vborg.vbsupport.ru/showpost.php?p=1580844&postcount=154 ... if you'd like to display the mod to only admins?

MagicThemeParks
04-19-2010, 11:33 AM
Just installed and works great. Since I can set forum permissions to only admins starting threads, then this works for me :up:

It's great that the enabling is set at the 'forum' level! :)

Datenpapst
06-27-2010, 04:24 PM
available for vb4?

Taurus1
08-04-2010, 12:24 PM
Does anyone know how to get the "Thanks" button of VS-Hide Resurrection to show on the Chief first post? I am willing to pay someone to get this to work. Thanks!

Taurus1
10-01-2010, 06:36 AM
Really need this for vb4, any word on an update?

astdirect
10-03-2010, 02:16 PM
Installed and working. One problem. I have the Facebook Like button displaying in the first post of every thread. It still shows up in the first post, but i it doesnt show up in the chief post of any other page, Amyone any ideas ?

swiftor
12-21-2010, 07:22 PM
Anyone else on 4.08 having an issue getting this to work? I just get a database error. No other mods installed on the forum I'm testing it on.

Silviu
04-12-2011, 03:38 PM
Any update for VB 4.1.3? I can pay for this... PM me.

Acido
06-24-2011, 12:11 PM
update for vb4.1.4 Please!

Scyther
07-08-2011, 10:33 AM
tagged for the moment

WarLion
08-07-2011, 06:33 AM
im agree this need an update for 4.1.4

blackberry
01-20-2012, 02:10 PM
Installed and working. One problem. I have the Facebook Like button displaying in the first post of every thread. It still shows up in the first post, but i it doesnt show up in the chief post of any other page, Amyone any ideas ?
I am having a same issue.. anyone please help:mad:

Simon Lloyd
04-05-2012, 06:04 AM
I am having a same issue.. anyone please help:mad: You need to edit ada_postbit_articles and put your code for facebook where you want it in there.

Hey guys, i'm having trouble with this mod, when trying to modify one of my forums i get thisFatal error: Field ada_forum is not defined in $validfields in class vB_DataManager_Forum in [path]/includes/class_dm.php on line 485
and the edit doesn't take place, any ideas how to cure it?

shahidbaloch
01-16-2014, 05:04 AM
plz update it for 4.2.2

ozzy47
01-16-2014, 10:38 AM
Here, https://vborg.vbsupport.ru/showthread.php?t=306348

shahidbaloch
01-17-2014, 04:20 PM
thanx dear .. going to try this now :)

webnsn
07-07-2016, 12:20 PM
Hi

I have a Breaking Threads where we update latest news in just REPLY.

SO I want last Reply should show in the first Post.

Example:

Threads first post

next day I have added new update - second post

so when anyone open my theread first post place should show 'second post' so that user read latest update

puertoblack2003
03-22-2020, 06:17 PM
Database error in vBulletin 3.8.0 Release Candidate 1:

Invalid SQL:

SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
user.*, userfield.*, usertextfield.*,

avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
spamlog.postid AS spamlog_postid,
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, editlog.hashistory,
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


FROM vb_post AS post
LEFT JOIN vb_user AS user ON(user.userid = post.userid)
LEFT JOIN vb_userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN vb_usertextfield AS usertextfield ON(usertextfield.userid = user.userid)

LEFT JOIN vb_avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN vb_customavatar AS customavatar ON(customavatar.userid = user.userid)
LEFT JOIN vb_spamlog AS spamlog ON(spamlog.postid = post.postid)
LEFT JOIN vb_deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND deletionlog.type = 'post')
LEFT JOIN vb_editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN vb_postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 21 AND postparsed.languageid = 1)
LEFT JOIN vb_sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 21 AND sigparsed.languageid = 1)
LEFT JOIN vb_sigpic AS sigpic ON(sigpic.userid = post.userid)

WHERE post.postid IN (0,296880,296880)
ORDER BY post.dateline */;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/' at line 30
Error Number : 1064


I got this error when I tried to use it one of the forums .. any help wud be appreciated :)

This is what I did

I installed the product using product manager, went to the forums and moderators tab and selected one of the forums and selected yes for the "This Forum Chief First Post ?" option and selected style as Postbit

Then I went to that particular forum and clicked on a thread and got the above error.

The forums for which I didn't use this mod, are functioning correctly.

EDIT: and yes I am using 3.8 RC1


I know this is ancient old. But I'm still on 3.8. And this may help anyone else running to this issue. my fix no experience with coding but managed to get it to work.


in plugin section look for showthread_query and replace every thing with this:

if ($forum['chiefpost'])
{
$ids .= ",$thread[firstpostid]";
$postids = "post.postid IN (0" . $ids . ")";
if ($thread['hasattach'])
{
$attachments = $db->query_read,,print_r($role_id))->result_array();("
SELECT dateline, thumbnail_dateline, filename, filesize, visible, attachmentid, counter,
postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize,
attachmenttype.thumbnail AS build_thumbnail, attachmenttype.newwindow
FROM " . TABLE_PREFIX . "attachment
LEFT JOIN " . TABLE_PREFIX . "attachmenttype AS attachmenttype USING (extension)
WHERE postid IN (-1" . $ids . ")
ORDER BY attachmentid
");
$postattach = array();
while ($attachment = $db->fetch_array($attachments))
{
if (!$attachment['build_thumbnail'])
{
$attachment['hasthumbnail'] = false;
}
$postattach["$attachment[postid]"]["$attachment[attachmentid]"] = $attachment;
}
$thread['attach'] = $thread['hasattach'];
unset($thread['hasattach']);
}
}


then save it and check it out.

lange
03-23-2020, 04:00 PM
Thanks, I will test this mod.