vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - [OzzModz] First Post On All Pages Per Thread/Forum (https://vborg.vbsupport.ru/showthread.php?t=306348)

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.

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;
            } 
        }        
    }



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.


All times are GMT. The time now is 01:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01185 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete