vb.org Archive

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

sinucello 05-07-2008 11:25 PM

Hi,
Quote:

Originally Posted by Vtec44 (Post 1511037)

Code:

<option value="1">Postbit Article</option>
<option value="2">Postbit Legacy</option>
<option value="3">Postbit Flipped</option>
<option value="4">Postbit Normal</option>


really great add-on. Could you please phrase the template selection mentioned above?

thank you - all the best,
Sacha

D.Ilyin 05-08-2008 06:01 AM

Thanks!
Installed and nominated! But.... needs improvments :).

1. Phrase all templates
2. Forum options:
a) enable FPOAP: yes\no
b) default template: Postbit Normal\Postbit Article\Postbit Legacy\Postbit Flipped
c) enable user change default template: yes\no
d) enable usergroup permisions override forum first post default template settings
3. User group permisions:
a) enable user change default first post template: yes\no

Please! :)

jluerken 05-08-2008 11:02 AM

Hi,

1. Is it possible that only defined usergroups are allowed to change the postbit type?
2. It would be nice to be able to set the postbit default tpye for every single forum. Can this be done?

/jluerken

semauae 05-08-2008 12:15 PM

For me the 4 types are same

when I changed, I don't find any differences

maf1973 05-08-2008 07:36 PM

It is possible to disable the Thread Type Setting ?

arena 05-08-2008 08:43 PM

Thanks....

Usta bunun Türkçe versiyonunuda yüklersen çok makbule geçecek..

Çalışmalarında başarılar diliyorum...

Saygılar

maf1973 05-08-2008 09:13 PM

I used the following modification to only allow usergroup 6 to choose the Thread type.
Thanks Spermy

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.


urdu 05-08-2008 09:25 PM

Quote:

Originally Posted by D.Ilyin (Post 1512380)
Thanks!
Installed and nominated! But.... needs improvments :).

1. Phrase all templates
2. Forum options:
a) enable FPOAP: yes\no
b) default template: Postbit Normal\Postbit Article\Postbit Legacy\Postbit Flipped
c) enable user change default template: yes\no
3. User group otions:
a) enable user change default first post template: yes\no

Please! :)

Quote:

Originally Posted by jluerken (Post 1512573)
Hi,

1. Is it possible that only defined usergroups are allowed to change the postbit type?
2. It would be nice to be able to set the postbit default tpye for every single forum. Can this be done?

/jluerken

i am also want as you suggestion ;)

Animparadise 05-09-2008 12:18 PM

i installed this version, it make first post chief but still using old postbit_lagency (old threads) but in new threads its working fine, how to solve this problem?

comment: i used this hack beforce but for some problems (here : https://vborg.vbsupport.ru/showpost....&postcount=190) removed this hack.

MissKalunji 05-09-2008 12:25 PM

you need to edit forum settings in admincp to tick if you want chief first post to be applied


All times are GMT. The time now is 02:25 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.01072 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
  • (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