View Full Version : Show Thread Enhancements - [OzzModz] First Post On All Pages Per Thread/Forum
ozzy47
12-26-2013, 11:00 PM
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png
Here is a small modification you can use to the first post on all pages, per forum or by thread id.
It is a simple installation, just import the product XML, ozzmodz_firstpost_display
You can edit the options under the settings, [OzzModz] First Post Display Settings
Complete Feature List
Option to disable the mod completely.
Option to choose which forums, will show the first post on all pages.
Option to set which thread ID's, will show the first post on all pages.
Option to use the default postbit template, or use a custom one, which will allow you to add different styling to the elements.
Option to select which usergroups this mod will affect.
Frequently Asked Questions.
Q. Why do I need such a thing, you ask?
A. You may have a thread that has tens or hundreds of pages, and this will allow you to see the original post on all pages, much like you see here on vB.org in the modification threads.
Q. How do I use the custom template?
A. Note: Make sure you know what you are doing if you attempt this!
This may be a bit tricky for some users.
You can copy what ever template you are using, ( postbit or postbit_legacy ) into the template, ozzmodz_firstpost_display_postbit.
Now once you have done that, you can change the styling of the post, by adding css to the elements.
For example, if you want the first post to have a different background, when it is on any other page except for the first page, you can look for this in the template,
<div class="postbody">and change it to this,
<div class="postbody" style="background: darkgrey;">That will give the first post a dark grey background on any pages other than the first page.
-------------------------------------------------------------------------------------------
If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->
Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->
What does 'Marking As Installed' do ?
* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.
* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.
* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.
I appreciate the support!
-------------------------------------------------------------------------------------------
* History (Changelog) *
-------------------------
v1.0.0 (December 27, 2013)
- Initial public release
v1.0.1 (December 28,2013)
Fixed a issue where you could only choose one forum, now you can choose multiple forums.
v1.1.0 (January 26,2014)
Fixed a issue where the custom option would not work in some instances.
v1.1.1 (October 14,2014)
Fixed a incorrect phrase in one of the settings.
ozzy47
12-27-2013, 10:35 PM
Reserved.
megabink
12-28-2013, 04:32 PM
Thanks for the mod Ozzy but one problem tho....it doesn't update the existing threads!
I used this mod https://vborg.vbsupport.ru/showthread.php?t=239282 first then i uninstalled it and installed your mod but now all my threads are standard it doesn't show the op first on all pages!
Please advice!
ozzy47
12-28-2013, 05:24 PM
This will work on all threads, old and new, as long as you set up the options correctly.
ozzy47
12-28-2013, 05:39 PM
v1.0.1 Available.
Fixed a issue where you could only choose one forum, now you can choose multiple forums.
megabink
12-28-2013, 11:13 PM
This will work on all threads, old and new, as long as you set up the options correctly.
Well my settings where correct...almost the same as the other mod i mentioned!
But i will try the updated version and will report back.
ozzy47
12-28-2013, 11:29 PM
OK let me know how it goes.
megabink
12-28-2013, 11:37 PM
OK let me know how it goes.
Nope not working for me..even if i choose the multiple forums option or the forum id's and save it will not set the OP's first!
Anyway thanks bud.
ozzy47
12-28-2013, 11:39 PM
Can you PM me a admin account so I can see what the issue may be on your site?
Alan_SP
12-29-2013, 05:01 PM
Excellent mod and it's nice idea to include option for choosing which usergroups see first post on every page, so it doesn't creates problem with SEO. :up:
ozzy47
12-29-2013, 05:17 PM
Thanks, glad ya like it. I figured it may be a possibility to have issues with SEO and duplicate content, so that's why I added that.
Thanks for marking as installed. :)
Alan_SP
12-30-2013, 06:11 PM
Thank you for making it. :up:
ozzy47
12-30-2013, 06:56 PM
Glad ya like it, and thanks for marking as installed.
Installed. Thank you Sir.
ozzy47
01-08-2014, 03:15 PM
Glad ya like it, and thanks for marking as installed.
nSecure
01-10-2014, 05:19 PM
This mod seem to modify the RSS behaviour, before I install this mod, it wasn't included all the useless data for RSS stream, now it looks like it copy the entire postbit template and parse it to RSS stream, do you have any fix for RSS?
ozzy47
01-10-2014, 07:37 PM
Can you show me a screenshot of what it looks like with the mod enabled, and the mod disabled?
nSecure
01-11-2014, 01:59 PM
This is a bit more complicated than I thought, please give me a few days to analyze what is the problem.
mitch84
01-11-2014, 03:05 PM
installed and work fine, thx
ozzy47
01-11-2014, 04:13 PM
Glad to hear, and thanks for marking as installed. :)
Alibass
01-14-2014, 04:47 AM
I tried your mod and like megabink 'it does not work for me either. It's not that hard of a mod to setup, I did everything but fool with the custom toggle and sing it a lullaby.
Sorry no install.... will keep it tagged and check back later to see if it's working for everybody.
ozzy47
01-14-2014, 10:42 AM
Well I never got any admin credentials form megabink, perhaps you con supply me with a admin account, so I can see what is going on.
Limality
01-15-2014, 01:28 PM
Great Mod =) almost what I'm looking for. How hard would it be to implement this on a per thread basis as well? Let's say a forum member would be able to choose if the first post should stay on top on all pages.
On my forum some threads would greatly benefit from this, other threads not really...
Alan_SP
01-15-2014, 04:03 PM
Now you can do this by setting thread ID in ACP manually, but it really would be great if we can set it in front end, with usergroup permissions in place (who can make thread's first post visible on all pages).
ozzy47
01-15-2014, 09:15 PM
That will be something I look into for a future version. :)
mariannet
01-24-2014, 07:41 PM
I have set Set Template to Custom
I have copied my postbit_legacy to ozzmodz_firstpost_display_postbit
I have changed <div class="postbody"> to <div class="postbody" style="background: darkgrey;">
It works great for showing the first post on next pages, but it does not use the ozzmodz_firstpost_display_postbit content
ozzy47
01-25-2014, 10:38 AM
That makes no sense, if you have that option ticked, and remove the contents of the ozzmodz_firstpost_display_postbit what happens?
mariannet
01-25-2014, 01:05 PM
That makes no sense, if you have that option ticked, and remove the contents of the ozzmodz_firstpost_display_postbit what happens?
Nothing, I have tried everything now, uninstalled, reinstall, uninstall everything that has effect on postbit. Tried both postbit and legacy. Default style (mother of all), other styles. Choose one forum, all forum..
It does show first on all pages just fine, but I would really like the css for it to make sense :)
It simply does not use the Ozz template :(
I run vB 4.2.2
ozzy47
01-25-2014, 02:15 PM
If you want, pm me a admin account and I can look into it for you. :)
mariannet
01-25-2014, 02:30 PM
If you want, pm me a admin account and I can look into it for you. :)
Sure, but not before tomorrow, I'm going out and won't be back till then :)
I'll PM you :)
ozzy47
01-25-2014, 02:32 PM
Ok no problem, I'll be waiting. :)
ozzy47
01-26-2014, 08:49 PM
v1.1.0 Available.
Fixed a issue where the custom option would not work in some instances.
RedFoxy
01-27-2014, 02:30 PM
there is a way to have specific custom template for specific forum/thread?
ozzy47
01-27-2014, 05:57 PM
No, either the standard post bit or a custom one, not multiple templates.
goxy63
01-28-2014, 10:05 PM
Thanks for the mod Ozzy but one problem tho....it doesn't update the existing threads!
I used this mod https://vborg.vbsupport.ru/showthread.php?t=239282 first then i uninstalled it and installed your mod but now all my threads are standard it doesn't show the op first on all pages!
Please advice!
Same here, any suggestions?
ozzy47
01-28-2014, 10:07 PM
Same here, any suggestions?
Have you set up the forums for this to work in in the settings?
goxy63
01-28-2014, 10:11 PM
Sure, did that for all forums as I need it on all places except for guests
Edit:
For some reason after I marked all forums and clicked "save" settings were not saved...repeated this several times and 3rd time it was saved...for some reason it did not save options first 2 times did not noticed that after first try...it was not marked after save...
Maybe cause I got bunch of forums marked around 30 or so...
Now its ok :]
nominated rated thank you
Edit2:
not nominated as I cant, voted for mod of a month :]
ozzy47
01-28-2014, 10:14 PM
That's certainly strange behavior. But glad it's sorted anyway. :)
goxy63
01-28-2014, 10:37 PM
Maybe because I have bunch of forums +30 so...?
Anyways, just one small question:
You can copy what ever template you are using, ( postbit or postbit_legacy ) into the template, ozzmodz_firstpost_display_postbit.
Now once you have done that......
So to copy whole "postbit_legacy" template there and change it within "ozzmodz_firstpost_display_postbit"....I can be free to play with it there no worries for some f*** up ? :D
ozzy47
01-28-2014, 10:40 PM
Correct, that is if you are going to use the custom option. :)
Copy the entire postbit_legacy to ozzmodz_firstpost_display_postbit, then change the setting to custom.
Thanks for the plugin. I too have same issue with mega and in fact it's causing by selecting multiple forums from the list by holding ctrl key select. I selected all forums and save and now plugin works.
However, i'm using custom option to color first post differently, and did this on
<div class="postbody"style="background: black;">
but all background of posts are black now..
I copied legacy postbit where the avatars are on left.
ozzy47
03-30-2014, 03:12 PM
Hmmm, can you paste the contents of ozzmodz_firstpost_display_postbit here.
Hmmm, can you paste the contents of ozzmodz_firstpost_display_postbit here.
Good Lord...
I checked it again to get content and found out that i actually edited legacy instead of the plugin's template...
Now, i pasted legacy to plugin's template made the change about first post and everything is fine, working good under 4.2.2
Thanks and sorry for my mistake
Kind Regards
ozzy47
03-31-2014, 03:17 PM
Not a problem, happens to all of us. :)
ccmoon
04-03-2014, 02:46 AM
very good mod. Thanks
ozzy47
04-03-2014, 03:17 AM
Glad ya like it, and thanks for marking as installed. :)
Hi Ozzy, it's me again...
While it's a plugin idea, it's based on same purpose of your plugin.
Let's say i need to keep first post along with some other important posts always on top ? Like a moderation tool. You select some posts in xx pages of thread and keep them always on top like first first idea.
I'm happy with the plugin, but it'd be cool to select some posts in thread and keep them at top instead of merging posts of different users.
Cheers and Best Regards
krimznheidiz
04-18-2014, 08:01 AM
There is an error show " The following dependencies were not met:
This product is not compatible with version 5.3.28 of PHP. (Compatible starting with 5.4.0)"
HM666
04-24-2014, 01:13 PM
It works fine for me but I have one problem. I cannot make the first post have a different color no matter what I do. I've tried using the postbit template code, I've tried using the postbit_legacy template code, I've tried adding my own div class in the additional.css template and then changing it in the ozz template to no avail.
vietdotseo
07-15-2014, 01:40 PM
How about duplicate meta descriptions in page 1 and another pages when use first post all page?
//sorry my english :(
ozzy47
07-19-2014, 11:19 AM
How about duplicate meta descriptions in page 1 and another pages when use first post all page?
//sorry my english :(
Not really sure, I have not looked into that at all.
But I doubt it hurts, as on this site, all the mod threads and style threads have the first post on all pages.
vietdotseo
07-19-2014, 12:16 PM
Not really sure, I have not looked into that at all.
But I doubt it hurts, as on this site, all the mod threads and style threads have the first post on all pages.
On vbulletin.org, descripton at page 2: <meta name="description" content="Page 2-[OzzModz] First Post On All Pages Per Thread/Forum vBulletin 4.x Add-ons" />
at page 3 <meta name="description" content="Page 3-[OzzModz] First Post On All Pages Per Thread/Forum vBulletin 4.x Add-ons" />
....
You can see in attachments (at your webiste)
ozzy47
07-19-2014, 01:07 PM
Same thing happens on all threads in vBulletin, look at this thread, https://vborg.vbsupport.ru/showthread.php?t=162335
First page of the thread:
<meta name="keywords" content="The one and only Happy Birthday thread, vbulletin,forum,bbs,discussion,jelsoft,bulletin board,hacks,modifications,addons,articles,programm ing,site review" />
<meta name="description" content="The one and only Happy Birthday thread Community Lounge" /> Last page of the thread:
<meta name="keywords" content="The one and only Happy Birthday thread, vbulletin,forum,bbs,discussion,jelsoft,bulletin board,hacks,modifications,addons,articles,programm ing,site review" />
<meta name="description" content="Page 21-The one and only Happy Birthday thread Community Lounge" />
vietdotseo
07-19-2014, 01:39 PM
Same thing happens on all threads in vBulletin, look at this thread, https://vborg.vbsupport.ru/showthread.php?t=162335
First page of the thread:
<meta name="keywords" content="The one and only Happy Birthday thread, vbulletin,forum,bbs,discussion,jelsoft,bulletin board,hacks,modifications,addons,articles,programm ing,site review" />
<meta name="description" content="The one and only Happy Birthday thread Community Lounge" /> Last page of the thread:
<meta name="keywords" content="The one and only Happy Birthday thread, vbulletin,forum,bbs,discussion,jelsoft,bulletin board,hacks,modifications,addons,articles,programm ing,site review" />
<meta name="description" content="Page 21-The one and only Happy Birthday thread Community Lounge" />
their meta description are different!
ozzy47
07-19-2014, 01:42 PM
Only difference I see is the page number in the description.
vietdotseo
07-19-2014, 02:07 PM
Only difference I see is the page number in the description.
Because vbulletin use title for description, not use post content. But, they different, and google like that!
BasicGreatGuy
07-19-2014, 02:09 PM
I just installed. I have the forums set that I want it to show in, along with the appropriate user groups to be able to view, and none of the existing threads are showing first post.
ozzy47
07-19-2014, 02:13 PM
I just installed. I have the forums set that I want it to show in, along with the appropriate user groups to be able to view, and none of the existing threads are showing first post.
Not sure why, if you pm me a admin account, I can try and troubleshoot it on your site.
ozzy47
07-19-2014, 02:15 PM
Because vbulletin use title for description, not use post content. But, they different, and google like that!
Not to sure what I could change in the mod to make it different.
BasicGreatGuy
07-19-2014, 02:36 PM
Not sure why, if you pm me a admin account, I can try and troubleshoot it on your site.
Thank you for the reply. The powers that be (above me) would not like me issuing temp admin account, unfortunately.
Our site uses postbit legacy. Does that make a difference?
ozzy47
07-19-2014, 02:42 PM
No that is what I use, so it should be working.
BasicGreatGuy
07-19-2014, 02:57 PM
No that is what I use, so it should be working.
I just looked in the panel at your postbit file in stye manager, and the postbit is blank.
ozzy47
07-19-2014, 03:02 PM
That is correct, if you read the first post it explains that.
Q. How do I use the custom template?
BasicGreatGuy
07-19-2014, 03:24 PM
That is correct, if you read the first post it explains that.
Q. How do I use the custom template?
Just wanted to make sure. I did cut and paste our postbit legacy in just now and changed the setting to custom etc. And the first post still isn't showing. Does it matter that our users have several templates to chose from to view the forum?
ozzy47
07-19-2014, 03:30 PM
Just wanted to make sure. I did cut and paste our postbit legacy in just now and changed the setting to custom etc. And the first post still isn't showing. Does it matter that our users have several templates to chose from to view the forum?
No it should not as long as you did the edits in each style.
BasicGreatGuy
07-19-2014, 03:49 PM
No it should not as long as you did the edits in each style.
As a test, I uninstalled your mod and installed this one (https://vborg.vbsupport.ru/showthread.php?t=239282&page=11) Same results. I haven't had a problem with any of your other mods. There must be something special with our setup, that is preventing this from working like it should. Disappointing as I was looking forward to using it.
I thank you for your replies.
ozzy47
07-19-2014, 03:51 PM
As a test, I uninstalled your mod and installed this one (https://vborg.vbsupport.ru/showthread.php?t=239282&page=11) Same results. I haven't had a problem with any of your other mods. There must be something special with our setup, that is preventing this from working like it should. Disappointing as I was looking forward to using it.
I thank you for your replies.
That is why I would need access to figure out what is going on, otherwise it is just a guessing game.
dany_danay
08-16-2014, 01:31 AM
Hi, i need that only themes from certain uswrgroup show post in all pages...
And if i can specific themes by id that i DONT want to show first post in all pages should be lovely
Can i pay for this :)
tpearl5
08-24-2014, 01:45 AM
This won't work if you have threads sorted by newest first. The mod (and the old one) do not handle this case. I guess the first post, which is actually the last post on the last page should be stuck on top?
ozzy47
08-24-2014, 08:27 AM
Yeah it would be possible to set it up that way I suppose.
tpearl5
08-24-2014, 01:54 PM
I know it's kind of bass ackwards but I found a case where it would be useful.
Limality
10-08-2014, 08:08 AM
Would it be hard to modify this Add-On to enable users to chose the option to have the first post appear on top while they're creating the thread?
Kind of like:
First post on top?: Y/N
ozzy47
10-08-2014, 09:04 AM
Yeah that would require a bit of doing.
Black Snow
10-14-2014, 03:58 PM
ozzy, your mod has this in it.
"; $forums = array(0 => $vbphrase['dbtech_act_all_forums']);
I doubt this is meant to be in here lol or is it there to work with DBTech mods too?
ozzy47
10-14-2014, 06:08 PM
That's what happens when you have written stuff for a different entity sometimes. :) I will fix it in the next version.
ozzy47
10-14-2014, 09:49 PM
v1.1.1 (October 14,2014)
Fixed a incorrect phrase in one of the settings.
BGN64
10-16-2014, 09:01 AM
Can it be made collapsible like on vb.org?
ozzy47
10-16-2014, 09:08 AM
I can look into it at some point.
tommyxv
11-27-2014, 10:14 PM
ozzy, i noticed that the 1st post on the first page is using my forum default postbit_legacy template even though I switch to the 'ozzmodz_firstpost_display_postbit' template and I am using the regular posbit template. That template only shows on the other pages, but not on page one.
The mod I was using before used whatever posit template I choose on all pages. Is this something that can be changed?
ozzy47
11-27-2014, 10:21 PM
No, this only changes the postbit on pages above #1, it is designed that way to make the post stand out from the replies on the page. I saw no need to do this on the first page, as it is the first post in the thread. :)
tommyxv
11-27-2014, 10:25 PM
I see. I use this for my vendors to post up sales, and being able to use the regular postibit allows them more width for pics and info. :(
ozzy47
11-27-2014, 10:31 PM
Well in that case you would need to edit one of the plugins for the mod.
Find the plugin Render The Postbit Template found under the group, [OzzModz] First Post On All Pages Per Thread/Forum
Then replace the contents of that with the following.
global $vbulletin;
if ($this->registry->options['ozzmodz_firstpost_display_active']AND is_member_of($vbulletin->userinfo, explode(',', $this->registry->options['ozzmodz_firstpost_display_groups'])))
{
$included_forums = explode(',', $this->registry->options['ozzmodz_firstpost_display_forums']);
$included_thread = explode(',', $this->registry->options['ozzmodz_firstpost_display_threads']);
if (THIS_SCRIPT != 'private')
{
//if($this->thread['firstpostid'] == $this->post['postid'] AND $vbulletin->GPC['pagenumber'] > 1 AND in_array($this->thread['threadid'], $included_thread))
if($this->thread['firstpostid'] == $this->post['postid'] AND in_array($this->thread['threadid'], $included_thread))
{
switch ($vbulletin->options['ozzmodz_firstpost_display_template'])
{
case 1: $this->templatename = 'postbit'; break;
case 2: $this->templatename = 'ozzmodz_firstpost_display_postbit'; break;
}
}
if($this->thread['firstpostid'] == $this->post['postid'] AND $vbulletin->GPC['pagenumber'] > 1 AND in_array($this->thread['forumid'], $included_forums))
{
switch ($vbulletin->options['ozzmodz_firstpost_display_template'])
{
case 1: $this->templatename = 'postbit'; break;
case 2: $this->templatename = 'ozzmodz_firstpost_display_postbit'; break;
}
}
}
}
tommyxv
11-27-2014, 11:17 PM
I tried it but it did not work. hmmmmm
ozzy47
11-27-2014, 11:25 PM
Then you must have something set wrong. I tested that and it is working as intended.
tommyxv
11-27-2014, 11:38 PM
I just copied and pasted it, replacing the contents. Save and reload. I'll try it again.
ozzy47
11-27-2014, 11:40 PM
By doing what I said, it should show up on the first page, if it is showing on all other pages.
tommyxv
11-29-2014, 10:31 PM
I tried it again, no luck. Does it have to be a new thread?
ozzy47
11-29-2014, 10:33 PM
Not if you set it up correctly, it should work on existing threads as well.
tommyxv
12-03-2014, 07:32 PM
I'm running 4.2.3 BETA 3, maybe that's why.
ozzy47
12-03-2014, 09:37 PM
I can't say if that's it or not, as I am not running a site on that version yet.
dny18
12-12-2014, 11:00 AM
Hi
I have vbulletin 4.2.2 and I have installed this mod, but not work. How i set a first post in a existing thread? Because I not see any options.
Thank you
ozzy47
12-12-2014, 11:09 AM
There is s option to set this on a forum level or by thread id's in the mod settings.
dny18
12-12-2014, 11:13 AM
Yes I try to set forum level and also the thread id, but I not see any option to set the first post.
Can you help me?
Thank you
ozzy47
12-12-2014, 11:16 AM
If you have it set by forum or thread, when you navigate to any page other than page one, the first post of the thread should be the first post displayed.
dny18
12-12-2014, 11:20 AM
Ok but in a existing thread with some messages, Can I set a specific message how first post?
ozzy47
12-12-2014, 11:30 AM
No, it is only the first post of the thread that will show as the first post on all pages. :)
dny18
12-12-2014, 11:51 AM
Ops, sorry and thank you for your time.
ozzy47
12-12-2014, 11:52 AM
Not a problem. :)
Alan_SP
12-12-2014, 10:22 PM
There is s option to set this on a forum level or by thread id's in the mod settings.
Just to ask and if there was already this feature request, ignore.
Could you make it that we can select first post visible on all pages from front end, for example admin tools, or inline moderation options?
It would be much easier and all moderators then would be able to use this mod without admin assistance.
ozzy47
12-12-2014, 10:27 PM
Ummm, that may be possible, but it would require a bit of work, as I would need to store the info into the DB, instead of a setting in the ACP.
Alan_SP
12-13-2014, 01:31 AM
OK, see if you can work something out. :up:
And, you know why I can't like your posts at the moment. :(
tommyxv
12-20-2014, 11:30 PM
Noticed when you edit the first post and save it from another page, it goes back to the non-ciustom template until you refresh the page. Any way to fix that?
I still can't get the custom template to show as the original first post with the edit in post #82. :(
ozzy47
12-20-2014, 11:36 PM
Noticed when you edit the first post and save it from another page, it goes back to the non-ciustom template until you refresh the page. Any way to fix that?
Nope, as that would require some sort of ajax, and the time needed to code that in, is not worth the payoff for something only you see, as you were the one who edited it. :)
I still can't get the custom template to show as the original first post with the edit in post #82. :(
Not sure why, but I can look into it if I get some free time, as I am a bit backlogged at the moment.
Fields
12-21-2014, 09:32 AM
Another great mod, thanks for your work ozzy :)
5 stars and MOTM!
ozzy47
12-21-2014, 09:33 AM
Thanks, glad you like it, and thanks for marking as installed. :)
Marcin_J_
01-10-2015, 12:01 PM
I'm running 4.2.3 BETA 3, maybe that's why.
Try this:
global $vbulletin;
if ($this->registry->options['ozzmodz_firstpost_display_active']AND is_member_of($vbulletin->userinfo, explode(',', $this->registry->options['ozzmodz_firstpost_display_groups'])))
{
$included_forums = explode(',', $this->registry->options['ozzmodz_firstpost_display_forums']);
$included_thread = explode(',', $this->registry->options['ozzmodz_firstpost_display_threads']);
if (THIS_SCRIPT != 'private')
{
if($this->thread['firstpostid'] == $this->post['postid'] AND in_array($this->thread['threadid'], $included_thread))
{
switch ($vbulletin->options['ozzmodz_firstpost_display_template'])
{
case 1: $this->templatename = 'postbit'; break;
case 2: $this->templatename = 'ozzmodz_firstpost_display_postbit'; break;
}
}
if($this->thread['firstpostid'] == $this->post['postid'] AND in_array($this->thread['forumid'], $included_forums))
{
switch ($vbulletin->options['ozzmodz_firstpost_display_template'])
{
case 1: $this->templatename = 'postbit'; break;
case 2: $this->templatename = 'ozzmodz_firstpost_display_postbit'; break;
}
}
}
}
ozzy47
01-10-2015, 12:50 PM
We already tried that in this post, https://vborg.vbsupport.ru/showpost.php?p=2524558&postcount=82
tommyxv
01-12-2015, 02:28 AM
How can I get the custom FP template to pick up the css from DBTech's likes? I have the likes cloud below signatures. The font is bigger for the names who liked the post.
Marcin_J_
01-14-2015, 08:10 PM
We already tried that in this post, https://vborg.vbsupport.ru/showpost.php?p=2524558&postcount=82
This is the code from the post
https://vborg.vbsupport.ru/showpost.php?p=2524558&postcount=82 :
global $vbulletin;
if ($this->registry->options['ozzmodz_firstpost_display_active']AND is_member_of($vbulletin->userinfo, explode(',', $this->registry->options['ozzmodz_firstpost_display_groups'])))
{
$included_forums = explode(',', $this->registry->options['ozzmodz_firstpost_display_forums']);
$included_thread = explode(',', $this->registry->options['ozzmodz_firstpost_display_threads']);
if (THIS_SCRIPT != 'private')
{
//if($this->thread['firstpostid'] == $this->post['postid'] AND $vbulletin->GPC['pagenumber'] > 1 AND in_array($this->thread['threadid'], $included_thread))
if($this->thread['firstpostid'] == $this->post['postid'] AND in_array($this->thread['threadid'], $included_thread))
{
switch ($vbulletin->options['ozzmodz_firstpost_display_template'])
{
case 1: $this->templatename = 'postbit'; break;
case 2: $this->templatename = 'ozzmodz_firstpost_display_postbit'; break;
}
}
if($this->thread['firstpostid'] == $this->post['postid'] AND $vbulletin->GPC['pagenumber'] > 1 AND in_array($this->thread['forumid'], $included_forums))
{
switch ($vbulletin->options['ozzmodz_firstpost_display_template'])
{
case 1: $this->templatename = 'postbit'; break;
case 2: $this->templatename = 'ozzmodz_firstpost_display_postbit'; break;
}
}
}
}
I improved bold part
From
if($this->thread['firstpostid'] == $this->post['postid'] AND $vbulletin->GPC['pagenumber'] > 1 AND in_array($this->thread['forumid'], $included_forums))
To:
if($this->thread['firstpostid'] == $this->post['postid'] AND in_array($this->thread['forumid'], $included_forums))
After this intervention everything works perfectly :)
tommythejoat
02-08-2015, 05:10 PM
I was hoping to use this for threads where the first post needs to be at the top even though the user has asked to display the threads as newest first.
I thought that might happen as a side effect of the implementation, but it does not. Would it be a big deal to offer that as an option.
I cannot persuade my users to make effective use of blogs, so we are ending up with feature discussions that start with a tutorial (that should be a blog or article) and then have a series of questions and comments.
tommythejoat
02-08-2015, 07:41 PM
I enabled the custom postbit and it is functioning but has a problem with the tools in the bottom border of the post for infractions, promotions, edit, etc. That are now badly formed and several unlabeled. I was just going to drop all that in the repeated first post, but commenting out all the red flag, etc. code had no effect.
Any guidance would be appreciated. I am using a copy of postbit legacy.
mykkal
02-27-2015, 08:44 PM
Using vb 4.2.3 with php 5.5.Plugin installed fine but I can't get any of the settings to save. Whenever I try selecting a forum to show "first post" and click save it reports that it saved successfully and then reloads the page. Then when I look "none" is selected.
Any Ideas?
ozzy47
02-27-2015, 08:45 PM
Not a clue, I have not tried it on 4.2.3 yet, but I doubt that would cause any issues.
mykkal
02-27-2015, 09:13 PM
Not a clue, I have not tried it on 4.2.3 yet, but I doubt that would cause any issues.
I have 4.2.3. Could you take a look at my installation and help me to resolve any conflicts? I'd love to have this plugin running. It's a big part of what certain forums need.
ozzy47
02-27-2015, 09:17 PM
If you PM me a admin account, I can try and take a look a bit later, if not tomorrow.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.