• Welcome to Simple Machines Community Forum. Please login or sign up.
December 02, 2021, 02:28:59 PM

News:

Wondering if this will always be free?  See why free is better.


Custom Copyright

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

Previous topic - Next topic

Dream Portal Team

August 04, 2008, 07:49:52 PM Last Edit: November 20, 2008, 05:59:40 PM by ccbtimewiz
Live Demo
Link to Modification

Package Information
Latest Version: 1.0
Created by: ccbtimewiz
Built for: SMF 2.0 BETA and SMF 1.1.7
Package: Custom Copyright







What is this?

This modification edits your index.template.php file with a custom copyright you define in Admin > Current Theme. You CAN use BBcode in this field. HTML entities will also convert.


Alteration Log

[!] Released on August 4, 2008.


Need Help?

If you need help with this modification, please don't hesitate to post in the support thread. Please note this mod only installs to the default theme. In order to make it work on other themes, you'll be needing to edit your index.template.php file.

For Custom Themes
(open index.template.php of your theme)

Find:
', theme_copyright(), '

Replace with:
', !empty($settings['custom_copyright']) ? '<span class="smalltext">'. parse_bbc($settings['custom_copyright']). '</span>' : '', '<br />
', theme_copyright(), '
This is the universal account for the Dream Portal Team. All messages sent to this account will be discarded.  Please visit us at:  Dream Portal dot net for support and extensions to Dream Portal.

Adish - (F.L.A.M.E.R)

August 04, 2008, 07:55:28 PM #1 Last Edit: August 04, 2008, 08:01:06 PM by F.L.A.M.E.R
1st one to try i think.... This mod is kwl.. It came up without doing the theme edits.. :D Thank you for this mod, now i dont have to secretly edit the files to add in my name up there.

EDIT:-
The box came up but the text didnt appear up WITHOUT the edit. The mod works great.

jossanaijr


4Kstore

nice works.

Spanish:

$txt['custom_copyright_desc'] = 'Esto se mostrara en la parte inferior.';
$txt['custom_copyright'] = 'Ingrese su copyright:';



baiis!

¡¡NEW MOD: Sparkles User Names!!!

ccbtimewiz

Gracias por la traducción.

Nathaniel

Nice little mod ccbtimewiz.
Are you going to make an SMF 2 Beta version?
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

ccbtimewiz

Quote from: LHVWB on August 04, 2008, 09:50:22 PM
Nice little mod ccbtimewiz.
Are you going to make an SMF 2 Beta version?

I lack at writing comprehensive modifications for betas, though I doubt it'll be that difficult. I'll take a look into it.

Kylezz

Thanks mate. This really helped  :)
Why do i post alot? I am not a leecher.

Eliana Tamerin

Very good mod, I just put it into use. Though you should be aware that some themes (especially Bloc's) have a custom Settings.template.php as well.

Anyways, just three suggestions:
-Code a variable for the &copy; code, some people don't know the HTML code for it.
-Make note that HTML can be used. Might also want to note the most common HTML, the linebreak. :P
-I'd suggest making a text area, instead of a text box, to give more room. It also helps when adding in linebreaks.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

blondeamon

Doesnt work here guys , it appears twice the banner i have UNDER the smf copyright but not even once the one it supposed to ABOVE the smf copyright.

It installed perfectly on 1.1.5 and i edited my /themes/dilbermc index.template.php and replaced

', theme_copyright(), '   with

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

this is what i got:



Oh and on my Admin->Current Theme  there is no new filed for the copyright as it should.
Always looking for the best

www.kamenos.gr  Greek Gaming Community

Eliana Tamerin

You may have a custom Settings.template.php that will need to be edited as well.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

blondeamon

August 05, 2008, 01:25:08 PM #11 Last Edit: August 05, 2008, 01:28:36 PM by blondeamon
Can you please tell me what to edit there?

I found in there this part with the word copyright inside:

array(


'id' => 'custom_copyright',


'label' => $txt['custom_copyright'],


'description' => $txt['custom_copyright_desc'],


'type' => 'text',


),
Always looking for the best

www.kamenos.gr  Greek Gaming Community

ccbtimewiz

Quote from: blondeamon on August 05, 2008, 01:25:08 PM
Can you please tell me what to edit there?

I found in there this part with the word copyright inside:

array(


'id' => 'custom_copyright',


'label' => $txt['custom_copyright'],


'description' => $txt['custom_copyright_desc'],


'type' => 'text',


),


Attach your index.template.php and settings.template.php files.

blondeamon

These are from the /themes/dilbermc

i hope thats what you meant
Always looking for the best

www.kamenos.gr  Greek Gaming Community

ccbtimewiz


blondeamon

Just put them and didnt work ... same thing again 2 times the banner .

Always looking for the best

www.kamenos.gr  Greek Gaming Community

ccbtimewiz

Quote from: blondeamon on August 05, 2008, 05:13:03 PM
Just put them and didnt work ... same thing again 2 times the banner .


Strange, things should work fine. Link to website, and temporary admin/FTP details via PM please?

BuЯЯЯЯaK


Sudhakar Arjunan

Hi i was trying to install this in my fourm. It works only in default and not in dilbermc theme.

Came to support post and read the above post, and found the same error as mentioned by blondeamon.

I dont have any such signature showing in current theme as well as footer area.

But i am trying to work on dilbermc settings.template page. Will update it if works.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Nathaniel

This mod, allows you to add your own personal copyright to the page. It doesn't remove any other copyrights.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Advertisement: