TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 01, 2024, 04:16:31 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 167
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 119
  • Total: 119

Working with SMF mods

Started by ipoco, March 22, 2006, 07:40:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ipoco

Here's a basic question that may have been answered elsewhere but I haven't been able to find.

I've got SMF 1.0.6, and the new version of TP as well as the Oxygen theme. 

1st - with a couple of mods from SMF (map and shop) installed before I installed TP and Oxygen - where do I go to edit/include menu buttons for these two mods?  Do I edit the index.template.php file in the oxygen directory?

2 - with oxygen running as the default theme for all - when I find or install a new mod from SMF - what do I need to do, or take into account when I want the mod and it's attributes to show up in the oxygen template/theme - do I need to move the oxygen theme files into the default folder? so that as new mods are applied they are applied to the theme?

3) If I wanted to make more than one theme available to users what will be the best method of managing the changes mods make to themes?  I'd like to avoid having to hand code changes per mod into all available themes.

Thanks!

C

borgBOB

Quote from: ipoco on March 22, 2006, 07:40:19 PM
Here's a basic question that may have been answered elsewhere but I haven't been able to find.

I've got SMF 1.0.6, and the new version of TP as well as the Oxygen theme. 

1st - with a couple of mods from SMF (map and shop) installed before I installed TP and Oxygen - where do I go to edit/include menu buttons for these two mods?  Do I edit the index.template.php file in the oxygen directory?
Yes, that is correct.
Quote

2 - with oxygen running as the default theme for all - when I find or install a new mod from SMF - what do I need to do, or take into account when I want the mod and it's attributes to show up in the oxygen template/theme - do I need to move the oxygen theme files into the default folder? so that as new mods are applied they are applied to the theme?

This will not work. Keep the default theme as is. Apply the mods to the default theme thru the Package Manager. Then mannually edit the Oxygen theme files which are unique to the Oxygen theme. (Like index.template.php)
Quote

3) If I wanted to make more than one theme available to users what will be the best method of managing the changes mods make to themes?  I'd like to avoid having to hand code changes per mod into all available themes.

Thanks!

C

I am sorry, but I know of no other way to do it.

ipoco

Thanks.

I notice that the text for menu items is overlayed on a 'blank' gif in the template.php file for the theme.

Where do I place the 'new' text for 'new' menu items?  Directly in the index.template file?  for example here's the code for the calender item in the oxygen index.template.php file followed by code for the map mop which I copied and pasted out of the default index.template.php file.

  // The [calendar]!
        if ($context['allow_calendar'])
                echo '
                                <div id="bbcalendar"  '.$mycode.'><a href="', $scripturl, '?action=calendar"><img src="' . $settings['images_url'] . '/blank.gif" alt="' . $txt['calendar24'] . '" style="margin: 0px; width: 74px; height: 24px;" border="0" /></a></div>';

// The [member map]
      echo '
            <a href="', $scripturl, '?action=mm">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/mm.gif" alt="' . $txt['mm_mm'] . '" style="margin: 2px 0;" border="0" />' : $txt['mm_mm']), '</a>', $context['menu_separator'];

what do I need to change here?  The map mod works just fine in oxygen except for the menu item along the top of the forum.

Thanks very much

C