 | [Solved] Sorry NR, another EM Question :) |  |
Posted: 01/11/2007 5:26 PM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 8:32 AM
|

|
|
|
|
 |
I'm trying to add this mod http://www.phpbb.com/phpBB/viewtopic.php?t=377087
I did my SQL change (I think!) and I'm trying to run the code changes through EM but I got an error.
I think I know why its not finding it, its because of another mod, but I'm not sure where the code should now go.
www.babydreamz.net/public/index.txt
And this is the error message...
Critical Error
FIND FAILED: In file [index.php] could not find:
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '' . $forum_data[$j]['username'] . ' ';
Thanks!  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Sorry NR, another EM Question :) |  |
Posted: 01/11/2007 11:46 PM |
|
|
|
|
|
| Citation |
| Posts |
2152 |
| Word Cnt. |
78,257 |
| BDay |
Jun 15 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Apr 22, 2005
Local time: 6:32 PM
Location: Upside down
|

|
|
|
|
 |
I'd say the find line is too long. Try shortening the find line
This is the line in your txt. file you linked to
| Code:
|
|
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $forum_data[$j]['user_id']) . '"' . $style_color . '>' . $username_color . '</a> ';
|
I'd say change your mod file for the find command to
| Code:
|
|
$last_post .= ( $forum_data[$j]['user_id']
|
Do a backup first and try that. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Sorry NR, another EM Question :) |  |
Posted: 01/12/2007 4:27 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 8:32 AM
|

|
|
|
|
 |
Cool I will! Thanks  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Sorry NR, another EM Question :) |  |
Posted: 01/12/2007 8:01 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 8:32 AM
|

|
|
|
|
 |
Ok I did it and for every other error that happened and I did an SQL instruction and it all worked!!
(I get sooooo nervous doing things to my site so I'm so pleased with myself )
for helping! |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Sorry NR, another EM Question :) |  |
Posted: 01/12/2007 9:17 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:32 AM
Location: St Pete, FL
|

|
|
|
|
 |
Awesome. Congratulations Karen!!!
Have you ever considered creating a Test board so that you can install these MODs and work out all problems? That would decrease your stress level when installing anything into your community. If you can get the MOD to install correctly in your Test board, then you would be able to do the same on your Live board. If there are any problems during the MOD install on your Test board, you can work them out without ever disrupting your Live community...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Sorry NR, another EM Question :) |  |
Posted: 01/12/2007 9:23 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 8:32 AM
|

|
|
|
|
 |
Yes I think I read a thread about it before, I have extra databases so I could do it but I'm not sure how it all works (I'll have to read the thread in question again) Actually I wanted to do another live board but not sure how to set it up and tie it in with babydreamz, as in a link to take you to the other board but that's a whole other problem  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Sorry NR, another EM Question :) |  |
Posted: 01/12/2007 12:21 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:32 AM
Location: St Pete, FL
|

|
|
|
|
 |
Creating Test phpBB Board
I can give you enough to get started.
- The first thing you want to do is download all of your board files and folders to your PC.
- Next, create a folder on your server called Test...
- Upload all of the board files and folders that you just downloaded to your PC back to your new Test folder...
- Create a new Test database
- Open the Test config.php file in your favorite editor and modify the dbname, dbuser, and dbpasswd settings to match your new Test Database
- Create a database backup of your Live board database from your ACP...
- Restore your new database backup back to your new Test database. This will probably take a long time. You will probably need some help with this step unless you are very familiar with phpMyAdmin...
- Modify phpbb_config table settings in your Test database that contain a full or partial board path to match the URL path on your new board
Your new Test board should be good to go at this point. My instructions above may take some time to accomplish, but it is worth it to have a Test board available to test install new MODs that you want to install on your Live board.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Sorry NR, another EM Question :) |  |
Posted: 01/12/2007 12:41 PM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 8:32 AM
|

|
|
|
|
 |
Fantastic! Just want to say thanks for all your help, you're a fab teacher
I will more than likely need help with
| Quote:
|
No 7 - Restore your new database backup back to your new Test database. This will probably take a long time. You will probably need some help with this step unless you are very familiar with phpMyAdmin...
|
But I'll have a good read and see what I need to do. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Sorry NR, another EM Question :) |  |
Posted: 01/12/2007 1:44 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:32 AM
Location: St Pete, FL
|

|
|
|
|
 |
Number 7 shouldn't be that hard either. PhpMyAdmin has a nice function that you can use to duplicate your database. Go into phpMyAdmin and if the database is not selected, go ahead and do so. Then click on the Operations tab on the right and scroll down to the Copy database to section:
Enter test into the edit widow and make sure that Structure and data and Create Database before copying are both selected. You might want to select the Switch to copied database option too so that you can check it out when done. Then press the Go button. In a few minutes, you should have a new database that is identical to your Live database. You can then edit the config.php file to use the new test database...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Sorry NR, another EM Question :) |  |
Posted: 03/04/2007 6:06 PM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 8:32 AM
|

|
|
|
|
 |
| I'm having a go at doing this but I'm stuck where you said click on the operations tab. I can't find that anywhere. Would it be the same as 'Export'? |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|