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 login or register.

* Who's Online

  • Dot Guests: 415
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* 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]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Block ( Recent Image Attachments ) link to post  (Read 36459 times)

0 Members and 2 Guests are viewing this topic.

Offline Divecall

  • Full Member
  • ***
  • Posts: 201
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Block ( Recent Image Attachments ) link to post
« Reply #20 on: March 05, 2010, 01:46:08 PM »
@samozin:

Hey, great, you have a Java-Lightbox-Function on your Portal.... !

How you was doing this ? I was trying to add the "Highslide"-Mod to the Portal, but it is not working for me (maybe i am too blond)


Offline samozin

  • Semi Newbie
  • *
  • Posts: 14
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Block ( Recent Image Attachments ) link to post
« Reply #21 on: March 10, 2010, 11:17:20 AM »
@samozin:

Hey, great, you have a Java-Lightbox-Function on your Portal.... !

How you was doing this ? I was trying to add the "Highslide"-Mod to the Portal, but it is not working for me (maybe i am too blond)
actully i did not do any thing its already included with the portal iam using isnt it great  i hope simpleportal include it  so soon  ha ...?

Offline escorta.biz

  • Semi Newbie
  • *
  • Posts: 11
    • Escorte
  • SMF Version: 2 RC3
  • SP Version: 2.3.1
Re: Block ( Recent Image Attachments ) link to post
« Reply #22 on: March 12, 2010, 06:54:04 AM »
For both SMF versions:

Sources/PortalBlocks.php

Code: (Find) [Select]
<a href="' . $item['file']['href'] . '">
Code: (Replace) [Select]
<a href="' . $item['topic']['href'] . '">
I replaced 'file' with 'topic' as mentioned above but no change was made. Same as i changed 'file' with 'post', still nothing happens... when i click the image, is opening as attachment.

There is something else i should change? i'm using SMF 2 RC3 and Simple Portal 2.3.1.

Thanks!

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Block ( Recent Image Attachments ) link to post
« Reply #23 on: March 12, 2010, 07:56:49 AM »
Can you attach your edited file here?
And slowly, you come to realize... It's all as it should be...

Offline escorta.biz

  • Semi Newbie
  • *
  • Posts: 11
    • Escorte
  • SMF Version: 2 RC3
  • SP Version: 2.3.1
Re: Block ( Recent Image Attachments ) link to post
« Reply #24 on: March 12, 2010, 08:09:23 AM »
Sure thing, please see the attachment.

Meanwhile i noticed that the url look like domainname/forum/dlattach/attach,51/image/path_to_topic.html. I guess there is a problem related to Simple SEF mod i'm using.
There is a solution for this or should i ask for support in the mod's topic?

Thanks!

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Block ( Recent Image Attachments ) link to post
« Reply #25 on: March 12, 2010, 08:13:18 AM »
Are you using Recent Image Attachments block or Recent Attachments block?
And slowly, you come to realize... It's all as it should be...

Offline escorta.biz

  • Semi Newbie
  • *
  • Posts: 11
    • Escorte
  • SMF Version: 2 RC3
  • SP Version: 2.3.1
Re: Block ( Recent Image Attachments ) link to post
« Reply #26 on: March 12, 2010, 08:14:29 AM »
Recent image attachments

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Block ( Recent Image Attachments ) link to post
« Reply #27 on: March 12, 2010, 08:26:34 AM »
Ah, you mean you want the image itself to link to the topic.

Code: (Find) [Select]
', $item['file']['image']['link'], '
Code: (Replace) [Select]
<a href="' . $item['topic']['href'] . '">', $item['file']['image']['thumb'], '</a>
« Last Edit: January 13, 2011, 12:32:12 PM by AngelinaBelle »
And slowly, you come to realize... It's all as it should be...

Offline escorta.biz

  • Semi Newbie
  • *
  • Posts: 11
    • Escorte
  • SMF Version: 2 RC3
  • SP Version: 2.3.1
Re: Block ( Recent Image Attachments ) link to post
« Reply #28 on: March 12, 2010, 08:33:21 AM »
Excelent! It's working now. Many thanks! :)

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Block ( Recent Image Attachments ) link to post
« Reply #29 on: March 12, 2010, 08:33:40 AM »
You're welcome. ;)
And slowly, you come to realize... It's all as it should be...

Offline earthview.nl

  • Semi Newbie
  • *
  • Posts: 5
    • Google earth forum
  • SMF Version: 1.1.11
  • SP Version: None
Re: Block ( Recent Image Attachments ) link to post
« Reply #30 on: March 19, 2010, 06:50:54 AM »
Ah, you mean you want the image itself to link to the topic.

Code: (Find) [Select]
', $item['file']['image']['link'], '
Code: (Replace) [Select]
<a href="' . $item['topic']['href'] . '">', $item['file']['image']['thumb'], '</a>

Hi Sinan,

thanks a lot, if i use this code, they will show the images in orginal size , the resizes doens't work.

Gr,
Maik

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Block ( Recent Image Attachments ) link to post
« Reply #31 on: March 20, 2010, 10:57:34 AM »
You can try this then:

Code: (Find) [Select]
', $item['file']['image']['link'], '
Code: (Replace) [Select]
<a href="' . $item['topic']['href'] . '">', str_replace('<img', '<img width="100"', $item['file']['image']['thumb']), '</a>
« Last Edit: January 13, 2011, 12:33:01 PM by AngelinaBelle »
And slowly, you come to realize... It's all as it should be...

Offline earthview.nl

  • Semi Newbie
  • *
  • Posts: 5
    • Google earth forum
  • SMF Version: 1.1.11
  • SP Version: None
Re: Block ( Recent Image Attachments ) link to post
« Reply #32 on: March 23, 2010, 05:11:42 AM »
Yes :D Thanks

Offline swoodie

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
Re: Block ( Recent Image Attachments ) link to post
« Reply #33 on: April 20, 2010, 03:11:47 AM »
For both SMF versions:

Sources/PortalBlocks.php

Code: (Find) [Select]
<a href="' . $item['file']['href'] . '">
Code: (Replace) [Select]
<a href="' . $item['topic']['href'] . '">

Hi will this work on RC3 & SP2.3.2
do i edit index.php in forum root
thanks in advance
« Last Edit: April 20, 2010, 03:36:40 AM by swoodie »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block ( Recent Image Attachments ) link to post
« Reply #34 on: April 20, 2010, 04:15:06 AM »
It should work. As stated in the post, you need to edit the 'Sources/PortalBlocks.php' file.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline swoodie

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
Re: Block ( Recent Image Attachments ) link to post
« Reply #35 on: April 20, 2010, 04:50:42 AM »
ok thanks will give it a try

Offline swoodie

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
Re: Block ( Recent Image Attachments ) link to post
« Reply #36 on: April 20, 2010, 04:58:16 AM »
thanks worked a treat i needed to use Reply #27
like it very much i only stumbled across this post SP rocks

Offline samozin

  • Semi Newbie
  • *
  • Posts: 14
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Block ( Recent Image Attachments ) link to post
« Reply #37 on: May 03, 2010, 06:45:33 PM »
just look at my site www.salamoz.com
i have edited both ssi.php and the portalblock.php one
 i have

Code: [Select]
// Images.
if ($attachments[$row['id_attach']]['file']['is_image'])
{
$id_thumb = empty($row['id_thumb']) ? $row['id_attach'] : $row['id_thumb'];
$attachments[$row['id_attach']]['file']['image'] = array(
'id' => $id_thumb,
'width' => $row['width'],
'height' => $row['height'],
'img' => '<img src="' . $scripturl . '?action=dlattach;topic=' . $row['id_topic'] . '.0;attach=' . $row['id_attach'] . ';image" alt="' . $filename . '" />',
'thumb' => '<img src="' . $scripturl . '?action=dlattach;topic=' . $row['id_topic'] . '.0;attach=' . $id_thumb . ';image" alt="' . $filename . '" />',
'href' => $scripturl . '?action=dlattach;topic=' . $row['id_topic'] . '.0;attach=' . $id_thumb . ';image',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0"><img src="' . $scripturl . '?action=dlattach;topic=' . $row['id_topic'] . '.0;attach=' . $id_thumb . ';image" alt="' . $row['subject'] . '"' . (empty($row['ID_THUMB']) ? ' width="210" height="240"' : '') . ' /></a>',
);
}
}
$smcFunc['db_free_result']($request);
that  is in the ssi.php

and i have this

Code: [Select]
<a href="' . $item['topic']['href'] . '">' . $item['topic']['link'] . '</a><br />' : ''), 'in portalblck.php line 3193

i think  thats the best thing for  adding the latest topics with the attached images the images linked to topic and the title of the topic above it

any one can help  i need to add  auto scrolling for that ?
« Last Edit: May 03, 2010, 06:49:44 PM by samozin »

Offline Ciler

  • Semi Newbie
  • *
  • Posts: 23
  • SMF Version: 1.1.12
  • SP Version: 2.3.3
Re: Block ( Recent Image Attachments ) link to post
« Reply #38 on: January 09, 2011, 06:45:20 AM »
O.k. I have it working now but the images are still actually i want the images scrolling (moving) please can you give me the code in the script to make the images moving?

Thanks in advance!!

Offline RvG

  • Semi Newbie
  • *
  • Posts: 9
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Block ( Recent Image Attachments ) link to post
« Reply #39 on: May 24, 2011, 11:32:57 PM »
You can try this then:

Code: (Find) [Select]
', $item['file']['image']['link'], '
Code: (Replace) [Select]
<a href="' . $item['topic']['href'] . '">', str_replace('<img', '<img width="100"', $item['file']['image']['thumb']), '</a>

thanks... it works.  :nervous-happy: