The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[OzzModz] First Post On All Pages Per Thread/Forum Details »» | |||||||||||||||||||||||||||
[OzzModz] First Post On All Pages Per Thread/Forum
Developer Last Online: Dec 2021
Another mod brought to you by,
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
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, Code:
<div class="postbody"> Code:
<div class="postbody" style="background: darkgrey;"> ------------------------------------------------------------------------------------------- If you like this mod please hit the button to the right ----> Please remember to click the, 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. Show Your Support
|
5 благодарности(ей) от: | ||
Arianismmm, eTiKeT?, goxy63, mariannet, tbworld |
Comments |
#102
|
||||
|
||||
OK, see if you can work something out. :up:
And, you know why I can't like your posts at the moment. |
#103
|
|||
|
|||
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. |
#104
|
||||
|
||||
Quote:
Not sure why, but I can look into it if I get some free time, as I am a bit backlogged at the moment. |
#106
|
||||
|
||||
Thanks, glad you like it, and thanks for marking as installed.
|
#107
|
|||
|
|||
Try this:
PHP Code:
|
#108
|
||||
|
||||
We already tried that in this post, https://vborg.vbsupport.ru/showpost....8&postcount=82
|
#109
|
|||
|
|||
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.
|
#110
|
|||
|
|||
Quote:
https://vborg.vbsupport.ru/showpost....8&postcount=82 : Code:
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 Code:
if($this->thread['firstpostid'] == $this->post['postid'] AND $vbulletin->GPC['pagenumber'] > 1 AND in_array($this->thread['forumid'], $included_forums)) Code:
if($this->thread['firstpostid'] == $this->post['postid'] AND in_array($this->thread['forumid'], $included_forums)) After this intervention everything works perfectly |
#111
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|