TinyPortal

Development => Support => Topic started by: Chair on April 06, 2010, 05:39:52 PM

Title: TinyPortal Copyright
Post by: Chair on April 06, 2010, 05:39:52 PM
...Looks a little unprofessional on my website, randomly floating above the footer. Am I allowed to move it to the footer?
Title: Re: TinyPortal Copyright
Post by: Ken. on April 06, 2010, 06:18:14 PM
Quote from: Chair on April 06, 2010, 05:39:52 PM
...Looks a little unprofessional on my website, randomly floating above the footer. Am I allowed to move it to the footer?
Hello Chair, welcome to TinyPortal.

Yes you can move it.
We do ask that you keep it easily visible, but moving it is OK.
Title: Re: TinyPortal Copyright
Post by: Chair on April 06, 2010, 06:27:42 PM
Thanks! :)

Is it located under the main_content_section in the index.template?
Title: Re: TinyPortal Copyright
Post by: Max on April 06, 2010, 06:31:59 PM
No.

Its located in Sources/TPSubs.php search for
function tportal_version()
Title: Re: TinyPortal Copyright
Post by: IchBin on April 06, 2010, 06:47:52 PM
Actually, that is the function. The line of code you want to move is located in the TPBlockLayout.template.php file in the default theme. Look for this line towards the end of the file.
echo '<div id="tportal" class="smalltext">' , tportal_version() , '</div>';
Title: Re: TinyPortal Copyright
Post by: Chair on April 06, 2010, 06:51:05 PM
and i can just move that to the copyright area of my index.template?
Title: Re: TinyPortal Copyright
Post by: Max on April 06, 2010, 06:53:55 PM
Quote from: IchBinâ„¢ on April 06, 2010, 06:47:52 PM
Actually, that is the function.

yeah i had posted that before i edited my post, the actuall copyright text is below the function tportal_version() in TPSubs.php

if(!WIRELESS)
echo '<a href="http://www.tinyportal.co.uk" title="TinyPortal">TinyPortal v1.0 beta5 &copy; Bloc</a> ';
Title: Re: TinyPortal Copyright
Post by: IchBin on April 06, 2010, 06:56:19 PM
Quote from: Chair on April 06, 2010, 06:51:05 PM
and i can just move that to the copyright area of my index.template?

Yes
Title: Re: TinyPortal Copyright
Post by: IchBin on April 06, 2010, 06:57:58 PM
Quote from: Maxâ„¢ on April 06, 2010, 06:53:55 PM
Quote from: IchBinâ„¢ on April 06, 2010, 06:47:52 PM
Actually, that is the function.

yeah i had posted that before i edited my post, the actuall copyright text is below the function tportal_version() in TPSubs.php

if(!WIRELESS)
echo '<a href="http://www.tinyportal.co.uk" title="TinyPortal">TinyPortal v1.0 beta5 &copy; Bloc</a> ';


You are still looking at the function Max. The actual call the function is where I mentioned in the TPBlocksLayout template.
Title: Re: TinyPortal Copyright
Post by: Max on April 06, 2010, 07:09:49 PM

I know its the funtion, was thinking he wanted to change the text itsself, should of just left it first time without the edit.  :P
Title: Re: TinyPortal Copyright
Post by: Chair on April 06, 2010, 07:11:10 PM
Thank you very much! :)
Title: Re: TinyPortal Copyright
Post by: Chair on April 06, 2010, 09:47:52 PM
when i add the tinyportal copyright to the footer i get a template parse error? I'm adding it directly after the smf copyright

EDIT: nevermind, i got it working. The edit doesn't work on a custom theme unless you add the tinyportal files to that themes directory
Title: Re: TinyPortal Copyright
Post by: Chair on April 14, 2010, 10:20:16 AM
with the upgrade to TP 1.0 beta 5-1, the copyright has moved back above the footer.

I looked in the TPBlocklayout.template.php to find
echo '<div id="tportal" class="smalltext">' , tportal_version() , '</div>';

but it isn't there. I looked in a few other files for the copyright but I can't find it...
Title: Re: TinyPortal Copyright
Post by: Freddy on April 14, 2010, 10:28:03 AM
It's at the very bottom of that file.
Title: Re: TinyPortal Copyright
Post by: Chair on April 14, 2010, 10:45:44 AM
I don't see it... this is the very bottom of the TPBlocklayout.

if($context['TPortal']['bottompanel']==1)

echo '

<div id="tpbottombarHeader" style="clear: both;' , in_array('tpbottombarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '">

' , TPortal_panel('bottom') , '

</div>';




}



?>


Title: Re: TinyPortal Copyright
Post by: Freddy on April 14, 2010, 10:47:59 AM
Hmm very odd, this is mine :

if($context['TPortal']['bottompanel']==1)
echo '
<div id="tpbottombarHeader" style="clear: both;' , in_array('tpbottombarHeader',$context['tp_panels']) && $context['TPortal']['showcollapse']==1 ? 'display: none;' : '' , '">
' , TPortal_panel('bottom') , '
</div>';

echo '<div id="tportal" class="smalltext">' , tportal_version() , '</div>';
}


So are you seeing the copyright for TP then on your site ?  Try a page reload maybe ?
Title: Re: TinyPortal Copyright
Post by: Chair on April 14, 2010, 10:53:13 AM
yes, I see it on my site
Title: Re: TinyPortal Copyright
Post by: Freddy on April 14, 2010, 11:09:58 AM
From your code to me it looks like a line has been removed, there is a gap there.  Are you sure you are looking at the current file and not an old version ?  Try re-downloading that file from your live forum and take a look at that to be sure.
Title: Re: TinyPortal Copyright
Post by: Chair on April 14, 2010, 11:37:32 AM
LOL I can't believe I forget to refresh FileZilla after i upgraded...haha, thanks it worked :P
Title: Re: TinyPortal Copyright
Post by: Freddy on April 14, 2010, 11:48:07 AM
Haha, no problem, easy to overlook...
Title: Re: TinyPortal Copyright
Post by: than_sad on October 24, 2013, 05:01:23 PM
Hi,

I´m becoming crazy with the copyright.

I had my own footer with all the credits, i´m not interested to remove the copyright, but I want to put in my own place.

My problem is, after uninstall/install I have two copyright, please visit: www.applemaniacos.es

Please where is the copyright? I already tried to remove the copyright in index.template, but the tportal_version isn't in this file. Also not found in TPBlocklayout.

Please help me, i´m really tired of losing time in this...

Best regards.
Title: Re: TinyPortal Copyright
Post by: IchBin on October 24, 2013, 07:34:28 PM
I'd rather not give people the info on how to remove or alter the copyright. Even though it's permitted with the license, I'd rather people figure this out on their own. It's easy enough to find something in a text file with a good editor. You can have an editor search through all the files in a directory for a certain string or phrase to find the copyright.