vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   how to remove "promote to article" on post (https://vborg.vbsupport.ru/showthread.php?t=316216)

CarpCharacin 12-26-2014 02:34 AM

how to remove "promote to article" on post
 
i disabled the cms in the plugin manager. It is still showing up "promote to article" on the posts and when i click on my username in the posts it pops up a little menu and n that menu it has an option to view the articles have made.

Fields 12-26-2014 08:06 AM

Open up your style manager and choose "Edit Templates", now open up your postbit_legacy template and search for:

PHP Code:

<vb:if condition="$promote_sectionid AND $promote_sectionid != -1">
      <
a href="{vb:raw promote_url}" class="promotecms">{vb:rawphrase promote_to_article}</a>
                                                       <
span class="seperator">&nbsp;</span>
</
vb:if> 

Delete those lines and you're done.

ozzy47 12-26-2014 09:43 AM

That should not be showing. How is it exactly that you disabled it?

HM666 12-26-2014 09:54 AM

Quote:

Originally Posted by ozzy47 (Post 2528846)
That should not be showing. How is it exactly that you disabled it?

Yeah I was thinking the same thing...so I'm not crazy lol. I went and looked it up on google and could not find an answer. I could have sworn that it automatically stopped showing when you actually disabled it.

It could be though the option is still enabled for admins but others do not see that link, maybe that is what is happening.

ozzy47 12-26-2014 09:58 AM

No, it should not even be available to admins. If the OP disabled it correctly, the only way those links would show up is if their is a missing conditional in the templates, or there is a mod over riding the condition.

HM666 12-26-2014 09:59 AM

Ah ok that is what I thought. Well I'm glad that I'm not losing my mind lol.

ozzy47 12-26-2014 10:41 AM

I would check the following.

Have you tried on a unmodified default style?
Have you tried with all mods disabled?
What vB version and PHP version are you running?

To temporarily disable all mods, edit includes/config.php file and add this line right under <?php add the following.
PHP Code:

 define('DISABLE_HOOKS'true); 

So it looks like this:
PHP Code:

 <?php
define
('DISABLE_HOOKS'true);
/*=================================================  =====================*\
|| ##################################################  ################## ||
|| # vBulletin 4.2.2

Use notepad++ to edit any files.

CarpCharacin 12-26-2014 10:15 PM

i disabled it using the plugin manager. I unchecked all of the cms plugins.

Zachery 12-26-2014 10:53 PM

You need to disable the CMS product, not disable its hooks/plugins.

ozzy47 12-26-2014 11:04 PM

Zachary is correct, you should disable it that way. :)


All times are GMT. The time now is 02:32 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.01453 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_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