 | [Solved]Some little problem ~~~ |  |
Posted: 07/22/2007 7:03 PM |
|
|
|
|
|
| Citation |
| Posts |
487 |
| Word Cnt. |
35,729 |
| BDay |
Oct 3 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Oct 29, 2006
Local time: 9:15 PM
Location: Klang, Malaysia
|

|
|
|
|
 |
Ok..this is my Post ID mod b4 i install..Coz dunno why suddenly it have no function.. and now i want reinstall it with EM since b4 i'm use the manual to install this. And now i has delete the all code manual .But at the last , this is a script error ..could you tell me how to delete this error line?
Below this is a MOD intrustion.
P/S: Im install this MOD b4 with manual , So now i want delete it manual and reinstall with EM now.So i need master tell me which file i need to open and delete that error line?
| Code:
|
##############################################################
## MOD Title: post numbers
## MOD Author: emrag < > (Emrah Türkmen) www.canver.net
## MOD Description: with this hack all messages will have a number.
## in all topics this number will start from one (1)
## when you click this number you will see this message's direct link.
## now when you want to show any messages to your friend send this link
## He/she will go direct to your showed message.
##
##
## MOD Version: 1.0.2
##
## Installation Level: Easy
## Installation Time : ~5 minutes
## Files to Edit: viewtopic.php
## includes/page_header.php
## language/lang_english/lang_main.php
## templates/subsilver/viewtopic_body.tpl
## templates/subsilver/overall_header.tpl
##
## Ýncluded Files: n/a
##############################################################
##
## Author Note: i saw this feature in invision power boards and adapt it to phpBB ;)
##
##############################################################
##
## MOD History: 11.02.2005 - 1.0.0
## - First release
##
## 11.02.2005 - 1.0.1
## - added a forgotten line ;)
##
## 11.02.2005 - 1.0.2
## - fixed a bug
##
##############################################################
##
## Before Adding This Hack To Your Forum, You Should Back Up All Files Related To This Hack
##
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#----[ FIND ]------------------------------------------
#
//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
//
for($i = 0; $i < $total_posts; $i++)
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
$post_number = $i+$start;
$post_number = $post_number+1;
$post_id = $postrow[$i]['post_id'];
#
#----[ FIND ]------------------------------------------
#
'POST_DATE' => $post_date,
'POST_SUBJECT' => $post_subject,
'MESSAGE' => $message,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'POST_NUMBER' => $post_number,
'POST_ID' => $post_id,
#
#----[ FIND ]------------------------------------------
#
'L_MINI_POST_ALT' => $mini_post_alt,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_POST' => $lang['Post'],
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#----[ FIND ]------------------------------------------
#
'SITENAME' => $board_config['sitename'],
'SITE_DESCRIPTION' => $board_config['site_desc'],
#
#----[ BEFORE, ADD ]------------------------------------------
#
'SERVER_NAME' => $board_config['server_name'],
'SCRIPT_PATH' => $board_config['script_path'],
'PHPEX' => $phpEx,
'POST_POST_URL' => POST_POST_URL,
'COPY' => $lang['Copy'],
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#----[ FIND ]------------------------------------------
#
?>
#
#----[ BEFORE, ADD ]------------------------------------------
#
$lang['Copy'] = 'Copy this message\'s direct link';
#
#-----[ OPEN ]------------------------------------------
#
templates/subsilver/viewtopic_body.tpl
#
#----[ FIND ]------------------------------------------
#
<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen"> </span> {L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
#
#----[ IN LINE FIND ]------------------------------------------
#
<td width="100%">
#
#----[ IN LINE AFTER, ADD ]------------------------------------------
#
<span class="postdetails"><b>{postrow.L_POST}: <a onclick="link_to_post({postrow.POST_ID}); return false;" href="#">#{postrow.POST_NUMBER}</a></b></span>
#
#-----[ OPEN ]------------------------------------------
#
templates/subsilver/overall_header.tpl
#
#----[ FIND ]------------------------------------------
#
-->
</style>
#
#----[ AFTER, ADD ]------------------------------------------
#
<script language="Javascript" type="text/javascript">
<!--
function link_to_post(pid)
{
temp = prompt( "{COPY}", "http://" + "{SERVER_NAME}" + "{SCRIPT_PATH}" + "viewtopic" + "." + "{PHPEX}" + "?" + "{POST_POST_URL}" + "=" + pid + "#" + pid );
return false;
}
-->
</script>
#
#-----[ SAVE ALL FILES/CLOSE ]------------------------------------------
#
# EoM
|
|
|
Last edited by masteranu84 on 07/23/2007 4:56 PM; edited 1 time in total |
|
 |
 |
| Back to Top |
|
|
 | Re: Some little problem ~~~ |  |
Posted: 07/23/2007 1:22 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 5:15 PM
Location: St Pete, FL
|

|
|
|
|
 |
The following is the code that is displaying on your viewtopic_body.tpl page:
| Code:
|
|
<span class="postdetails"><b>{postrow.L_POST}: <a onclick="link_to_post({postrow.POST_ID}); return false;" href="#">#{postrow.POST_NUMBER}</a></b></span>
|
If you removed the MOD, then you should have removed this as well. Make sure you remove all the code added to the other files too...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some little problem ~~~ |  |
Posted: 07/23/2007 4:59 AM |
|
|
|
|
|
| Citation |
| Posts |
487 |
| Word Cnt. |
35,729 |
| BDay |
Oct 3 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Oct 29, 2006
Local time: 9:15 PM
Location: Klang, Malaysia
|

|
|
|
|
 |
| Nightrider wrote:
|
The following is the code that is displaying on your viewtopic_body.tpl page:
| Code:
|
|
<span class="postdetails"><b>{postrow.L_POST}: <a onclick="link_to_post({postrow.POST_ID}); return false;" href="#">#{postrow.POST_NUMBER}</a></b></span>
|
If you removed the MOD, then you should have removed this as well. Make sure you remove all the code added to the other files too...
|
Ok, i has delete the code and now i want use the EM to install but get this error
| Code:
|
Error Detail
Critical Error
Function Trace: open_files[5]->modio_open[1]
Could not open [templates/subsilver/viewtopic_body.tpl] for reading.
MOD script line #136 :: FAQ :: Report
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some little problem ~~~ |  |
Posted: 07/23/2007 3:03 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 5:15 PM
Location: St Pete, FL
|

|
|
|
|
 |
Correct. The font case for subSilver is wrong. On *NIX based systems, font case is extremely important. Subsilver is different than subsilver, is different than subSilver, is different than SUBSILVER. The font case has to be an EXACT match. So change the folder name(s) from subsilver to subSilver in the MOD script and then try it again...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some little problem ~~~ |  |
Posted: 07/23/2007 3:17 PM |
|
|
|
|
|
| Citation |
| Posts |
487 |
| Word Cnt. |
35,729 |
| BDay |
Oct 3 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Oct 29, 2006
Local time: 9:15 PM
Location: Klang, Malaysia
|

|
|
|
|
 |
| Nightrider wrote:
|
Correct. The font case for subSilver is wrong. On *NIX based systems, font case is extremely important. Subsilver is different than subsilver, is different than subSilver, is different than SUBSILVER. The font case has to be an EXACT match. So change the folder name(s) from subsilver to subSilver in the MOD script and then try it again...
|
Ok.. another error msg now~
| Code:
|
Error Detail
Critical Error
FIND FAILED: In file [templates/subSilver/viewtopic_body.tpl] could not find:
<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen"> </span> {L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some little problem ~~~ |  |
Posted: 07/23/2007 3:53 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 5:15 PM
Location: St Pete, FL
|

|
|
|
|
 |
