Page 1 of 1

MOD Port Request - Bottom Aligned Signature 1.1.0

PostPosted: Sun May 21, 2006 5:03 am
Author: Dr. Bantham
This MOD seems like a simple fix, but much of the existing code does not match. I assume this must be due to PCP use in IntegraMOD. Has anyone worked it out for IM?

Code: Select all
##############################################################  ## MOD Title]http://www.golfexpert.net/phpbb[/url]  ## MOD Author, Secondary: AbelaJohnB < [url=http://www.JohnAbela.com]http://www.JohnAbela.com[/url]  ## MOD Description:       This mod will align signatures at ##                        the bottom of posts. ## MOD Version:           1.1.0 ##  ## Installation Level:    Easy ## Installation Time:     5 Minutes (1mn by EasyMOD of Nuttzy) ## Files To Edit:         2 ##      viewtopic.php ##      templates/subSilver/viewtopic_body.tpl ## ## Included Files:        0 ## ##############################################################  ## For Security Purposes, Please Check: [url=http://www.phpbb.com/mods/]http://www.phpbb.com/mods/[/url] for the  ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code  ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered  ## in our MOD-Database, located at: [url=http://www.phpbb.com/mods/]http://www.phpbb.com/mods/[/url]  ##############################################################  ## Author Notes:  ## ## 1. Special thanks ## ----------- ## This MOD has been created by John B. Abela, but he decided ## to stop developing it. So with it's agreement I now continue ## his job and fully take charge of it. ## ## And a special thanks to tomm coidd too for its fix for Mozilla ## & Firefox! ## ## 2. Compatibility ## ----------- ## This MOD is phpBB 2.0.16 compliant (prior release not tested) ## ## 3. EasyMOD ## ----------- ## This MOD is compatible with EasyMOD of Nuttzy and can be ## installed by it but is not yet certified EMC (EasyMOD Compliant)! ## [url=http://area51.phpbb.com/phpBB22/viewforum.php?sid=&f=15]http://area51.phpbb.com/phpBB22/viewforum.php?sid=&f=15[/url] ## ## 4. Official last version link ## ----------- ## Meanwhile the phpBB group validation and as the MOD is not yet ## in the phpBB MOD database, check this official link for updates... ## [url=http://www.golfexpert.net/phpBB]http://www.golfexpert.net/phpBB[/url] ## ##############################################################  ## MOD History:  ##  ##   2005-07-09 - Version 1.1.0 ##      - MOD widely rewrite to be fully compliant with Mozilla ##        & Firefox (not only for the 1st post) - Thanks tomm coidd! ## ##   2004-03-27 - Version 1.0.3 ##      - Now compliant with Mozilla & Firefox ## ##   2003-12-21 - Version 1.0.2 ##      - Instructions updated to be compliant with Attachment MOD ##        No code changed, just the way to proceed the MOD ## ##   2003-08-09 - Version 1.0.1 ##      - Fix: 2 <br> not needed ##      - Updated to be compliant with the last phpBB template ##      - Rewrite to be safer & EasyMOD compliant ## ##   2002-04-08 - Version 1.0.0 ##      - Initial final release ##  ##############################################################  ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD  ##############################################################  #  #-----[ OPEN ]------------------------------------------------  #  viewtopic.php  #  #-----[ FIND ]------------------------------------------------  #  # NOTE: this is a find on part(s) of code line(s), not whole line(s)!  # The original line(s) to find should be longer and look like this (if no MOD has already modify it(them)): # # $user_sig = '<br>_________________<br>' . str_replace("n", "n<br>n", $user_sig); # $user_sig = '<br>  #  #-----[ IN-LINE FIND ]----------------------------------------  #  '<br>  #  #-----[ IN-LINE REPLACE WITH ]--------------------------------  # '  #  #-----[ OPEN ]------------------------------------------------  #  templates/subSilver/viewtopic_body.tpl    #  #-----[ FIND ]------------------------------------------------  #  <table>  #  #-----[ IN-LINE FIND ]----------------------------------------  #  cellpadding="3"  #  #-----[ IN-LINE REPLACE WITH ]--------------------------------  # cellpadding="0"  #  #-----[ FIND ]------------------------------------------------  #  # NOTE: this is a find on part(s) of code line(s), not whole line(s)!  # The original line(s) to find should be longer and look like this (if no MOD has already modify it(them)): # # <td><span><a></a><b>{postrow.POSTER_NAME}</b></span><br><span>{postrow.POSTER_RANK}<br>{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br><br>{postrow.POSTER_JOINED}<br>{postrow.POSTER_POSTS}<br>{postrow.POSTER_FROM}</span><br></td> # <td>  #  #-----[ BEFORE, ADD ]-----------------------------------------  #  <Start>         <td><table>             <tr> <End>  #  #-----[ IN-LINE FIND ]----------------------------------------  #  <td>  #  #-----[ IN-LINE REPLACE WITH ]-------------------------------- #  <td>  #  #-----[ FIND ]------------------------------------------------  #  <td><table>  #  #-----[ IN-LINE FIND ]----------------------------------------  #  width="100%" height="28" valign="top"><table><table  #  #-----[ FIND ]------------------------------------------------  #               <tr>                   <td><hr></td>  #  #-----[ REPLACE WITH ]----------------------------------------  #  <Start>                 </table>                 <hr><span>{postrow.MESSAGE}</span></td> <End>  #  #-----[ FIND ]------------------------------------------------  #  # NOTE: this is a find on part(s) of code line(s), not whole line(s)!  # The original line(s) to find should be longer and look like this (if no MOD has already modify it(them)): # # <td><span>{postrow.MESSAGE}{postrow.SIGNATURE}</span><span>{postrow.EDITED_MESSAGE}</span></td> # <td><span>{postrow.MESSAGE}  #  #-----[ IN-LINE FIND ]----------------------------------------  #  <td><span>{postrow.MESSAGE}  #  #-----[ IN-LINE REPLACE WITH ]--------------------------------  # <td><span>  #  #-----[ FIND ]------------------------------------------------  #  # NOTE: this is a find on part(s) of code line(s), not whole line(s)!  # The original line(s) to find should be longer and look like this (if no MOD has already modify it(them)): # # <td><span><a>{L_BACK_TO_TOP}</a></span></td> # <span><a>{L_BACK_TO_TOP}</a></span>  #  #-----[ IN-LINE FIND ]----------------------------------------  #  <span><a>{L_BACK_TO_TOP}</a></span>  #  #-----[ IN-LINE BEFORE, ADD ]---------------------------------  # <table><tr><td>  #  #-----[ IN-LINE AFTER, ADD ]----------------------------------  # </td></tr></table>  #  #-----[ FIND ]------------------------------------------------  #  # NOTE: this is a find on part(s) of code line(s), not whole line(s)!  # The original line(s) to find should be longer and look like this (if no MOD has already modify it(them)): # # <td><table> # <table>  #  #-----[ IN-LINE FIND ]----------------------------------------  #  cellpadding="0"  #  #-----[ IN-LINE REPLACE WITH ]--------------------------------  # cellpadding="3"  #  #-----[ FIND ]------------------------------------------------  #  # NOTE: this is a find on part(s) of code line(s), not whole line(s)!  # The original line(s) to find should be longer and look like this (if no MOD has already modify it(them)): # # <td><img></td> # <td>  #  #-----[ IN-LINE FIND ]----------------------------------------  #  height="1"  #  #-----[ IN-LINE REPLACE WITH ]--------------------------------  # height="7"  #  #-----[ SAVE/CLOSE ALL FILES ]--------------------------------  #  # EoM

Re: MOD Port Request - Bottom Aligned Signature 1.1.0

PostPosted: Sun May 21, 2006 11:45 am
Author: evolver
The problem with height is that it isn't working the way it is supposed to...with IE and some other browsers

I have read about this problem many times...
[google]HEIGHT IE[/google]

So, I'm afraid that even when you get this MOD in place, the result won't be satisfying at all.

PostPosted: Mon May 22, 2006 8:04 am
Author: Eon
Oh Evolver that's a sweet looking title you have there.

<img> Glad to see you on board as an official party now.

Also on this subject, wasn't a mod worked out by Simon N that produced a fairly good end product on this? I will see if I can find the link again.


http://integramod.com/forum/viewtopic.p ... c&&start=0

This may produce the desired result. Once you do all the edits.

PostPosted: Mon May 22, 2006 8:25 am
Author: evolver
[quote=""Eon";p="6880""]Oh Evolver that's a sweet looking title you have there.

:grin: Thank you Eon :o I've been promoted
I feel like a scholar who made it trough the exams right now :#:

PostPosted: Mon May 22, 2006 11:43 am
Author: Eon
blah.. I wished everything worked the same. I use Maxthon cause it loads fast and is packed full of options that make it awesome.

PostPosted: Tue May 23, 2006 11:40 pm
Author: Simon N
Ohhhhhh just saw my name <img>

My changes work fine for me in both IE and firefox but then I am using the beta release of IE7 so they may have possibly fixed a few issues.

We can only hope

PostPosted: Wed May 24, 2006 2:14 am
Author: Dr. Bantham
"Simon N";p="7089" wrote:My changes work fine for me in both IE and firefox but then I am using the beta release of IE7 so they may have possibly fixed a few issues. We can only hope
Simon,
I applied your fix, but it re-introduced the "scrollbar within post" problem. I was in a rush at the time, so I just backed out of the MOD without trying to apply the old patch for that bug. There were also a couple of replies that suggested code revisions. Before I dive in, have you refined the MOD to account for these issues? Many thanks for the work, as the signature layout has always annoyed me.

PostPosted: Wed May 24, 2006 4:26 am
Author: Simon N
Scroll bar in post?

I never actually create mods if i can help it as my time here is sporadic due to work. I do try and show the code I use to fix things and if your meaning posts stretchign incorrectly I fixed mine using percentages rather than fixed pixels.