News:

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

Main Menu

1.8 Error Message cant resolve. Please help?

Started by Amoreitalia, April 02, 2009, 04:09:09 AM

Previous topic - Next topic

Tyrsson

Please post the error so that I can see it. It may be the same error but I need to verify that it is not longer being eval'ed before I have you attach a template and start searching through 100's of lines of code.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Amoreitalia

8: Undefined index: viewer_text
File: /home/content/c/g/f/cgforums/html/forums/Themes/default/MessageIndex.template.php
Line: 69

Amoreitalia

$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts']. $child['viewer_text'] . ')">' . $child['name'] . '</a>';


that is line 69. im using dreamweaver to open it.

Tyrsson

Please attach a this file to your next post:

/Themes/default/MessageIndex.template.php

Also please post a list of all mods you have installed if you have not already done so.
PM at your own risk, some I answer, if they are interesting, some I ignore.


Tyrsson

Its most likely being caused by the Sub Board mod. Please look over the manual install instructions and verify that all edits were made by the mod.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Amoreitalia

http://www.simplemachines.org/community/index.php?topic=300777.20

i got the mod there and reply 34 is the guy that said i would have to manually add it to the messageindex area.

it works fine but throws up that error.

Amoreitalia

he said to add it manually for child of child boards to be aligned and centered. cause the original mod only does the index page.

Tyrsson

Ok its not that mod. let me check a few things here and see if I can find which mod it may be caused by.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Tyrsson

If that is the mod that is causing it then remove the mod.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Amoreitalia

well it was fine untill i manually edited that messageindex.template file. i had no errors prior?


maybe you can help me redo what i was supposed to do? i followed the manual intructions for that mod i showed you BUT i did them in the messageindex.template file not the boardindex.

the admin/mod did say they were similar.... so i dunno?

Amoreitalia

http://custom.simplemachines.org/mods/index.php?action=parse


that is what i did but in the messageindex.template file. there is no installed mod i did it manually i dont know how to redo it?

Tyrsson

Can you please link me to the mod download page in the customize site for this mod.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Amoreitalia

http://custom.simplemachines.org/mods/index.php?mod=1704


1.1.8 manual instructions.

i did the manual instillation backwards and i get no errors now.. but how do i do it the right way to align my child of child boards.

Aleksi "Lex" Kilpinen

I'm just guessing here now - but could it just be that the Aligned and Bilateral boards -mod has the  $child['viewer_text'] by mistake. It is used in Board Viewers Mod, and I can't see any use for it in this mod...

Aligned and Bilateral Child Boards smf 1.1.x

Board Viewers
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Tyrsson

I will have to look into it later this evening as it is time for some $sleep.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Amoreitalia

Quote from: LexArma on April 02, 2009, 10:36:07 AM
I'm just guessing here now - but could it just be that the Aligned and Bilateral boards -mod has the  $child['viewer_text'] by mistake. It is used in Board Viewers Mod, and I can't see any use for it in this mod...

Aligned and Bilateral Child Boards smf 1.1.x

Board Viewers


so what would i take out of that? that makes total sense... what do you suggest?

Aleksi "Lex" Kilpinen

in ./Themes/default/BoardIndex.template.php I would try finding this

$txt[21] . ': ' . $child['posts']. $child['viewer_text'] . ')">' . $child['name']

and changing it to this

$txt[21] . ': ' . $child['posts']. ')">' . $child['name']

But I can't promise you it will work, so if you didn't backup already - then atleast take a copy of the file now, before trying.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Amoreitalia

wait. its messageIndex.template.php file that i was having the error with. because i wanted my child of CHILD boards aligned and centered with that mod. So i was told to manually do teh same as i would on board index but on messageindex.template.php.

so shoudl i still try that? Follow the manual instructions on the mod but instead of doing it on board index do it on messageindex? and then try tyhe change you suggested?

Aleksi "Lex" Kilpinen

Oh yeah, if you did the edit in boardindex instead of messageindex, then yeah, try to take the same bit out of it.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: