News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Custom Copyright

Started by Dream Portal Team, August 04, 2008, 07:49:52 PM

Previous topic - Next topic

Word Life

I made my own theme by copying the Default one, and giving it a name, and then I edited the CSS. So, thanks anyways ;D. Lol.
Some people say no, some people say yes, I thought if this in like 5 seconds so say yes. :D

acewashere

request for future updates to this mod:
parse linefeeds/wrap long lines/multi line inputs
one of those.  At present if I put in a long copyright notice (which a business partner requires) it causes my users to do excessive scrolling.

Bulakbol

#142
@RättvisOrsak/JC
Smart way.  8)

@acewashere
Use bbcode linefeed [br] for multiple lines.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

acewashere

Quote
Use bbcode linefeed
*slaps self*
I should have thought of that.

Some folks might prefer a setting for wrap width (that way it adjusts to the users resolution), but for me
 works fine. Thanks for reminding me I can linefeed via bbcode  :)

dollarbabe

great mod... works perfect on 1.1.8.. thanks a lot for this.

jayman2

Can this line be modified to go into smf 2.0 RC1?

', !empty($settings['custom_copyright']) ? '<span class="smalltext">'. parse_bbc($settings['custom_copyright']). '</span>' : '', '<br />
                  ', theme_copyright(), '

Bulakbol

This mod will work for 2.0 RC1. Just change  the line-height: 1; to line-height: 1.3; or line-height: 1.5; after installation from default/css/index.css.
Quote#footerarea ul li.copywrite
{
   display: block;
   line-height: 1;
   font-size: small;
   padding: 1em;
}
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

jayman2

Quote from: Bulakbol on February 25, 2009, 10:58:21 PM
This mod will work for 2.0 RC1. Just change  the line-height: 1; to line-height: 1.3; or line-height: 1.5; after installation from default/css/index.css.
Quote#footerarea ul li.copywrite
{
   display: block;
   line-height: 1;
   font-size: small;
   padding: 1em;
}
Thanks for your help.  I'll use that, but I would like to know how to enter this code.

', !empty($settings['custom_copyright']) ? '<span class="smalltext">'. parse_bbc($settings['custom_copyright']). '</span>' : '', '<br />
                  ', theme_copyright(), '

When I look at that code section of the file, it uses the <li> code and I don't know how to modify that block of code above.

Bulakbol

In index.template.php
Code (find) Select
<li class="copywrite">', theme_copyright(), '</li>
replace
Quote<li class="copywrite">', !empty($settings['custom_copyright']) ? '<span class="smalltext">'. parse_bbc($settings['custom_copyright']). '</span>' : '', '<br />
                  ', theme_copyright(), '
</li>
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

jayman2

Quote from: Bulakbol on February 25, 2009, 11:27:14 PM
In index.template.php
Code (find) Select
<li class="copywrite">', theme_copyright(), '</li>
replace
Quote<li class="copywrite">', !empty($settings['custom_copyright']) ? '<span class="smalltext">'. parse_bbc($settings['custom_copyright']). '</span>' : '', '<br />
                  ', theme_copyright(), '
</li>
Thanks a million.  That's exactly what I needed.

Joe N

Great Mod

No errors. Love it!
Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


gibsongk55

Hi,

I just installed this.  I am using a custom template and changed manually the "index.template.php" in that theme.

I do not see anywhere under "Current Theme"  to put the link i need to add.  Any help?

Thanks,

Gibs

Joe N

Quote from: gibsongk55 on March 26, 2009, 03:35:30 AM
Hi,

I just installed this.  I am using a custom template and changed manually the "index.template.php" in that theme.

I do not see anywhere under "Current Theme"  to put the link i need to add.  Any help?

Thanks,

Gibs

Whats the link for your forum?

Joe
Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


gibsongk55


Bulakbol

Quote from: gibsongk55 on March 26, 2009, 03:35:30 AM
Hi,

I just installed this.  I am using a custom template and changed manually the "index.template.php" in that theme.

I do not see anywhere under "Current Theme"  to put the link i need to add.  Any help?

Thanks,

Gibs

In your custom theme folder, edit the Settings.template.php. Find
$context['theme_settings'] = array(
array(
'id' => 'header_logo_url',
'label' => $txt['header_logo_url'],
'description' => $txt['header_logo_url_desc'],
'type' => 'text',
),

and replace with
$context['theme_settings'] = array(
array(
'id' => 'header_logo_url',
'label' => $txt['header_logo_url'],
'description' => $txt['header_logo_url_desc'],
'type' => 'text',
),
array(
'id' => 'custom_copyright',
'label' => $txt['custom_copyright'],
'description' => $txt['custom_copyright_desc'],
'type' => 'text',
),
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Audiosound

Nice Mod!! Thanks
Works great in this setup!
Add: ©2008 Copyright It Bumps! LLC. P.O. Box 5398 Glendale, Arizona 85312 | All rights reserved
hxxp:www.socialclaustrophobia.com/ [nonactive]
SMF ver 1.1.8
TP v1.0 beta 3
Theme Grungy by Crip


This didn't work
Find:
Code: [Select]
', theme_copyright(), '
Replace with:
Code: [Select]
', !empty($settings['custom_copyright']) ? '<span class="smalltext">'. parse_bbc($settings['custom_copyright']). '</span>' : '', '<br />
                  ', theme_copyright(), '



This did....
Used this on line above [ ', theme_copyright(), ' ]
added with:
', !empty($settings['custom_copyright']) ? '<span class="smalltext">'. parse_bbc($settings['custom_copyright']). '</span>' : '', '<br />

Father Luke

@Bulakbol

Thanks, Brutha' - The Settings Template tip helped.

- -
Okay,
Father Luke

Bulakbol

My pleasure Father Luke.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

CesarManara

Language portuguese_brazilian on SMF 1.1.10.

Modifications.portuguese_brazilian.php
$txt['custom_copyright_desc'] = 'Isto vai ser exibido na parte inferior.';
$txt['custom_copyright'] = 'Digite os direitos autorais customizados:';

Turkishe

TURKISH TRANSLATION =

Dosya= Modifications.turkish

Bul=
?>

Öncesine ekle=


$txt['custom_copyright_desc'] = 'Burası altta görüntülenecektir.';
$txt['custom_copyright'] = 'Özel Telif Hakkı yazınızı girin:';
yeni üyeliğim: isimtr ;)

Advertisement: