PDA

View Full Version : Show Thread Enhancements - First post on all pages


ry215
03-27-2010, 10:00 PM
Info:
The 1st message of the thread will stay at top all the time even while you are checking other messages related to this subject.

Installation:
-Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
Fixed: cache template (product-firstonallpages(3).xml)

Updated: version 1.2 (product-firstonallpages(3).xml)

Added: Custom First Post Template option


Updated: version 1.1 (product-firstonallpages(2).xml)

Added: Enable/Disable option
Added: List forums do not use first post on all pages option

cindy helmond
03-28-2010, 04:13 PM
thx screens ?

Snug
03-28-2010, 04:46 PM
just what i was looking for ;)

Snug
03-28-2010, 04:50 PM
anyway to make this to only certain subforum?

and there should be some kind of break between the first post and the next post on that page.

just some suggestions?

anyways, still an awesome add on

COL NIL SATIS
03-28-2010, 05:02 PM
installed....does exactly what it says on the tin ...nice one mate

Fraxter
03-28-2010, 05:04 PM
It's possible to set in which forums the mod is activated?

Juggernaut
03-28-2010, 06:03 PM
Will download right now :D

ry215
03-28-2010, 06:07 PM
It's possible to set in which forums the mod is activated?

if you want disable it going to Manage Products :D
im make it only for active show all box

Manoel J?nior
03-28-2010, 09:24 PM
HOHOHO finally...

INSTALLED!

Thanks!

Kaleem
03-28-2010, 09:48 PM
This is good stuff, but can we disable it per forum? Or can we have that functionality in the next version?

Greight
03-28-2010, 09:55 PM
If we could have this both per forum and per topic it would be awesome.

Fraxter
03-28-2010, 10:29 PM
Yes, that would be the best. :)

Dr.osamA
03-29-2010, 12:25 AM
finally...

INSTALLED + 5 Stars + nominated

Thanks

syrn
03-29-2010, 01:39 AM
Installed , 5*

thanx

Professional2
03-29-2010, 05:40 AM
installed on 4.0.2 and five stars.
tnx

Miras
03-29-2010, 08:57 AM
If we could have this both per forum and per topic it would be awesome.
++
:-)

Alecsmith
03-29-2010, 12:26 PM
Tagged for Future :)

sKippah
03-29-2010, 01:03 PM
Could u add an option not to use this in every Forum
Means if i just want to use it in some, not all, Threads

maidos
03-29-2010, 02:22 PM
suggestion can you make it highlight the first post
example light green background on first posts

goran424
03-29-2010, 05:56 PM
Could u add an option not to use this in every Forum
Means if i just want to use it in some, not all, Threads

Agreed! Without this option in certain subforums 1st post becomes annoyance.

goran424
03-29-2010, 05:57 PM
suggestion can you make it highlight the first post
example light green background on first posts

Very good idea too!

ry215
03-30-2010, 06:11 AM
Could u add an option not to use this in every Forum
Means if i just want to use it in some, not all, Threads
add this option in next version :D

SpaceStar
03-31-2010, 03:12 PM
If we could have this both per forum and per topic it would be awesome.

:up:

ry215
04-01-2010, 05:38 AM
good idea... i make it new version
pls wait me some day i make new :D

NiTRoN
04-01-2010, 06:24 AM
I remember there was version of similar mod for v3.8x that lets you specify how the first post looked.. legacy, new.. etc..

DBStattoo
04-01-2010, 12:03 PM
Tagged for Future im waiting for the next version to not to use this in every Forum

:up:

COL NIL SATIS
04-01-2010, 02:25 PM
installed...works great ...thanks

Greight
04-01-2010, 05:02 PM
good idea... i make it new version
pls wait me some day i make new :D
Excellent, thanks.

haothiencz
04-03-2010, 02:35 AM
no have time for build more option :D
who can ???? :D

treyb
04-03-2010, 02:47 AM
Good suggestion would be to add a image to show that this is the topic post... Do you mind if I add it? I will send you the xml if you like how it works.

ry215
04-03-2010, 03:41 AM
@ treyb : if u have time can you do it, im verry busy because big customer want code mod

Allan
04-04-2010, 06:52 AM
It's possible to add options for add some ID forum in options Admincp ?

ry215
04-04-2010, 08:38 AM
It's possible to add options for add some ID forum in options Admincp ?
if u can write more option
im busy for coder :D

ry215
04-09-2010, 04:07 AM
updated. :D
added 2 options

AURFSCAN
04-10-2010, 01:52 AM
this is a really neat idea but.... always a but :)

