vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   make a plugin to disable subscription and delete some style parts (https://vborg.vbsupport.ru/showthread.php?t=252247)

cloferba 10-18-2010 04:41 PM

make a plugin to disable subscription and delete some style parts
 
hello!

every time i update my vbulletin, i get angry because i want to delete subscription, attachment and other options when i create a thread..

so..i have to delete those parts of my skin....but every time i update vbulletin, the vbulletin admin panel ask me to rebuild some parts of my skin

i hated it! i want to definitivily delete those options and dont be asked again by the adminpanel to rebuild

what do i need to do? make a plugin to delete all time those parts of my skin?

Lynne 10-18-2010 05:12 PM

Do you mean get rid of all additional options? You can just set $show['additional_options'] to false in newthread_form_complete. I don't know how well that would work - what it would do as far as the options you were supposed to pick. But, you can try it on your test site.

cloferba 10-19-2010 01:14 PM

which is the syntaxis?
so i can write at the top of newthread something like
['attachment_options'] = false
['subscription_options'] = false
['PostingPermissions_options'] = false

is that?

Lynne 10-19-2010 02:01 PM

No.

If you look at the newthread template, there is a condition around all the additional options:
HTML Code:

    <vb:if condition="$show['additional_options']">
    <h3 class="blockhead">{vb:rawphrase additional_options}</h3>
a whole bunch of stuff....

        </vb:if>

So, if you write a plugin that sets $show['additional_options'] to false, then none of the additional options will be shown. Go look and you'll see what I mean.

cloferba 10-19-2010 03:11 PM

thanks lynne...i now understand what are you saying,
but i have not idea which is the correct parameter i have to write in the plugin to set additional options to false

i mean, im a noob programming, and i dont know the basic structure, also in vbulletin help there is no help about basic structure to set off a variable

Lynne 10-19-2010 07:32 PM

All you need to do in the plugin is literally set it to false:
PHP Code:

$show['additional_options']=false

I'd try the newthread_form_complete hook location.

cloferba 10-20-2010 12:54 AM

thanks! it worked!...

and to disable Posting Permissions information when you create or reply a thread?

Lynne 10-20-2010 03:28 AM

That has it's own template, forumrules. If you look at the top there, there is a condition. Just add in the condition to not include it for the newthread or newreply page.

cloferba 10-20-2010 05:32 PM

the only related thing i could find in showthread for example, is
Code:

<div id="posting_rules" class="thread_info_block">
                       
{vb:raw forumrules}

</div>

so..it should be something like
Code:

{vb:raw forumrules}=false
?

Lynne 10-20-2010 05:42 PM

I said it was in the template called forumrules. There is a condition at the top of it. You can add to that condition.


All times are GMT. The time now is 02:39 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.01412 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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