Ok, try this:
OPEN
post_numbers.txt
FIND
| Code:
|
#
#----[ FIND ]------------------------------------------
#
<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen"> </span> {L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
#
#----[ IN LINE FIND ]------------------------------------------
#
<td width="100%">
#
#----[ IN LINE AFTER, ADD ]------------------------------------------
#
<span class="postdetails"><b>{postrow.L_POST}: <a onclick="link_to_post({postrow.POST_ID}); return false;" href="#">#{postrow.POST_NUMBER}</a></b></span>
|
REPLACE WITH
| Code:
|
#
#----[ FIND ]------------------------------------------
#
<a href="{postrow.U_MINI_POST}
#
#----[ IN-LINE FIND ]------------------------------------------
#
<a href="{postrow.U_MINI_POST}
#
#----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
<span class="postdetails"><b>{postrow.L_POST}: <a onclick="link_to_post({postrow.POST_ID}); return false;" href="#">#{postrow.POST_NUMBER}</a></b></span>
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some little problem ~~~ |  |
Posted: 07/23/2007 4:17 PM |
|
|
|
|
|
| Citation |
| Posts |
487 |
| Word Cnt. |
35,729 |
| BDay |
Oct 3 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Oct 29, 2006
Local time: 9:15 PM
Location: Klang, Malaysia
|

|
|
|
|
 |
Now is my template error msg ...
| Code:
|
Error Detail
Warning
FIND FAILED: In file [templates/Avalanche/overall_header.tpl] could not find:
-->
</style>
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some little problem ~~~ |  |
Posted: 07/23/2007 4:26 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 5:15 PM
Location: St Pete, FL
|

|
|
|
|
 |
Right, your Avalanche/overall_header.tpl file doesn't include any style information. So try this:
OPEN
post_numbers.txt
FIND
| Code:
|
#
#----[ FIND ]------------------------------------------
#
-->
</style>
#
#----[ AFTER, ADD ]------------------------------------------
#
<script language="Javascript" type="text/javascript">
<!--
function link_to_post(pid)
{
temp = prompt( "{COPY}", "http://" + "{SERVER_NAME}" + "{SCRIPT_PATH}" + "viewtopic" + "." + "{PHPEX}" + "?" + "{POST_POST_URL}" + "=" + pid + "#" + pid );
return false;
}
-->
</script>
|
REPLACE WITH
| Code:
|
#
#----[ FIND ]------------------------------------------
#
</head>
#
#----[ BEFORE, ADD ]------------------------------------------
#
<script language="Javascript" type="text/javascript">
<!--
function link_to_post(pid)
{
temp = prompt( "{COPY}", "http://" + "{SERVER_NAME}" + "{SCRIPT_PATH}" + "viewtopic" + "." + "{PHPEX}" + "?" + "{POST_POST_URL}" + "=" + pid + "#" + pid );
return false;
}
-->
</script>
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some little problem ~~~ |  |
Posted: 07/23/2007 4:30 PM |
|
|
|
|
|
| Citation |
| Posts |
487 |
| Word Cnt. |
35,729 |
| BDay |
Oct 3 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Oct 29, 2006
Local time: 9:15 PM
Location: Klang, Malaysia
|

|
|
|
|
 |
| Code:
|
Installation Failed
EasyMOD encountered the following error(s). A general error could be ABC. A critical error means D and you should do XYZ.
The following commands were not recognized by EasyMOD and were ignored. The MOD script line number is displayed.
Unprocessed Commands
SAVE ALL FILES/CLOSE #177
|
What i need to do next step..since i has install but no have the next step button to click. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Some little problem ~~~ |  |
Posted: 07/23/2007 4:50 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 5:15 PM
Location: St Pete, FL
|

|
|
|
|
 |
The last command is wrong too:
OPEN
post_numbers.txt
FIND
| Code:
|
#
#-----[ SAVE ALL FILES/CLOSE ]------------------------------------------
#
# EoM
|
REPLACE WITH
| Code:
|
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|