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)

xandizitxu 09-22-2007 07:59 PM

ANYONE CAN HELP SETTING GLOBAL VARS ON Chief? I think it disables all my mods made to article.

Edward S 09-22-2007 09:01 PM

I installed it..
didn't see a difference... uninstalled it.. nuff said.

Doctor Death 09-23-2007 12:05 AM

Quote:

Originally Posted by Edward S (Post 1344812)
I installed it..
didn't see a difference... uninstalled it.. nuff said.

You didnt enable it in forum manager. Works good.

I also changed to postbit default and also put in the Admin-only IF statement.

Illustrious 09-24-2007 04:58 AM

Hm, you should set it so that it retains it's choice when you move the thread to another forum where chief posts are enabled.

elmati 09-24-2007 01:23 PM

Quote:

Originally Posted by elmati (Post 1336870)
is there a way to select one type per forum
i mean:
forum_1 -> Article_tpl
forum_2 -> Legacy_tpl

apply style to forum and not select...

Btw excelente hack!

*installed

i done this using conditionals...
Love this hack!

mvigod 09-24-2007 02:55 PM

Anyone aware of an if condition that would allow only a usergroup to lock the first post instead of it globably applying to the entire forum?

rapidphim 09-24-2007 11:43 PM

Quote:

Originally Posted by Spermy (Post 1331163)
For those that want just postbit for default.


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 Normal</option>
<option value="2">Postbit Flipped</option>
<option value="3">Postbit Article</option>
<option value="4">Postbit Legacy</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';
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.

Hope this helps you guys using normal postbit.

How are you going to assign other groups, beside admin, to use the feature?

m2006 09-25-2007 02:39 PM

Thank you very much.

rapidphim 09-25-2007 02:51 PM

On top of my question on how to allow any other group (s.mod, mod, etc...) to use this feature beside admin, I have another questions to ask experts here how to fix after I installed this mod.

Please see the screenshot. Thanks!

mvigod 09-25-2007 02:58 PM

Quote:

Originally Posted by rapidphim (Post 1346414)
How are you going to assign other groups, beside admin, to use the feature?

For other usergroups, just add their usergroup id to the if condition:
=
Code:

<if condition="is_member_of($bbuserinfo, 6,5,7)">


All times are GMT. The time now is 09:33 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.01198 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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