vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Chief First Post - Every Page - 3.6.x (https://vborg.vbsupport.ru/showthread.php?t=156141)

memorex 08-24-2007 05:13 PM

kinda like vb.org as in the first post will show on all pages after the first page. So the original post that started the thread will be seen first on page 6, 7, 8, .. etc ...

I notice the first post also changes to article by default?

kambiz 08-24-2007 05:36 PM

wow. I'm using the 3.5.X version right now. I'll switch to this asap!

beduino 08-24-2007 06:18 PM

Installed of course :D
But ... i understand show first post in every page ... ok.
However if you have examples to flipped postbit ... I appreciate.
Tks Atakan !
Joao Barroca
aka beduino

Kirk Y 08-24-2007 07:22 PM

Very nice Atakan. I was wondering when someone would copy the vB.org release postbit.

Some suggestions:
Implement Usergroup Permissions so Administrators can restrict the ability to choose the Thread Type.

Set the Normal Postbit as default - it's a little annoying to have to select it each time you create a thread.

When you edit a thread, the Thread Type isn't set to the Thread's current Thread Type - you might want to fix this.

BuRaCh 08-24-2007 07:40 PM

very lol atakan :D
superb working;)
installed..

egyptsons 08-24-2007 10:40 PM

would you please give us some description for this MOD
I didn't get the idea even from the Screen Shoot :rolleyes:

maroceve 08-24-2007 11:45 PM

Is there a way to have it use the basic postbit by default cause it uses the articles one and it's not very pretty on my forums :( and having to change the postbit thread by thread is kind of a boring task :(

Kihon Kata 08-25-2007 03:13 AM

what is this?

kambiz 08-25-2007 04:31 AM

Quote:

Originally Posted by egyptsons (Post 1325086)
would you please give us some description for this MOD
I didn't get the idea even from the Screen Shoot :rolleyes:

Quote:

Originally Posted by Kihon Kata (Post 1325179)
what is this?

It shows the first post on every page (like ypu can see in vb.org) plus some features (e. 4 types for postbit).

Spermy 08-25-2007 04:53 AM

Hope this helps for the postbit problems. I use legacy so this is what I did.

1. In the postbit_select template

Default
Code:

<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td>
$vbphrase[cp_ttype]:<br />
<select name="ttype" tabindex="1">
<option value="1">Postbit Article</option>
<option value="2">Postbit Flipped</option>
<option value="3">Postbit Normal</option>
<option value="4">Postbit Legacy</option>
</select>
</td>
</tr>
</table>

Change to
Code:

<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td>
$vbphrase[cp_ttype]:<br />
<select name="ttype" tabindex="1">
<option value="1">Postbit Legacy</option>
<option value="2">Postbit Flipped</option>
<option value="3">Postbit Normal</option>
<option value="4">Postbit Article</option>
</select>
</td>
</tr>
</table>

2. In Chief Post - Postbit Display Complete Plugin

Default
Code:

if ($this->forum['chiefpost']==1 AND $post['postid']==$this->thread['firstpostid'])
{
switch ($this->thread['ttype'])
{
case 1:
$this->templatename = 'postbit_articles';
break;
case 2:
$this->templatename = 'postbit_flipped';
break;
case 3:
$this->templatename = 'postbit';
break;
case 4:
$this->templatename = 'postbit_legacy';
break;
default:
$this->templatename = 'postbit_articles';
break;
}
}

Change to
Code:

if ($this->forum['chiefpost']==1 AND $post['postid']==$this->thread['firstpostid'])
{
switch ($this->thread['ttype'])
{
case 1:
$this->templatename = 'postbit_legacy';
break;
case 2:
$this->templatename = 'postbit_flipped';
break;
case 3:
$this->templatename = 'postbit';
break;
case 4:
$this->templatename = 'postbit_articles';
break;
default:
$this->templatename = 'postbit_legacy';
break;
}
}

And i added <if condition="is_member_of($bbuserinfo, 6)"> at the begining In the postbit_select template and </if> at the end so only Admins can use this.


All times are GMT. The time now is 04:17 AM.

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.01359 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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