for me on page 2, all the content within the post (post1 copy) is center aligned.

Installed but disabled until I can work out whats going on

thx

manutdvn
04-10-2010, 08:54 AM
Do you have this mod for 3.8.x version?

dhemitz
04-11-2010, 02:09 AM
Thanks ry215

Nice...

AndyP
04-11-2010, 03:57 AM
It is excellent to see this mod for vb4. We became dependent on it for vb3.

It's a little clunky to disable for different forums, but it does the job.

Thank you.

ArtakEVN
04-11-2010, 07:22 AM
Nice mod. But the look of first post will be the different on other pages. Maybe the legacy postbit instead of default ? And <br /> after first post ?

ry215
04-11-2010, 05:52 PM
you can edit postbit or postbit_lagacy bro ok ?
and find template first post on all page edit it

ry215
04-12-2010, 06:47 AM
updated. :D
added 1 option

ijob
04-12-2010, 09:05 AM
updated. :D
added 1 option

Can u explain what this option allows for please? I may just install it after more info :)

AndyP
04-12-2010, 11:16 AM
Can u explain what this option allows for please? I may just install it after more info :)I have just installed the update.

In the settings it has a new field for text entry of the template you want used for the first post. The default is 'postbit'.

Alucard^
04-12-2010, 11:17 AM
I like it but.... if i want to use this on only one subforum or forum? I have to exclude allllllllll the others forums/subforums... you can add an extra option to add the forum you only want to use the plugin? Thanks

ry215
04-12-2010, 01:43 PM
I like it but.... if i want to use this on only one subforum or forum? I have to exclude allllllllll the others forums/subforums... you can add an extra option to add the forum you only want to use the plugin? Thanks
open .xml file, search all !in_array and replace with in_array >>> it's became option you wanted

ArtakEVN
04-16-2010, 04:27 AM
updated.
added 1 option
Thanx ... installed

Greight
04-16-2010, 05:40 AM
Can't this be enabled per-thread?

ArtakEVN
04-16-2010, 06:08 AM
updated. :D
added 1 option

I think something wrong with this option. There is no difference what is writen in "Template Name". even if I create a new template and write the new templates name. The first post template is unchanged. But if I edit it (my forum uses postbit_legacy) I get changed only the fist post look.

ry215
04-17-2010, 03:11 AM
I think something wrong with this option. There is no difference what is writen in "Template Name". even if I create a new template and write the new templates name. The first post template is unchanged. But if I edit it (my forum uses postbit_legacy) I get changed only the fist post look.
I dont know what u did :D
but it's my result (see attach)

ArtakEVN
04-17-2010, 07:38 PM
And here is my situation with product-firstonallpages(3).xml

atzaman
04-18-2010, 10:41 PM
I'm having the same problem. Changing the Template Name in the options doesn't seem to change anything :(

atzaman
04-18-2010, 11:08 PM
My solution is to edit postbit_legacy with an if condition which calls a plugin for my custom code

<vb:if condition="$post['postid'] == $thread['firstpostid']">

{vb:raw customfirstpost}

<vb:else />

.......

</vb:if>

ry215
04-19-2010, 05:06 AM
And here is my situation with product-firstonallpages(3).xml
:D one variable is incorrect, plz re-download (product-firstonallpages(3).xml)

ArtakEVN
04-19-2010, 06:21 PM
Thank you. Excellent work!

Dr.osamA
04-19-2010, 10:58 PM
thanxxx agen

marshal_ramdev
04-21-2010, 04:20 AM
thanks mate :)

ry215
04-22-2010, 01:43 PM
i think done 100% :D

ry215
04-24-2010, 04:02 AM
Reserved :D

J6488EEA8E90
04-24-2010, 05:32 AM
been looking for this for a while. Will check it out.

prevb
04-26-2010, 02:28 PM
Good JOB man :D i like it

ArtakEVN
04-27-2010, 01:33 PM
There is one more bug. My fistpost template name is "postbit_first". Content of this template is copied from "postbit" template (I'm using legacy). There is free space on firs post on first page. Please see attached images.

P.S. I find (http://www.vbulletin.com/forum/showthread.php?350315-First-Post-Squashed), that this is the vbulletin's bug.

ry215
04-29-2010, 03:20 PM
it not my mod, it your template
you can edit it

Ronya
05-05-2010, 07:59 PM
Great Mod Thank you
But can you make radio button on "Administrative" dropdown menu to enable it for different thread. Idea is to enable not all treads in some forum but just some threads.

i used mod like this on 3.6
Table "Thread" has field named showfirstpost

anyway you can see it on that code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="firstpostonall" active="1">
<title>First Post on every pages 1.0.4</title>
<description>This will allow you to show the first post on every page of a thread. (Eng. version)</description>
<version>1.0.4</version>
<codes>
<code version="1.0.4">
<installcode><![CDATA[$db->hide_errors();
$db->query_write("ALTER TABLE `". TABLE_PREFIX ."thread` ADD `showfirstpost` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL");
$db->show_errors();]]></installcode>
<uninstallcode><![CDATA[$db->hide_errors();
$db->query_write("ALTER TABLE `". TABLE_PREFIX ."thread` DROP `showfirstpost`");
$db->show_errors();]]></uninstallcode>
</code>
</codes>
<templates>
</templates>
<plugins>
<plugin active="1">
<title>First Post on every pages - postbit display complete</title>
<hookname>postbit_display_complete</hookname>
<phpcode><![CDATA[if ($this->thread['showfirstpost']=='1' AND $post['postid']==$this->thread['firstpostid'])
{
if ($vbulletin->options['legacypostbit']=='1')
{
$this->templatename = 'postbit_legacy';
}
else
{
$this->templatename = 'postbit';
}
}
$show['firstpostonall'] = true;]]></phpcode>
</plugin>
<plugin active="1">
<title>First Post on every pages - showthread postbit create</title>
<hookname>showthread_postbit_create</hookname>
<phpcode><![CDATA[if ($thread['showfirstpost'] AND $vbulletin->GPC['pagenumber'] > 1)
{
if ($post['postid'] == $thread['firstpostid'])
{
$counter--;
$post['postcount'] = '1';
}
else
{
$post['postcount']--;
}
}]]></phpcode>
</plugin>
<plugin active="1">
<title>First Post on every pages - showthread post start</title>
<hookname>showthread_post_start</hookname>
<phpcode><![CDATA[if ($thread['showfirstpost']=='1' AND $threadedmode == 0 AND $thread['attach'])
{
$thread['hasattach'] = $thread['attach'];
unset($thread['attach']);
}]]></phpcode>
</plugin>
<plugin active="1">
<title>First Post on every pages - showthread query</title>
<hookname>showthread_query</hookname>
<phpcode><![CDATA[if ($thread['showfirstpost'])
{
$ids .= ",$thread[firstpostid]";
$postids = "post.postid IN (0" . $ids . ")";
if ($thread['hasattach'])
{
$attachments = $db->query_read("
SELECT dateline, thumbnail_dateline, filename, filesize, visible, attachmentid, counter,
postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize,
attachmenttype.thumbnail AS build_thumbnail, attachmenttype.newwindow
FROM " . TABLE_PREFIX . "attachment
LEFT JOIN " . TABLE_PREFIX . "attachmenttype AS attachmenttype USING (extension)
WHERE postid IN (-1" . $ids . ")
ORDER BY attachmentid
");
$postattach = array();
while ($attachment = $db->fetch_array($attachments))
{
if (!$attachment['build_thumbnail'])
{
$attachment['hasthumbnail'] = false;
}
$postattach["$attachment[postid]"]["$attachment[attachmentid]"] = $attachment;
}
$thread['attach'] = $thread['hasattach'];
unset($thread['hasattach']);
}
}]]></phpcode>
</plugin>
<plugin active="1">
<title>First Post on every pages - action switch</title>
<hookname>threadmanage_action_switch</hookname>
<phpcode><![CDATA[if ($_REQUEST['do'] == 'stickpost')
{
$handled_do = true;
if (!$threadinfo['threadid'])
{
eval(standard_error(fetch_error('invalidid', $vbphrase['thread'], $vbulletin->options['contactuslink'])));
}
}]]></phpcode>
</plugin>
<plugin active="1">
<title>First Post on every pages - main</title>
<hookname>threadmanage_start</hookname>
<phpcode><![CDATA[// ##### start stick/unstick post mod by YaR & kerk ######
if ($_POST['do'] == 'stickpost')
{
if (($threadinfo['isdeleted'] AND !can_moderate($threadinfo['forumid'], 'candeleteposts')) OR (!$threadinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts')))
{
if (can_moderate($threadinfo['forumid']))
{
print_no_permission();
}
else
{
eval(standard_error(fetch_error('invalidid', $idname, $vbulletin->options['contactuslink'])));
}
}

if (!can_moderate($threadinfo['forumid'], 'canmanagethreads'))
{
print_no_permission();
}

verify_forum_password($foruminfo['forumid'], $foruminfo['password']);

$is_sticked = $threadinfo['showfirstpost'];

if ($threadinfo['showfirstpost'])
{
$db->query_write("UPDATE ".TABLE_PREFIX."thread SET showfirstpost = 0 WHERE threadid = ". $threadinfo['threadid'] );
$action = " Done: \"First Post Sticked\"";
}
else
{
$db->query_write("UPDATE ".TABLE_PREFIX."thread SET showfirstpost = 1 WHERE threadid = ". $threadinfo['threadid'] );
$action = " Done: \"First Post Unsticked\"";
}

$vbulletin->url = 'showthread.php?goto=newpost&' . $vbulletin->session->vars['sessionurl'] . "t=$threadid";
eval(print_standard_redirect('redirect_sticky', true, true));
}
// ##### end stick/unstick post mod by YaR & kerk ######]]></phpcode>
</plugin>
</plugins>
<phrases>
<phrasetype name="Show Thread" fieldname="showthread">
<phrase name="stick_post"><![CDATA[Stick First Post.]]></phrase>
<phrase name="unstick_post"><![CDATA[Unstick First Post.]]></phrase>
</phrasetype>
<phrasetype name="Front-End Redirect Messages" fieldname="frontredirect">
<phrase name="stickyp"><![CDATA[$action]]></phrase>
</phrasetype>
</phrases>
<options>
</options>
</product>

ry215
05-06-2010, 07:28 AM
i will try it, now busy T_T

J6488EEA8E90
05-08-2010, 01:37 AM
Think this mod could be useful in some threads.
If you are using this mod, how do you find it and does it keep the thread better on course/topic?

ry215
05-08-2010, 01:44 AM
Think this mod could be useful in some threads.
If you are using this mod, how do you find it and does it keep the thread better on course/topic?

Updated: version 1.2 (product-firstonallpages(3).xml)

* Added: Custom First Post Template option


Updated: version 1.1 (product-firstonallpages(2).xml)

* Added: Enable/Disable option
* Added: List forums do not use first post on all pages option

Welshy2008
05-10-2010, 01:08 PM
Someone mentioned that they use this in 3.8 - where is it for that please?

RY - Tagged for future use - Thank You.

murekhalir
05-11-2010, 05:45 AM
niceee +!

ry215
05-18-2010, 02:02 AM
good for all version 4xxx

Medina
05-19-2010, 05:35 PM
Is it also possible to have this enabled for only 1 category (example; news section on a forum)

goxy63
06-14-2010, 10:32 PM
Is it possible to make it work with vbulletin ad's properly
AdminCP>>>Advertising>>>add new ad>>>thread>>>first post content....
if I place new ad it will be displayed on second post not first one on each page, that is on post 1 advertise will not be displayed :[

cvn
06-15-2010, 02:20 AM
But can you make radio button on "Administrative" dropdown menu to enable it for different thread. Idea is to enable not all treads in some forum but just some threads.

I vote for this function too! Thank you ry215!

ijob
06-15-2010, 05:40 AM
If the first post is a particularly long post, does this mod post an 'excerpt' of the first post and not the whole lot?

ry215
07-10-2010, 12:48 AM
it working for 4.0.4...

wonderfulwat
07-11-2010, 12:59 AM
Awesome!

emath
07-11-2010, 05:12 AM
thanks, helpful.

Fraxter
07-12-2010, 10:11 PM
Installed.

Would be much easier if i can include the forums which should use the first post addon. I've added over 50 forum id's for exclude. ;)

manutdvn
07-21-2010, 05:13 PM
Installed.

Would be much easier if i can include the forums which should use the first post addon. I've added over 50 forum id's for exclude. ;)
Totally agree with you. Anyway, very useful. Thank you.

Welshy2008
08-17-2010, 11:43 AM
Is this working an vBs 4.0.5 and 4.0.6 please?

AfterWorldForum
08-22-2010, 04:17 PM
If the first post is a particularly long post, does this mod post an 'excerpt' of the first post and not the whole lot?

I would also like that option.

Is this working an vBs 4.0.5 and 4.0.6 please?

Yes, it works fine on 4.0.5 for me.


I tried using the additional first_post template, and was actually surprised to find out that this does not limit itself to only the non-first page of the thread, but also the first. Meaning even the original first post will be different (In my case, I made the colours a bit different and added a note stating this was a repost from the first post. However, it also affected every real first post, so I was forced to revert).

Could there be another option where this can be done? So if the pagenumber is higher than 1, use the alternate template. In all other cases, use the default.

Thanks :)

Alucard^
08-29-2010, 01:16 PM
Installed.

Would be much easier if i can include the forums which should use the first post addon. I've added over 50 forum id's for exclude. ;)

Is there any possibility that implement this? I want to enable only in certain forums, and i have a lot of forums... so is really hard to use (and maybe i will have more forums/subforums, so i have to remember to set that forum in the options).

This should be more dynamic.

Sry for my english.

kreacions
10-22-2010, 09:34 AM
Installed, Thanks!


Installed.

Would be much easier if i can include the forums which should use the first post addon. I've added over 50 forum id's for exclude. ;)


go to Plugin & Products > Plugin Manager

edit RV060 and RV065 and change "!in_array" with "in_array" on Plugin PHP Code box

thats it, only need to remove "!"

Edit: upload an exclude/include version

my123world
10-22-2010, 12:07 PM
Great Mod... Works On VB 4.0.8!!

Juggernaut
10-23-2010, 11:27 PM
Thank you, Installed. And also thanks for the tip Kreacions :D

Taurus1
10-24-2010, 04:37 AM
Installed, Thanks!





go to Plugin & Products > Plugin Manager

edit RV060 and RV065 and change "!in_array" with "in_array" on Plugin PHP Code box

thats it, only need to remove "!"

Edit: upload an exclude/include version

Thanks for this mod. Works great on 4.0.8, and a special thanks to kreacions, used your xml, and works a charm!!

tafreeh
11-03-2010, 08:35 PM
thank you.. but postbit template does not use for first post.. why is that?

AfterWorldForum
11-10-2010, 04:56 PM
Another neat addition could be to make this mod customizable by users. I.e. add a field to the userprofile that allows the user to set the mod to on or off, and have the mod do its work based on that (or not).

Martini-man
01-07-2011, 06:55 PM
I wanted this mod to use a different template on the first post, so it could be different, but when I put a different template on the field that supposedly does that, nothing happens...

Can anybody help?

OldSchoolDSL
01-07-2011, 10:14 PM
Installed and working

4.1 PL2

onehost
01-07-2011, 11:37 PM
I do not understand the need for this...why not just stick a thread?

OldSchoolDSL
01-07-2011, 11:53 PM
I do not understand the need for this...why not just stick a thread?

This sticks the 1st post within a thread and not the thread it's self. Which can be useful if you have threads which are 5+ pages long.

Another way to look at it... Is that it works just like vBulletin.org (here)

onehost
01-14-2011, 04:16 PM
Found no instructions how to actually setup first post.

all i see in admincp is go to postbit...

I am not a coder, so this pretty much tells me nothing....

Can someone please explain how i can get my first post setup...

Thank-You

RichieBoy67
01-16-2011, 03:04 PM
Found no instructions how to actually setup first post.

all i see in admincp is go to postbit...

I am not a coder, so this pretty much tells me nothing....

Can someone please explain how i can get my first post setup...

Thank-You

Onehost..
I do not think you understand.. It just takes the first post in a thread and it keeps on top so when you go to the second page of that thread, the post will still be there. It is just like VBorg.. if you go to the top of this thread you can see the authors post?? It stays on top on all pages of the thread.. there is no set up really..

-----------
Author
Great mod!!
------
Everyone
I would like to change this a bit though to separate the first post from the other threads. I notice here at VBorg it has "comments" as the label for the posts.. That works.. I think I may just add a bit of space or something as well..

Has anyone done anything like that yet??

Thanks,
Richie

wonderfulwat
02-27-2011, 08:02 PM
I have created a custom template for the first posts which I've called "postbit1". I just copied the postbit's code and slimmed it down.

I'm stuck on how to make the {vb:raw memberaction_dropdown} a smaller text size. Can anyone help? Here's an example (http://www.wonderfulwaterloo.com/showthread.php/348), where I want "UrbanWaterloo" to be a smaller text (I can change the usertitle easily). I want the other posts to remain the same, this is only for the first post.

Thanks!

<div class="contact">
<div class="username_container" style="position:relative; top: -4px; margin-left: 6px;">
<vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown}
<span class="usertitle">
{vb:raw post.usertitle}
</span>
{vb:raw post.onlinestatus}
<vb:else />
<span class="username guest">{vb:raw post.username}</span>
</vb:if>
{vb:raw template_hook.postbit_userinfo_left}
</div>
</div>

soletrader
02-28-2011, 01:13 AM
Very nice. Would it be possible to have an expand link? so it will still show the first post across all pages but giving the ability for users to expand the first post box to view all content. (in case first post is too long) Thanks.

wonderfulwat
03-01-2011, 09:35 PM
+1 on having an expansion link.

onehost
03-02-2011, 12:18 AM
Onehost..
I do not think you understand.. It just takes the first post in a thread and it keeps on top so when you go to the second page of that thread, the post will still be there. It is just like VBorg.. if you go to the top of this thread you can see the authors post?? It stays on top on all pages of the thread.. there is no set up really..



ok, I understand how it works. I am just not sure how I could use this. It is ok
for a forum like this to use it because of important mod info, etc...but for a
common forum just to stick a common post at the top of each thread
really would not make much since....so you start a thread and say, my
mother got sick, so...then you would see my mother got sick at
the top of each thread....or this could be used for important announcements
for like certain threads...I just can not see a use for this for common forum.

BANDiT600
03-10-2011, 02:30 PM
It works for me for 4.1.2. But it will be cool make a different background to the first post.

Wordplay
03-27-2011, 12:05 PM
i can't get it to work, i set it to show postbit, on all forums it still shows postbit legacy.

running 4.1.2.

Danasy
03-27-2011, 05:07 PM
Installed.
Great mod, it works fine on VB 4.1.0. Thanks

Wordplay
03-31-2011, 04:40 AM
if you set it to a template other than the template your posts use, does it show the one you sepcify or the one your posts usually use?

my posts usually use postbit_legacy, when i set it to postbit, it still shows that thread in postbit legacy.

pransis
04-19-2011, 12:22 AM
Yes, changed from postbit to postbit_legacy but still looks like postbit_legacy to me. It might also be good if you have an option to just enable it on a specific forum. Right now, if you enable it, you have to list all the forum numbers where you don't want the product to affect.

Acido
06-23-2011, 02:45 PM
Yes, changed from postbit to postbit_legacy but still looks like postbit_legacy to me.

Yep, is not taking the template choose selection. Always postbit_legacy for first post. I hope a fix for it.

whitey92lx
06-24-2011, 03:26 PM
seems to be working great for me so far..

Thanks!

Acido
06-24-2011, 04:27 PM
seems to be working great for me so far..

Thanks!

what vb version are you running ?

whitey92lx
06-24-2011, 06:28 PM
4.0.3

Popa Andrei
07-01-2011, 07:41 AM
Sometimes the first post doesent display at all.Anyone got this error untill now?

K!nG
07-02-2011, 11:12 PM
working just fine for me on 4.1.4 . Thanks :)

Popa Andrei
07-04-2011, 05:30 AM
Yes that error was from another plugin.
Sry for rong reporting.

pantani
07-06-2011, 12:46 PM
Works like it's told, only like the previous posts, would be nice if we could make it work on sertain topics, nice job ;)

Jman423
07-10-2011, 01:39 PM
As mentioned earlier, this MOD forces the Private Message system to use whatever template is defined in the settings (of the MOD).

There has to be a way to exclude the PM system from using this postbit style.

EDIT: I just got this issue resolved for myself

Just change the plugin "First Post's Template" to the following code, and it will not affect the PM system.

if (THIS_SCRIPT != 'private') {
global $vbulletin;
if($vbulletin->options['fpoap_active']){
if(!in_array($this->thread['forumid'], explode(',', $vbulletin->options['fpoap_excluded_forums']))){
if($this->thread['firstpostid'] == $this->post['postid']){
$this->templatename = $vbulletin->options['fpoap_template'];
}
}
}
}

Please keep in mind, I am not a coder, I just messed around until it worked. This may not be the best way to achieve the desired outcome.

Sharkyman
08-01-2011, 04:57 PM
I'm going mad. Installed this. Enabled it but it's not working. On 4.0.8. When people start a thread where is the option to make it always the first post?

Sharkyman
08-01-2011, 05:18 PM
Tried version 2. I used to use a forum which only allow mods and admin to do this first post is always top thing?

Can't see anything in the usergroup manager.

Help, please.

maxie
09-17-2011, 12:48 AM
installed perfectly 4.1.2

silpher
09-17-2011, 01:22 AM
Working on 4.1.4

barakuda
10-02-2011, 07:32 PM
this was i'm looking for
Thank you

letsjoy
10-04-2011, 10:09 PM
Thanks a lot for this MOD
Installed + 5 stars :)

MyPeSePe
10-04-2011, 11:30 PM
installed thanks

MalluParadise
10-23-2011, 11:45 PM
working in 4.1.7 ?

ryancooper
11-10-2011, 10:39 PM
Just installed on 4.1.7 Patch Level 2.

Attached is the same thing just ONLY list the forums you would like INCLUDED

ecitizen
11-12-2011, 03:59 PM
i.m 4.1.7 can i install it?

goxy63
11-25-2011, 02:10 PM
I got small problem that bugs me, this great hack is not working properly with this code
https://vborg.vbsupport.ru/showthread.php?p=2271728#post2271728

Can someone help me that with this mod "first post on all pages" in order to place my adsenese under first post?

This is adsense code which I use (from link above)

in postbit template
<vb:if condition="$post['isfirstshown']">
<li class="firstpost_advert_container"><div class="firstpost_advert">
My adsense code here
</li>
</vb:if>

in aditional css
.firstpost_advert_container {
clear: both;
display: block;
float: left;
margin-bottom: 12px;
position: relative;
width: 100%;
border: 1px solid #E5E6F4;
}

.firstpost_advert {
with: 100%;
background: #F1F1FA;
border: 1px solid #fff;
min-height: 90px;
margin: 0;
padding: 7px;
text-align: center;
vertical-align: middle;
}

Pls where to place code to make it work just under first post, now its under second post as cause of this mod

Thank you all :o

tele955848
11-25-2011, 03:18 PM
Sehr nützlich - Danke

thedarkroom
11-28-2011, 02:57 AM
hope next update will disable quoting the first message :)

ka81
12-13-2011, 12:24 PM
4.1.8
installed this mod.

Where are the options to make first post on all pages??

Please, need advise..

Smitty
12-14-2011, 05:23 PM
hope next update will disable quoting the first message :) That would be nice.

ka81
12-15-2011, 12:44 PM
up about Link in Menu for Option!...

ka81
12-21-2011, 09:01 AM
is there any mod like that BUT with POSSIBILITY to choose some specific post to be the "first post on every page" ?

ecitizen
12-26-2011, 05:01 AM
cant use this just for admin?

ObliObli
01-07-2012, 02:37 AM
Please this for vbulletin ver 3.8.7 .
Two versions of the site I was looking for a version that they did not like.
I do not want to be a change in the bits or anything.
The original post as I want to be on top of all pages.
Thank you. . .

Scyther
01-07-2012, 11:11 AM
Does this work on 4.1.8 and 4.1.9?

barcena
01-07-2012, 02:31 PM
Is there a way to make it look a bit different from the other following posts?

fragov
01-08-2012, 03:18 PM
May you add option to turn this hack off for guests?

datoneer
01-08-2012, 03:19 PM
Awesome! Works with 4.1.8

tafreeh
01-20-2012, 08:19 PM
can we add an option for users to disable this function if they wish via usercp ?

Sworm
01-21-2012, 04:51 PM
Hi, What is the correct product to download?
https://vborg.vbsupport.ru/external/2012/01/5.gif product-firstonallpages.xml (https://vborg.vbsupport.ru/attachment.php?attachmentid=114855&d=1269796288)
https://vborg.vbsupport.ru/external/2012/01/5.gif product-firstonallpages(2).xml (https://vborg.vbsupport.ru/attachment.php?attachmentid=115465&d=1270789423)
https://vborg.vbsupport.ru/external/2012/01/5.gif product-firstonallpages(3).xml (https://vborg.vbsupport.ru/attachment.php?attachmentid=115976&d=1271657052)

I'm on 4.1.9, thanks

tintin74
04-13-2012, 02:27 PM
Great, thank you Semprot!

mahsmahs
04-28-2012, 10:16 AM
This mod in very useful, thank you (ry215) :) and please always keep it update

kamran_dotnet
05-25-2012, 07:42 AM
anyone test "First post on all pages" on vbulletin 4.2 ?

DivinoZarathos
06-02-2012, 04:15 AM
Tested on 4.2 and it's working fine.
However... if you switch to display "Linear - Newer First" instead of, for example "Linear - Older First" this plugin just EXPLODES. Can you fix it please?

Luis
07-25-2012, 10:15 PM
thx work perfectly on 4.1.11

ArsMagnum
08-28-2012, 05:17 AM
Is there a way for making this option choosable from the tools menu when you are creating a thread or something like that?

Arianismmm
08-28-2012, 09:38 AM
Work Great on 4.2
But the default was active in all forums
And in the forums that we wanted to disable the plugin we can set the forum id

but i want do this as inverse

as default diabled in all forum and we set forum id of that forum wants to enable this

how i can do this ?

wonderfulwat
03-20-2013, 05:41 AM
Attached images don't show up for guests. It just shows a link.

How can you fix this?

I believe it has to do with: /includes/class_bbcode.php

else
{ // Belongs to another post so we know nothing about it ... or we are not displying images so always show a link
$addtarget = ($attachment['newwindow']) ? 'target="_blank"' : '';
$replace[] = ($fullsize ? '<div class="size_fullsize">' : '') .
"<a href=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1" . (!empty($attachment['dateline']) ? "&amp;d=$attachment[dateline]" : "") . "\" $addtarget title=\""
. construct_phrase($vbphrase['image_x_y_z'], $attachment['filename'], $attachment['counter'], $attachment['filesize'])
. "\">$vbphrase[attachment] \\1</a>" . ($fullsize ? '</div>' : '');
}

Limality
04-09-2013, 02:03 PM
any way to make this per thread?

aboayoy
05-29-2013, 12:52 PM
thank you
installed on 4.2

datoneer
05-29-2013, 07:42 PM
Tagged for now

datoneer
05-29-2013, 08:15 PM
In combination with digitalpoint position ads it doesn't work well

M.C.
07-11-2013, 07:29 AM
template change in options has NO effect either it postbit or postbit_legacy on 4.2

can you update it please! THANKS!

DemOnstar
07-11-2013, 08:34 AM
Installed on 4.2.1

Seems to be ok...

Cheers fella...

Muhammad Rahman
07-27-2013, 03:36 AM
work fine on my forum :) vB 4.2.1

datoneer
07-27-2013, 09:05 PM
It works in 4.2.1

pishtazweb
10-11-2013, 08:49 AM
i wanna use this hack just on one forum and not whole forum of my vbulletin.how can do that?

Gradonil_Ral
10-12-2013, 02:53 PM
i wanna use this hack just on one forum and not whole forum of my vbulletin.how can do that?
ACP > Settings > Options > First Post On All Pages

You need to exclude all forums you don't want this on (write their forumids separated by commas).

dougdirac
10-18-2013, 04:07 PM
Anyone tried this with Panjo?

Konkere
12-10-2013, 03:10 PM
Attached images don't show up for guests. It just shows a link.

How can you fix this?



I have edited the module RV060 - Firstpost on all page 1
New module code:if($vbulletin->options['fpoap_active']){
if(!in_array($foruminfo['forumid'], explode(',', $vbulletin->options['fpoap_excluded_forums']))){
$ids[] = $threadinfo[firstpostid];
$getfirstpost = $db->query_first("SELECT post.attach FROM " . TABLE_PREFIX . "post AS post WHERE post.postid = $threadinfo[firstpostid] LIMIT 1");
if ($getfirstpost['attach'])
{
$attachids[] = $threadinfo[firstpostid];
}
}
}
VB 4.2.2 all ok.

AkibaWorld
05-28-2014, 11:11 AM
Works on vb4.2.2? :S

dany_danay
05-28-2014, 10:31 PM
I want only for certain usergroups, its posible?

zylstra
09-05-2014, 06:17 AM
Is this designed to work with hybrid display mode?

blackberry
09-22-2014, 07:37 PM
Works on vb4.2.2? :S
Yes
I want only for certain usergroups, its posible?
No
Is this designed to work with hybrid display mode?
No

tommyxv
11-14-2014, 08:54 PM
Attachments do not show on other pages of the thread. The code that Konkere posted is bypassing the usergroup settings. I have 'can not view attachments' set to OFF for unregistered/not logged in users.

Is there a better fix for this?

ozzy47
11-14-2014, 09:00 PM
Attachments do not show on other pages of the thread. The code that Konkere posted is bypassing the usergroup settings. I have 'can not view attachments' set to OFF for unregistered/not logged in users.

Is there a better fix for this?

Try this mod and see if it suits your needs, https://vborg.vbsupport.ru/showthread.php?t=306348

tommyxv
11-14-2014, 09:08 PM
Try this mod and see if it suits your needs, https://vborg.vbsupport.ru/showthread.php?t=306348

Thanks! :up:

ozzy47
11-15-2014, 01:22 AM
Not a problem, glad to help. :)

mykkal
02-27-2015, 08:24 PM
Does this plugin work with vb 4.2.3? I just upgraded and can no longer use chief first post.

Also do i install all three product xmls? I couldn't find instructions.

RafaelDutra89
11-09-2015, 12:42 PM
thanks...

TTayfun
12-19-2017, 09:45 AM
is it work 3.8 series?
edit: yes, worked.

TTayfun
12-19-2017, 02:28 PM
template cache not working..