Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 01:37 pm EDT

Geeklog Forums

Multiple static page shows in one static page


io256

Anonymous
Hi,

I'm creating a site run by multiple authors.

In our home page (a static top page which outputs in center area, full screen) we want to output the multiple static page contents updated by authors.

I was thinking we could output RSS feed into the page but it seems to take too much time to load the page.

Does anyone know any better solution for this?

Thanks in advance.
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Do you want to display the RSS feeds from static pages? There is no feed from the static pages. If you want to display the stories, have a look for the story-by-topic block and pull it in a static page, like I'm using it on www.outdoormania.nl.

If you want to display stories from certain users, I don't know, but you have a look at the way stories are displayed in a userprofile.

Good luck!
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

io256

Anonymous
Dear beewee,

Thank you for the response!
At the same time I wanted to speed up the load time on top page,
so I don't want to read multiple RSS feeds.

The best solution is like what you are doing on "outdoormania.nl".

As you suggested, I set up the
"Stories By Topic Block (sbt v1.1) for Geeklog 1.3.x" , which I found in this board.
It's great!

But the hack creates only one group of stories from multiple topics.

How could I add more group of topics, like you are doing at outdoormania.nl?

Thank you
 Quote

io256

Anonymous
I mean, in my situation

Due to multiple team of authors,
some topics need to be merged:
Text Formatted Code
$merge_topics=true
)
and some topics needs to be separated:
Text Formatted Code
$merge_topics=false


So A little bit complicated. Any idea?
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
A simple work-around is to rename it sou you can use it more than once. I wanted to post some code but it was recognised as spam, and deleted.....
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: beewee

I wanted to post some code but it was recognised as spam, and deleted.....


You seem to have triggered SLV's limit for the max. number of URLs per post.

bye, Dirk
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Yep, the code contained 'only' 10 URL's...
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Quote by: io256

Hi,

I'm creating a site run by multiple authors.

In our home page (a static top page which outputs in center area, full screen) we want to output the multiple static page contents updated by authors.

Create a normal static page for each author, alpha, beta, gamma. Then create a center block staticpage with this content:

[ staticpage:alpha][ staticpage:beta][ staticpage:gamma]

Leave out the spaces of course.
 Quote

io256

Anonymous
Thanks everyone!

I made the changes as follows, and at least it works for now

(1) Download the Stories by Topic block V2
http://www.geeklog.net/filemgmt/index.php?id=564

(2) Duplicate the file called "storiesbytopicGL1_3_10.indexphp" for each group of stories

(3) Then set up the file, and change the name of the file:

Say, there are stories I want to group: call it Blah1(contains topic1, topic2; merged), Blah2(contains topic1, topic2; not merged)

I'll talk about just Blah1 to illustrate the solution:

File name: phpblock_blah1.php
(saved in geeklog_DIR/system/custom)

(3) Change the name of the function in above file:
Text Formatted Code
line39: function phpblock_StoriesByBlah1()

line132: $display .= displayStoriesBlah1($merge_title, $sql, $merge_topics, $max_title_length);

line159: $display .= displayStoriesBlah1($topic_title, $sql, $merge_topics, $max_title_length);

line171: function displayStoriesBlah1($topic_title, $sql, $merge, $max_title_length)
 


(4) Add the following code to lib-custom.php
Text Formatted Code
require_once ('custom/phpblock_blah1.php');


(5) Create static page and put the following code:
Text Formatted Code
echo phpblock_StoriesByBlah1();


If there are any better solution, I'd be appreciated!
 Quote

All times are EDT. The time is now 01:37 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content