Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
Post numbers MOD
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Post numbers MOD
PostPosted: 12/01/2006 1:55 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: 10:21 PM
Location: Klang, Malaysia
malaysiC.gif
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>


I was add this mod on my forum it was be working on my subsilver templates.

I can't find the last word on my avanlanche templates overall_header.tp file  FIND ( -->
</style> )


So what do i do? I change to subsilver templates and my MOD was working . Now i want make it working at my avalanche templates ,but i didn't see the last step word inside there, so what i need to do? Copy and paste at ?
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: Post numbers MOD
PostPosted: 12/02/2006 2:29 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: 6:21 PM
Location: St Pete, FL
peace.gif
I really can't help you if you refuse to use EM.  You will make human errors that EM would never make.  It is much easier to find and correct a problem if I can quickly rule out human error.  Since you are not using EM, I can't ever rule out human error, and it is not worth it for me to try to debug your work...

You have a perfectly good Test board to work with.  If you are too afraid to use EM even on your Test board, you probably shouldn't be adding MODs to either board...

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: Post numbers MOD
PostPosted: 12/02/2006 3:36 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: 10:21 PM
Location: Klang, Malaysia
malaysiC.gif
Ok..this is the post number mod that i want to install..now the mod can be working on my subsilver templates only.Could not be working on my avalanche templates.Coz i miss at the last step..
#
#-----[ OPEN ]------------------------------------------
#

templates/subsilver/overall_header.tpl



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
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: Post numbers MOD
PostPosted: 12/02/2006 9:16 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: 6:21 PM
Location: St Pete, FL
peace.gif
So what is the error message that EM gives you???

dontknow
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: Post numbers MOD
PostPosted: 12/03/2006 2:14 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: 10:21 PM
Location: Klang, Malaysia
malaysiC.gif
Nightrider wrote:
So what is the error message that EM gives you???

dontknow


Ok..you see the install.txt at the last step.Open templates/subsilver/ overall_header

Find  

-->
Stlye>


I can't find this word on my Avanlanche templates over_all_header inside.

If i change my templates to the subsilver ..i can see the post number MOD working.
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: Post numbers MOD
PostPosted: 12/05/2006 1:29 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: 10:21 PM
Location: Klang, Malaysia
malaysiC.gif
Problem Solve!! Thanks for reply my msg. banana  headbang
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
 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

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0873s (PHP: 60% - SQL: 40%) - SQL queries: 46 - GZIP disabled - Debug on