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: 385
  • 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: Side by side posts/articles (was: Blocks in Blocks)  (Read 7233 times)

0 Members and 1 Guest are viewing this topic.

Offline fdr77

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
  • Non può piovere per sempre
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Side by side posts/articles (was: Blocks in Blocks)
« on: August 17, 2010, 11:27:45 AM »
hello i'm an italian boy very interesting this modification but I ask whether you can make it work with the articles .....two articles left and right in the column central
 
 
-------
Originally part of the Blocks in Blocks thread  at http://simpleportal.net/index.php?msg=36355
« Last Edit: August 18, 2010, 09:34:09 AM by AngelinaBelle »
E' meglio bruciarsi in fretta che spegnersi lentamente                                               Kurt D. Cobain

Offline fdr77

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
  • Non può piovere per sempre
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Side by side posts/articles
« Reply #1 on: August 17, 2010, 12:00:36 PM »
hy riji the id block.... are changing the same block
for example
discusrewind.net/index.php?action=manageportal;area=portalblocks;sa=edit;block_id=32;sesc=4058a6d8407600d36965be2e04eeff65
32 is the id blok
E' meglio bruciarsi in fretta che spegnersi lentamente                                               Kurt D. Cobain

Offline Raji

  • Full Member
  • ***
  • Posts: 102
  • Gender: Female
    • Baaskani Diwwan
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Re: Side by side posts/articles
« Reply #2 on: August 17, 2010, 12:36:14 PM »
Thanks FDR77 for your prompt reply. Now please can you tell me how can I use two articles in two blocks?
means i want to use sp in following way

LEFT BLOCK, 1 ARTICLE, 2 ARTICLE, RIGHT BLOCK
LEFT BLOCK, 3 ARTICLE, 4 ARTICLE, RIGHT BLOCK
LEFT BLOCK, 5 ARTICLE.................,  RIGHT BLOCK
LEFT BLOCK, FOOTER BLOCK.........., RIGHT BALOCK

Looking forward for your response

with regards
Raji

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Side by side posts/articles
« Reply #3 on: August 17, 2010, 01:07:16 PM »
Raji and fdr77:
 
If I were you, I would divide and conquer these problems.
 
One part of the problem -- get your blocks set up the way you want them. You can use "dummy" blocks to fill the places as you work on this, if you want.
 
Second part of the problem -- create blocks with single posts in them.
 
Then, put the two parts together.
 
This is an interesting problem that should probably be discussed in the customization board.
One possible solution for Raji's problem is the "boxynews" idea I did a little work on a couple of months ago -- it works like board news in blocky-looking blocks, but without the rounded corners because I could not get the CSS to work out just exactly right. http://simpleportal.net/index.php?topic=5248.msg33656#msg33656
 
You could do the same with articles, to create an sp_boxyarticles function.
 
With either of these two approaches, you don't need to use blocks within blocks at all.
 
Or, you could fetch individual posts with ssi_fetchPosts. Then you might wind up using blocks within blocks.
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?

Offline fdr77

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
  • Non può piovere per sempre
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Side by side posts/articles
« Reply #4 on: August 17, 2010, 02:52:25 PM »
I'm sorry but I did not understand what it means......if you want you can use "dummy"
E' meglio bruciarsi in fretta che spegnersi lentamente                                               Kurt D. Cobain

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Side by side posts/articles
« Reply #5 on: August 18, 2010, 09:47:58 AM »
I'm sorry but I did not understand what it means......if you want you can use "dummy"
"Dummy" a fake thing standing in for the real thing (like manichino). If the blocks for the articles do not exist so far, you can use some other blocks to work your blocks-in-blocks layout.
 
Later, when you have created blocks for each post you want, you can use them in place of the "dummy" blocks.
 
Make sense?
 
However, I think there is an easier way, because you do not want to hand-craft a block for each article.  I think something like boxynews will work better.  Please feel free to take that code and modify it to suit your needs.  http://simpleportal.net/index.php?topic=5248.msg33656#msg33656
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?

