Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#97 2007-06-08 16:18:44

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

I’m not familiar with how the other plugin pulls data from the database, so I don’t know about that. This plugin uses MySQL rather than PHP to do the date math (Txp in general uses PHP). That could be significant or not.

Now you said:

Pasting the relevent SQL query to phpMyAdmin works as I think it should.

Do you mean that if you post the SQL query the plugin uses directly into phpMyAdmin, the results are as expected?

Offline

#98 2007-07-02 15:40:39

hachi
Member
From: switzerland
Registered: 2004-04-24
Posts: 25

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Hi there

I just upgraded from 4.0.3 to 4.0.5 and also updated the plugin from 0.1.6 to 0.2.2. I use TXP with german language set and want to output a archive menu like so:
http://mainstream.radiox.ch/playlists
As you can see, everything works fine except the german umlaute in the month March (März) is not displayed correctly. Does anybody have any advice on how to fix this?

Thanks in advance!
Oliver

Offline

#99 2007-07-02 23:06:00

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

I can’t view your site at the moment (“The server at mainstream.radiox.ch is taking too long to respond.”) but I’ll try looking at it again later.

Offline

#100 2007-07-03 23:32:11

Nic
Member
Registered: 2007-06-08
Posts: 21

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

I seem to be having trouble with viewing individual articles within any of the “smart” sections. If I try to view an individual article, it seems to show the default section front article list. I’ve included the code that I’m using to display the articles below. Is this a problem between the “smart” mode finds things? My URL setup is /section/title, if that’s of any help.

I’m using 4.0.5 and 0.2.2. Even if I distill the lower code to a basic <txp:article searchall=“0” />, it doesn’t show an individual article.

PS – Is there a reason the article tag in the month listing (e.g., 2007-06) seems to pick up the year and month? That’s really awesome, and if it’s possible I’d request a feature for a plain month tag to let the article tag do the rest.

<txp:if_article_list>
	<txp:if_section name="press"><!-- Only for the Press section -->
		<txp:if_category name="releases, in-the-news"><!-- For any page but the home page -->
			<txp:article limit="5" searchall="0" />

			<txp:else /><!-- Home page only shows Press Releases -->
			<txp:article_custom section="press" category="releases" limit="5" />
		</txp:if_category>
		<txp:else />
		<txp:article searchall="0" />
	</txp:if_section>
	<txp:else /><!-- Otherwise it's normal on a section page -->
	<txp:article searchall="0" />
<p><txp:older><txp:text item="older" /></txp:older> 
			<txp:newer><txp:text item="newer" /></txp:newer></p>
</txp:if_article_list>

Offline

#101 2007-07-05 16:35:49

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Hi Mary,

This plug-in is excellent! Thank you.

I have a question about sorting.
Is it possible to keep the listings grouped by section?

Month 1
—Section 1
——Article title 1 (sorted by date)
——Article title 2
——Article title 3

—Section 2
——Article title 1 (sorted by date)
——Article title 2
——Article title 3

Month 2
—Section 1
——Article title 1 (sorted by date)
——Article title 2
——Article title 3

—Section 2
——Article title 1 (sorted by date)
——Article title 2
——Article title 3

I’d like sections to appear in the order you list them in the tag (Ex section=“section1,section2,etc”)

Is there currently any way to accomplish this?
if not, would you consider it as a modification?

Here’s a link to the site I’m working on with this

Thanks for all the great work.

)


Tom

Last edited by renobird (2007-07-05 16:36:37)

Offline

#102 2007-07-12 16:44:57

hachi
Member
From: switzerland
Registered: 2004-04-24
Posts: 25

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Mary wrote:

I can’t view your site at the moment (“The server at mainstream.radiox.ch is taking too long to respond.”) but I’ll try looking at it again later.

Did you find time to have a look at it yet?
I found another possible bug: When searching in the playlists section and then clicking on the title of the search result, I don’t get the single article but the section page. try for example the search for new young pony club and then try the URL http://mainstream.radiox.ch/playlists/958/

I have set the url mode to /section/id/title and switched off the “add title to permalink” feature. When I switch off the plugin, the URL works and I get a single article.

And just for completeness, I have the following in my template for the playlist section:

<txp:upm_date_menu link_to="playlists" month_format="%B" section="playlists" year_format="%Y" insert_empty_months="no" />

Any help appreciated as always.
Oliver

Last edited by hachi (2007-07-12 16:46:04)

Offline

#103 2007-07-13 16:42:55

Nic
Member
Registered: 2007-06-08
Posts: 21

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

hachi wrote:

I found another possible bug: When searching in the playlists section and then clicking on the title of the search result, I don’t get the single article but the section page.

That sounds a lot like my bug, no? I imagine it has something to do with smart mode, and maybe something to do with error handling?, but I’m not adept enough to look through the plugin.

Offline

#104 2007-07-19 20:58:45

Nic
Member
Registered: 2007-06-08
Posts: 21

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

I apologize if this sounds insistent or rude, but I was wondering if there was any progress made with this plugin issue. It’s coming close to launch for a website I’m work on, but this archive issue is holding us back.

Offline

#105 2007-08-02 12:46:59

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Nothing to do with smart mode, really, but the clean url detection (this always seems to get gummed up by upgrades, expectedly). This latest update should fix it.

v.0.2.3

Last edited by Mary (2013-01-24 17:29:25)

Offline

#106 2007-08-02 12:59:29

hachi
Member
From: switzerland
Registered: 2004-04-24
Posts: 25

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Hey Mary

Thanks for fixing the permalink issue. Works fine for me now. A thing which your update didn’t fix, was the issues I had with german umlauts in the month names as already mentioned in an above post. Any ideas on how to fix this?

Again thanks for your efforts!
Oliver

Offline

#107 2007-08-04 10:35:26

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Can you post your full diagnostics? I think it is something to do with your charset.

Offline

#108 2007-08-04 11:50:15

hachi
Member
From: switzerland
Registered: 2004-04-24
Posts: 25

Re: [plugin] [ORPHAN] upm_date_archive: Date archive listings

Here you are (or do you need the high detailed diagnosctics?):

Textpattern version: 4.0.5 (r2466)
Last Update: 2007-07-02 15:17:40/2007-07-02 15:15:24
Document root: /home/users/mainstream/mainstream
$path_to_site: /home/users/mainstream/mainstream
Textpattern path: /home/users/mainstream/mainstream/textpattern
Permanent link mode: section_id_title
open_basedir: /etc/phpmyadmin/:/home/system/:/home/tmp/:/home/users/
upload_tmp_dir: /home/tmp
Temporary directory path: /home/users/mainstream/mainstream/textpattern/tmp
Site URL: mainstream.radiox.ch
PHP version: 5.1.6-1
GD Image Library: version 2.0 or higher, supported formats: GIF, JPG, PNG
Server Local Time: 2007-08-04 13:47:09
MySQL: 5.0.24a-Debian_4-log
Locale: en_US
Server: Apache/2.0.55 (Debian) DAV/2 SVN/1.2.3 mod_ssl/2.0.55 OpenSSL/0.9.8c mod_vhost_ldap/0.2.9
PHP Server API: cgi-fcgi
RFC 2616 headers: 
Server OS: Linux 2.6.21.6
Active plugins: upm_date_archive-0.2.3
Pre-flight check: 
------------------------
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: phpinfo
------------------------
.htaccess file contents: 
------------------------
DirectoryIndex index.php index.html
Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c>
	RewriteEngine On
  RewriteBase /
	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]
	RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
------------------------

Last edited by hachi (2007-08-04 11:51:35)

Offline

Board footer

Powered by FluxBB