vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Plugin added copyright notice to $cronimage (https://vborg.vbsupport.ru/showthread.php?t=183927)

D.Baker 06-30-2008 12:48 AM

Plugin added copyright notice to $cronimage
 
Hey guys,
I installed a bad plugin that shows a copyright notice when $cronimage is called. I've uninstalled the plugin and it is still there. I've looked around in the phrases, database and templates and can't figure out how to remove it.

I found this code in it's install XML if that helps:
Code:

';
                $vbulletin->templatecache['footer'] = str_replace($str_ga,$str_ga.addslashes($vbulletin->options['advert_ga']),$vbulletin->templatecache['footer']);
        }
       
        $advert_copyright = '<div class=\"smallfont\" style=\"text-align:center;\">PluginName By <a href=\"http://www.domainname.com\">&nbsp; XYZ</a></div>';
        $str_copy = '$cronimage
        <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->';
        $vbulletin->templatecache['footer'] = str_replace($str_copy,$str_copy.$advert_copyright,$vbulletin->templatecache['footer']);

Any ideas on how I could remove this?

Thanks.

ssslippy 06-30-2008 04:47 AM

that is the code that is adding it

Marco van Herwaarden 06-30-2008 09:13 AM

If you have questions/problems with a modification or style, then please post in the thread (or support forum/board) about that modification/style. Best chance to receive a reply from either the author or another member using the same modification/style.

D.Baker 06-30-2008 02:34 PM

I've tried asking the mod dev, but have got no help from him (he probably thinks I'm trying to remove his copyright). Is it possible to tell where the HTML was added to?

Opserty 06-30-2008 07:44 PM

The footer template?

(But this looks more like a run-time edit i.e. its added when the PHP code is executed...)

D.Baker 06-30-2008 10:50 PM

No its not in the footer template. The only way Ive figured out how to remove it is by removing the $cronimage call in the the footer template. But obviously I can't do that. It's a strange thing.

Opserty 06-30-2008 10:57 PM

Follow these instructions: Help! I've broken my board!

Does the copyright still appear?

Dismounted 07-01-2008 07:12 AM

Open the footer template, then save it again. It may be that it has been stored in the cache. Re-saving it should fix this if it is the case.

Marco van Herwaarden 07-01-2008 09:10 AM

Most likely Opserty already gave the correct answer in post #5

D.Baker 07-02-2008 04:24 AM

Thanks for the help guys, but none of those suggestions worked. The only way I can get it to go away is to remove code "$cronimage" from the footer. Then it doesn't show up, but obviously I can't leave it that way.

Re-saving the footer doesn't change it. I tried searching through my DB using PHPmyAdmin but I'm not sure what I'm doing enough to mess with that.

If I disable my plugins using the code "define('DISABLE_HOOKS', true);" then it disappears.

I've searched my phrases and templates and there is nothing that matches the website address he has used. It's weird.

Opserty 07-02-2008 06:21 AM

Quote:

If I disable my plugins using the code "define('DISABLE_HOOKS', true);" then it disappears.
There is the important line! Did that not work? :p

(Remove that line if you haven't already done so).

So, now go through the Plugins in your Plugin manager (the ones related to this product) and disable them one by one till the copyright disappears. You seem to have found the problem in the XML (and when the xml file is imported this data is then stored in the Plugin Manager) so I'm not quite sure why you haven't figure this out so far.

P.S. From the XML file you should be able to find the Plugin name (it will be near the piece of code you posted in your original post). Else if you can find it just follow the instructions in the previous paragraph.

D.Baker 07-06-2008 01:59 AM

Thanks Opserty! I found it in Plugin Manager like you said. Awesome!


All times are GMT. The time now is 05:49 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.01054 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete