Author Topic: 6.2  (Read 2696 times)

0 Members and 1 Guest are viewing this topic.

Offline Bert

  • album.pl Tester
  • **
  • Posts: 38
  • Karma: +0/-0
    • Bert's Place
6.2
« on: April 28, 2003, 14:38:27 »
Hi,

it seems like  ####OBJRATING#### also adds the long description when used in an object template...

and

updating users list corrupts my auth_db file.

it adds blank lines

Bert
Computers are like Airconditioners
They stop working when you open Windows

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:6.2
« Reply #1 on: April 28, 2003, 15:12:23 »
Hi Bert,

I couldn't reproduce the OJBRATING problem, it works OK for me... :(

But you're right, it inserts a blank line at the end of the user list. Fixed in the download. Thanks.

Offline Bert

  • album.pl Tester
  • **
  • Posts: 38
  • Karma: +0/-0
    • Bert's Place
Re:6.2
« Reply #2 on: April 29, 2003, 02:42:38 »
have a look at this...

<div class="albumsubtitle">

<!-- OBJTITLE tag start -->
<a href="http://www.goju-andy.be/documents/album/algemeen/Examen.pdf" target="_blank" class="moviethumb">Examen[/url]
<!-- OBJTITLE tag end -->






<sup>


</sup>



</div>



<!-- OBJRATING tag start -->


Dit is een verouderd document met de beschrijving van wat er moet gekend zijn voor een examen.



<small><small>Geen Waardering
Rate It</small></small>
<!-- OBJRATING tag end -->

the text 'Dit is een verouderd document met de beschrijving van wat er moet gekend zijn voor een examen.' is the description....

this is a snapshot from my object template.



<td class="objects" nowrap>

####OBJECTTHUMB####




<div class="albumsubtitle">
####OBJTITLE####





<sup>
####SHOWCOUNT####
</sup>



</div>


####OBJRATING####


####OBJADMIN####
</td>


as for the blanks, it did that for every line for me...
Computers are like Airconditioners
They stop working when you open Windows

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:6.2
« Reply #3 on: April 29, 2003, 06:45:39 »
Do you have strip_comments=1? That'll strip out a lot of the extraneous HTML comments, but sometimes leave blank lines instead...

Offline Bert

  • album.pl Tester
  • **
  • Posts: 38
  • Karma: +0/-0
    • Bert's Place
Re:6.2
« Reply #4 on: April 29, 2003, 08:21:56 »
No that is off. I think you misinterpreted my post.

the top part is the output html of album.pl, the bottom part is my album_object.tpl

I use Adobe GoLive for web management and it looks like Gllive stripped the comments from the template.

Read carefull and youll notice the tag markers for the rating in the top part as well as the rating and the description within those tag start end marker.

output file can be seen at http://www.goju-andy.be/cgi-bin/documents/album.pl?album=algemeen
Computers are like Airconditioners
They stop working when you open Windows

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:6.2
« Reply #5 on: April 30, 2003, 05:55:35 »
You're right, I mis-intrepreted your post. Sorry...

Any chance you can post the contents of descriptions.txt and ratings.txt here as well? I'd like to see what info the script is reading to see if that explains what's going on...

Thanks

Offline Bert

  • album.pl Tester
  • **
  • Posts: 38
  • Karma: +0/-0
    • Bert's Place
Re:6.2
« Reply #6 on: April 30, 2003, 06:39:04 »
No Prob!

ratings is empty....

http://www.goju-andy.be/documents/album/algemeen/ratings.txt

descriptions is found here....

http://www.goju-andy.be/documents/album/algemeen/descriptions.txt


BTW: I tried the flat list modification yesterday and have still the same problem as before, blank lines between every entry!

Bert
Computers are like Airconditioners
They stop working when you open Windows

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:6.2
« Reply #7 on: April 30, 2003, 10:54:21 »
Hi Bert,

If you already had blank lines in your user list (even from a previous buggy release) this won't fix them. It just shouldn't add them any more... (If you FTP your auth_db, be sure to use ASCII mode...)

As for the ratings problem, you're absolutely right. I checked the code, and for movies, it adds the long description with the ratings.

Why? Because there's no where else to see it. That is, when you click on a 'movie' it doesn't open a page with the long description, etc, it opens the movie directly. (As is the case for your PDF files.)

Now that object templates are available, I have to ask myself if this is still a valid way to operate...

Opinions, anyone?
« Last Edit: April 30, 2003, 10:54:57 by Mike Bobbitt »