News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

PM Informer

Started by Diego Andrés, May 31, 2008, 08:12:19 PM

Previous topic - Next topic

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


Marcus Forsberg


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

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/classic/index.template.php on line 210

201:       }
202:    </style>';
203:    // YSHOUT END - <head> code
204:
205:    // Output any remaining HTML headers. (from mods, maybe?)
206:    echo $context['html_headers'], '
207:
208:     // the routine for the pm informer
209:    echo '
210:       <script language="JavaScript" type="text/javascript"><!-- // -->';211:
212:    echo chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);
213:
214:    echo '

Marcus Forsberg

Sorry.
It's not easy giving support to a swed who doesn't know how to upload images to his server on MSN, install a mod on a theme and help a swedish football forum at the same tme :P

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

Template Parse Error!
There was a problem loading the /Themes/classic/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------


Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/classic/index.template.php on line 210

201:       }
202:    </style>';
203:    // YSHOUT END - <head> code
204:
205:    // Output any remaining HTML headers. (from mods, maybe?)
206:    echo $context['html_headers'], '
207:
208:     // the routine for the pm informer
209:    echo '
210:       <script language="JavaScript" type="text/javascript"><!-- // -->';211:
212:    echo chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);
213:
214:    echo '

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

Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.

Marcus Forsberg


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

Atlast..!!! Worked..!

Wickeddd..!

So what where the edits ?

Marcus Forsberg

echo $context['html_headers'];

Had become
echo $context['html_headers'] , '
in some reason

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

so bascially it wasnt the edits you had given ? it was some other mod causing it ?

Marcus Forsberg

My code didn't touch that part.
It was either a misstake by you, a mod, or me when I first made the edits for you.

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

blaah nvm.. everything is fine now... :)

tom333

Quote from: Nascar on November 28, 2008, 10:58:39 AM
Daymon:
yes, that is possible. I'll get back to you on it soon,

tom333:
Can you post a screenshot on what you mean?
everything is fine now, my mistake, sory  :-[
Great module  ;)

Marcus Forsberg

No problem, we all make mistakes ;)
GLad you liked the mod.

tormi

#134
I try to install this mod in my 1.1.7 site which the mod states it supports. This is the warning message I am given. Should I proceed or not?

"Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF."

Installations actions for "Pm_Informer":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
2.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
3.   Execute Modification   ./Sources/ModSettings.php   Test failed
4.   Execute Modification   ./Sources/Load.php   Test successful
5.   Execute Modification   ./Themes/default/index.template.php   Test successful
6.   Execute Modification   ./index.php   Test successful

tormi

I fixed it by manually editing the failed testfile.

fshagan

Quote from: tormi on January 21, 2009, 03:06:06 AM
I try to install this mod in my 1.1.7 site which the mod states it supports. This is the warning message I am given. Should I proceed or not?

"Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF."

Installations actions for "Pm_Informer":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
2.   Execute Modification   ./Themes/default/languages/Modifications.english-utf8.php   Skipping file
3.   Execute Modification   ./Sources/ModSettings.php   Test failed
4.   Execute Modification   ./Sources/Load.php   Test successful
5.   Execute Modification   ./Themes/default/index.template.php   Test successful
6.   Execute Modification   ./index.php   Test successful


I had the same error, and also went ahead and installed it, and then edited my /Sources/ModSettings.php file manually.  The instructions for editing the file are found by choosing "1.1.7" under the "Manual Install Instructions for SMF" dialog at the mod's page at the Mod Site. 

When I did the manual search for the "Find" phrase to do the replacement in my editor, it couldn't find it.  The search phrase in the instructions included several "invisible" characters in front of it ... looks maybe like tab characters (see picture).  Perhaps this is why the mod doesn't auto-install on 1.1.7.

Kermit

I think,i've found it,why auto-install fails on 1.1.7

because of that here
Quote

Source/Modsettings.php

Code (find) Select
// Stats, compression, cookies.... server type stuff.


Code (replace with) Select

// The PM Informer
array('text', 'pmi_style'),
'',
// Stats, compression, cookies.... server type stuff.


But if we make the first line like that,it would work without problem

// Stats, compression, cookies.... server type stuff.

The related line is apparently manipulated due to installation of an another mod,so it would not work on every forum as it should
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Stef001

Hello,

I get this message:
Undefined index: pm_informer

i use SMF2
had someone any idea?

Stef.
SMF 2.0.2 | SimplePortal 2.3.5

efil59

Hi,
I had PM Informer in the default skin and it worked perfect. I changed to another skin and i tried to insert the code in index.template.php' but it's not working.

Can you help?

Thanks,
Efil.

Advertisement: