PDA

View Full Version : Show Thread Enhancements - Chief First Post - Every Page 3.7


Atakan KOC
05-05-2008, 10:00 PM
Chief First Post - Every Page
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 Article
Postbit Flipped
Postbit Normal
Postbit Legacy


install

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

Modifications Info

Plugin : 12
Phrases : 3
Template : 3
Setting : 0

Versions:
v1.0 - 24 August 2007
-First release

v1.0.1 - 26 August 2007
-Rating Phrase fixed

v1.1.0 - 6 May 2008
-vBulletin 3.7 release
-Rating Phrase fixed

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
05-06-2008, 03:55 PM
Versions:
v1.0 - 24 August 2007
-First release

v1.0.1 - 26 August 2007
-Rating Phrase fixed

v1.1.0 - 6 May 2008
-vBulletin 3.7 release
-Rating Phrase fixed

rapidphim
05-06-2008, 03:56 PM
oh darn.. finally this is here... I'm first. thanks so much!

1Turk
05-06-2008, 03:59 PM
thanks :)

installed..

vbengland
05-06-2008, 04:01 PM
Thanks Atakan Koc

Tesekkurler Atakan abi :)

kaptanblack
05-06-2008, 04:01 PM
Thanks, i am using that on my forum.

Installed....

demo: http://www.aktifpaylasim.com/makaleler/55366-vbulletin-conditionals.html

BuRaCh
05-06-2008, 04:04 PM
thanks for 3.7.0 release.

Boosted Panda
05-06-2008, 04:08 PM
Uploaded not working!

Atakan KOC
05-06-2008, 04:10 PM
Uploaded not working!
Are you sure?

Demo 1 : http://www.vbulletin-turkey.com/forum/showthread.php?p=885#post885
Demo 2 : http://www.aktifpaylasim.com/makaleler/55366-vbulletin-conditionals.html

elmati
05-06-2008, 04:11 PM
Do uou fix the quick edit issue?
when you make a quick edit the post turn into normal postbit...

btw, thanks for this, as i see you read my pm :)

Boosted Panda
05-06-2008, 04:13 PM
Yeah I uploaded it and its not working :(

J98680Bxxxxx
05-06-2008, 04:14 PM
Installed (also marked), works fine. Thanks for this release Atakan. :up:

Boosted Panda
05-06-2008, 04:17 PM
Got it, stupid database!

duckdodger
05-06-2008, 04:18 PM
been looking forward to this. Thanks!

Hasann
05-06-2008, 04:33 PM
installed works fine so far I didn't saw any bugs keep up the good work
http://www.vbulletin-turkey.com/forum/showthread.php?t=64&langid=1

KURTZ
05-06-2008, 04:48 PM
i definitely need this hack!!!!

rated, installed and nominated!!!!

superb job Atakan ...

M-Tuning
05-06-2008, 04:50 PM
Nice, just like vb.org

butch3r
05-06-2008, 04:59 PM
Request: can you make "postbit normal" default value?

Forum Lover
05-06-2008, 05:33 PM
Is it possible to apply in certain forums thread.. not all?

maidos
05-06-2008, 06:08 PM
possible to make make every threads on forum section use that mods ? like post article by just simply changing settings on admincp? i want a default setting of postbit_article on every forum sections? so when member start a thread that postbit_article will be in effect and also have avatar autoresize since i picked the postbit article and the avatars is outside the box

notice on quick edit theres some issue, the profile is in the way on the quick edit box

can u make the profile more like here on vbulletin.org?adding boxes that is

cheat-master30
05-06-2008, 09:23 PM
Isn't working here either for some reason...

eXoOutsider
05-06-2008, 09:31 PM
Isn't working here either for some reason...

same

urdu
05-06-2008, 10:24 PM
Request: can you make "postbit normal" default value?

i need this hack !

rated, installed and nominated!!!!

but the Default Thread Type is Postbit Article
i need the Default Thread Type in Postbit Legacy but how???
there are no options in admincp for settings
please help me ....:confused:

Vtec44
05-06-2008, 10:57 PM
Search in the XML file for the code below


<option value="1">Postbit Article</option>
<option value="2">Postbit Legacy</option>
<option value="3">Postbit Flipped</option>
<option value="4">Postbit Normal</option>


and switch the order between Postbit Article and Legacy. Then import the XML (remember to set it to overwrite).

:)

urdu
05-06-2008, 11:12 PM
Search in the XML file for the code below


<option value="1">Postbit Article</option>
<option value="2">Postbit Legacy</option>
<option value="3">Postbit Flipped</option>
<option value="4">Postbit Normal</option>


and switch the order between Postbit Article and Legacy. Then import the XML (remember to set it to overwrite).

:)

i do all as you told me but still the Default Thread Type is Postbit Article ... :eek:

Vtec44
05-06-2008, 11:18 PM
I did it on mine and it worked. It's basically switching the value for the drop down box in the XML prior to importing it to your forum. If it's not sticking, then you either didn't save the file, import the wrong file, or didn't set it to "Allow Overwrite" the existing product.

urdu
05-06-2008, 11:31 PM
I did it on mine and it worked. It's basically switching the value for the drop down box in the XML prior to importing it to your forum. If it's not sticking, then you either didn't save the file, import the wrong file, or didn't set it to "Allow Overwrite" the existing product.

Thanks for help me ...

I thinks it's not enough to change the value only it's working after i also change the below values & change the place of Default Type...;)

1.

<select name="ttype" tabindex="1">
<option value="1">Postbit Legacy</option>
<option value="2">Postbit Article</option>
<option value="3">Postbit Flipped</option>
<option value="4">Postbit Normal</option>
</select>


2.

case 1:
$this->templatename = 'postbit_legacy';
break;
case 2:
$this->templatename = 'postbit_articles';
break;
case 3:
$this->templatename = 'postbit_flipped';
break;
case 4:
$this->templatename = 'postbit';
break;
default:
$this->templatename = 'postbit';
break;

Vtec44
05-06-2008, 11:39 PM
Oh duh, sorry I guess I forgot about that.

popular
05-06-2008, 11:47 PM
KAPTAN BLACK ur demo site has a trojin, i advise u guys not to click it.

Barakat
05-07-2008, 12:19 AM
thanks for that .... realy great one from you

popular
05-07-2008, 12:34 AM
is it possible to have the article views work without the "always show first post" option?

Vtec44
05-07-2008, 12:41 AM
you can replace your postbit template with the article template.

Kentaurus
05-07-2008, 12:44 AM
Thanks for the hack :) A couple comments.

You defined the "chiefpost" column as INT( 10 ) UNSIGNED, but it is being used a flag. Since a field that big is not needed, It should be tinyint, or char(1). Same for ttype.

why are you using "global $globaltemplates;" in your cache_templates plugin? It shouldn't be necessary

Other than that, your hack is very nicely coded :) Thanks for sharing

cheat-master30
05-07-2008, 11:44 AM
Any help to get this working as it should?

queengoc
05-07-2008, 12:58 PM
I am very interested in keeping the first post at the top of the thread. My question is what are the various thread types? And will anyone other then the mod/admin have the ability to change it? I don't want to change how our threads are viewed except for the first post showing on all pages.

Thanks!

dinoking
05-07-2008, 05:44 PM
I installed mod but it have problems with new thread (new post)!

http://chiase.anhso.net/as/08/05/08/unti218218.jpg

Can you help me ? Thanks, sorry my english not good :D

elmati
05-07-2008, 06:12 PM
Goto Forum manager - > edit a forum -> scroll to bottom and ckeck the option first post to yes :)

Cheers!

queengoc
05-07-2008, 07:00 PM
Thanks Elmati! It didn't answer my question about changing the threads but I installed anyway and it looks great!

cheat-master30
05-07-2008, 07:33 PM
Then how come I always set it to yes, and it doesn't give the option?

xorex
05-07-2008, 10:59 PM
Nice hack !!! thanks /

usergroup permission please next release .

......installed and Nominate for MOTM :-)

sinucello
05-07-2008, 11:25 PM
Hi,



<option value="1">Postbit Article</option>
<option value="2">Postbit Legacy</option>
<option value="3">Postbit Flipped</option>
<option value="4">Postbit Normal</option>

really great add-on. Could you please phrase the template selection mentioned above?

thank you - all the best,
Sacha

D.Ilyin
05-08-2008, 06:01 AM
Thanks!
Installed and nominated! But.... needs improvments :).

1. Phrase all templates
2. Forum options:
a) enable FPOAP: yes\no
b) default template: Postbit Normal\Postbit Article\Postbit Legacy\Postbit Flipped
c) enable user change default template: yes\no
d) enable usergroup permisions override forum first post default template settings
3. User group permisions:
a) enable user change default first post template: yes\no

Please! :)

jluerken
05-08-2008, 11:02 AM
Hi,

1. Is it possible that only defined usergroups are allowed to change the postbit type?
2. It would be nice to be able to set the postbit default tpye for every single forum. Can this be done?

/jluerken

semauae
05-08-2008, 12:15 PM
For me the 4 types are same

when I changed, I don't find any differences

maf1973
05-08-2008, 07:36 PM
It is possible to disable the Thread Type Setting ?

arena
05-08-2008, 08:43 PM
Thanks....

Usta bunun Türkçe versiyonunuda yüklersen çok makbule geçecek..

Çalışmalarında başarılar diliyorum...

Saygılar

maf1973
05-08-2008, 09:13 PM
I used the following modification to only allow usergroup 6 to choose the Thread type.
Thanks Spermy

For those that want just postbit for default.


1. In the postbit_select template

Default
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td>
$vbphrase[cp_ttype]:<br />
<select name="ttype" tabindex="1">
<option value="1">Postbit Article</option>
<option value="2">Postbit Flipped</option>
<option value="3">Postbit Normal</option>
<option value="4">Postbit Legacy</option>
</select>
</td>
</tr>
</table>Change to
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td>
$vbphrase[cp_ttype]:<br />
<select name="ttype" tabindex="1">
<option value="1">Postbit Normal</option>
<option value="2">Postbit Flipped</option>
<option value="3">Postbit Article</option>
<option value="4">Postbit Legacy</option>
</select>
</td>
</tr>
</table>2. In Chief Post - Postbit Display Complete Plugin

Default
if ($this->forum['chiefpost']==1 AND $post['postid']==$this->thread['firstpostid'])
{
switch ($this->thread['ttype'])
{
case 1:
$this->templatename = 'postbit_articles';
break;
case 2:
$this->templatename = 'postbit_flipped';
break;
case 3:
$this->templatename = 'postbit';
break;
case 4:
$this->templatename = 'postbit_legacy';
break;
default:
$this->templatename = 'postbit_articles';
break;
}
}Change to
if ($this->forum['chiefpost']==1 AND $post['postid']==$this->thread['firstpostid'])
{
switch ($this->thread['ttype'])
{
case 1:
$this->templatename = 'postbit_legacy';
break;
case 2:
$this->templatename = 'postbit_flipped';
break;
case 3:
$this->templatename = 'postbit';
break;
case 4:
$this->templatename = 'postbit_articles';
break;
default:
$this->templatename = 'postbit';
break;
}
}And i added <if condition="is_member_of($bbuserinfo, 6)"> at the begining In the postbit_select template and </if> at the end so only Admins can use this.

Hope this helps you guys using normal postbit.

urdu
05-08-2008, 09:25 PM
Thanks!
Installed and nominated! But.... needs improvments :).

1. Phrase all templates
2. Forum options:
a) enable FPOAP: yes\no
b) default template: Postbit Normal\Postbit Article\Postbit Legacy\Postbit Flipped
c) enable user change default template: yes\no
3. User group otions:
a) enable user change default first post template: yes\no

Please! :)

Hi,

1. Is it possible that only defined usergroups are allowed to change the postbit type?
2. It would be nice to be able to set the postbit default tpye for every single forum. Can this be done?

/jluerken

i am also want as you suggestion ;)

Animparadise
05-09-2008, 12:18 PM
i installed this version, it make first post chief but still using old postbit_lagency (old threads) but in new threads its working fine, how to solve this problem?

comment: i used this hack beforce but for some problems (here : https://vborg.vbsupport.ru/showpost.php?p=1454167&postcount=190) removed this hack.

MissKalunji
05-09-2008, 12:25 PM
you need to edit forum settings in admincp to tick if you want chief first post to be applied

Golzarion
05-09-2008, 12:44 PM
The first post dose not have the collapse button https://vborg.vbsupport.ru/external/2008/07/39.gif Like here ( vBulletin.org) .How can we add collapse button for the Chife first post ?

ged
05-09-2008, 03:06 PM
Can it be limited only for specific forums?

MissKalunji
05-09-2008, 03:18 PM
Can it be limited only for specific forums?

Yes there's a setting in each forum to turn on or off chief post

mikkitine
05-09-2008, 06:46 PM
Yes there's a setting in each forum to turn on or off chief postIf this is the case then this should be a standard vB feature.

*downloads and installs*

MissKalunji
05-09-2008, 07:00 PM
who knows maybe next version :)

mikkitine
05-09-2008, 07:33 PM
MissKalunji, do you know if there's a mod around that makes the first post collapsible like vBORG's?

MissKalunji
05-09-2008, 07:48 PM
well it's just template edit let me test it and let you know

mikkitine
05-09-2008, 07:51 PM
Okay, cheers.

MissKalunji
05-09-2008, 08:23 PM
Okay, cheers.

I'm just going to copy paste what i've done and put on bold what you have to add and you can play around with it. I did it real fast but i've edited my template so much that i'm not even sure anymore how the originals are.

1. It was originally this : <a name="post$post[postid]">
Posted : $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]

But i had to change it to

Post title or else when you collapse it you would only see the date

2. This is the image that shows collapse. You can probably edit the image itself to say collapse like on .org if you want. YOu can move it around to place it exactly where you want

3. Just add what i've put there and that's it.

Play around with it to make it look exactly the way you want. :)


$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]">
$post[title]
<!-- / 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>
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('chiefpostbit')"><img id="collapseimg_chiefpostbit" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_chiefpostbit].gif" alt="" border="0" /></a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_chiefpostbit" style="$vbcollapse[collapseobj_chiefpostbit]">
<tr valign="top">

mikkitine
05-09-2008, 08:45 PM
I'll try that now. Thanks a lot for this.

MissKalunji
05-09-2008, 08:59 PM
anytime ;) let me know if you need more help i would have edited the xml itself but i don't think im allowed :-/

Animparadise
05-09-2008, 10:22 PM
you need to edit forum settings in admincp to tick if you want chief first post to be applied

i know it man:p
it doesn't applied n old threads, but working on new thread that create after installation.
in old threads, first post is chief but still using postbit_legency template not postbit_article template:confused: (example : http://forums.animparadise.com/thread1635.html#post38493?langid=7)
after editng frist post of thread it changed (example : http://forums.animparadise.com/forum42/thread67-5.html?langid=7)
in new threads, anything is ok:up:

i'm sorry atakan, but please don't click support when creating new mod threads, i never see any kind of support from you. always other users try to support.

MissKalunji
05-10-2008, 12:10 AM
i know it man:p
it doesn't applied n old threads, but working on new thread that create after installation.
in old threads, first post is chief but still using postbit_legency template not postbit_article template:confused: (example : http://forums.animparadise.com/thread1635.html#post38493?langid=7)
after editng frist post of thread it changed (example : http://forums.animparadise.com/forum42/thread67-5.html?langid=7)
in new threads, anything is ok:up:

i'm sorry atakan, but please don't click support when creating new mod threads, i never see any kind of support from you. always other users try to support.

Uhm yeah it's only on new thread :-/ if im not mistaking....i know another hack similar to this one (but only has one style no choice) his used to apply as soon as you select it for the forum.

Maybe you have to rebuild post cache? i'm not sure about this one really i had the other one before switching to this one....if i figure it out i'll let you know.

p.s ima girl lol

J98680Bxxxxx
05-10-2008, 09:06 AM
i know it man:p
it doesn't applied n old threads, but working on new thread that create after installation.
in old threads, first post is chief but still using postbit_legency template not postbit_article template:confused: (example : http://forums.animparadise.com/thread1635.html#post38493?langid=7)
after editng frist post of thread it changed (example : http://forums.animparadise.com/forum42/thread67-5.html?langid=7)
in new threads, anything is ok:up:

i'm sorry atakan, but please don't click support when creating new mod threads, i never see any kind of support from you. always other users try to support.

The mod works fine. I have it working on all threads (new & all). You must be doing something wrong.
If your installation went well, then go to:
ACP -> Forums & Moderators -> Forum Manager
Select (Edit) the forum on which you want to have the first thread marked ("Chiefed"), scroll down at the level of "Chief Post" and select "Yes" on the question "Show first post on every thread page?"

avsunforum
05-11-2008, 11:22 AM
thank very much
Teşekkürler Atakan Ellerine Sağlık Ustad

sinucello
05-11-2008, 11:22 AM
Hi,
MissKalunji, do you know if there's a mod around that makes the first post collapsible like vBORG's?

I'm just going to copy paste what i've done and put on bold what you have to add and you can play around with it.

you guys rock. I didn`t even notice that here on vb.org the first post was collapsible. That`s just what I need.

I was also thinking about making the first posts position fixed when scrolling down the page. Like that feature in MS-Excel. I`ll play around with css position absolute etc. and see if I can get it to work.

thank you - all the best,
Sacha

MissKalunji
05-12-2008, 04:14 PM
The mod works fine. I have it working on all threads (new & all). You must be doing something wrong.
If your installation went well, then go to:
ACP -> Forums & Moderators -> Forum Manager
Select (Edit) the forum on which you want to have the first thread marked ("Chiefed"), scroll down at the level of "Chief Post" and select "Yes" on the question "Show first post on every thread page?"

You're right sorry i have both installed that's why :-/

Hi,




you guys rock. I didn`t even notice that here on vb.org the first post was collapsible. That`s just what I need.

I was also thinking about making the first posts position fixed when scrolling down the page. Like that feature in MS-Excel. I`ll play around with css position absolute etc. and see if I can get it to work.

thank you - all the best,
Sacha

Welcome :)

cheat-master30
05-12-2008, 08:27 PM
Does the modification author even read this topic any more?

MissKalunji
05-12-2008, 08:31 PM
No idea but everyone else does

BarcaMaroc
05-12-2008, 08:33 PM
thanks

Allan
05-13-2008, 06:42 PM
French language :)

Translator: Sofia

queengoc
05-15-2008, 03:51 PM
I'm just going to copy paste what i've done and put on bold what you have to add and you can play around with it. I did it real fast but i've edited my template so much that i'm not even sure anymore how the originals are.

1. It was originally this : <a name="post$post[postid]">
Posted : $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]

But i had to change it to

Post title or else when you collapse it you would only see the date

2. This is the image that shows collapse. You can probably edit the image itself to say collapse like on .org if you want. YOu can move it around to place it exactly where you want

3. Just add what i've put there and that's it.

Play around with it to make it look exactly the way you want. :)


$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]">
$post[title]
<!-- / 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>
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('chiefpostbit')"><img id="collapseimg_chiefpostbit" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_chiefpostbit].gif" alt="" border="0" /></a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_chiefpostbit" style="$vbcollapse[collapseobj_chiefpostbit]">
<tr valign="top">


I would love to make my first post collapse but I don't understand where I need to go to do this. I installed this mod and it's pretty much split fifty/fifty on keeping the first post at the top and the ability to collapse the first post would keep everyone happy. Thanks!

MissKalunji
05-15-2008, 05:56 PM
what you see in red is what i ADDED

queengoc
05-15-2008, 06:37 PM
You are thinking I know more then I do, LOL. I have no idea where to make the change. I know what to change thanks to what you have but I don't know where in my template this code is. This is all new to me and it's over the past week or so that I've gotten brave enough to make changes but I pretty much need things spelled out for me. Thanks!

MissKalunji
05-15-2008, 06:42 PM
You are thinking I know more then I do, LOL. I have no idea where to make the change. I know what to change thanks to what you have but I don't know where in my template this code is. This is all new to me and it's over the past week or so that I've gotten brave enough to make changes but I pretty much need things spelled out for me. Thanks!
oh sorry i didn't know

In your admincp / style template / edit your template choose / postbit template

you will find postbit_review
Postbit_select etc etc

I tested this in Postbit_review edit :) and compare your template with mine

i hope i was clear enough?

Mrdby
05-15-2008, 06:53 PM
installed!

queengoc
05-15-2008, 08:05 PM
Not apology necessary MissKalunji, unfortunately I feel like a big dummy because I don't have Postbit_review or can't find it.

Here is what I have:

postbit
postbit-articles
postbit-attachment
postbit-attachmentimage
postbit-attachmentmoderated
postbit-attachmentthumbnail
postbit-deleted
postbit-externl
postbit-flipped
postbit-ignore
postbit-ignore-global
postbit-ip
postbit-legacy
postbit-onlnestatus
postbit-quickedit
postbit-reputation
postbit-select
postbit-wrapper

I tried it in articles and flipped but it didn't work. Any guidance would be greatly appreciated.

MissKalunji
05-15-2008, 08:20 PM
Not apology necessary MissKalunji, unfortunately I feel like a big dummy because I don't have Postbit_review or can't find it.

Here is what I have:

postbit
postbit-articles
postbit-attachment
postbit-attachmentimage
postbit-attachmentmoderated
postbit-attachmentthumbnail
postbit-deleted
postbit-externl
postbit-flipped
postbit-ignore
postbit-ignore-global
postbit-ip
postbit-legacy
postbit-onlnestatus
postbit-quickedit
postbit-reputation
postbit-select
postbit-wrapper

