SimplePortal

Support => English Support => Topic started by: Zealotus on March 04, 2010, 02:38:02 PM

Title: Possible to move the copyright text?
Post by: Zealotus on March 04, 2010, 02:38:02 PM
I'd like to have both SMF's and SP's copyright texts on a single line, if possible...
I've looked through a good portion of the files but haven't found that annoying <br> tag anywhere.
And now I've given up... so I'm aksing here: Where is it!? >.<;;

Again: All I want is to move it so I'll have both on a single line.
Title: Re: Possible to move the copyright text?
Post by: fl4pj4ck on March 05, 2010, 12:08:49 AM
find where both copyrights are and remove <li> and </li> tags. be carefull and always keep backup :)
Title: Re: Possible to move the copyright text?
Post by: Zealotus on March 05, 2010, 08:51:27 AM
Problem is: That SP's copyright is in the same li as SMF's.
And the first thing it adds is a <br> tag to make a new line. So removing the li's won't help at all.

I need to find where that <br> tag is printed.
Title: Re: Possible to move the copyright text?
Post by: ccbtimewiz on March 05, 2010, 11:54:47 AM
It is created in Subs.php as far as I am aware.
Title: Re: Possible to move the copyright text?
Post by: Zealotus on March 05, 2010, 12:31:22 PM
That is true, for SMF's copyright...
Which leads to $forum_copyright in the language files... but SP's copyright isn't in that variable. >.>
Title: Re: Possible to move the copyright text?
Post by: [SiNaN] on March 09, 2010, 12:52:47 PM
Attach your Subs-Portal.php file and I'll change it for you.
Title: Re: Possible to move the copyright text?
Post by: Zealotus on April 05, 2010, 11:59:09 PM
Sorry, been busy for a while...
And I actually figured it out after a while >:)
Title: Re: Possible to move the copyright text?
Post by: Stigmartyr on September 04, 2010, 12:38:17 PM
Attach your Subs-Portal.php file and I'll change it for you.

Would you kindly do the same for me? :D  :D

Pretty please?  I would like inline copyright with the SMF copyright too.
Title: Re: Possible to move the copyright text?
Post by: Stigmartyr on September 05, 2010, 04:15:54 PM
Attach your Subs-Portal.php file and I'll change it for you.

Would you kindly do the same for me? :D  :D

Pretty please?  I would like inline copyright with the SMF copyright too.


BUMP.


Can anyone tell me how to make the SP copyright appear inline with the SMF copyright?  File attached above.
Title: Re: Possible to move the copyright text?
Post by: Stigmartyr on September 09, 2010, 12:16:02 AM
(http://2.bp.blogspot.com/_LY-9PTRzghw/ReeXz3IxYTI/AAAAAAAAACU/vD5fXLZzuHY/s320/milton.jpg)

My question?
Title: Re: Possible to move the copyright text?
Post by: AngelinaBelle on September 09, 2010, 04:42:57 PM
You can handle this.  you know the copyright string contains the string "simpleportal".  So you know that, if you search for it in that file, you will quickly find where it is added.
 
You can then re-format the copyright notice.
 
 
Title: Re: Possible to move the copyright text?
Post by: Stigmartyr on September 09, 2010, 04:44:53 PM
You can handle this.  you know the copyright string contains the string "simpleportal".  So you know that, if you search for it in that file, you will quickly find where it is added.
 
You can then re-format the copyright notice.

Yeah but it's rendered as a centered <div>

Why does it print under the SMF copyright?  I don't see a <BR> tag to remove thats why I was asking for help :)
Title: Re: Possible to move the copyright text?
Post by: deansmar on September 10, 2010, 03:56:32 AM
i have done this to my Website, but i can not remember were i found the <br>

but taking a look at the code again it could well be in
\Themes\default\languages\index.english.php
Title: Re: Possible to move the copyright text?
Post by: deansmar on September 10, 2010, 04:02:46 AM
find this in your Subs-portal.php

Code: [Select]
$replaces = array(
', Simple Machines LLC</a><br />' . $fix,
'class="copywrite" style="line-height: 1;"',
);

remove the <br /> and then you should have everything on one line..
Title: Re: Possible to move the copyright text?
Post by: Stigmartyr on September 10, 2010, 04:22:15 AM
find this in your Subs-portal.php

Code: [Select]
$replaces = array(
', Simple Machines LLC</a><br />' . $fix,
'class="copywrite" style="line-height: 1;"',
);

remove the <br /> and then you should have everything on one line..

Hey thanks for your help! :)  I've attached my subs-portal.php in a few posts above, if you want to have a look.  There is no mention of this code you shared :(

Title: Re: Possible to move the copyright text?
Post by: deansmar on September 10, 2010, 04:46:01 AM
that code is definatly in SP 2.3.2, i have just checked.

i have never used 2.3.1 so i would not know were to look  maybe in the Portal.template.php

i sugest you look through all the files that you downloaded with the version your using

search for copywrite or <br />
Title: Re: Possible to move the copyright text?
Post by: Stigmartyr on September 10, 2010, 06:06:54 AM
that code is definatly in SP 2.3.2, i have just checked.

i have never used 2.3.1 so i would not know were to look  maybe in the Portal.template.php

i sugest you look through all the files that you downloaded with the version your using

search for copywrite or <br />


Thank you - I did follow your suggestion for my SP version, but did not find anything relevant to the copyright.
Title: Re: Possible to move the copyright text?
Post by: AngelinaBelle on September 10, 2010, 07:38:16 AM
Sure -- in the file you attached, if you search on "SimplePortal", you will find where SimplePortal's copyright text is added to SMF's copyright text.
 
Strangely, this happens in  function sp_query_string.
Title: Re: Possible to move the copyright text?
Post by: deansmar on September 10, 2010, 07:52:31 AM
also take a note of the spelling ... in the CODE CLASS its spelt "copywrite"

and not like every one its spelling it copyright... !!   :vampire:  >:-D
Title: Re: Possible to move the copyright text?
Post by: AngelinaBelle on September 10, 2010, 09:07:09 AM
in the CODE CLASS its spelt "copywrite"

That spelling comes from SMF.  You are correct that it is not a correct spelling for copyright.
Title: Re: Possible to move the copyright text?
Post by: Stigmartyr on September 10, 2010, 01:24:38 PM
Thanks again for the replies. ;D

On my site/version the code for the SP copywrite is:

Code: [Select]
$fix = str_replace('{version}', $sportal_version, '<<a href="http://www.simpleportal.net/" target="_blank" class="new_win">SimplePortal {version} &copy; 2008-2009, SimplePortal</a>');

As you can see, there is no <br> and thus where I got confused as to how it would be moved properly.  Given my situation, I guess I can delete this code here and then go to /themes/.../index.template.php and manually add the SP copyright there...

 :dead:
Title: Re: Possible to move the copyright text?
Post by: AngelinaBelle on September 10, 2010, 03:26:43 PM
Look just a little farther down, to where you see that $fix string being added to the end of the Simple Machines copyright notice.
Title: Re: Possible to move the copyright text?
Post by: [SiNaN] on September 12, 2010, 12:42:19 PM
Subs-SPortal.php

Code: (Find) [Select]
LCBTaW1wbGUgTWFjaGluZXMgTExDPC9hPjxiciAvPg==
Code: (Replace) [Select]
LCBTaW1wbGUgTWFjaGluZXMgTExDPC9hPg==
SimplePortal 2.3.8 © 2008-2024, SimplePortal