Skip to main content
Topic: A better Board News block for Simple Portal (Read 14719 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: A better Board News block for Simple Portal

Reply #15

That should be enough, if there is something attached to the first message of a board news block, or if there is an image tag, it should show it next to the text (floated) in the new block.
Bugs creator.
Features destroyer.
Template killer.

Re: A better Board News block for Simple Portal

Reply #16

Quote from: emanuele – That should be enough, if there is something attached to the first message of a board news block, or if there is an image tag, it should show it next to the text (floated) in the new block.

Which function (in PortalBlocks.subs.php) allows to do that?

Re: A better Board News block for Simple Portal

Reply #17

Oook!

I'm back on this, and this time I've been able to setup a forum and do the appropriate testing. O:-)

@CrimeS I attached a diff as well to highlight the changes. ;D

Re: A better Board News block for Simple Portal

Reply #18

I'm afraid I forgot about this topic :(
I am testing it now ;) It's working, but images are shown in full width.

Thanks for your help!

Code: [Select]
sharkracingclub.it/sharkelk104
sorry for my bad english

Re: A better Board News block for Simple Portal

Reply #19

I can't see the request for resizing... :P

I'm not sure how "strict" the css shold be, but:
Code: [Select]
.action_home .post .sp_attachment_thumb img {
    max-width: 50%
}
should be good enough.
Than you can tweak the width to the size you prefer. ;)
Bugs creator.
Features destroyer.
Template killer.

Re: A better Board News block for Simple Portal

Reply #20

Sorry for the delay and thanks for your help.
The block is working fine (demo in the link above) but I get an error:
An Error Has Occurred
Unable to load the 'main' template.

after the news block
sorry for my bad english

Re: A better Board News block for Simple Portal

Reply #21

That's likely another block.
What other block do you have in the home below this one?
Bugs creator.
Features destroyer.
Template killer.

Re: A better Board News block for Simple Portal

Reply #22

I think it's something wrong with that install.
I updated Elkarte to 1.0.5, I uninstalled Simple Portal, and installed the latest version, I deleted all blocks in SP and the error persist. I checked with original "PortalBlocks.subs.php " and also the modified one but nothing

I think I should try on a clean install first. Could be for some error in my custom.css? That was the only file I modified (or at least that I remember) :)
sorry for my bad english

Re: A better Board News block for Simple Portal

Reply #23

Nope, a css cannot generate such an error.
So you get the error even with SP uninstalled? O_O
Bugs creator.
Features destroyer.
Template killer.

Re: A better Board News block for Simple Portal

Reply #24

nope, I get that error only on SP homepage. On forum I don't see that error even with SP installed
sorry for my bad english

Re: A better Board News block for Simple Portal

Reply #25

Installed on my forum skoda, but I have some conflicts with fancybox addon :( Unable to load the requested image.
Is there a way to solve this?
sorry for my bad english

Re: A better Board News block for Simple Portal

Reply #26

...Link? It seems to work for me...
~ SimplePortal Support Team ~

Re: A better Board News block for Simple Portal

Reply #27

skodaclub.it/index.php
click on the image, there is Fancybox trying to open the image

sorry for my bad english

Re: A better Board News block for Simple Portal

Reply #28

So strange, the thumbnails at the bottom work regardless :o
~ SimplePortal Support Team ~

Re: A better Board News block for Simple Portal

Reply #29

in this case the fancybox should be disabled, the thumbnaol should point to topic url
sorry for my bad english