collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 276
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: Install went smooth BUT there are 2 problems...help! (pic + script attached)  (Read 5369 times)

0 Members and 1 Guest are viewing this topic.

Offline Matt5L

  • Semi Newbie
  • *
  • Posts: 26
First off I want to say Hi and want to thank everyone who is responsible for this software so far it seems great...

Hey everyone I have SMF 1.1.6 with the Black Rain script by Crip.
My forum is @ http://www.sn95forums.com/forum  (I un-installed the software temporarly because of problem #1 below)

I just uploaded the simple porta 2.0.4l via the package manager.  All went well.

PROBLEM #1) First things first, at the top of my screen I have a whole bunch of gibberish:
FOR IMAGE CLICKY HERE ---> http://www.sn95forums.com/hosting/users/Matt94GT/gibberish2.jpg

PROBLEM #2)Also I tried to get the "Forum" Button to work, I entered the text that I read in another thread on the forum but it just doesn't look right (also see image above).

// How about the [forum] button?
   echo '<td class="mainnav"><a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a></td>';

Above is the code I put in there...



I have attached my theme's INDEX TEMPLATE.


Thanks in advance,
Matt
« Last Edit: October 08, 2008, 06:23:34 PM by Matt5L »

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Open ./Themes/default/languages/modifications.english.php and ensure all $txt[] strings are BEFORE the ?> tag.

Likewise I have gone through your index.template.php file and have found some errors. Here they are:

#1
Code: [Select]
// How about the [arcade] button?
echo '<li><a href="', $scripturl, '?action=arcade"><span>', $txt[arcade] , '</span></a></li>';

Use of undefined constant assumed as "arcade". Change $txt[arcade] to $txt['arcade']. And then make certain that there is a $txt['arcade'] = 'Arcade'; string in the ./Themes/default/languages/modifications.english.php file.

So it would look like this:

Code: [Select]
// How about the [arcade] button?
echo '<li><a href="', $scripturl, '?action=arcade"><span>', $txt['arcade'] , '</span></a></li>';

Also it might just be a problem with the theme, but you can't really have third element tags with a reference tag. The <span> and </span> tags are not needed. But I'm not the maker of that theme, so perhaps it was intentional.


#2
Code: [Select]
?>


CancelCancel

Undefined text. This would put the words CancelCancel at the top of your forum as it isn't in the php tags. Change it to:

Code: [Select]
?>

#3
Code: [Select]
// How about the [forum] button?
echo '<td class="mainnav"><a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a></td>';

You're using it in the incorrect style that your index is using. Do it like this:

Code: [Select]
// How about the [forum] button?
echo '<li><a href="', $scripturl, '?action=forum" >', $txt['sp-forum'], '</a></li>';


#4
Code: (multiple instances) [Select]
<br>
<br> is not valid XHTML makeup. Make sure to close them like so:

Code: [Select]
<br />

#5
Code: [Select]
</head>
<link rel="shortcut icon" href="http://www.sn95forums.com/favicon.ico" />

Link relevance tags must be within the head tags. Likewise try doing it in a better fashion like so:

Code: [Select]
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
</head>


#6
Code: [Select]
// Change Forum width in StyleSheet.css
echo '<div id="widthControl">';
echo '
<div id="ob1"><div id="ib1">';

echo '<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
<td>';
echo '</td>
<center><script src="http://www.sn95forums.com/forum/top.js"></script></center>
<center><script src="http://www.sn95forums.com/forum/snow.js"></script></center>
<br>
<a href="http://www.stangnet.com/top/in.php?id=90" TARGET="_blank" >
<center><img src="http://www.sn95forums.com/banners/top100burgandy2.jpg" border="0" /></center></a>

</tr>
</table>
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>';

A lot of deprecated tags, and some poor spacing. Try doing it like so:

Code: [Select]
// Change Forum width in StyleSheet.css
echo '
<div id="widthControl">';
echo '
<div id="ob1">
<div id="ib1">';

echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center">
<script src="http://www.sn95forums.com/forum/top.js"></script>
<script src="http://www.sn95forums.com/forum/snow.js"></script>
<br />
<a href="http://www.stangnet.com/top/in.php?id=90" target="_blank"><img src="http://www.sn95forums.com/banners/top100burgandy2.jpg" border="0" alt="*" /></a>
</td>
</tr>
</table>';

echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>';

Offline Matt5L

  • Semi Newbie
  • *
  • Posts: 26
Ok I did all you said and I still have random text/code at the top of the forums see here its up live now:
http://www.sn95forums.com/forum/index.php

I have attached my modifications php script.

THANKS
« Last Edit: October 08, 2008, 11:38:37 PM by Matt5L »

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
In that file:

Find:
Code: [Select]
$txt['relatedCustom'] = 'Custom';?>
// SP General

Replace with:
Code: [Select]
$txt['relatedCustom'] = 'Custom';
// SP General

Find:
Code: [Select]
$txt['sp-arcadeon'] = 'on ';
Replace with:
Code: [Select]
$txt['sp-arcadeon'] = 'on ';
?>

Offline Matt5L

  • Semi Newbie
  • *
  • Posts: 26
Thanks

Offline Matt5L

  • Semi Newbie
  • *
  • Posts: 26
Ok well I did that and now im still getting a "" at the top of my forums, as well as when its listing the forum position it says: "Forum  �  General  �  .:Lounge:"  instead of: "Forum > General > .:Lounge:."

Also now on my forum "Home" page it seems that images are missing or something along those lines?
See it here:
http://www.sn95forums.com/forum/index.php


Thanks,
Matt

Offline ???1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
OK well I did that and now I'm still getting a "" at the top of my forums, as well as when its listing the forum position it says: "Forum  �  General  �  .:Lounge:"  instead of: "Forum > General > .:Lounge:."

Also now on my forum "Home" page it seems that images are missing or something along those lines?
See it here:
http://www.sn95forums.com/forum/index.php


Thanks,
Matt
I think you uploaded a utf8 file with text mode transfare, and than this could happen.

But the easiest way to solve this is, to download the latest changed files, and save them in "ANSI" Format and upload them again or upload the files with binary transfare, than i think this will not appear any more.

Bye
DIN1031
Again... I'm having time problems...Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).

Offline Matt5L

  • Semi Newbie
  • *
  • Posts: 26
I noticed on IE it displays as a  ? instead of the >
example
Forum  ?  .:SN95 FORUMS:.  ?  Introductions  ?  New from NJ  :angry-yell:

Anyways I tried saving it as the other format, but instead of the '»¿' or '?' I get a '?' anyways I reversed it to how it was. Its still in UTF-8 my laptop is broken and I only have wordpad on here can someone please help solve my previous problem and re-attach it as the proper ANSI format?!  Please.
I have attached the updated file (fixes from above).

ALSO one more thing, I added a SMF Gallery, how do I get the gallery button up there?  I put this in there:
Code: [Select]
// How about the [gallery] button?
     echo '<li><a href="', $scripturl, '?action=gallery" ><span>', $txt['sp-gallery'], '</span></a></li>';
But I just get one little tiny square no button?

Thanks!!
« Last Edit: October 11, 2008, 04:03:49 PM by Matt5L »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Your forum link doesn't appear to work. Are you still having issues with this Matt5L?

Do you need any more help?
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy 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.