TinyPortal

Development => Support => Topic started by: brianjw on January 20, 2007, 12:25:14 AM

Title: Very Weird Code Showing Up
Post by: brianjw on January 20, 2007, 12:25:14 AM
On the top of every theme except alienation because i modified it has the code:

// PM on new user registration. $txt['pm_register_enable'] = 'Send a PM to newly registered members?'; $txt['pm_register_id'] = 'ID of the member to send PM as'; $txt['pm_register_id_desc'] = 'This is the user profile that will be loaded when the PM is sent. To set as a guest sent PM set it to 0.'; $txt['pm_register_from'] = 'Send PM to newly registered member as'; $txt['pm_register_from_desc'] = 'This is the username that will appear when the PM is sent.'; $txt['pm_register_subject'] = 'The subject of the PM'; $txt['pm_register_body'] = 'The content of the PM goes here'; $txt['pm_register_body_desc'] = 'This is where you type the message that you would like to send to the user. To insert the username of the user just insert "{$username}". For forum name use "{$boardname}".'; $txt['pm_register_body_sample'] = 'This is a sample message.' ."\n\n". 'Hello {$username}, welcome to {$boardname}. That will output Hello "username", welcome to "forum_name".';

I have know idea where this is coming from. It might be something I have to modify in every theme but I'm not sure. It is showing up alot... :-\
Title: Re: Very Weird Code Showing Up
Post by: IchBin on January 20, 2007, 01:21:19 AM
The last time you posted that error, I gave you the fix Brian. Go search your posts and find it.
Title: Re: Very Weird Code Showing Up
Post by: brianjw on January 20, 2007, 02:24:30 AM
Quote from: IchBinâ„¢ on January 18, 2007, 10:02:22 PM
Brianjw, in your modifications.english.php of your default theme please make sure there is not a duplicate ?> at the end of your file, or that there is no other code after the ?> at the end of your file.

If the pirates theme has this file, also check it for the same thing.
Lets see if it works... :)
Title: Re: Very Weird Code Showing Up
Post by: brianjw on January 20, 2007, 02:27:55 AM
There is no duplicate and there is no code after the ?> at the end of my file.
I have attatched my Modifications.template.php file to this message. ;)
This just came out of my files so it is the current. ^-^
Title: Re: Very Weird Code Showing Up
Post by: Skhilled on January 20, 2007, 03:42:15 AM
You must change EVERY modifications.english.php file for every theme. The mod only installs to the default theme and will show on every page. You must change the default theme modifications.english.php file to fix it from showing up on your site.
Title: Re: Very Weird Code Showing Up
Post by: brianjw on January 20, 2007, 01:46:44 PM
That is the Modifications.english.php from the default theme
Title: Re: Very Weird Code Showing Up
Post by: jacortina on January 20, 2007, 02:15:38 PM
Actually, it doesn't have to be the Modifications.english.php.

That looks like strings for the 'PM on Registration' mod. Wherever that mod put its text strings is the file that is messed up (and it's got to be one of the most recently changed files). If all else fails, search in *.english.php files for some of the text given. You'll find that text at the bottom of the file AFTER what should be the closing tag.
Title: Re: Very Weird Code Showing Up
Post by: knat on January 20, 2007, 07:06:28 PM
its prolly modifications.english.php  ::)
Title: Re: Very Weird Code Showing Up
Post by: Skhilled on January 20, 2007, 10:45:00 PM
The same happened to me using that mod the other day.
Title: Re: Very Weird Code Showing Up
Post by: brianjw on January 20, 2007, 11:37:48 PM
Quote from: knat on January 20, 2007, 07:06:28 PM
its prolly modifications.english.php  ::)
If you read the whole thread you will see that has already been tried. A TP Staff just told me it was in english.php and it probably is considering it is not in modifications.english.php
Quote from: J.A.Cortina on January 20, 2007, 02:15:38 PM
Actually, it doesn't have to be the Modifications.english.php.

That looks like strings for the 'PM on Registration' mod. Wherever that mod put its text strings is the file that is messed up (and it's got to be one of the most recently changed files). If all else fails, search in *.english.php files for some of the text given. You'll find that text at the bottom of the file AFTER what should be the closing tag.
Ok, I will search english.php! :)
Title: Re: Very Weird Code Showing Up
Post by: akulion on January 21, 2007, 12:15:06 AM
i dont see anything wrong?

are u sure u arent seeing things?
Title: Re: Very Weird Code Showing Up
Post by: IchBin on January 21, 2007, 01:31:44 AM
Only shows on a certain theme. Please post the language files from that theme Brian.
Title: Re: Very Weird Code Showing Up
Post by: brianjw on January 21, 2007, 02:56:02 AM
Where is the english.php file located? ???

IchBin, it shows on every theme except for the alienation theme because it is modified there for a logo for some reason.
Title: Re: Very Weird Code Showing Up
Post by: jacortina on January 21, 2007, 02:59:18 AM
Brian, if you read my post, I wrote *.english.php (note wildcard character '*').

It's in SOME language file. Use a search utility or (if you absolutely have to) the built in Search...Files and Folders.
Title: Re: Very Weird Code Showing Up
Post by: brianjw on January 21, 2007, 03:25:13 AM
In /Themes/default/languages there are search.english.php and stats.english.php etc. but no english.php ???
Title: Re: Very Weird Code Showing Up
Post by: jacortina on January 21, 2007, 03:31:53 AM
There are a lot more than that named <something>.english.php.

First, do you have the latest version of those files (pulled from your server AFTER your latest mod installation)?

Second, if you are running Windows, click Start then Search then For Files and folders. Search for files and folders named *.english.php (remember the wildcard '*') and put "PM on new user registration" in the place for continaing the text:.

All you're trying to do is search for a string across multiple files on your PC.
Title: Re: Very Weird Code Showing Up
Post by: brianjw on January 21, 2007, 03:33:34 AM
I will do this tomorrow! :D
Title: Re: Very Weird Code Showing Up
Post by: akulion on January 21, 2007, 08:08:26 AM
i still dont see any 'strange text' anywhere on ur page on any of the themes
Title: Re: Very Weird Code Showing Up
Post by: brianjw on January 21, 2007, 02:36:14 PM
I don't know... I use IE7
Title: Re: Very Weird Code Showing Up
Post by: akulion on January 21, 2007, 06:00:05 PM
seriously dude
check again
its no where to be seen that text on any theme in any browser
Title: Re: Very Weird Code Showing Up
Post by: brianjw on January 21, 2007, 07:04:03 PM
Aku, you are right!!! Did you fix it, lol. Because I know it was there before... :D
Title: Re: Very Weird Code Showing Up
Post by: akulion on January 21, 2007, 10:54:48 PM
yes i did actually lol

i told u before for some reason your theme settings are being picked up from /forum/Themes/..... folders

and not from Themes/....

so anytime u make changes make changes in there
Title: Re: Very Weird Code Showing Up
Post by: brianjw on January 21, 2007, 11:12:54 PM
ok. thanks for ur help. aku :D

-he saves the day once again!