Page 1 of 1

[kind of solved] problem when 2 qbars are used together...

PostPosted: Tue Jan 30, 2007 10:28 pm
Author: sanji
Your phpBB Version: 2.0.22
phpBB Type: Integramod 141
MODs: Yes
Your knowledge: Advanced Knowledge
Board URL: http://www.secret-japan.com/forum_beta

PHP Version:
MySQL Version:


What was done before the problem appeared?
upgraded to 1.41


What was done to try to solve the problem?
-



De.scription and Message

Please check the link above. It is a test forum only. I have 2 qbar installed, but only one "go the to bottom" icon appears on each side, which makes the presentation rather miserable.

Is there a way to fix that?

Thanks,

sanji

Re: [BUG ?] template problem when 2 qbars are used together.

PostPosted: Tue Jan 30, 2007 11:02 pm
Author: Teelk
Hey sanji,

Not really a bug, it's just that the template design doesn't lend itself to multi-line qbar menus. I can try and play with overall_header.tpl to come up with a solution for you though.

PostPosted: Tue Jan 30, 2007 11:19 pm
Author: Dick Dynamite
I noticed that, too. I was thinking maybe have the arrows load as two images a piece or something?

Re: [BUG ?] template problem when 2 qbars are used together.

PostPosted: Tue Jan 30, 2007 11:34 pm
Author: sanji
"Teelk";p="20883" wrote:I can try and play with overall_header.tpl to come up with a solution for you though.


Would be appreciated, thanks.

sanji

Re: [BUG ?] template problem when 2 qbars are used together.

PostPosted: Wed Jan 31, 2007 2:12 am
Author: Teelk
Ok, I've got it to play nice. It'll just double the whole bar now.

OPEN templates/Integra2/overall_header.tpl
FIND
Code: Select all
<table><tr><td><a><img></td><td>{QMENUS}</td><td><a><img></td></tr></table>

REPLACE WITH
Code: Select all
{QMENUS}


OPEN templates/Integra2/qbar_qmenus.tpl
FIND
Code: Select all
    <BEGIN>

AFTER ADD
Code: Select all
<td><a><img></td>

FIND
Code: Select all
    <END>

BEFORE ADD
Code: Select all
<td><a><img></td>

PostPosted: Wed Feb 07, 2007 6:41 pm
Author: sanji
Thanks Teelk,

Finally I could get my forum (beta version) to work, and the trick is working fine... for the upper qbar.

For the qbar on the bottom, I get an unexpected result :
http://www.secret-japan.com/forum_beta

Do you have any idea how to fix that?

Thanks,

sanji

PostPosted: Thu Feb 08, 2007 7:47 pm
Author: Dick Dynamite
Just replace the same stuff he mentioned to do on the overall_header.tpl to the overall_footer.tpl

Re: [BUG ?] template problem when 2 qbars are used together.

PostPosted: Fri Feb 09, 2007 1:08 am
Author: Helter
it wont work like that because now every Qbar will have the down arrows. It shows the up arrows on the outside of the footer qbar beacause they are still in the footer code (outside of the qbar file)

Re: [BUG ?] template problem when 2 qbars are used together.

PostPosted: Sun Feb 11, 2007 6:41 pm
Author: sanji
I am trying to create two different files, qbar_qmenusfooter.tpl and qbar_qmenusheader.tpl, each of them to display the qbar at the top (with the icons pointing down) and at the bottom of the page (with the icons pointing up).

For example :

qbar_qmenusheader.tpl
Code: Select all
<BEGIN><table><BEGIN><tr>     <BEGIN>  <SANJI>     <td><a><img></td>         <td>         <BEGIN>         <BEGIN>         <table><tr><td>         <END>         {_qmenu.line.cell.field.OPTION}         <BEGIN>         </td></tr></table>         <END>         <END>     </td>  <SANJI>  <td><a><img></td>     <END></tr><END></table><END>


is called from overall_header.tpl with the line
Code: Select all
{QMENUSHEADER}


However, this is not working. Any idea why??

sanji

Re: [BUG ?] template problem when 2 qbars are used together.

PostPosted: Sun Feb 11, 2007 8:08 pm
Author: Helter
go to phpbbhacks.com and dl Qbar. You can find the additional code there.

PostPosted: Sun Feb 11, 2007 8:17 pm
Author: sanji
Thanks HelterSkelter,

But this mod is not solving my issue. I just would like to control the position of the two "up" and "down" icons next to the qbars, as I use 2 qbars instead of 1.

In the mod, there are no such icons anyway.

sanji

Re: [BUG ?] template problem when 2 qbars are used together.

PostPosted: Sun Feb 11, 2007 10:51 pm
Author: Helter
well since they are stacked on top of each other, you could edit the image of the up arrow to be double tall and edit the size of the code in overall footer and header

PostPosted: Sun Feb 11, 2007 11:17 pm
Author: sanji
Finally, I went for an easier solution:

I put the "to the top" button on one side of the qbar, and the "to the bottom" of the other side...

Thanks,

sanji