1
Anonymous
Very big problem with module "Partners"
  • 2004/8/5 22:08

  • Anonymous

  • Posts: 0

  • Since:


PS: Sorry for my english

I have a problem with module "partners". The pistures for partners do not show aligned in the center od the block. The XOOPS Slovenia have send me their whole module and it stil doesn't work.

Xoops Slovenia (works very good): www.odprta-scena.com
My page (partners don't work): www.rapscena.com

I don't know what to do....please help me

2
eclypto
Re: Very big problem with module "Partners"
  • 2004/8/5 22:48

  • eclypto

  • Just popping in

  • Posts: 44

  • Since: 2004/7/24


Have you tried uninstalling and then Re-installing the module - Just the partners mod? It could be that when you downloaded the module it was faulty in the first place. Maybe XOOPS solivania's copy is faulty itself? You should have them check it out and get a confirmation.

You might also want to sign into your XOOPS Admin panel and check out the code on the partners mod, it may be that the code is messed up. It would be a simple thing to correct if you knew what you were doing.

3
Anonymous
Re: Very big problem with module "Partners"
  • 2004/8/6 13:23

  • Anonymous

  • Posts: 0

  • Since:


I have re-instaled the module. The code should be ok, becaouse it it from the other page, where all works. I really don't understand. Can the theme be the problem?

4
Anonymous
Re: Very big problem with module "Partners"
  • 2004/8/6 13:33

  • Anonymous

  • Posts: 0

  • Since:


This is my code for partners in System/blocks/partners/Edit template...

<table cellspacing="0">
  <
tr>
    <
td>
    <{if 
$block.fadeImage != ""}>
    <{
literal}>
    <
script type="text/javascript">
    <!--
    
nereidFadeObjects = new Object();
    
nereidFadeTimers = new Object();
    function 
nereidFade(objectdestOpratedelta){
        if (!
document.all) {
            return;
        }
        if (
object != '[object]'){
            
setTimeout('nereidFade('+object+','+destOp+','+rate+','+delta+')',0);
            return;
        }
        
clearTimeout(nereidFadeTimers[object.sourceIndex]);
        
diff destOp-object.filters.alpha.opacity;
        
direction 1;
        if (
object.filters.alpha.opacity destOp){
            
direction = -1;
        }
        
delta Math.min(direction*diff,delta);
        
object.filters.alpha.opacity+=direction*delta;

        if (
object.filters.alpha.opacity != destOp){
            
nereidFadeObjects[object.sourceIndex]=object;
            
nereidFadeTimers[object.sourceIndex]=setTimeout('nereidFade(nereidFadeObjects['+object.sourceIndex+'],'+destOp+','+rate+','+delta+')',rate);
        }
    }
    
//-->
    
</script>
    <{/
literal}>
    <{/if}>      
      <
br />
      <
div align="center">
      <{foreach 
item=partner from=$block.partners}>
      <
a href="<{$xoops_url}>/modules/xoopspartners/vpartner.php?id=<{$partner.id}>" target="_blank">
      <{if 
$partner.image != ""}>
      <
img src="<{$partner.image}>" width="88" height="31" border="0" alt="<{$partner.url}>" <{$block.fadeImage}> /><br />
      <{/if}>
      <{
$partner.title}>
      </
a>
      <{if 
$block.insertBr != ""}>
      <
br />
      <{/if}>
      <{/foreach}>
      </
div>
    </
td>
  </
tr>
</
table>

5
irmtfan
Re: Very big problem with module "Partners"
  • 2004/8/6 14:06

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


try this:
<td>
[
color=FF0000]<div align="center">
[/
color]
    ....
    ....
[
color=FF0000]</div> [/color
</
td>


i use div command for solve that and it works.
btw constant size is really big problem in partner module.



6
Anonymous
Re: Very big problem with module "Partners"
  • 2004/8/6 14:15

  • Anonymous

  • Posts: 0

  • Since:


But where should i put this?? It is allready in the code...Can you please paste the whole code with your inside. Tnx.

7
irmtfan
Re: Very big problem with module "Partners"
  • 2004/8/6 17:58

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


in system admin --> templates --> partners --> EDIT xoopspartners_block_site.html and change to this:

<table cellspacing="0">
  <
tr>
    <
td>
    <
div align="center">
    <{if 
$block.fadeImage != ""}>
    <{
literal}>
    <
script type="text/javascript">
    <!--
    
nereidFadeObjects = new Object();
    
nereidFadeTimers = new Object();
    function 
nereidFade(objectdestOpratedelta){
        if (!
document.all) {
            return;
        }
        if (
object != '[object]'){
            
setTimeout('nereidFade('+object+','+destOp+','+rate+','+delta+')',0);
            return;
        }
        
clearTimeout(nereidFadeTimers[object.sourceIndex]);
        
diff destOp-object.filters.alpha.opacity;
        
direction 1;
        if (
object.filters.alpha.opacity destOp){
            
direction = -1;
        }
        
delta Math.min(direction*diff,delta);
        
object.filters.alpha.opacity+=direction*delta;

        if (
object.filters.alpha.opacity != destOp){
            
nereidFadeObjects[object.sourceIndex]=object;
            
nereidFadeTimers[object.sourceIndex]=setTimeout('nereidFade(nereidFadeObjects['+object.sourceIndex+'],'+destOp+','+rate+','+delta+')',rate);
        }
    }
    
//-->
    
</script>
    <{/
literal}>
    <{/if}>
      <
br />
      <{foreach 
item=partner from=$block.partners}>
      <
a href="<{$xoops_url}>/modules/xoopspartners/vpartner.php?id=<{$partner.id}>" target="_blank">
      <{if 
$partner.image != ""}>
      <
img src="<{$partner.image}>" width="102" height="47" border="0" alt="<{$partner.url}>" <{$block.fadeImage}> /><br />
      <{/if}>
      <{
$partner.title}>
      </
a>
      <{if 
$block.insertBr != ""}>
      <
br />
      <{/if}>
      <
br />
      <{/foreach}>
    </
div>
    </
td>
  </
tr>
</
table>

8
Anonymous
Re: Very big problem with module "Partners"
  • 2004/8/6 21:11

  • Anonymous

  • Posts: 0

  • Since:


Doesn't work...

9
irmtfan
Re: Very big problem with module "Partners"
  • 2004/8/6 23:27

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


but this is working for me.
u sure that update template with new one?
anyone else have an idea?

10
Anonymous
Re: Very big problem with module "Partners"
  • 2004/8/7 18:21

  • Anonymous

  • Posts: 0

  • Since:


But are you using a Gold Theme like me. Maybe this is a problem. Anyone knows how to save it ????

Login

Who's Online

200 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 200


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits