SMFHacks.com

Modifications/Themes => Modifications Talk => Topic started by: davidfo79 on March 09, 2018, 12:24:27 pm

Title: Simple audio embed
Post by: davidfo79 on March 09, 2018, 12:24:27 pm
I hope I got this in the right section, if not I apologize and hope that it can be moved to the proper place.

Anyway now, with that said I  recently uninstalled a older version and installed the 4.5, since then it adds the copyright at the bottom of the page twice. Where would I remove the one?
Title: Re: Simple audio embed
Post by: SMFHacks on March 09, 2018, 12:41:31 pm
It would be found in Sources/QueryString.php
Title: Re: Simple audio embed
Post by: davidfo79 on March 09, 2018, 01:14:36 pm
Hmm,
alright, what part would I need to search for? I'm looking over the coding now and I guess I must be missing something because I don't see anything at the moment that is doubled in that file.
Title: Re: Simple audio embed
Post by: SMFHacks on March 09, 2018, 01:31:05 pm
It is around this line of code
Code: [Select]
// If $scripturl is set to nothing, or the SID is not defined (SSI?) just quit.
Title: Re: Simple audio embed
Post by: davidfo79 on March 09, 2018, 09:50:02 pm
First off I want to say thank you for the help, it is appreciated...specially the quick response.

Unfortunately I remove the coding that was there, and then added it back from the manual install wise, and still I am getting a double copyright message.

Any other ideas?
Title: Re: Simple audio embed
Post by: SMFHacks on March 09, 2018, 10:01:03 pm
Whats the link to your site i want see how it looks.
Title: Re: Simple audio embed
Post by: davidfo79 on March 09, 2018, 10:49:24 pm
http://www.starlightchatnetwork.com/index.php
Title: Re: Simple audio embed
Post by: SMFHacks on March 09, 2018, 11:03:17 pm
Can you attach your sources/querystring.php file.
Title: Re: Simple audio embed
Post by: davidfo79 on March 09, 2018, 11:15:25 pm
Sure no problem...
Title: Re: Simple audio embed
Post by: SMFHacks on March 10, 2018, 07:55:43 am
Hmm try changing this
Code: [Select]
$showInfo = MediaProCheckInfo();
   
if ($showInfo == true)
    {
if (!isset($autoMediaLoaded))
{
$buffer = preg_replace('~(, Simple Machines LLC</a>)~', ', Simple Machines LLC</a><br /><a href="http://www.createaforum.com" target="_blank">Simple Audio Video Embedder</a>', $buffer);
$buffer = preg_replace('~(class="new_win">Simple Machines</a>)~', 'class="new_win">Simple Machines</a><br /><a href="http://www.createaforum.com" target="_blank">Simple Audio Video Embedder</a>', $buffer);
$autoMediaLoaded = 1;
}
}
To
Code: [Select]
$showInfo = MediaProCheckInfo();
   
if ($showInfo == true)
    {
if (!isset($autoMediaLoaded))
{
$buffer = preg_replace('~(, Simple Machines LLC</a>)~', ', Simple Machines LLC</a><br /><a href="http://www.createaforum.com" target="_blank">Simple Audio Video Embedder</a>', $buffer);
$autoMediaLoaded = 1;
}
}
Title: Re: Simple audio embed
Post by: davidfo79 on March 10, 2018, 10:13:17 am
Ok I updated that coding, however now it removed it entirely.
I never purchased the removal of it, so I still want to show the support of course.

Anything else that I could try?
Title: Re: Simple audio embed
Post by: SMFHacks on March 10, 2018, 11:24:46 am
Try this one instead
Code: [Select]
$showInfo = MediaProCheckInfo();
   
if ($showInfo == true)
    {
if (!isset($autoMediaLoaded))
{
$buffer = preg_replace('~(class="new_win">Simple Machines</a>)~', 'class="new_win">Simple Machines</a><br /><a href="http://www.createaforum.com" target="_blank">Simple Audio Video Embedder</a>', $buffer);
$autoMediaLoaded = 1;
}
}
Title: Re: Simple audio embed
Post by: davidfo79 on March 10, 2018, 08:44:36 pm
This is odd,
because now it is putting the double copyright in again with that attempt.
Could it be something with another file, such as the theme or another source?
Title: Re: Simple audio embed
Post by: SMFHacks on March 11, 2018, 09:42:48 pm
Not sure out of ideas now.