Bienvenido, Invitado
Nombre de Usuario: Contraseña: Recordarme
  • Página:
  • 1

TEMA: Problem to identify articles in archive

Problem to identify articles in archive hace 10 meses 2 semanas #20439

  • mainz1955
  • Avatar de mainz1955
  • DESCONECTADO
  • Visitante
  • Mensajes: 7
  • Karma: 0
Dear jonijnm & friends,
at first, the modul ist phantastic. But I'll tell you my problem and I hope, you have a solution. Excuse my bad english, I'll do my very best:
There is a soccer team with different classes - 1.Team, 2.Team, A-Kids, B-Kids, C-Kids, and so on. All classes playing soccer with other clubs and their same classes.
E.g. 1.Team Club One with 1.Team Club Two, 2.Team Club One with 2.Team Club Two, A-Team Club One with A-Team Club Two and so on.
For every game there exist a report. Now wie have different games with the same titles and it is not possible to see, witch one is the report from the 1.Team, witch one from the 2.Team, and so on.

The only solution we found is, to write the Team-Class in the title. E.g. "1.Team - Club One against Club Two", "2.Team - Club One angainst Club Two", and so on. But in this case, we have to edit all reports and there are a lot of reports.

Perhaps it is possible to get an output with the category in front to choose the report of a spezific game (1.Team, 2.Team, A-Kids, ...) because we have build separate categorys für every team class?

Thanks and best regards
Jochen
El administrador ha desactivado la escritura pública.

Re: Problem to identify articles in archive hace 8 meses 1 semana #20490

  • JoniJnm
  • Avatar de JoniJnm
  • DESCONECTADO
  • Administrador
  • Mensajes: 4436
  • Gracias recibidas 510
  • Karma: 151
So you want something like:
· Year 2012
	· Cat 1
		· Art 1
		· Art 2
	· Cat 2
		· Art 3
· Year 2011
	· Cat 3
		· Art 4
		· Art 5
I'd have to think...

But you can show the category with the title:

In helper.php:
//Change
$query = 'SELECT a.id, a.title, a.alias, a.catid, a.sectionid, c.alias as calias, '.
//by
$query = 'SELECT a.id, a.title, a.alias, a.catid, a.sectionid, c.alias as calias, c.title as ctitle, '.
 
//change
					$out->articulos[$d][$month][] = '<span style="cursor:pointer" title="'.$this->getDate($row->co).'">'.$this->getDay($row->co).'</span> - <a href="'.$link.'">'.$row->title.'</a>';
				else
					$out->articulos[$d][$month][] = '<a href="'.$link.'">'.$row->title.'</a>';
//by
					$out->articulos[$d][$month][] = '<span style="cursor:pointer" title="'.$this->getDate($row->co).'">'.$this->getDay($row->co).'</span> - <a href="'.$link.'">'.$row->ctitle.' | '.$row->title.'</a>';
				else
					$out->articulos[$d][$month][] = '<a href="'.$link.'">'.$row->ctitle.' | '.$row->title.'</a>';
El administrador ha desactivado la escritura pública.

Re: Problem to identify articles in archive hace 8 meses 1 semana #20496

  • mainz1955
  • Avatar de mainz1955
  • DESCONECTADO
  • Visitante
  • Mensajes: 7
  • Karma: 0
Hi JoniJnm,

this is exactly that what I want.

Many thanks for the code-changes, but I must check the helper-code in my installation more intensiv, because, there is a difference between your code here and the code in my helper.php. Maybe it is an older version?

Unfortunatly I don't know how I can put the real code in here. My Mod LCA version is: 0.9.5 - 22 Apr 2012

Best wishes
El administrador ha desactivado la escritura pública.

Re: Problem to identify articles in archive hace 8 meses 1 semana #20498

  • JoniJnm
  • Avatar de JoniJnm
  • DESCONECTADO
  • Administrador
  • Mensajes: 4436
  • Gracias recibidas 510
  • Karma: 151
Umm... Can you upload your helper.php in a zip file?
El administrador ha desactivado la escritura pública.

Re: Problem to identify articles in archive hace 8 meses 1 semana #20499

  • mainz1955
  • Avatar de mainz1955
  • DESCONECTADO
  • Visitante
  • Mensajes: 7
  • Karma: 0
Yep! You'll find it here - helper.zip - as an attachment.
Adjuntos:
El administrador ha desactivado la escritura pública.

Re: Problem to identify articles in archive hace 8 meses 1 semana #20500

  • JoniJnm
  • Avatar de JoniJnm
  • DESCONECTADO
  • Administrador
  • Mensajes: 4436
  • Gracias recibidas 510
  • Karma: 151
In lines 151 and 212. It's the same file!
El administrador ha desactivado la escritura pública.
Los siguientes usuarios han agradecido: mainz1955

Re: Problem to identify articles in archive hace 8 meses 1 semana #20504

  • mainz1955
  • Avatar de mainz1955
  • DESCONECTADO
  • Visitante
  • Mensajes: 7
  • Karma: 0
Dear JoniJnm,
you got it! That's what I want. This is the solution.
With the line numbers, I have found the locations to change.
I made the mistake, I have looked at the wrong if/else statement.
Now it is perfekt. Many thanks again.
Jochen
El administrador ha desactivado la escritura pública.
  • Página:
  • 1
Tiempo de carga de la página: 0.158 segundos