Offline fdr77

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
  • Non può piovere per sempre
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Side by side posts/articles (was: Blocks in Blocks)
« Reply #6 on: August 18, 2010, 12:51:48 PM »
thank you but are unable to change the php boxy_news in boxy_articoli.
Thanks also
Ps file boxy-news should be put in the root directory or in one of the theme in use
E' meglio bruciarsi in fretta che spegnersi lentamente                                               Kurt D. Cobain

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Side by side posts/articles (was: Blocks in Blocks)
« Reply #7 on: August 18, 2010, 04:31:36 PM »
If you put boxynews.php in Sources, then you could make a custom php block
For this custom php block, you should choose no title and no body.
Code: [Select]
$boards=array(1,2,3); // put the board ids of all the boards you want to show
$parameters = array(
     'length' => 250,
     'start' => 0,
     'limit' => 18,
     'per_page' => 9,
     'per_row' => 3,
 
// don't change anything after this point
 
     'board' => implode('|', $boards),
);
 
global $sourcedir;
include_once($sourcedir . '/boxynews.php');
sp_boxyNews($parameters, 0, false);

You can find the ids of the boards you want by clicking on that board and looking at the"board=" part of the url.
 
------
edit: fixed typo in include_once line.
« Last Edit: August 25, 2010, 04:36:36 PM by AngelinaBelle »
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?

Offline fdr77

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
  • Non può piovere per sempre
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Side by side posts/articles (was: Blocks in Blocks)
« Reply #8 on: August 19, 2010, 09:17:29 PM »
thanks I hope . let you know
E' meglio bruciarsi in fretta che spegnersi lentamente                                               Kurt D. Cobain

Offline fdr77

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
  • Non può piovere per sempre
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Side by side posts/articles (was: Blocks in Blocks)
« Reply #9 on: August 23, 2010, 07:00:08 PM »
in this url where is the id
.....discusrewind.net/index.php/board,38.0.html

the id is "38"

continues to give me syntax error
E' meglio bruciarsi in fretta che spegnersi lentamente                                               Kurt D. Cobain

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Side by side posts/articles (was: Blocks in Blocks)
« Reply #10 on: August 24, 2010, 06:55:03 AM »
What is the syntax error, please?
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?

Offline fdr77

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
  • Non può piovere per sempre
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Side by side posts/articles (was: Blocks in Blocks)
« Reply #11 on: August 24, 2010, 08:12:07 PM »
I enter the code in the block and I answered so

Syntax error in block code. Please check the code.

However today I installed pretty urls and the id board I do not see more
How can I do ? :(
E' meglio bruciarsi in fretta che spegnersi lentamente                                               Kurt D. Cobain

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Side by side posts/articles (was: Blocks in Blocks)
« Reply #12 on: August 25, 2010, 09:24:48 AM »
What happens when you preview the block?
Can you save the block?
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?

Offline fdr77

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
  • Non può piovere per sempre
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Side by side posts/articles (was: Blocks in Blocks)
« Reply #13 on: August 25, 2010, 11:03:18 AM »
The prewiev of block php

Fatal error: Call to undefined function sp_boxyNews() in /var/www/vhosts/discusrewind.net/httpdocs/Sources/PortalBlocks.php(3444) : eval()'d code on line 16

Boxynews is in /httpdocs/Sources

The file in use is this
« Last Edit: August 25, 2010, 12:48:35 PM by fdr77 »
E' meglio bruciarsi in fretta che spegnersi lentamente                                               Kurt D. Cobain

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Side by side posts/articles (was: Blocks in Blocks)
« Reply #14 on: August 25, 2010, 04:35:47 PM »
This error message tells me the file was not included.
And that's -- because of a typo in my post above.
I've fixed it.  Please try again.
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?

Offline fdr77

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Male
  • Non può piovere per sempre
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Side by side posts/articles (was: Blocks in Blocks)
« Reply #15 on: August 25, 2010, 09:18:49 PM »
again
Fatal error: Function name must be a string in /var/www/vhosts/discusrewind.net/httpdocs/Sources/boxynews.php on line 40
E' meglio bruciarsi in fretta che spegnersi lentamente                                               Kurt D. Cobain