News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Remove SMF Logo

Started by Deprecated, August 13, 2008, 02:20:59 PM

Previous topic - Next topic

Deprecated

Link to Mod

Obsolete

Deal

I tried this one on top of a fresh install and it caused an error in index.template.php

Deprecated

What error? Please zip your modified index.template.php and attach it to your reply. Include the line number from your error message. Also state which theme you are using.

Deal

In my haste to recover I didn't grab a screen print. I was using the default theme. My memory says it was line 200 but I am not certain of that. The actual line had a td with a character. I'm sorry not to have gathered much information. I can say for sure that immediately after applying the patch I saw the logo disappear, it was a subsequent refresh that caused the error. I FTP'd the attached file directly to the server in order to fix it.


Deprecated

I'm sorry. You've uploaded the SMF 1.1.5 unmodified index.template.php ... I can't help you without more information, like the template after you installed my mod. The exact line number and message are also very important. I'm willing to work with you but my GF moved out and took her crystal ball with her. ;)

Deal

#5
OK, I appreciate your assistance with the mod and didn't want ot leave it hanging like that. I went back to this to see if I could replicate the issue I had before and succeeded.

This time I switched the forum users to use the Babylon theme but changed mine to use default. Rather then use the package this time I manually edited .../default/index.template.php as highlighted below and once again received the error. Not sure what to do to remove it.... ?

Parse error: syntax error, unexpected '/' in .../Themes/default/index.template.php on line 197

188:
189:    echo '
190:             </td>
191:             /* remove SMF logo
192:             <td align="right" class="catbg">
193:                <img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
194:             </td>
195:             */
196:             echo '

197:          </tr>
198:       </table>';
199:
200:
201:    // display user name

Deprecated

That's very odd because your index.template.php is missing some code. After that </td> on line 190 there should be a single quote semicolon, e.g. ';

It appears that your package installation or the package itself was flawed. I just downloaded the file from the mod site and verified that it is correct, that it does contain the code for the single quote semicolon, which terminates the previous echo statement. Without that the PHP interpreter thinks it's still reading the HTML and that's why there's PHP code in your HTML output.

I suggest that you uninstall the package, delete it, then download a new version of the file. Before installing it, check your index.template.php is clean other than mods you know are supposed to be there. Then install the newly downloaded patch and check your index.template.php and make sure the code got in properly.

Or a quick fix: Just add the single quote semicolon '; at the end of line 190. The only problem with the quick fix is that you may not be able to uninstall the mod correctly.

Deal

I added the suggested code and that fixed the issue for me. tyvm.

Oh, and sorry about your gf :)

Deprecated

Quote from: Deal on August 20, 2008, 06:43:52 PM
Oh, and sorry about your gf :)

Said GF with said crystal ball was mythical! ;)

Real GF has no balls. :D

Deprecated

Please note that this mod has been revised for SMF 2.0 Beta 4 compatibility.

I will verify 1.1.6 compatibility and if required make any necessary changes when my workload permits. Beta 4 is the priority.

Deprecated

This modification has been verified to work properly with both SMF 1.1.6 and SMF 2.0 Beta 4.

martinmarinekeeper

hi i have installed the mod in on 1.1.5 and has caused the forum to stop running
this is what i now get
QuoteTemplate Parse Error!
There was a problem loading the /Themes/default/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 '/' in .../Themes/default/index.template.php on line 213

204:             /* Remove SMF logo';
205:             /* Remove SMF logo
206:             <td align="right" class="catbg">
207:                <img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
208:             </td>
209:             */
210:             echo '
211:             */
212:             echo '
213:          </tr>214:       </table>';
215:
216:
217:    // display user name

its installed on default theame also

martinmarinekeeper

it would appier that on line 208 the '; is missiing as the one higher up on line 190
now i dont understand all this stuff as you guys do i drive for a living lol so how do i add that to it?

i cannot remove package as i cannot get into the forum to do so
i can access cpanel mind

Deprecated

You have somehow managed to install the mod package twice. Not good.

Please attach your file to you next post and I'll see if I can manually edit it for you.

martinmarinekeeper

i cant download it and when i open the folder it just has three lines ?

looked at installed packages
Quote
installed.list
File Type: ASCII text

--------------------------------------------------------------------------------

TinyPortal|^|TPv1.05beta1.zip|^|bloc:tinyportal|^|1.052
Ad Managment|^|ad_mod_1-1-x_v2-3.zip|^|jeremy:ads|^|2.3
Auto Embed Video Clips|^|AEVC_v2.2.zip|^|karlbenson:autoembedvideoclips|^|2.2
Users Online Today Mod|^|Users_Online_Today_1.4.0.zip|^|Michael.PedersenAkaCarceri:UsersOnlineTodayMod|^|1.4.0
SMF Gallery Lite|^|Gallery1.8.3.zip|^|vbgamer45:smfgallery|^|1.8.3
Googlebot & Spiders Mod|^|Googlebot_v2_0_3_only_smf1.1.x.zip|^|obazavil:googlebot|^|2.0.3
Your Button|^|ybutton1.2.zip|^|mrmoney:ybutton|^|1.1
Display Age and Location next to posts|^|AgeLocationOnPosts_1-0.zip|^|daniel15:AgeLocationOnPosts|^|1.0
Unique Hit Counter|^|uniquehitcounter1.zip|^|aldo:UniqueCounter|^|1.0
Images On Board|^|ImagesOnBoard1.1.zip|^|JB:IOB|^|1.1
Colorize Boards|^|ColorizeBoards.zip|^|JB:CB|^|3.0
Remove SMF Logo|^|remove_smf_logo_1.1.zip|^|Deprecated:Remove_SMF_Logo|^|1.1
its only there once, i installed it i saw the logo had gone clicked home page and thats it it went all silly on me then, cant see how its managed to get installed twice, i looked at the default theams to see if i could find the '; that was missing after the </td> but theres loads without it

martinmarinekeeper

this is all i get when i click show files
Quote
Archive:  remove_smf_logo_1.1.zip
  Length     Date   Time    Name
--------    ----   ----    ----
     1248  09-09-08 10:00   modification.xml
     1073  09-09-08 09:58   modification2b4.xml
     1768  09-09-08 10:15   package-info.xml
--------                   -------
     4089                   3 files


martinmarinekeeper

were am i looking for for the info you need plz ?

Deprecated

Download your file using FTP.

How do I use FTP? / What is FTP?

I'm going to modify your file and attach it to my next post. I'm going to remove the modification.

Then I'm going to modify the mod package so that it is impossible to install the mod twice, and I'm going to ask you to apply the new mod package to your SMF.

stingerman

error -

1.     Execute Modification     ./Themes/default/index.template.php     Test failed

Deprecated

Please attach your index.template.php to your next post. :)

Advertisement: