• Welcome to Simple Machines Community Forum. Please login or sign up.
January 23, 2022, 02:56:53 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

finner


ccbtimewiz


finner

thank you sir


Think I can go ahead and install you mod now?


ccbtimewiz

Quote from: finner on August 12, 2008, 11:55:36 PM
thank you sir


Think I can go ahead and install you mod now?



Yes. However I already made the edits my mod makes for your index.template.php file. So if that file fails, continue.

finner

mod works

get this now at the top

$txt['custom_copyright_desc'] = 'This will be displayed at the bottom.'; $txt['custom_copyright'] = 'Enter custom copyright:';

Also have two windows to add the copyright

and it shows 3 times....

ccbtimewiz

Quote from: finner on August 13, 2008, 12:14:51 AM
mod works

get this now at the top

$txt['custom_copyright_desc'] = 'This will be displayed at the bottom.'; $txt['custom_copyright'] = 'Enter custom copyright:';

Also have two windows to add the copyright

and it shows 3 times....

Upload the modifications.english.php file I attached in the other post and that will fix that.

Now, attach your settings.template.php file.

finner

Uploaded other file

see file

thanks again!!

ccbtimewiz


finner

Same

https://www.darksideoutdoors.com/Forum/index.php [nofollow]

thanks though...  I feel confident we will fix it soon

Sudhakar Arjunan

Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

ccbtimewiz


Sudhakar Arjunan

Quote from: ccbtimewiz on August 13, 2008, 10:55:58 AM
You have to manually edit your theme templates as it is stated in the first post.

you are right,
I have attached how my dlibermc code look like. Even Checked up with the post you have mentioned. And still no change in it.


                           <td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">
                                        ', !empty($settings['custom_copyright']) ? '<span class="smalltext">'. parse_bbc($settings['custom_copyright']). '</span>' : '', '<br />
                  ', theme_copyright(), '
<br/><br/>
<span class="smalltext">'. $settings['custom_copyright'] . '</span>
</td>
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

ccbtimewiz

Does your theme have a custom settings.template.php file?

Sudhakar Arjunan

Quote from: ccbtimewiz on August 13, 2008, 12:36:44 PM
Does your theme have a custom settings.template.php file?

Yes i do and i have attached the settings.template.php file here.


<?php
// Version: 1.1; Settings

function template_options()
{
global $context$settings$options$scripturl$txt;

$context['theme_options'] = array(
array(
'id' => 'show_board_desc',
'label' => $txt[732],
'default' => true,
),
array(
'id' => 'show_children',
'label' => $txt['show_children'],
'default' => true,
),
array(
'id' => 'show_no_avatars',
'label' => $txt['show_no_avatars'],
'default' => true,
),
array(
'id' => 'show_no_signatures',
'label' => $txt['show_no_signatures'],
'default' => true,
),
array(
'id' => 'show_no_censored',
'label' => $txt['show_no_censored'],
'default' => true,
),
array(
'id' => 'return_to_post',
'label' => $txt['return_to_post'],
'default' => true,
),
array(
'id' => 'no_new_reply_warning',
'label' => $txt['no_new_reply_warning'],
'default' => true,
),
array(
'id' => 'view_newest_first',
'label' => $txt['recent_posts_at_top'],
'default' => true,
),
array(
'id' => 'view_newest_pm_first',
'label' => $txt['recent_pms_at_top'],
'default' => true,
),
array(
'id' => 'popup_messages',
'label' => $txt['popup_messages'],
'default' => true,
),
array(
'id' => 'copy_to_outbox',
'label' => $txt['copy_to_outbox'],
'default' => true,
),
array(
'id' => 'auto_notify',
'label' => $txt['auto_notify'],
'default' => true,
),
array(
'id' => 'calendar_start_day',
'label' => $txt['calendar_start_day'],
'options' => array(
=> $txt['days'][0],
=> $txt['days'][1],
=> $txt['days'][6],
),
'default' => true,
),
array(
'id' => 'display_quick_reply',
'label' => $txt['display_quick_reply'],
'options' => array(
=> $txt['display_quick_reply1'],
=> $txt['display_quick_reply2'],
=> $txt['display_quick_reply3']
),
'default' => true,
),
array(
'id' => 'display_quick_mod',
'label' => $txt['display_quick_mod'],
'options' => array(
=> $txt['display_quick_mod_none'],
=> $txt['display_quick_mod_check'],
=> $txt['display_quick_mod_image'],
),
'default' => true,
),
);
}

function 
template_settings()
{
global $context$settings$options$scripturl$txt;

$context['theme_settings'] = array(
array(
'id' => 'header_logo_url',
'label' => $txt['header_logo_url'],
'description' => $txt['header_logo_url_desc'],
'type' => 'text',
),
array(
'id' => 'logo_not_show',
'label' => $txt['logo_not_show'],
),
array(
'id' => 'show_name_near_logo',
'label' => $txt['show_name_near_logo'],
),
array(
'id' => 'top_right_html',
'label' => $txt['top_right_html'],
'description' => $txt['top_right_html_desc'],
'type' => 'text',
),
array(
'id' => 'custom_global_html',
'label' => $txt['custom_global_html'],
'description' => $txt['custom_global_html_desc'],
'type' => 'text',
),
array(
'id' => 'page_div_width',
'label' => $txt['page_div_width'],
'description' => $txt['page_div_width_desc'],
'type' => 'text',
),
array(
'id' => 'theme_main_color',
'label' => $txt['theme_main_color'],
'options' => array(
'lightblue' => 'Light Blue',
'lightnavy' => 'Light Navy',
'lightsilver' => 'Light Silver',
'lightturquoise' => 'Light Turquoise',
'lightgreen' => 'Light Green',
'lightolive' => 'Light Olive',
'lightgolden' => 'Light Golden',
'lightbrown' => 'Light Brown',
'lightred' => 'Light Red',
'lightrose' => 'Light Rose',
'lightlilac' => 'Light Lilac',
'lightviolet' => 'Light Violet',
        
),
),
array(
'id' => 'allow_color_change',
'label' => $txt['allow_color_change'],
'options' => array(
'no' => $txt['allow_color_change_no'],
'box' => $txt['allow_color_change_box'],
'bars' => $txt['allow_color_change_bars'],
        
),
),
array(
'id' => 'child_boards_rows',
'label' => $txt['child_boards_rows'],
'description' => $txt['child_boards_rows_desc'],
),
array(
'id' => 'boardname_posts_lastposts_nodisplay',
'label' => $txt['boardname_posts_lastposts_nodisplay'],
'description' => $txt['boardname_posts_lastposts_nodisplay_desc'],
),
array(
'id' => 'custom_copyright',
'label' => $txt['custom_copyright'],
'description' => $txt['custom_copyright_desc'],
'type' => 'text',
),
array(
'id' => 'number_recent_posts',
'label' => $txt['number_recent_posts'],
'description' => $txt['number_recent_posts_desc'],
'type' => 'number',
),
array(
'id' => 'display_who_viewing',
'label' => $txt['who_display_viewing'],
'options' => array(
=> $txt['who_display_viewing_off'],
=> $txt['who_display_viewing_numbers'],
=> $txt['who_display_viewing_names'],
),
),
array(
'id' => 'smiley_sets_default',
'label' => $txt['smileys_default_set_for_theme'],
'options' => $context['smiley_sets'],
),
array(
'id' => 'show_modify',
'label' => $txt[383],
),
array(
'id' => 'show_member_bar',
'label' => $txt[510],
),
array(
'id' => 'linktree_link',
'label' => $txt[522],
),
array(
'id' => 'show_profile_buttons',
'label' => $txt[523],
),
array(
'id' => 'show_mark_read',
'label' => $txt[618],
),
array(
'id' => 'linktree_inline',
'label' => $txt['smf105'],
'description' => $txt['smf106'],
),
array(
'id' => 'show_sp1_info',
'label' => $txt['smf200'],
),
array(
'id' => 'allow_no_censored',
'label' => $txt['allow_no_censored'],
),
array(
'id' => 'show_bbc',
'label' => $txt[740],
),
array(
'id' => 'additional_options_collapsable',
'label' => $txt['additional_options_collapsable'],
),
array(
'id' => 'enable_news',
'label' => $txt[379],
),
array(
'id' => 'show_newsfader',
'label' => $txt[387],
),
array(
'id' => 'newsfader_time',
'label' => $txt[739],
'type' => 'number',
),
array(
'id' => 'show_user_images',
'label' => $txt[384],
),
array(
'id' => 'show_blurb',
'label' => $txt[385],
),
array(
'id' => 'show_latest_member',
'label' => $txt[382],
),
array(
'id' => 'use_image_buttons',
'label' => $txt[521],
),
array(
'id' => 'show_gender',
'label' => $txt[386],
),
array(
'id' => 'hide_post_group',
'label' => $txt['hide_post_group'],
'description' => $txt['hide_post_group_desc'],
),
);
}

?>

Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

ccbtimewiz

Alright, added the options. Download this file..

Sudhakar Arjunan

Quote from: ccbtimewiz on August 13, 2008, 12:40:45 PM
Alright, added the options. Download this file..

Thanks for it, and could you tell me which line you have modified. So that i can also learn it Author.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

ccbtimewiz

I added my functions.

array(
'id' => 'custom_copyright',
'label' => $txt['custom_copyright'],
'description' => $txt['custom_copyright_desc'],
'type' => 'text',
),

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

just a type of copywrite question...

I am using a theme, either i have misplaced the copywrite text onto a different place, or the author has added it on that particular place.

What the problem is, the copywrite text is behand the "Mark all as Read" option just at the end of the topics and boards. As its clicked or a sort of just a type of a bit of misplacement for clicking, the authors site would open up in a new window instead of doing the function of marking all topics as read...

So the question is, is it fine to move the copywrite text onto a different location where it is visible ? or use this mod and add in the same copywrite at the base rather than the place it is before...

Please tell me about it...

Thank you.

ccbtimewiz

Attach your index.template.php file..

finner

Quote from: ccbtimewiz on August 13, 2008, 12:15:40 AM
Quote from: finner on August 13, 2008, 12:14:51 AM
mod works

get this now at the top

$txt['custom_copyright_desc'] = 'This will be displayed at the bottom.'; $txt['custom_copyright'] = 'Enter custom copyright:';

Also have two windows to add the copyright

and it shows 3 times....

Upload the modifications.english.php file I attached in the other post and that will fix that.

Now, attach your settings.template.php file.


done

Advertisement: