SimplePortal

Support => English Support => Topic started by: tommys67 on December 05, 2008, 10:11:27 PM

Title: Matching 2.1.1 to my theme
Post by: tommys67 on December 05, 2008, 10:11:27 PM
Good Evening All!

I'm running a SMF 1.1.7 site [www.suspectsunlimited.com] running aa_new_damage as the theme.  It's a stable, fixed-width theme.

I was able to get Simple Portal 2.1.1 installed, but getting matched to my theme is a challenge.

I used package manager to install most of the mod, and I had to hand-copy code into the separate theme files.

The functionality is all there, and I've got my mods writing articles already, but...

The look isn't right, and I don't know code well enough to try to mod-the-mod myself.

I can give you a UserID, Password, and I'm happy to pass along code, but I'm kinda lost at this point.

Here's the first example - the buttons at the top of the page - where the new "forum" link is installed...  After the forum link (which isn't in the right font) the rest of the button/links drop down a line and are offset a bit.

Another example - in each thread, the "add article" link shows up, but not in a "button" and it skews my forum frames (remember, it's a fixed-width theme).

Thanks!

Tom
Title: Re: Matching 2.1.1 to my theme
Post by: tommys67 on December 05, 2008, 10:14:13 PM
By the way - the forum's only 6 weeks old, I'm a relative newbie at forum Admin stuff, but I've gotten my site pretty well beaten into submission. 8)

From the first example - here's the code bits that set up my main menu.

   
   
   // Start the main menu.
   echo '
            <ul class="mainnav">';
            
   // Show the [home] button.
   echo '
               <li><a href="', $scripturl, '">' , $txt[103] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';

   // Show the [forum] button.
   if(!empty($context['portalactive']))
      echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=forum">' . $txt['sp-forum'] . '</a>
            </td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Show the [help] button.
   echo '
               <li><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';

   // How about the [search] button?
   if ($context['allow_search'])
      echo '
               <li><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';

   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo '
               <li><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';

   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo '
               <li><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';

   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
Title: Re: Matching 2.1.1 to my theme
Post by: ibm450 on December 06, 2008, 01:30:07 AM
cant see your forum tab, too close with help tab, you need to add another division tab

 
Code: [Select]
// Start the main menu.
   echo '
            <ul class="mainnav">';
            <li class="mainnavDivider"><!-- /--></li>';
   
Title: Re: Matching 2.1.1 to my theme
Post by: Burke Knight on December 06, 2008, 07:35:37 AM
Replace:

Code: [Select]
// Show the [home] button.
   echo '
               <li><a href="', $scripturl, '">' , $txt[103] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';

   // Show the [forum] button.
   if(!empty($context['portalactive']))
      echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=forum">' . $txt['sp-forum'] . '</a>
            </td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

   // Show the [help] button.


With:

Code: [Select]
// Show the [home] button.
   echo '
               <li><a href="', $scripturl, '">' , $txt[103] , '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';

   // Show the [forum] button.
   if(!empty($context['portalactive']))
   echo '
               <li><a href="', $scripturl, '?action=forum">' . $txt['sp-forum'] . '</a></li>
               <li class="mainnavDivider"><!-- /--></li>';

   // Show the [help] button.

This way, the Forum button matches your other menu buttons.
Title: Re: Matching 2.1.1 to my theme
Post by: tommys67 on December 06, 2008, 08:55:26 AM
BurkeKnight-

Thanks so much.  I had a hunch that some of the code needed to be trimmed, but I'm not about to guess.

I'll be back once I've gotten the SP content up and running, and I can show it off to the community!

Tom

www.suspectsunlimited.com
A motorcycle forum - our semi-serious motto; Riding...Life...Unlimited
Title: Re: Matching 2.1.1 to my theme
Post by: Burke Knight on December 06, 2008, 10:05:33 AM
Also, you will have to copy the arrow.gif and dot.gif from the default theme's images folder to your theme's images folder.

Unless, of course, you find or make your own to put there. :P
Title: Re: Matching 2.1.1 to my theme
Post by: tommys67 on December 06, 2008, 11:03:11 AM
Also, you will have to copy the arrow.gif and dot.gif from the default theme's images folder to your theme's images folder.

Unless, of course, you find or make your own to put there. :P

Cool, did that - now I am going to try my hand at putting the "Add an Article" link into a button like "Post Reply" and "New Topic".  Don't spoil it, lemme try first myself! :P
Title: Re: Matching 2.1.1 to my theme
Post by: Simone on December 08, 2008, 05:53:12 PM
oh i nearly went that template for my brothers forum

You might want to rethink your banner tho. Doesn't quite work
(says she who hasn't done anything with banner on bro site)
Title: Re: Matching 2.1.1 to my theme
Post by: [SiNaN] on December 20, 2008, 06:13:39 AM
First of all, use the "Recent Side Block" for recent posts on the sides. The "Recent Posts Block" is not suitable for side blocks, it is for center areas.

Anyway, seems like your theme has a different Display.template.php. Can you attach your Display.template.php here? I'll fix it for you.
SimplePortal 2.3.8 © 2008-2024, SimplePortal