Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[OzzModz] First Post On All Pages Per Thread/Forum Details »»
[OzzModz] First Post On All Pages Per Thread/Forum
Version: 1.1.1, by ozzy47 ozzy47 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 12-26-2013 Last Update: 10-13-2014 Installs: 69
Uses Plugins Template Edits Auto-Templates
Translations  
No support by the author.

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
  • 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,
Code:
<div class="postbody">
and change it to this,
Code:
<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 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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
5 благодарности(ей) от:
Arianismmm, eTiKeT?, goxy63, mariannet, tbworld

Comments
  #82  
Old 11-27-2014, 10:25 PM
tommyxv tommyxv is offline
 
Join Date: Feb 2005
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #83  
Old 11-27-2014, 10:31 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

PHP Code:
global $vbulletin;

if (
$this->registry->options['ozzmodz_firstpost_display_active']AND is_member_of($vbulletin->userinfoexplode(','$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'] > 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;
            } 
        }        
    }

Reply With Quote
  #84  
Old 11-27-2014, 11:17 PM
tommyxv tommyxv is offline
 
Join Date: Feb 2005
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried it but it did not work. hmmmmm
Reply With Quote
  #85  
Old 11-27-2014, 11:25 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then you must have something set wrong. I tested that and it is working as intended.
Reply With Quote
  #86  
Old 11-27-2014, 11:38 PM
tommyxv tommyxv is offline
 
Join Date: Feb 2005
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just copied and pasted it, replacing the contents. Save and reload. I'll try it again.
Reply With Quote
  #87  
Old 11-27-2014, 11:40 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By doing what I said, it should show up on the first page, if it is showing on all other pages.
Reply With Quote
  #88  
Old 11-29-2014, 10:31 PM
tommyxv tommyxv is offline
 
Join Date: Feb 2005
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried it again, no luck. Does it have to be a new thread?
Reply With Quote
  #89  
Old 11-29-2014, 10:33 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not if you set it up correctly, it should work on existing threads as well.
Reply With Quote
  #90  
Old 12-03-2014, 07:32 PM
tommyxv tommyxv is offline
 
Join Date: Feb 2005
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm running 4.2.3 BETA 3, maybe that's why.
Reply With Quote
  #91  
Old 12-03-2014, 09:37 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't say if that's it or not, as I am not running a site on that version yet.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11952 seconds
  • Memory Usage 2,338KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (5)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete