11
mouacy
Re: Module Request CDBASE
  • 2004/10/25 0:14

  • mouacy

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/11/2


hmm.. no one is willing to share

12
limecity
Re:Module Request~
  • 2004/10/25 3:59

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


@mouacy,
what problem have u got with the module?
whats the bug?

13
mouacy
Re:Module Request~
  • 2004/10/26 5:55

  • mouacy

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/11/2


Quote:

limecity wrote:
@mouacy,
what problem have u got with the module?
whats the bug?


This is the problem:

="http://www.mysite.com" target="_blank">http://www.mysite.com

You can look at it at

http://nplaimhlub.com/melody/modules/cdbase/index.php?id_art=1

I don't know what exactly causes that error.

14
limecity
Re:Module Request~
  • 2004/10/26 6:06

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


Oh that one.. that bloody damn bug...
i got pissed off by it and i just remove the whole thing..

I edit the template.. and this is what i got:
edit the template called cdbase_artist.html

Quote:

<h4 style="text-align:left;"><{$lang_cdbase}></h4>
<a id="top" name="top">
<a href="index.php"><{$lang_main}></a>&nbsp;<span style="font-weight:bold;">»»</span>&nbsp;<b><{$artista}></b>
<br/>
<br/>
<table width="100%" cellspacing="1">
<tr>
<td><{$imagen_art}></td>
<td><{$bio}></td>
</tr>
</table>
<table width="100%" cellspacing="1">
<tr>
<th><div align="center"><{$lang_genre}></div></th>
<th><div align="center"><{$lang_url}></div></th>
<th><div align="center"><{$lang_similar}></div></th>
</tr>
<tr class="even">
<td ><div align="center"><{$genero}></div></td>
<td><div align="center"><{$url}></div></td>
<td><div align="center"><{$similar}></div></td>
</tr>
</table>
<table width="100%" cellspacing="1">
<tr class="even">
<th><{$lang_otherlinks}></th>
<td><div align="center"><{$otherlink1}></div></td>
<td><div align="center"><{$otherlink2}></div></td>
</tr>
</table>
<br>
<table width="100%" class="outer" cellspacing="1">
<tr>
<th colspan="2"><{$lang_album}></th>
<th><{$lang_tracks}></th>
</tr>
<!-- start disc loop -->
<{foreach item=disc from=$discs}>
<tr>
<td class="even"><div align="center"><strong><{$disc.album}></strong><br />
<{$disc.imagen}><br /><{$disc.imagen2}></div></td>
<td class="even" style="text-align:center;"><div align="center"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th style="text-align:center;"><{$lang_year}></th>
<td class="even" style="text-align:center;"><{$disc.anio}></td>
<th style="text-align:center;"><{$lang_sello}></th>
<td class="even" style="text-align:center;"><{$disc.sello}></td>
<td class="odd" style="text-align:center;"><{$disc.url_buy}></td>
</tr>
<tr>
<td class="even" colspan="5" style="text-align:center;">&nbsp;</td>
</tr>
</table>
<{$disc.descripcion}></td>
<td nowrap class="even"> <{$disc.temas}> </td>
</tr>
<{/foreach}>
<!-- end disc loop -->
</table>
<br />
<br />
<div style="text-align:center;"><b>[ <a href="index.php"><{$lang_backtoindex}></a> ]</b></div>

<div style="text-align:center; padding: 3px; margin:3px;">
<{$commentsnav}>
<{$lang_notice}>
</div>

<div style="margin:3px; padding: 3px;">
<!-- start comments loop -->
<{if $comment_mode == "flat"}>
<{include file="db:system_comments_flat.html"}>
<{elseif $comment_mode == "thread"}>
<{include file="db:system_comments_thread.html"}>
<{elseif $comment_mode == "nest"}>
<{include file="db:system_comments_nest.html"}>
<{/if}>
<!-- end comments loop -->
</div>
<{include file='db:system_notification_select.html'}>


15
limecity
Re:Module Request~
  • 2004/10/26 6:08

  • limecity

  • Friend of XOOPS

  • Posts: 1602

  • Since: 2003/7/6 0


oh ya,
backup before u attempt to try anything.
that is just what i did,
try it at your own risk

16
mouacy
Re:Module Request~
  • 2004/10/26 6:29

  • mouacy

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/11/2


Quote:

limecity wrote:
oh ya,
backup before u attempt to try anything.
that is just what i did,
try it at your own risk


Thanks.. however, I compare both templates and they have the same coding. I try your cod, but the result is still the same. I'm thinking that the bug might have to do with how XOOPS handle the php codes that was passed into the template. Possible?

17
mouacy
Re:Module Request~
  • 2004/10/26 6:47

  • mouacy

  • Not too shy to talk

  • Posts: 138

  • Since: 2002/11/2


All right! I got that buggy fixed! I feel great! Here is what I did:

I search my index.php in cdbase directory for $url and I commented out the following line:

Quote:


// $url = "<a href='".$url."' target='_blank'>".substr($url,7)."</a>";



I don't know what the hack the "7" is for, but I commented out the whole line... because the urldata from the database was already assigned to $url in the previous line.

And beside, XOOPS already open the link in a new or blank page.

What I did work for me.

Chao

Login

Who's Online

233 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 233


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