I tried it in articles and flipped but it didn't work. Any guidance would be greatly appreciated.

oops i added an extra one myself

let me do one and paste my template

MissKalunji
05-15-2008, 08:31 PM
here's the complete postbit_articles


$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[title]
$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>
<a href="#top" onclick="return toggle_collapse('chiefpostbit')"><img id="collapseimg_chiefpostbit" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_chiefpostbit].gif" alt="" border="0" /></a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_chiefpostbit" style="$vbcollapse[collapseobj_chiefpostbit]">
<tr valign="top">
<tr valign="top">
<td class="alt1" id="td_post_$post[postid]" align="left" colspan="2">
<div> <strong class="bigusername">$post[title]</strong> </div>
<div style="float: right; width: 180px;">
<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>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$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>
<br />
$template_hook[postbit_userinfo_right_after_posts]
<div class="smallfont">
<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>
<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['member']"><a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$thread[threadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" border="0" /></a></if>
<a href="printthread.php?$session[sessionurl]t=$thread[threadid]" accesskey="3" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" border="0" /></a>
<a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$thread[threadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" border="0" /></a>
</div>
</div>
</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>
<div><strong>$vbphrase[rating]:</strong>
<if condition="$thread['rating']"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="" /> <span class="smallfont">(<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[cfp_x_votes_y_average]</phrase>)</span><else /><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_0.gif" alt="" /> <span class="smallfont">(<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[cfp_x_votes_y_average]</phrase>)</span></if>
</div>

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

queengoc
05-16-2008, 01:24 PM
Was I supposed to replace my postbit article with yours? I tried that and it didn't work :(. Thanks for all of your help in trying though.

ShiZoPhreN
05-16-2008, 04:27 PM
Thank You, for this nice Hack, but i have a Request, i think its better, with usergroup permission, you can coded it?

thanks in advance, Atakan KOC

Shizo

MissKalunji
05-16-2008, 04:33 PM
you can set it yourself by fixing the code with if condition

MissKalunji
05-16-2008, 04:34 PM
check here : https://vborg.vbsupport.ru/showpost.php?p=1513095&postcount=47

aamirkhj
05-17-2008, 01:20 AM
I used the following modification to only allow usergroup 6 to choose the Thread type.
Thanks Spermy

Great MOD and great support by members:)

sinucello
05-17-2008, 09:49 AM
Hi,

I just noticed that the vBSEO permalink replacement isn`t added to the postcount part of the article template. I`ll ask the vBSEO guys if they can explain how to add the permalink replacement to custom postbit-templates.

all the best,
Sacha

Mrdby
05-17-2008, 11:59 AM
why when choosing the parent forum it doesn't just add this rule to all the forums that follow? This would be much better and easier than going 1 by 1 turning this feature on.

sinucello
05-18-2008, 08:47 PM
Hi,

Oleg from vBSEO found a partial solution for the permalink issue:
http://www.vbseo.com/f2/trackback-link-custom-postbit-template-23292/

Ciao,
Sacha

MissKalunji
05-19-2008, 12:39 AM
Hi,

I just noticed that the vBSEO permalink replacement isn`t added to the postcount part of the article template. I`ll ask the vBSEO guys if they can explain how to add the permalink replacement to custom postbit-templates.

all the best,
Sacha

mine always showed :-/

Dave-M
05-19-2008, 03:12 AM
Hi,

Thanks for this!

Is it possible to keep the "article" postbit for the first post but not display the first post in every page?

:)

Mookie
05-19-2008, 10:08 AM
*Installed*
Next patch please add

VB AdminCP Option Menu for
Apply to all Forums option
User or UserGroup Selection permissions
Order Selection Permission
Option to have certain Selection per usergroup

Nice Mod!

TurkSipa
05-19-2008, 01:15 PM
Thank for Upgrade to 3.7.0 its Great Plug!

Emegine saglik Paylasimci Dost, hepsi basarili calismalar ;)

FENIX
05-21-2008, 07:32 AM
Hi,

I have amended the XML and templates as instructed in this thread so that a)only admins can change the thread type and b)the default thread type is postbit. I now wonder if it is possible to use the article thread view in certain forums as default, and leave postbit as default in the other forums?

Would it be another if statement to do this?

<if condition="is_in_forum($forumid, 1,2,3)">

I can't code by the by, but that should explain the idea. Unless of course I set the default style to article, then in theory it will only affect the forums with this mod switched on *goes to find out*

Edit: Ok brill, it does it for you anyway. My old topics have not been updated though and I rebuilt the thread cache. Any ideas?

Super Jinni
05-21-2008, 08:18 AM
*Installed*
Next patch please add

VB AdminCP Option Menu for
Apply to all Forums option
User or UserGroup Selection permissions
Order Selection Permission
Option to have certain Selection per usergroup

Nice Mod!

I'm with you

aamirkhj
05-21-2008, 08:18 PM
*Installed*
Next patch please add

VB AdminCP Option Menu for
Apply to all Forums option
User or UserGroup Selection permissions
Order Selection Permission
Option to have certain Selection per usergroup

Nice Mod!

Agreed

verino
05-22-2008, 03:53 PM
Nice job.

Installed

Super Jinni
05-22-2008, 06:51 PM
isn't it supported or what?

arena
05-22-2008, 07:51 PM
<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont">
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<em>
<if condition="$show['postedithistory']">
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>.
<else />
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
</if>
<if condition="$post['edit_reason']">
$vbphrase[reason]: $post[edit_reason]
</if>
</em>
</div>
<!-- / edit note -->
</if>


this code not working versiyon 3.7

DjEddie
05-25-2008, 04:18 PM
thanks for the mod, works perfectily installed in 1 sec and no problems...been looking around for this type of mod, just didnt know name of it..

Suggestion for next version,

is to have options in the vboptions menu to make it default chief post for all forums so not to have to go into each one to make 1st post chief...
Also make first post more seperate than others so it stands out ... ie have the page numbers below first post instead of on top of first post ..

Thanks again :)

Super Jinni
05-25-2008, 09:34 PM
ok, it works but it lakes a lot of features

anyway, can anyone tell if there is anyway to turn this hack On/Off per thread not per forum? ^^

thanks in advance

:)

aykolandforum
05-26-2008, 12:36 PM
teşekkürler Atakan bey..

JAuthement
05-26-2008, 03:43 PM
Atakan KOC

I want all my forums set up with the 1st post as Postbit Article and all replies as Postbit Legacy. Is there a way to do that and eliminate the option of changing it?

Regards

Mrdby
05-26-2008, 05:57 PM
Atakan KOC

I want all my forums set up with the 1st post as Postbit Article and all replies as Postbit Legacy. Is there a way to do that and eliminate the option of changing it?

Regards

same here

Super Jinni
05-26-2008, 06:38 PM
Atakan KOC

I want all my forums set up with the 1st post as Postbit Article and all replies as Postbit Legacy. Is there a way to do that and eliminate the option of changing it?

Regards

you can do that from

vBulletin Options > Style & Language Settings > Use Legacy (Vertical) Postbit Template

under that you will find Yes/No Option

set to yes to view all post in post in postbit legacy style and of course you can set the first post to Postbit Article

I think that is what you ask for if I'm not mistaken ^^

Good Luck :)

Mrdby
05-26-2008, 11:01 PM
how about just having the first post on each page set as normal? Or even a new post..just set as normal without coming up as the default article?

Super Jinni
05-27-2008, 02:06 PM
reread the posts in this thread

FENIX
05-27-2008, 05:23 PM
Hmm, I want the first post in certain forums to have the Article layout..any ideas? I have to manually edit threads to update the style to Article.

choccyclaire
05-27-2008, 06:31 PM
you need to edit forum settings in admincp to tick if you want chief first post to be applied

This should have been implied in the product post.

Thanks.

JAuthement
05-27-2008, 09:41 PM
you can do that from

vBulletin Options > Style & Language Settings > Use Legacy (Vertical) Postbit Template

under that you will find Yes/No Option

set to yes to view all post in post in postbit legacy style and of course you can set the first post to Postbit Article

I think that is what you ask for if I'm not mistaken ^^

Good Luck :)

Thanks for the input Super Jinni .... But you're missing the point, when you install the product it mods the newthread template and adds a dropdown selection for the Chief First Post format. what I want to do is have the firs post st as Postbit Article and eliminate the dropdown selection box.

Super Jinni
05-27-2008, 10:33 PM
I got it, but why do you want to do that?

JAuthement
05-28-2008, 10:32 PM
I got it, but why do you want to do that?

Because I like having the custom format for the starter topic plus I like having the topic to be visible on all concurrent pages of the thread.

Mrdby
05-29-2008, 12:43 AM
Thanks for the input Super Jinni .... But you're missing the point, when you install the product it mods the newthread template and adds a dropdown selection for the Chief First Post format. what I want to do is have the firs post st as Postbit Article and eliminate the dropdown selection box.

SAME HERE.

Super Jinni
05-29-2008, 06:17 PM
I think I can make it for you, just give me some time because I'm busing with something right now..

:)

MissKalunji
05-29-2008, 06:25 PM
Because I like having the custom format for the starter topic plus I like having the topic to be visible on all concurrent pages of the thread.

Take a look at this : https://vborg.vbsupport.ru/showthread.php?t=93706

same but there' s no drop down or anything like that it applies it by default

Super Jinni
05-29-2008, 07:51 PM
Take a look at this : https://vborg.vbsupport.ru/showthread.php?t=93706

same but there' s no drop down or anything like that it applies it by default

yes

and you can copy the the postpit_article template content to the new template required for this one...


:)

DraculaVN
06-06-2008, 02:06 AM
If the first line of the post is in "quote", post will show up like this.
Anyone fixed it?

DraculaVN
06-10-2008, 02:22 AM
4 day passed by, no one can help me?

mikkitine
06-10-2008, 02:23 AM
$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>
<a href="#" onclick="return toggle_collapse('postbit_articles')">Expand/Collapse</a>
<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>
<tbody id="collapseobj_postbit_articles" style="$vbcollapse{$collapseobj_postbit_articles}">
<tr valign="top">
<td class="alt1" id="td_post_$post[postid]" align="left" colspan="2">
<div> <strong class="bigusername">$post[title]</strong> </div>
<div style="float: right; width: 180px;">
<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>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$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>
<br />
$template_hook[postbit_userinfo_right_after_posts]
<div class="smallfont">
<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>
<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['member']"><a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$thread[threadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" border="0" /></a></if>
<a href="printthread.php?$session[sessionurl]t=$thread[threadid]" accesskey="3" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" border="0" /></a>
<a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$thread[threadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" border="0" /></a>
</div>
</div>
</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>
<div><strong>$vbphrase[rating]:</strong>
<if condition="$thread['rating']"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="" /> <span class="smallfont">(<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[cfp_x_votes_y_average]</phrase>)</span><else /><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_0.gif" alt="" /> <span class="smallfont">(<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[cfp_x_votes_y_average]</phrase>)</span></if>
</div>

<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>
</tr>
</tbody>
<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 -->

What you see in red are the pieces of code I added on to the postbit article template from the Chief First Post mod. (https://vborg.vbsupport.ru/showthread.php?t=178331)

With these little edits I'm able to collapse the first post of the thread in the forums where this mod is active if I'm using the article postbit. The collapsing works and I'm happy with that. The problem is, when I navigate to another page in the same thread, the first post is automatically expanded again. The first post is not remembering to stay collapsed.

Can anybody help me keep the first post stay collapsed? What am I missing from the edits?

Regards.

rapidphim
06-11-2008, 04:56 AM
Can anyone help me to put back the border around when using postbit_article? Also, how to make postbit_article as a default for everyone (without any choice of selection)? thanks.

rapidphim
06-12-2008, 12:41 AM
Can someone please help me with the above question? thanks.

rapidphim
06-12-2008, 03:16 AM
Can someone please tell me how to add the collapse button for postbit_normal and stayed collapse when jumping page to page? Thanks!

$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>
<a href="#" onclick="return toggle_collapse('postbit_articles')">Expand/Collapse</a>
<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>
<tbody id="collapseobj_postbit_articles" style="$vbcollapse{$collapseobj_postbit_articles}">
<tr valign="top">
<td class="alt1" id="td_post_$post[postid]" align="left" colspan="2">
<div> <strong class="bigusername">$post[title]</strong> </div>
<div style="float: right; width: 180px;">
<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>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$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>
<br />
$template_hook[postbit_userinfo_right_after_posts]
<div class="smallfont">
<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>
<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['member']"><a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$thread[threadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" border="0" /></a></if>
<a href="printthread.php?$session[sessionurl]t=$thread[threadid]" accesskey="3" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" border="0" /></a>
<a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$thread[threadid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" border="0" /></a>
</div>
</div>
</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>
<div><strong>$vbphrase[rating]:</strong>
<if condition="$thread['rating']"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="" /> <span class="smallfont">(<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[cfp_x_votes_y_average]</phrase>)</span><else /><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_0.gif" alt="" /> <span class="smallfont">(<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[cfp_x_votes_y_average]</phrase>)</span></if>
</div>

<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>
</tr>
</tbody>
<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 -->

What you see in red are the pieces of code I added on to the postbit article template from the Chief First Post mod. (https://vborg.vbsupport.ru/showthread.php?t=178331)

With these little edits I'm able to collapse the first post of the thread in the forums where this mod is active if I'm using the article postbit. The collapsing works and I'm happy with that. The problem is, when I navigate to another page in the same thread, the first post is automatically expanded again. The first post is not remembering to stay collapsed.

Can anybody help me keep the first post stay collapsed? What am I missing from the edits?

Regards.

DraculaVN
06-12-2008, 03:41 PM
If the first line of the post is in "quote", post will show up like this.
Anyone fixed it?
Still need help to fix this problem :(

rapidphim
06-12-2008, 04:34 PM
If the first line of the post is in "quote", post will show up like this.
Anyone fixed it?

you need to change the size of your quote/code/php tag

PalServ
06-14-2008, 06:09 AM
thank

popular
06-15-2008, 10:35 PM
now if only we could get it to work like vbulletin.org "mark as install" feature =p

OsideRida06
06-21-2008, 01:26 AM
Installed. Thanks for the great mod.

NAZIA
06-21-2008, 08:50 AM
Thanks.. Installed

BANDiT600
06-23-2008, 07:15 PM
How to make by default Postbit Flipped version???

Edited:
Sorry, here (https://vborg.vbsupport.ru/showpost.php?p=1511052&postcount=27) is the answer... ;)

thotd
06-25-2008, 03:00 AM
thanks! very goods

ka81
06-25-2008, 09:00 AM
is any here almost same mod, but when I can choose - which post should be a chief ??
for 3.7.x (3.7.0)

OsideRida06
06-26-2008, 09:24 PM
How would I go about disabling the option to select the thread type? I am having problems with people choosing article, and then asking why it looks weird. We do not need this feature anyhow. However we do still need the chief first post part of it.

So how could I take just the option to select thread type? Or even better, have only admins have the option. Every one else would have to post in regular postbit_legacy?

MissKalunji
06-27-2008, 12:09 AM
add an if statement in the postbit_select

right before the whole code add this :

<if condition="is_member_of($bbuserinfo, #)">

Then at the end add </if>

Where #= Your usergroup admin

OsideRida06
06-29-2008, 08:08 AM
Thanks. I will test it out in the morning!

OsideRida06
06-29-2008, 12:06 PM
Thank you once again. I actually just deleted the options I didnt want. So they now jsut have th eoption between legacy and flipped.

Thanks for the info!

ArnyVee
06-29-2008, 04:17 PM
This is a wonderful mod which is going to help our site tremendously! Thanks for this!

3.7.1 P1 for reference working here. :D

scoles15
07-02-2008, 07:58 PM
I love having this mod, it is perfect for some of the forums on our site. After searching trough this thread, I didn't see any mention of the issue brought up by one of my members.

If your dispaly options are set to linear - newest first, then the cheif first post shows at the Bottom of the page. My first thought was "of course". But if you do the same setting on vb.org the first post still is at the top of the page.

Anyone else notice this and come up with a fix?

Koidl
07-02-2008, 10:28 PM
Hello,

If i want edit the Article Post it comes a problem!
Is there a way to fix that plz check the Image (http://img61.imageshack.us/img61/5179/14833197rl2.jpg)

Thanks

Nevets2329
07-04-2008, 06:33 PM
Don't know what I've done wrong but it just does not work. Any advice out there?

Nothing like I see in the screen shots appears on my forum.

Macindy
07-09-2008, 02:45 PM
Always I use the quickedit function to change a article the postbit switches back from postbit_article to normal postbit-layout.

What can I do to solve this?

Nevets2329
07-09-2008, 04:21 PM
I won't nominate this hack, no answers are available and it just does not work.

scoles15
07-09-2008, 04:54 PM
I won't nominate this hack, no answers are available and it just does not work.It works for me BUT I agree, there are many issues and there has not been one reply. SO I guess I'll just hack it to work like I would like it to work on my forum.

I definitely will use caution before installing another one of his hacks:(

MissKalunji
07-09-2008, 05:20 PM
I won't nominate this hack, no answers are available and it just does not work.

What's not working for you? i can try to help?

It works for me BUT I agree, there are many issues and there has not been one reply. SO I guess I'll just hack it to work like I would like it to work on my forum.

I definitely will use caution before installing another one of his hacks:(

Definitely :-/

crkgb
07-09-2008, 06:53 PM
Is there a version of this mod without postbit choices?

MissKalunji
07-09-2008, 07:15 PM
yep : https://vborg.vbsupport.ru/showthread.php?t=93706

crkgb
07-09-2008, 07:22 PM
I've seen that one. requires a use of alternate postbit template. I simply need my legacy template to display the first post on all the pages. Other mods are normally installed into known templates.

Thank you anyways

BANDiT600
07-11-2008, 08:03 PM
Always I use the quickedit function to change a article the postbit switches back from postbit_article to normal postbit-layout.

What can I do to solve this?

Same issue for me... How to edit quickly without changing template to normal postbit???

mystic10
07-12-2008, 07:53 AM
how to i make yes as default please let me know...i have big forum it takes too much time to go to each one and click yes

kompakt
07-12-2008, 06:00 PM
Guys I tried reading the thread but didn't find a solution. Some people claim it works and others that it doesn't. But this mod is only working on new threads for me.

ricky_s
07-12-2008, 07:03 PM
hi would it be possible to not have the first post on every page when this plugin is enabled. I mean all I want is the way the post looks, (article, legacy etc...) and not for the post to show up on the top of every page in the thread.

Any help would be really appreciated
thanks

BANDiT600
07-13-2008, 06:44 PM
ricky_s, there is no option for what you want. :(
kompakt, that's right, it works only when new threads created.

P.S: kompakt, it works perfect on my board.

Robi_Kenobi
07-13-2008, 10:09 PM
Hello,

i use Postbit_legacy (user info left side) as default. The mod works so far, but it allways shows Postbit legacy for me if i choose postbit normal in the first thread.

But i want the first one "normal" and the rest "legacy" :/

Forum Lover
07-15-2008, 03:15 PM
installed and appreciated.

quangnhut
07-16-2008, 09:16 AM
How to auto set on all forum. After installed this product i have manual set on one and one forum. But my forum is so many !

Koroku
07-16-2008, 10:29 PM
I would like to note that I absolutely love this mod, and have been using it for awhile now.

The article postbit is by far my favorite of the offered ones :)

ArnyVee
07-21-2008, 07:27 PM
add an if statement in the postbit_select

right before the whole code add this :

<if condition="is_member_of($bbuserinfo, #)">

Then at the end add </if>

Where #= Your usergroup admin

Thanks for this. Helped out to keep it from confusing folks. :D

MissKalunji
07-21-2008, 07:35 PM
Thank you once again. I actually just deleted the options I didnt want. So they now jsut have th eoption between legacy and flipped.

Thanks for the info!

No problem

Thanks for this. Helped out to keep it from confusing folks. :D

You're Very welcome :)

popular
07-24-2008, 05:45 AM
could someone tell me where to edit postbit_normal ?? i can find the others but i can't find where to edit postbit_normal , thanks!

MissKalunji
07-24-2008, 03:26 PM
postbit_normal is your standard postbit_legacy or postbit depends on which one you use

vbboarder
07-31-2008, 06:01 AM
Bug report: I'm using the postbit normal layout. When editing or edit-previewing the first post, the thread type menu does not retain the previously selected value (normal postbit in my case), but reverts to "postbit article" (the first choice in the list). Since the thread author doesn't expect the selection change to postbit article, he forgets to change the layout back to postbit normal, which makes the layout of that post inconsistent with other threads & posts.

Can you fix this bug? Also, can you provide an admin option so that the admin determines the postbit layout, not the thread author? Thanks. ;)

ed2k_2
07-31-2008, 06:24 AM
Yeah, can the mod be enabled on certain usergroups only?

GaiLoan
08-08-2008, 10:41 PM
itswork on 3.7.2 ?

MissKalunji
08-09-2008, 12:41 AM
yes it does

MissKalunji
08-09-2008, 12:42 AM
Yeah, can the mod be enabled on certain usergroups only?

yes it can....

GaiLoan
08-09-2008, 05:59 AM
thanks, can this be automatic or must choose by starting new thread ?

yingzhou
08-09-2008, 10:02 PM
can I chose wich on type is defauft? How to edit the defauft template?

Salar
08-10-2008, 12:44 AM
i want it to show post's text from right to left! how can i make it do that?

Lanka
08-14-2008, 11:11 AM
Is it available to allow a threadstarter to select sticking (or not) of first post in his thread?

Thanks a lot

yingzhou
08-14-2008, 11:57 AM
When I quick Edit the first post of thread. It template return to defaulft, postbit_legacy. If Edit with full option, It's fine, rest in thread article template like defaulft.

elmati
08-14-2008, 12:41 PM
When I quick Edit the first post of thread. It template return to defaulft, postbit_legacy. If Edit with full option, It's fine, rest in thread article template like defaulft.
it's a known bug but never was fixed...

I think Atakan KOC forgot this product :(

glowinggal
08-21-2008, 11:02 AM
that's too bad :(

mooreaa
08-24-2008, 07:59 AM
Hello I want to display the thread controls and toolbar below the first post. How would I do this?

yingzhou
08-24-2008, 08:27 PM
When I quick Edit the first post of thread. The template return to defaulft, postbit_legacy. If Edit with full option, It's fine, rest in thread article template like defaulft.


any one can fix this? Please...

maaref
08-25-2008, 05:57 PM
thanks you for the mod
working excellent.

vbboarder
08-30-2008, 12:37 AM
Feature request: Allow the "thread type" setting to be set only in the VB Options or when editing Forum settings, instead of setting it per thread. This allows for a more consistent look throughout the forums.

wolfstream
09-01-2008, 04:08 PM
Search in the XML file for the code below


<option value="1">Postbit Article</option>
<option value="2">Postbit Legacy</option>
<option value="3">Postbit Flipped</option>
<option value="4">Postbit Normal</option>


and switch the order between Postbit Article and Legacy. Then import the XML (remember to set it to overwrite).

:)

The more efficient way to do this is to use the selected option, such as:

<option value="1">Postbit Article</option>
<option value="2">Postbit Legacy</option>
<option value="3">Postbit Flipped</option>
<option value="4" selected>Postbit Normal</option>

This will automatically select the 'postbit normal' setting for you.

RobbieZ
09-01-2008, 04:46 PM
Cool.. And you can set which forum too.. excellent.. Installed..

The more efficient way to do this is to use the selected option, such as:

<option value="1">Postbit Article</option>
<option value="2">Postbit Legacy</option>
<option value="3">Postbit Flipped</option>
<option value="4" selected>Postbit Normal</option>

This will automatically select the 'postbit normal' setting for you.

Another way is too

AminCP>Styles & Templates>Search in Templates.

Now enter "Postbit Article" in your search box.

>postbit_select

And edit the template above as wolfstream describes.. :D

barcena
09-25-2008, 01:53 AM
On my site I placed this hack that I like a lot, problem is that Article is the default (first) option on the Thread Type list so everyone is posting as Article.

I need the Postbit to be Normal by default, no Article, if then somebody wants to make their first post (chief one) an article to be seing from any page so be it, that means that person has enough knowledge like to change a little button, apparently right now is hard for my members to realize it or they don't underestand what Postbit means (neither do I lol) but is kind of annoying to have everyone posting their New Threads as Postbit Article just bc is the "default" one and then pm you so you can change it back to Normal for them. If i can fix this from the CP please enlighted me since I haven't being able to find it.

Thanks.

barcena
09-25-2008, 02:55 AM
Thanks for help me ...

I thinks it's not enough to change the value only it's working after i also change the below values & change the place of Default Type...;)

1.

<select name="ttype" tabindex="1">
<option value="1">Postbit Legacy</option>
<option value="2">Postbit Article</option>
<option value="3">Postbit Flipped</option>
<option value="4">Postbit Normal</option>
</select>


2.

case 1:
$this->templatename = 'postbit_legacy';
break;
case 2:
$this->templatename = 'postbit_articles';
break;
case 3:
$this->templatename = 'postbit_flipped';
break;
case 4:
$this->templatename = 'postbit';
break;
default:
$this->templatename = 'postbit';
break;


Problem solved, I read the whole thread and this fixed my problem, I know nothing about programming or vbulleting I just have a site, I followed the steps and voila, if I could of doit anyone can.

Now my postib is:

Normal
Article
etc

Article is not the default anymore, that was annoying.


Thanks guys!

barcena
09-25-2008, 05:04 AM
After I did those changes all the threads in where the first post were an Article went missed, you can see from post 2 up, does someone knows where does posts no. 1 went?. I'd try to edit those threads so I can put it back to Article but since the firsts post are missed there's nothing I can do.

Please help.

PD. You can stil open new threads and choose the postib: Normal, Article, etc.

GrendelKhan{TSU
09-25-2008, 08:11 AM
it was looking good but...

if you choose ARTICLE it "breaks" with large avatars. (doesn't fit)

any fix for this to work with large avatars?

barcena
09-27-2008, 07:46 PM
Is this hack supported? Too many questions and no answers. I will nominate the mod as the hack of the month in a flash but only if there is some sort of support.

1. I have noticed that I can't, as an Admin, see the IP of the member who opens an Article thread. Is there a way to see the IP, am I missing something?.

2. Can someone explain the differences bt Legacy, Flipped, Normal, Article?. I know the differences bt Normal and Article (those are the only ones that seems to be working on my site, I choose Legacy and Flipped sometimes but nothing different happens, it gets posted as Normal).

BTW. Unfortunatelly I had to revert all I did and allow Article to be the first option since, after the change on XML file, all the Threads in where Article was the first post, dissapear, a shame b/c i don't want Article to be the default but Normal, however I have the hack running, I like it too much as to dissable it.

GrendelKhan{TSU
10-02-2008, 01:45 AM
you know what would be awesome?

if this could be added to teh THREAD VIEW choices

eg: linear, threaded, hybrid, chief post.

:)

Nadeemjp
10-02-2008, 05:04 AM
is this usable with 3.7.3?

Nadeemjp
10-02-2008, 05:32 AM
no it doesnt work with 3.7.3

shipfriends
10-06-2008, 09:02 AM
Hi I have a query.

I am making a new post for every topic with some standard information. With another mod I change the date posted so it appears as first post.

The chief post though, if I choose to have it sticky for every thread page, takes the original first post and not my "artificial" one

Any ideas?
thanks

MissKalunji
10-06-2008, 03:15 PM
1. Yes you would have to add this code below wherever you want it to show
$post[iplogged]

2.- legacy is the standard one
- article looks similar to the ones on vb.org (go to any article here)
- flipped is just all the info are on the right instead of the left
I've modified mines so i can't exactly explain how the other ones are

what else is your problem?

akonze
10-07-2008, 09:09 AM
Is this hack supported? Too many questions and no answers. I will nominate the mod as the hack of the month in a flash but only if there is some sort of support.

It seems this hack is not supported anymore. There are several issues (like the quickedit bug) which have not been adressed since may 2008. Furthermore someone pointed out it does not runs with 3.7.3. I also have problems with the mod, but finally decided to uninstall it again.

Sad, but true... :mad:

goxy63
11-09-2008, 06:40 PM
Hi to all

I installed mod few days ago...
Its great, just one question, why on some threads there are no option as vote or...those threads are started before I installed this mod, thats why ?
How to fih this ?

Thanks

My Vb is 3.7.4

raja811
11-09-2008, 10:34 PM
thanks

rob01
11-10-2008, 04:19 AM
the flipped, legacy version dosnt works :(


legacy and flipped version show this = http://tustan.net/bbs/showthread.php?t=32

yingzhou
11-10-2008, 07:07 AM
<font color="Red">Is this Mod is not supported anymore?</font>

TaMpE
11-26-2008, 10:44 PM
Is this Mod is not supported anymore?

I think it was not supported since it's released :(

MissKalunji
11-28-2008, 03:52 AM
i agree...

TitanJeff
11-28-2008, 04:09 PM
I love this mod. I have it working well with a few of the suggestions left here by members.

If we were lucky to have an update on it some day, I would love to be able to set a certain member to use postbit article as their default for such things as the RSS feed.

mavikumsal
11-28-2008, 07:53 PM
Thanks Atakan Koç

UKBusinessLive
12-27-2008, 01:03 PM
no it doesnt work with 3.7.3

Yes it does :eek:

http://www.ukbusinesslive.co.uk/forum/showthread.php?t=1883

militarytuners
12-31-2008, 02:56 AM
Cool option

rzpvile
12-31-2008, 04:15 AM
not supported lame didn't work for me on

http://game-sinners.com/

would have been a nice mod

yingzhou
01-02-2009, 07:35 AM
very sad for don't have a update for this mod. I seen a update for 3.8.x mod. Why the author do not update this?

I can't edit post via quick edit because it's will return to normal instead article.
I can't chose which form is default.

da_judge
01-04-2009, 11:15 PM
I need this Default ON for all forums in admincp

Any ideas how

Cheers

anderow
01-04-2009, 11:50 PM
Excellent hack!

Thanks.

Is it possible to mark the 'first post' on the all pages of the thread except the first one? As we have had people confused as to why the same post appears multiple times!! they do realise eventually but it would be great to have pages say 2-22 (if it was a 22 page thread) have the first post tagged with a small icon or stamp saying (editable or uplodable by us)

saying

'This was the first post of this thread'

or something like that

Any thoughts on this?

Gosef
02-13-2009, 06:15 AM
i want it to show post's text from right to left!
how can i make it do that?

sergey78
02-15-2009, 04:10 PM
hi everybody,

please, help!

i installed it, but can't find how to run it. i suspect there is something i should do with INSTALL CODE, but can't figure what)

zombietom
04-27-2009, 04:01 PM
hey got this installed and working fine...had to make a couple adjustments ..but overall it's a good mod.

Sergey78 --go to your ACP panel select Forum Manager -then pick a forums section you want to use this mod on and click on the GO button --go to the bottom of the page and select the YES radio button and then save.

asking
06-18-2009, 03:34 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?

skubaman
07-02-2009, 03:10 AM
Hi, I really like the idea of this. But I think it would be better if I could choose to not give the 4 options when editing threads.
I just want to post the original message on top of every page to help users as they browse other pages, I don't want to necessarily give them an option to choose what kind of postbit to use.

It would also be nice if on the first message it could say something like that on top "original message"

so users understand it's not the same message posted several times in the same thread.

Does it make sense?

Thanks

soundbarrierpro
07-02-2009, 07:22 PM
Hi, I really like the idea of this. But I think it would be better if I could choose to not give the 4 options when editing threads.
I just want to post the original message on top of every page to help users as they browse other pages, I don't want to necessarily give them an option to choose what kind of postbit to use.

It would also be nice if on the first message it could say something like that on top "original message"

so users understand it's not the same message posted several times in the same thread.

Does it make sense?

Thanks

Tell your members to type "Original Message" before they start their posting. Then bold it and change it to red.

This mod has been around forever, it's not going to be updated.

skubaman
07-02-2009, 07:57 PM
Tell your members to type "Original Message" before they start their posting. Then bold it and change it to red.

I bet that getting users to this is much harder than getting this mod updated.

vitrag24
07-08-2009, 06:45 PM
i've just installed it.
but it's ont working.
i'm on vb 3.7.1
i'm not geting even any option in vb admincp/options
Help me to enable this mod.

soundbarrierpro
07-09-2009, 04:59 PM
i've just installed it.
but it's ont working.
i'm on vb 3.7.1
i'm not geting even any option in vb admincp/options
Help me to enable this mod.

That's because it's not there.

Go to ACP>Forums&Moderators>Forum Manager

Click on a forum to edit, scroll all the way to the bottom. Click on or off if you want to use CFP on that forum.

vitrag24
07-09-2009, 07:38 PM
That's because it's not there.

Go to ACP>Forums&Moderators>Forum Manager

Click on a forum to edit, scroll all the way to the bottom. Click on or off if you want to use CFP on that forum.

dam it.
i've 5-6 main forums and lots of sections and subsections in it.
so i need to apply to each subsection manually ??
i tried to apply directly to mainfourm but it's not working then for subsections and sections..

i hope modder will update this mod.

bhkien
07-30-2009, 04:22 PM
I created a thread with postbit articles. After, I edit the first post and choose postbit, the result view look normal but the first post is always on top of all pages.

Is this possible to make it back to its original?

Thanks,

RedHacker
08-28-2009, 06:15 AM
Can be input only in one thread....?

vitrag24
03-15-2010, 09:38 PM
update for vb 4.0 plz.
thx.

MoMan
08-01-2010, 10:17 PM
If someone else hasn't mentioned this, there's a bug in the hook at postbit_display_complete which breaks the 'view post' functionality for postbit_ignore. See below for my fix.

// get ignored users
$ignore = array();
if (trim($vbulletin->userinfo['ignorelist']))
{
$ignorelist = preg_split('/( )+/', trim($vbulletin->userinfo['ignorelist']), -1, PREG_SPLIT_NO_EMPTY);
foreach ($ignorelist AS $ignoreuserid)
{
$ignore["$ignoreuserid"] = 1;
}
}

$myignore = $post['userid'];


// Bug fix by Adam
// This conditional breaks the 'view post' link in postbit_ignore; just add AND $ignore["$myignore"] != 1 to the conditionals below instead

/*
if ($ignore["$myignore"] == 1)
{
$this->templatename = 'postbit_ignore';
}
else
{
*/
if ($this->forum['ada_forum'] == 1 AND $post['postid']==$this->thread['firstpostid'] AND $ignore["$myignore"] != 1)
{
$this->templatename = 'ada_postbit_articles';
}
else
{
if ($this->forum['ada_forum'] == 1 AND !$post['isdeleted'] AND $ignore["$myignore"] != 1)
{
switch ($this->forum['ada_style'])
{
case 0: $this->templatename = 'ada_postbit_comment'; break;
case 1: $this->templatename = 'postbit'; break;
case 2: $this->templatename = 'postbit_legacy'; break;
case 3: $this->templatename = 'ada_postbit_flipped'; break;
}
}
}
/* }
*/

evershawn
03-27-2011, 08:43 AM
Has there been any update to this for 4.X?

MissKalunji
05-10-2011, 01:42 PM
no i haven't seen one.

anyone figured out how to fix multi-quote?

citeman
07-05-2012, 10:37 AM
Would this cause duplicate content issue in terms of SEO? As all the pages on a thread start with the same content.