News:

Join the Facebook Fan Page.

Main Menu

SimplePortal

Started by SimplePortal Team, March 10, 2008, 11:16:07 PM

Previous topic - Next topic

Hj Ahmad Rasyid Hj Ismail

I know you will Mattek. I can see that. Best of luck.

*is wanting to go offline now.

wickedstangs

Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

ɔɔɔɔɔɔuɥoɾ

Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

Subs.php

Search for " $buttons "

Paste the code here  for about 50 lines after that.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

wickedstangs

Quote from: johncccccc on August 01, 2010, 02:09:04 PM
Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

Subs.php

Search for " $buttons "

Paste the code here  for about 50 lines after that.

The only thing I found with button in the Subs.php is the below.
// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;

if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}

MATTEK

#3404
who.php also failed on the uninstall. Now only the fourth edit failed. Does that mean only have to manually uninstall that edit?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

ɔɔɔɔɔɔuɥoɾ

Quote from: wickedstangs on August 01, 2010, 02:14:31 PM
Quote from: johncccccc on August 01, 2010, 02:09:04 PM
Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

Subs.php

Search for " $buttons "

Paste the code here  for about 50 lines after that.

The only thing I found with button in the Subs.php is the below.
// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;

if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}


Search for this:


$buttons = array(



Then paste the things after that

Quote from: MATTEK on August 01, 2010, 02:31:27 PM
who.php also failed on the uninstall. Now only the fourth edit failed. Does that mean only have to manually uninstall that edit?

Yes, for all edits.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

MATTEK

For all edits? or just the fourth edit tat failed?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

ɔɔɔɔɔɔuɥoɾ

I just told you that in the above post...


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

MATTEK

#3408
You have to be more clear as you're not dealing with a pro.

You said "Yes, for all edits"...

To me, that means even though 3 of the 4 were successful I have to edit all 4 of them. However that is in direct conflict with my question as you said "Yes" to the question : "Do I only have to edit the one that failed?"
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

ɔɔɔɔɔɔuɥoɾ

Quote from: MATTEK on August 01, 2010, 02:54:05 PM

To me, that means even though 3 of the 4 were successful I have to edit all 4 of them. However that is in direct conflict with my question as you said "Yes" to the question : "Do I only have to edit the one that failed?"

And that's correct lol


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

MATTEK

SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

wickedstangs

Quote from: johncccccc on August 01, 2010, 02:36:28 PM
Quote from: wickedstangs on August 01, 2010, 02:14:31 PM
Quote from: johncccccc on August 01, 2010, 02:09:04 PM
Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

Subs.php

Search for " $buttons "

Paste the code here  for about 50 lines after that.

The only thing I found with button in the Subs.php is the below.
// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;

if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}


Search for this:


$buttons = array(



Then paste the things after that

for all edits.

I searched the entire file /Sources/Subs.php could not find $buttons = array(

Hj Ahmad Rasyid Hj Ismail

Quote from: wickedstangs on August 01, 2010, 11:52:46 PM
Quote from: johncccccc on August 01, 2010, 02:36:28 PM
Quote from: wickedstangs on August 01, 2010, 02:14:31 PM
Quote from: johncccccc on August 01, 2010, 02:09:04 PM
Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

Subs.php

Search for " $buttons "

Paste the code here  for about 50 lines after that.

The only thing I found with button in the Subs.php is the below.
// Creates an image/text button
function create_button($name, $alt, $label = '', $custom = '')
{
global $settings, $txt, $context;

if (!$settings['use_image_buttons'])
return $txt[$alt];
elseif (!empty($settings['use_buttons']))
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
else
return '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />';
}


Search for this:


$buttons = array(



Then paste the things after that

for all edits.

I searched the entire file /Sources/Subs.php could not find $buttons = array(
Your menu is in index.template.php since your forum is using SMF 1.1.x and not 2.0 RCx. Btw, your forum seems fine to me. All your menu  / forum tab are intact. Is it solved then?

wickedstangs

Quote from: AbuFahim⎝⏠⏝⏠⎠ on August 02, 2010, 04:50:21 AM
Quote from: wickedstangs on August 01, 2010, 02:03:00 PM
Hello Everyone, I just installed this on my fourm www.rcing.net and I lost my forum tab on top.  How can I recover it:)  Thanks everyone for an outstanding mod..

Your menu is in index.template.php since your forum is using SMF 1.1.x and not 2.0 RCx. Btw, your forum seems fine to me. All your menu  / forum tab are intact. Is it solved then?

Everything looks fine except for a missing a tab on top menu to the forums.

Below is the topmenu code but, I don't see forum tab in there.

// Show the start of the tab section.
echo '<div id="topmenu">

<ul class="topmenu">';
// Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

// Show the [help] button.
echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';

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

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

// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

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

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a' , $current_action=='pm' ? ' class="current"' : '' , ' href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span></a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a ' , $current_action=='mlist' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';

// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li><a ' , $current_action=='login' ? ' class="current"' : '' , ' href="', $scripturl, '?action=login"><span>' , $txt[34] , '</span></a></li>';

// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li><a ' , $current_action=='register' ? ' class="current"' : '' , ' href="', $scripturl, '?action=register"><span>' , $txt[97] , '</span></a></li>';

// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a ' , $current_action=='logout' ? ' class="current"' : '' , 'href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>' , $txt[108] , '</span></a></li>';

echo '

Hj Ahmad Rasyid Hj Ismail

#3414
Your theme is not a default theme. Therefore when installing SP you must manually modify your index.template.php. You should get an error message when you were installing SP which provide which line you need to do the modifications manually.

However, let's try this:

Change:
            // Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

To:
            // Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', ($modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl), '"><span>' , $txt[103] , '</span></a></li>';

            // Show the [forum] button.
if (empty($context['disable_sp']) && in_array($modSettings['sp_portal_mode'], array(1, 3)))
echo '<li><a' , $current_action=='forum' ? ' class="current"' : '' , ' href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '"><span>', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</span></a></li>';

ɔɔɔɔɔɔuɥoɾ

Moving to SMF 2 RC3 would really be a lot easier for you lol

Trust me, their are a lot less of these issues


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Hj Ahmad Rasyid Hj Ismail

Quote from: johncccccc on August 02, 2010, 11:31:13 AM
Moving to SMF 2 RC3 would really be a lot easier for you lol

Trust me, their are a lot less of these issues
I would advise the same as John. May be consider it later?

wickedstangs

Will work on it tonight the template edit did not work for me...:( Will try 2.0

Hj Ahmad Rasyid Hj Ismail

Quote from: wickedstangs on August 02, 2010, 06:29:00 PM
Will work on it tonight the template edit did not work for me...:( Will try 2.0
Sorry, my mistake. I got it wrong here:
href=href=
Here, try this one.

flamechica

#3419
I run SMF 1.1.11 and I decided to upgrade from SP 2.2 to 2.3.2. So, I uninstalled SP 2.2 like the directions say and installed 2.3.2. The package manager said that the index.template.php file test failed. So, I looked through the file and the edits looked done already. So, I went ahead and said to install anyways. Everything seemed to be ok, except, I do not have a "Forum" button. I don't run any special themes, only default variations, none of them have their own index.template.php files.

I am getting an error in my error log:
Quotehttp://www.rsdlaughter.com/smf/index.php
8: Undefined variable: modSettings
File: /home/domain/public_html/smf/Themes/default/PortalArticles.template.php (main_above sub template - eval?)
Line: 614

I have included my index.template.php file if you could please look at it to see if I messed something up. I have looked over the part where it adds the forum button and I just don't see where the mistake is.

Advertisement: