 | Post numbers MOD |  |
Posted: 12/01/2006 1:55 AM |
|
|
|
|
|
| Citation |
| Posts |
487 |
| Word Cnt. |
35,729 |
| BDay |
Oct 3 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Oct 29, 2006
Local time: 10:21 PM
Location: Klang, Malaysia
|

|
|
|
|
 |
| 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 |
|
|
 | Re: Post numbers MOD |  |
Posted: 12/02/2006 2:29 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:21 PM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Post numbers MOD |  |
Posted: 12/02/2006 3:36 PM |
|
|
|
|
|
| Citation |
| Posts |
487 |
| Word Cnt. |
35,729 |
| BDay |
Oct 3 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Oct 29, 2006
Local time: 10:21 PM
Location: Klang, Malaysia
|

|
|
|
|
 |
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"> </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
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: Post numbers MOD |  |
Posted: 12/02/2006 9:16 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:21 PM
Location: St Pete, FL
|

|
|
|
|
 |
So what is the error message that EM gives you???
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Post numbers MOD |  |
Posted: 12/03/2006 2:14 AM |
|
|
|
|
|
| Citation |
| Posts |
487 |
| Word Cnt. |
35,729 |
| BDay |
Oct 3 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Oct 29, 2006
Local time: 10:21 PM
Location: Klang, Malaysia
|

|
|
|
|
 |
| Nightrider wrote:
|
So what is the error message that EM gives you???
|
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 |
|
|
 | Re: Post numbers MOD |  |
Posted: 12/05/2006 1:29 AM |
|
|
|
|
|
| Citation |
| Posts |
487 |
| Word Cnt. |
35,729 |
| BDay |
Oct 3 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Oct 29, 2006
Local time: 10:21 PM
Location: Klang, Malaysia
|

|
|
|
|
 |
Problem Solve!! Thanks for reply my msg.  |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|