Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved]Some little problem ~~~
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved]Some little problem ~~~
PostPosted: 07/22/2007 7:03 PM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 6:48 AM
Location: Klang, Malaysia
malaysiC.gif
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">&nbsp;</span>&nbsp; &nbsp;{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>&nbsp; &nbsp;

#
#-----[ 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
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: Some little problem ~~~
PostPosted: 07/23/2007 1:22 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 2:48 AM
Location: St Pete, FL
peace.gif
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>&nbsp; &nbsp;

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...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Some little problem ~~~
PostPosted: 07/23/2007 4:59 AM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 6:48 AM
Location: Klang, Malaysia
malaysiC.gif
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>&nbsp; &nbsp;

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...

munky2


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
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: Some little problem ~~~
PostPosted: 07/23/2007 3:03 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 2:48 AM
Location: St Pete, FL
peace.gif
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...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Some little problem ~~~
PostPosted: 07/23/2007 3:17 PM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 6:48 AM
Location: Klang, Malaysia
malaysiC.gif
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...

munky2


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">&nbsp;</span>&nbsp; &nbsp;{L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>

Back to Top
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: Some little problem ~~~
PostPosted: 07/23/2007 3:53 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 2:48 AM
Location: St Pete, FL
peace.gif
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">&nbsp;</span>&nbsp; &nbsp;{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>&nbsp; &nbsp;

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>&nbsp; &nbsp;

Save, upload, and try again using EM...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Some little problem ~~~
PostPosted: 07/23/2007 4:17 PM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 6:48 AM
Location: Klang, Malaysia
malaysiC.gif
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
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: Some little problem ~~~
PostPosted: 07/23/2007 4:26 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 2:48 AM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Some little problem ~~~
PostPosted: 07/23/2007 4:30 PM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 6:48 AM
Location: Klang, Malaysia
malaysiC.gif
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
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: Some little problem ~~~
PostPosted: 07/23/2007 4:50 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 2:48 AM
Location: St Pete, FL
peace.gif
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...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2  Next
Page 1 of 2


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.1178s (PHP: 69% - SQL: 31%) - SQL queries: 58 - GZIP disabled - Debug on