News:

Join the Facebook Fan Page.

Main Menu

Footer Question

Started by FrizzleFried, May 27, 2022, 01:12:51 PM

Previous topic - Next topic

FrizzleFried

Right when I installed 2.1.1 ...one of the first few mods I installed was a commercial mod that did not work.  It was exceptionally buggy.  When I asked the developer about it he offered me my money back... miffed a little I took my money back and uninstalled his mod.

Flash forward a while...probably over a month or two later... and I realized that mod left it's copyright in my footer!  The mod was uninstalled... and a different mod doing the same chore has been installed in it's place and yeah,  the old/uninstalled/deleted mod's copyright is still there.

I asked the developer of the mod about it and his response was to re-install the mod and then re-uninstalled.  Due to the buggyness of the mod (in the form I have it) I am not interested in doing that.

What options do I have?  Is there a way to manually go in and remove that copyright/link?

Sir Osis of Liver

It's usually (not always) added to template_body_below() in index.template.php, just find 'copyright'.
When in Emor, do as the Snamors.
                              - D. Lister

Doug Heffernan

Quote from: FrizzleFried on May 27, 2022, 01:12:51 PMWhat options do I have?  Is there a way to manually go in and remove that copyright/link?

Look at the code of the mod. If it is added manually, then the right place to look for it is mentioned above by @Sir Osis of Liver. If the mod author has added the copyright through a hook instead, take a look at the function for the 'integrate_buffer' hook. Hope it helps.

FrizzleFried

Back to this.  Failed to find anything related to SMF packs in the code mentioned by Sir Osis... the only code in the section indicated is:

// Show the footer with copyright, terms and help links.
echo '
<div id="footer">
<div class="inner_wrap">';

I also checked hooks and find nothing indicating any kind of footer... I see where the Tiny Portal hook may be... but again,  nothing to do with SMFPacks Reactions mod.  The SMFPacks AutoEmbed mod is there... but it doesn't look like that's for the copyright?   Could that be it being the autoembed copyright isn't showing (I guess it probably should?)... what happens when I click on the green icon?  It gives me a warning asking if I really want to do that action, but I am not sure what "that action" is...

:D


integrate_buffer Function: CustomGreeting::buffer
Included file: $sourcedir/CustomGreeting.php ./Sources/CustomGreeting.php
integrate_buffer TinyPortal\Integrate::hookBuffer
integrate_buffer adi_integrate_buffer ./Sources/AvatarsDisplayIntegration.php
integrate_buffer media_embedder_rewrite_buffer ./Sources/MediaEmbedder/MediaEmbedder.php


Doug Heffernan

Quote from: FrizzleFried on June 07, 2022, 10:12:13 AMintegrate_buffer   Function: CustomGreeting::buffer

Check the code for the buffer() function.

The rest of the functions for the integrate_buffer hook are to integrate other custom mods.

FrizzleFried

#5
Well now poop... I clicked the green button next to that hook and it made a yellow one below it.  I clicked the yellow icon below and now:

This page isn't workingw ww.aha-forums.com is currently unable to handle this request.
HTTP ERROR 500

That is what I am getting.

HELP!  What did I do!

Damnit... this is my live site.  How in the heck did I take my entire site down by clicking that NAMELESS little yellow icon?!?

This is in my server log...

#1 {main}
  thrown in /home/ahaforum/public_html/Sources/CustomGreeting.php on line 55
[07-Jun-2022 08:31:28 America/Denver] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /home/ahaforum/public_html/Sources/CustomGreeting.php:55
Stack trace:
#0 [internal function]: CustomGreeting::buffer('\n\t\t<div class="...', 9)

Yeah... how do I fix that without being able to get in to the forum?

>sigh<

.... the emailed reports of the site down are trickling in.

I'm about to go to work where I am on deadline and won't be able to even address the issue likely for 9 hours.

This is bad.

Got site back up by changing name of CUSTOMGREETING.PHP ... i'm getting a ton of errors now... but at least the site it back up.  Lets see what I can do from here... I have 15 minutes.

EDIT: Attempting to uninstall did not work.  I get the 500 error as I am guessing it's attempting to access the file I just renamed.  Lets try to work with the hooks again.

Yeah... I can't do anything.  I can't re-enable the hook without changing the name back to the original name.  Doing that then brings up the 500 error and won't enable the hook.  It's a ******-show for sure...

I am guessing at this point i have to completely uninstall the mod manually via Cpanel.

I'm acquiring dozens of errors every minute too.

Any suggestions before I move forward?

BTW... that custom greeting mod has nothing to do with the stupid footer message from SMFPACKS that is stuck down there either...

:-\

OK... figured it out.  Removed the hooks completely... then uninstalled... then manually uninstalled the single file I changed the name of.  I then re-installed and all is golden again.

Someone really should put some indication of what could happen if you click those stupid icons in the hooks section of the forum.  Really.  Clicking on them brings up an ARE YOU SURE box but that's about ad descriptive as the good ole blue screen of death. 

...oh,  and I am still in the same place I was before all this.  No idea how to remove that darned SMFPACKS copyright that is stuck there.

:o

Serial posts merged again.  Please refrain from serial posting and use the modify button - Iris.

Oldiesmann

Hard to say on that one. You'd have to ask Nibogo about that.
Michael Eshom
Christian Metal Fans

FrizzleFried

His reply: Re-install the NON-WORKING mod and then UNINSTALL it again.  Not acceptable as I had problems with installing it to begin with which is why he ended up refunding my money for the mod. 

I'm not going to install a broken mod in an attempt to remove the copyright it left behind to begin with.  Seems absurd.


Arantor

With Nibogo I wouldn't be surprised if the media mod has the wrong copyright in the footer. Wouldn't be the first time.
Holder of controversial views, all of which my own.


FrizzleFried

Considering the media mod DOESN'T have a copyright showing... you're probably right.   I've been poking around looking in that mods code too but damnit,  you guys make it a real pain in the arce to find that footer code.


Arantor

That's the downside of hooks, it's like Super Mario: the princess changes are always in another castle.

I will say though I often wished more mods skipped the copyright notice thing. Neither SimpleDesk or LevGal - easily amongst the largest mods SMF has to offer - just skipped that, and no other mod I wrote had it either.
Holder of controversial views, all of which my own.


Doug Heffernan

Quote from: FrizzleFried on June 07, 2022, 10:55:24 AM...oh,  and I am still in the same place I was before all this.  No idea how to remove that darned SMFPACKS copyright that is stuck there.

 :o

Can you run this query in yor pma?

SELECT value from smf_settings WHERE variable = 'integrate_buffer';

live627

Quote from: FrizzleFried on June 07, 2022, 10:55:24 AM...oh,  and I am still in the same place I was before all this.  No idea how to remove that darned SMFPACKS copyright that is stuck there.

 :o
Can you  send me the mod via a PM so that I can find out exactly what to remove?

Quote from: FrizzleFried on May 27, 2022, 01:12:51 PMI asked the developer of the mod about it and his response was to re-install the mod and then re-uninstalled.
That won't work because it'll add and then remove hooks or file edits, the edits or hooks in error will stay, probably as you might guess.

FrizzleFried

#13
Thanks to a pro-tip given by someone who wishes to remain anonymous,  it's been determined that this mods author uses ROT13 encoding for his copyright messages.  Oddly... due to his insistence on NOT telling me specifically how to handle this issue here we are.

Quote from: live627 on June 08, 2022, 01:04:23 AM
Quote from: FrizzleFried on June 07, 2022, 10:55:24 AM...oh,  and I am still in the same place I was before all this.  No idea how to remove that darned SMFPACKS copyright that is stuck there.

 :o
Can you  send me the mod via a PM so that I can find out exactly what to remove?

Quote from: FrizzleFried on May 27, 2022, 01:12:51 PMI asked the developer of the mod about it and his response was to re-install the mod and then re-uninstalled.
That won't work because it'll add and then remove hooks or file edits, the edits or hooks in error will stay, probably as you might guess.

Thanks for the offer.  I think I am on track... Nibogo uses ROT13 encoding for his copyright message...

His code:

eval(str_rot13('tybony $jroznfgre_rznvy; svyr_trg_pbagragf(\'uggcf://jjj.fzscnpxf.pbz/pbaarpg/vaqrk.cuc?j=\'; . heyrapbqr($jroznfgre_rznvy) . \'&&q=\' . $_FREIRE[\'FREIRE_ANZR\'] . \'&&y=QS35J2GD\');'));

Run that through  http://rot13-encoder-decoder.waraxe.us/ and you get...

riny(fge_ebg13('global $webmaster_email; file_get_contents('https://www.smfpacks.com/connect/index.php?w='; . urlencode($webmaster_email) . '&&d=' . $_SERVER['SERVER_NAME'] . '&&l=DF35W2TQ');'));

Now,  to figure our how and where in the hell that information can be found on my server so I can get rid of it.

Arantor

He still does that? I haven't looked at his mods in years but from what I remembers that's part of the phone home on installation to note where a mod has been installed (so that if a mod has been shared, he'll know about it)

But that wouldn't on its own put anything in the footer. You're either going to be looking for an edit to Subs.php in obExit(), an edit to QueryString.php in obsessrewrite(), or a hook but I think we largely eliminated the hook deal unless the media embedder happens to also report itself incorrectly.
Holder of controversial views, all of which my own.


FrizzleFried

I'll keep poking around when I have a little time to do so.  Being the media embedder does NOT have a copyright link I am guessing that is where the issue is (as it is supposed to).  I've PMed Nibogo asking for help (again).  Explained that the link is fine... it's supposed to be there... I just need to swap out Reactions Mod with "Media Embedding Mod". 

See... I am using a competitors Reactions mod and it's uncool to that person to have that bogus copyright down at the bottom. 


Antechinus

Ok, here's an idea: for the moment, just kill it with CSS until you can find where it's hiding. It's a basic HTML element, and it will be easy to target. Just check it out in your document inspector, and thump the bastard. :D

FrizzleFried

...now that's thinking outside the box a bit.  I'll have to lookin to that.

:D

Advertisement: