Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1116
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

IE doesnt detect links on a block

Started by sevrva22, April 29, 2011, 10:12:56 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

sevrva22

I modified the Aeva Gallery block, it works perfect in Firefox but IE doesnt detect the links

PD: is the Media block

Firefox:



IE:


Block Code:


foreach ($items as $item)
{
  echo !$direction ? '
<tr>' : '', '
<td>
<div class="sp_recent_subject">';

if ($mod == 'aeva_media')
{
echo '
<img src="http://musicommunity.org/Themes/default/images/sp/mediaspicon.png" border=0 ">&nbsp&nbsp<a href="', $galurl, 'sa=item;id=', $item['id'], '">', $item['title'], '</a>', $item['is_new'] ?'<img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '';
}
elseif ($mod == 'smf_media_gallery')
{
echo '


How can

grafitus

#1
First, design looks good. Congrats! ;P

You can use this:
foreach ($items as $item)
{
  echo !$direction ? '
<tr>' : '', '
<td>
<div class="sp_recent_subject">';

if ($mod == 'aeva_media')
{
echo '
', sp_embed_image('mediaspicon'), '  <a href="', $galurl, 'sa=item;id=', $item['id'], '">', $item['title'], '</a>', $item['is_new'] ?'<img alt="" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" border="0" />' : '';
}
elseif ($mod == 'smf_media_gallery')
{
echo '
my modsI don't reply support PMs. Please use support forums.

sevrva22

Exelent, the only thing is that the code

<img src="', sp_embed_image('mediaspicon'), '">

is that appears this thing on the template:

example: mediaspicon"> 01 The Red Room.

I can fix it writting the url of the image that is http://musicommunity.org/Themes/default/images/sp/mediaspicon.png but i would like to know how to write it in php mode .

Thanks for the help  :D

AngelinaBelle

I found function sp_embed_image in Subs-Portal.php, and saw that it already handles the entire img tag, so I think you can change the code Sinan suggested a little bit:
Code (find) Select
<img src="', sp_embed_image('mediaspicon'), '">
Code (replace) Select
',sp_embed_image('mediaspicon'),'
If I haven't made any terrible mistakes, that should work. But you may need to do a little more debugging.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?