Sub Menu
Links Menu
Online Users

In total there are 341 users online :: 2 registered, 0 hidden and 339 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot] based on users active over the past 60 minutes

Aligning signatures: simons way

Mods etc.

Moderator: Integra Moderator

Re: Aligning signatures: simons way

PostAuthor: evolver » Sat Apr 15, 2006 1:41 am

Personally, I've changed something else too...

I didn't like the way the title looks like in messages on viewtopic.
It's not very eyecatching, and gets a little bit messed up when title icons are used.

So the following modification is my personal addition to change the way the title appears on messages (but not needed for doing the signature modification)
I guess that some people will like it better this way, and some will not...


OPEN: templates/fisubice/ viewtopic_body.tpl

FIND:
Code: Select all
<td><a><img></a>{L_POSTED}]
REPLACE WITH:[code]<td><h2>{postrow.POST_SUBJECT}</h2><a><img></a>{postrow.POST_DATE}</td>
Last edited by evolver on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 12:46 pm
Cash on hand: 0.00
Location: Oostende

Re: Aligning signatures: simons way

PostAuthor: Whisky » Thu Jan 18, 2007 3:07 am

I just ported this hack for IM 1.4.1 template:

OPEN viewtopic.php

FIND
Code: Select all
    if ( $user_sig != '' && $userdata['user_allowsignature'] != 0 )     {         $user_sig = '_________________<br>' . str_replace("n", "n<br>n", $user_sig);     } else $user_sig = '';  

REPLACE WITH:
Code: Select all
if ( $user_sig != '' && $userdata['user_allowsignature'] != 0 )    {       $user_sig = str_replace("n", "n<br>n", $user_sig);    } else $user_sig = '';

SAVE and CLOSE


OPEN templates/Integra2/ viewtopic_body.tpl

FIND:
Code: Select all
        <BEGIN>         <tbody>         <END>             <tr>                 <td><span><a></a>{postrow.AUTHOR_PANEL}                     <img>                     </span>                 </td>                 <td>                     <table>                         <tr>                             <Start>                             <form>                             <End>                             <td><a><img></a>{L_POSTED}:                             {postrow.POST_DATE}   {L_POST_SUBJECT}: {postrow.POST_SUBJECT}</td>                             <td>{postrow.QUOTE_IMG}{postrow.EDIT_IMG}<a><img></a>{postrow.DELETE_IMG}{postrow.IP_IMG}{postrow.U_R_CARD}{postrow.U_Y_CARD}{postrow.U_G_CARD}{postrow.U_B_CARD}{postrow.CARD_EXTRA_SPACE}{postrow.CARD_HIDDEN_FIELDS} </td>                             <Start>                             </form>                             <End>                         </tr>                     </table>                     <table>                         <tr>                             <td>                                 <hr>                                 <div>{postrow.MESSAGE}</div>                             </td>                         </tr>                         <tr>                             <td>{postrow.ATTACHMENTS}<span>{postrow.EDITED_MESSAGE}</span></td>                         </tr>                         <tr>                             <td><br>                                 <span>{postrow.SIGNATURE}</span>                             </td>                         </tr>                     </table>                 </td>             </tr>             <BEGIN>

REPLACE WITH:
Code: Select all
        <BEGIN>         <tbody>         <END>             <tr>                 <td><span><a></a>{postrow.AUTHOR_PANEL}<img></td>                 <td>                     <table>                         <tr>                             <Start>                             <form>                             <End>                             <td><a><img></a>{L_POSTED}:                             {postrow.POST_DATE}   {L_POST_SUBJECT}: {postrow.POST_SUBJECT}</td>                             <td>{postrow.QUOTE_IMG}{postrow.EDIT_IMG}<a><img></a>{postrow.DELETE_IMG}{postrow.IP_IMG}{postrow.U_R_CARD}{postrow.U_Y_CARD}{postrow.U_G_CARD}{postrow.U_B_CARD}{postrow.CARD_EXTRA_SPACE}{postrow.CARD_HIDDEN_FIELDS} </td>                             <Start>                             </form>                             <End>                         </tr>                     </table>                     <table>                         <tr>                             <td>                                 <hr>                                 <div>{postrow.MESSAGE}</div>                             </td>                         </tr>                         <tr>                             <td>{postrow.ATTACHMENTS}<span>{postrow.EDITED_MESSAGE}</span></td>                         </tr>                     </table>                 </td>             </tr>             <tr>                   <td><span>{postrow.SIGNATURE}</span></td>             </tr>             <BEGIN>

SAVE and CLOSE
You are done

Et voila <img>
Last edited by Whisky on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
I am the Lizard King, I can do anything

Whisky
Sr Integra Member
Sr Integra Member
 
Posts: 256
Likes: 0 post
Liked in: 0 post
Joined: Thu May 18, 2006 1:28 am
Cash on hand: 0.00
Location: Brussels

Re: Aligning signatures: simons way

PostAuthor: Khimaira » Tue Jan 30, 2007 5:18 am

Is there any way to get rid of the extra line completely or at least change its color to hide it without changing the border of the rest of the tables?

Also, to get the signature aligned to the bottom I had to change

Code: Select all
<td><span>{postrow.SIGNATURE}</span></td>


to

Code: Select all
<td><span>{postrow.SIGNATURE}</span></td>


I don't think the height="1" is changing the table height for me for the signature...I am getting a lot of space between the sig and the extra line above. When someone does not have a signature the space between the two lines changes depending on the length of the post. Problem for me may be that I have a bit of extra info in the viewtopic_left area of the PCP which gives that whole area more height than usual.
Last edited by Khimaira on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Khimaira
Newbie
Newbie
 
Posts: 17
Likes: 0 post
Liked in: 0 post
Joined: Fri Aug 25, 2006 3:40 am
Cash on hand: 0.00

Re: Aligning signatures: simons way

PostAuthor: Whisky » Wed Jan 31, 2007 6:08 am

No ther's no wimple way to remove this line without completely change the table class in the theme css meaning that you would have to adpat every template where this class is used <img>

About the height=1 I believe this has an effect on some browsers when other don't
Last edited by Whisky on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
I am the Lizard King, I can do anything

Whisky
Sr Integra Member
Sr Integra Member
 
Posts: 256
Likes: 0 post
Liked in: 0 post
Joined: Thu May 18, 2006 1:28 am
Cash on hand: 0.00
Location: Brussels

Re: Aligning signatures: simons way

PostAuthor: Mighty07 » Fri Jan 29, 2010 8:18 am

Any update on this... I keep having this issue.
The line is showing halfway...
User avatar
Mighty07
Newbie
Newbie
 
Posts: 25
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 12, 2006 11:38 pm
Cash on hand: 0.00

Previous

Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Google [Bot]

cron