Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 05:37:53 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149621 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: 1 [2] 3 4   Go Down
Print
Author Topic: Display a Blog menu  (Read 20385 times)
gemnb

Offline Offline

Posts: 35


« Reply #25 on: September 17, 2008, 12:16:13 PM »

Anyone?
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4753



« Reply #26 on: September 17, 2008, 12:30:21 PM »

Hi there,
I have a question. I implemented the blog menu in a codepage. When I click an item in the blocksection I've made, the news item appears in the contentbox but the list of history-items in the blocksection disappear (I hope you know what I mean).
How can I change it?

Regards,
Ton
Quote
but the list of history-items in the blocksection disappear
I think it's because your whole page is changed and the "CodePage" is not visible anymore.

The solution is to hardcode your code (you used in the "codePage") into your Template, so it's present all the time onevery page.

May think with this?

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
gemnb

Offline Offline

Posts: 35


« Reply #27 on: September 17, 2008, 01:50:41 PM »

Thanks Stefek for your answer, but I'm still confused.
When looking at Eki's website, you can go to the weblog menu. On the left you see all the catagories. Clicking one of the items gives a result, but the menu stays.
This isn't hardcoded I assume?

Regards,
Ton
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4753



« Reply #28 on: September 17, 2008, 01:51:58 PM »

After installing the menu can be called from a code section or from the template itself with the following function:

Code:
display_blog_menu($page_id,$date_option,$group_header,$history_header)

Hello!
" or from the template itself" means that this is "hardcoded" into the template.  wink

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4753



« Reply #29 on: September 17, 2008, 02:10:04 PM »

Nevermind.

Will be glad if this solves your problem.  wink

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
gemnb

Offline Offline

Posts: 35


« Reply #30 on: September 17, 2008, 05:14:16 PM »

No, but I hope I'll find a way to make it work.   undecided
I only want the list to appear when I click the (my own) Archive menu button, not all of the time ( just like it is on Eki's website!).

Regards,
Ton
Logged
gemnb

Offline Offline

Posts: 35


« Reply #31 on: September 18, 2008, 10:53:22 PM »

Well, I can't find the answer (and no one else can, I assume) . So unfortunately there seems to be no solution to this one for now.
I've also tried to create the same situation in WB 2.6.7. (I'm using 2.7), but I got the same result.  sad

Regards,
Ton
Logged
ghost06

Offline Offline

Posts: 53


« Reply #32 on: September 30, 2008, 09:18:16 PM »


Snippet works as follows:

Code:
display_blog_menu($page_id,$date_option,$group_header,$history_header,$display_option)

In which:

page_id => the news page you want to generate the menu from
date_option => 0:=summarize according posted date (default), 1:=summarize according published date
group_header => header above the group menu (default: '<h1>Categories</h1>')
history_header => header above the group menu (default: '<h1>History</h1>')
display_option =>0:=show both history and categories (default); 1:=show only history; 2:=show only categories

I do not succeed to understand what I must put in mine index.php of the template

i have the page whit page_id=1
the media blog is in the section page_id=1#69

what I must insert in mine index.php of my template ones in order to show the menu?

help me plese  cry cry
Logged
Eki

Offline Offline

Posts: 108



WWW
« Reply #33 on: October 02, 2008, 01:18:37 PM »

Hi,

Page_id would be 1 then. Remember that this snippet is not working in WB2.7 yet. Also I have never tested it with the media-blog module.

To be honest I don't like the way this snippet has to be installed (even though I made it myself). It needs to have one of the original files of the news module replaced. And that is the only thing that is of any concern to me. If anybody finds another solution to this, please feel free to adapt the snippet and let me know.

regards,
Erik


Logged
Ruud
Board member
WebsiteBaker Org e.V.

Offline Offline

Posts: 2093



WWW
« Reply #34 on: October 02, 2008, 04:17:15 PM »

On my WB-Tips site I added this too.

This is used in my template. (the news-page has PAGE_ID 8 )
Code:
               
<?php if (PAGE_ID != 8) {
    
display_news_items();
} else {
    
display_blog_menu(8,1,'<h2>Onderwerpen</h2>','<h2>Historie</h2>');
}
?>


Works great - running on WB2.7.

Ruud
Logged

Professional WebsiteBaker Developer
Ruud
Board member
WebsiteBaker Org e.V.

Offline Offline

Posts: 2093



WWW
« Reply #35 on: October 07, 2008, 09:36:39 AM »

Works great - running on WB2.7.

Ok, now I'm feeling a bit guilty a lot.  embarassed
The month selection did not work on a WB2.7 site.

My guilty feeling made me fix the problem and adapt the current news/view.php so it will work with the blog_menu snippet.

Just replace the view.php in the zip in this message with the original news module view.php.
(don't forget to backup the original one)

Now it should work correctly in WB27

Ruud

« Last Edit: October 07, 2008, 09:38:16 AM by Ruud » Logged

Professional WebsiteBaker Developer
spida

Offline Offline

Posts: 203


« Reply #36 on: October 16, 2008, 11:56:57 AM »

Hi there,

I am still looking for a possibility to use the commenting function again. There's a little money on the hand to finance the module work-over. Please mail or just post here.

Regards,
spida
Logged
Ruud
Board member
WebsiteBaker Org e.V.

Offline Offline

Posts: 2093



WWW
« Reply #37 on: October 16, 2008, 12:15:51 PM »

Did you use the adapted view.php in 2 posts above?

If so, what exactly is the problem? Maybe I can help.

Ruud
Logged

Professional WebsiteBaker Developer
spida

Offline Offline

Posts: 203


« Reply #38 on: October 20, 2008, 06:40:50 PM »

Hi,

I have exchanged the views.php. However, there is no possibility to comment an article.
Configuration is as follows:
  • public commenting for article is activated
  • public commenting for news is activated in news-options
  • captcha is activated in options

Since the manual says that
Quote
Changing this setting only affects future articles – it will not change the Commenting setting in existing articles!
I entered a new article. No commenting option still. There's only a line beneath the article saying:
Quote
None found
(I guess this means: No comments on this article found).

There, I am lost. Could you please help me? I must have missed something.

EDIT: I am also not sure wich views.php this is exactly. I have tried both, exchanging the views.php in the directory modules/news as well the news-view.php in the directory modules/blog_menu. The same results either way, as described above.

Best regards,
spida
« Last Edit: October 20, 2008, 07:01:05 PM by spida » Logged
spida

Offline Offline

Posts: 203


« Reply #39 on: October 20, 2008, 06:55:00 PM »

Hi there,

I think I also discovered a little bug in the module. If you watch an article of a specific group, you'll find a little navigation at the page's top, directing you to the group's overview or to the general article overview. Let's say you want to navigate back to the group's overview, and klick the link. Instead of getting there, you are redirected to the general article overview.

For those not afraid of a German language  wink you'll find an example here: http://www.e-daktik.de/pages/posts/erst-mal-kennenlernen4.php?g=6
Klick on "Konzeption" and instead of getting the list of articles in this group, you'll get a list of all articles.

The reason is the wrong URL wich is generated by a script (question is: by which one). The link in my example is
Code:
http://www.e-daktik.de/pages/artikel.php?g=6?g=6
but ist should be
Code:
http://www.e-daktik.de/pages/artikel.php?g=6

Where in the module does this needs to be corrected?

I hope I made myself clear, otherwise I will try another explanation, just ask.

Best regards,
spida
Logged
spida

Offline Offline

Posts: 203


« Reply #40 on: October 22, 2008, 12:26:52 PM »

Hello there!

No ideas regarding my two problems? At least the commenting thing seems to be solvable, I am sure I just need a hint on what I am doing wrong.

Cheers,
spida
Logged
spida

Offline Offline

Posts: 203


« Reply #41 on: October 27, 2008, 04:24:10 PM »

Hi there,

this looks a bit like a monologue, but I am still completely stuck, please see my posts earlier about my basic problem.

It might be a very busy time for everybody (as is for me), but I really need your help, pleeeeease.

best regards,
spida
Logged
gemnb

Offline Offline

Posts: 35


« Reply #42 on: October 27, 2008, 07:21:20 PM »

Hi spida,
about the first problem you mentioned, I manually changed my view.php (WB 2.7) and all works well (including the commenting).
The second problem you've got, I also noticed. It's no problem to me for the moment, but it needs to be fixed. Maybe Eki can respond to it (??).

Regards,
Ton
Logged
spida

Offline Offline

Posts: 203


« Reply #43 on: October 27, 2008, 07:25:09 PM »

Hi Ton,

thank your for your reply!
Which view.php did you change (meaning: in which directory)?

Eki is probably too busy with his new baby, changing diapers and all  grin

Cheers,
spida
Logged
gemnb

Offline Offline

Posts: 35


« Reply #44 on: October 27, 2008, 09:00:43 PM »

spida,
I changed the view.php of the news module directory.

Regards,
Ton
Logged
spida

Offline Offline

Posts: 203


« Reply #45 on: October 27, 2008, 11:27:28 PM »

Hi Ton,

thank your for your advice.
I checked the views.php now but can't figure out what to change. Could you post your changes, please? That would be very helpful.

Best regards,
spida
Logged
gemnb

Offline Offline

Posts: 35


« Reply #46 on: October 28, 2008, 08:27:12 AM »

Hi spida,
you can look at (or use) my version of the view.php (in the news module).

Regards,Ton
Logged
Ruud
Board member
WebsiteBaker Org e.V.

Offline Offline

Posts: 2093



WWW
« Reply #47 on: October 28, 2008, 09:35:04 AM »

Guys,

The ?g=3?g=3 is not in the view.php but in the table settings in the backend of WB.
The breadcrumb links are being built from the original link. but when called from a "group link" it will include the group parameter too.

In the post header (settings button of newspage) the links are built using:
Code:
<td valign="top"><a href="[BACK]">[PAGE_TITLE]</a> >> <a href="[BACK]?g=[GROUP_ID]">[GROUP_TITLE]</a></td>
The [back] link will have the g= parameter (what is not right) and so the second level [back] will have two of them.

Change that line in:
Code:
<td valign="top"><a href="/pages/artikel.php">[PAGE_TITLE]</a> >> <a href="/pages/artikel.php?g=[GROUP_ID]">[GROUP_TITLE]</a></td>
And it is fixed.
Note: I used /pages/artikel.php in this example because that was in the "problem" page that spida reported. For other site, use whatever link is your news/blog page.

That will fix it.

Ruud
Logged

Professional WebsiteBaker Developer
spida

Offline Offline

Posts: 203


« Reply #48 on: October 28, 2008, 04:25:04 PM »

@Ruud: Perfect! This works! Thank you so much, Ruud.

@Ton: the current news module in the addons directory?
Logged
gemnb

Offline Offline

Posts: 35


« Reply #49 on: October 28, 2008, 05:41:54 PM »

spida,
/modules/news/view.php

Regards,
Ton
Logged
Pages: 1 [2] 3 4   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!