AMCphp - 1.0 released (bugfix + history report)

If you made a template for printing or HTML export, you can offer it to the others here. You can also ask here for help about these templates
Murnau_Vs_Buñuel
Posts: 58
Joined: 2004-11-18 12:48:40

Post by Murnau_Vs_Buñuel »

The Dolf wrote:I have two questions:

What do I have to change/add and where to see how many movies I have.
And how can I create a link to my newest 25 added movies?

Any help would be most appreciated.

in categories.php:

Code: Select all

?>
<table width="120" valign="center" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td class="selected"><div class="row"><a href="main.php?page=1&offset=0&sort=movieTranslatedTitle&direct=asc" target="main"><b><?php print res_ALL; ?> <i>(<?php print count($_SESSION["movieList"])." ".strtolower(res_MOVIES)?>)</i></b></a></div>
			</td>
		</tr>
		<tr>
			<td class="selected"><div class="row"><a href="main.php?page=1&offset=0&sort=movieNumber&direct=desc" target="main"><b><?php print res_NEW?></b></a></div>
			</td>
		</tr>
		<tr>
			<td bgcolor="#00D0FF"><div class="head"><?php print res_CATEGORIES; ?></div>
			</td>
		</tr>
<?php
-----------------------------------------------
My AMCphp List: www.MurnauVsBunuel.tk
Nesty

Post by Nesty »

Please give a whole copy of the file because i get parse errors :/
Murnau_Vs_Buñuel
Posts: 58
Joined: 2004-11-18 12:48:40

Post by Murnau_Vs_Buñuel »

Nesty wrote:Please give a whole copy of the file because i get parse errors :/
what file do you like?(categories.php, main.php...?¿?¿) :hum: my english isn´t very good.
and what is your email?
bye
Alexey Petrov
Posts: 25
Joined: 2004-07-16 09:12:26
Location: Moscow, Russia
Contact:

Post by Alexey Petrov »

Everybody, who gets php-errors with this Template (including people, called Pandolphe and test):

1. Disable PHP-errors in php.ini file (usually in c:\windows\php.ini in Windows and /usr/local/etc/php.ini in UNIX):
found there string "error_reporting = ..." (usually string number 271 or near this)...
and change it to:
error_reporting = E_ERROR;

2. If you haven't access to modify file php.ini (for example, if you using Shared Hosting), try this hint:
Add to all PHP-files of AMCphp template this string:
ini_set("display_errors","0");
...before the string:
session_start();
- it will disable PHP-warnings for each of these files.

I have already written this on previous page! Sometimes read few posts in a thread before posting about your problems ;)
----------------------------------------------------------------------------------------

Few days ago I've started to rewrite AMCphp 1.0 from XML-version of MovieCatalog to MySQL (with DataBase exported from Ant Movie Catalog). My beta-version already works 10 times faster! (with 1300-movies catalog) And it works almost the same way even when I increased (for testing) my catalog to 1 million movies! So, it's REALLY FAST. I hope, that SQL-version will work nice with usual catalogs (about 1000 movies) even on 100 MHz CPU...

New version supports all features of AMCphp 1.0 (sorting, filtering, stats, multilanguage) and looks almost the same way as original template.

Final SQL-version will be ready in a week...
Nesty

solved

Post by Nesty »

Hi, It's solved i used the Russian catagories.php :D

and good news if there comes a MYSQL version :grinking:
Ormus
Posts: 102
Joined: 2003-08-05 16:47:05
Contact:

Post by Ormus »

Hi everyone...

I'm still alive, just had a major move, personal stuff and a hdd crash that kept me busy.

I again work on AMCphp5 (the php5 version), already made good progress. Pretty much every features from the php4 is working now, I just need to test it a little more and cleanup the code. So I'll put up a beta version for download soon.

I'm already curious how php5's simplexml will compare to the Alexey's mysql version. I thought about doing a 'real' database version when I started AMCphp, but most people should be fine without and it's easier for people without much computer knowledge...
rolandb5

Post by rolandb5 »

looking forward to your new release!
romfer

problems showing the list

Post by romfer »

Romfer wrote:I've a problem with my catalog, when the number of films is up of 40 the script don't show the list, and is trying load all the time.

I think is a problem with php.ini but I don't know resolve it.

Somebody can help me?
Alexey Petrov
Posts: 25
Joined: 2004-07-16 09:12:26
Location: Moscow, Russia
Contact:

Post by Alexey Petrov »

Sometimes I get the same troubles as romfer described. Last time it was because of no disk space left on system disk (where my temporary files and php-sessions kept). So, check it...
----------------------------------------

My SQL-version of AMCphp is also ready! Now I just make it more configurable and add some new features to this template...
I have rewritten almost all source code (became 2 times smaller with more features ;)), and will be very hard to keep it up-to-date with Ormus' releases. So I will develop it as independent project.
Ormus
Posts: 102
Joined: 2003-08-05 16:47:05
Contact:

Post by Ormus »

Alexey Petrov wrote:My SQL-version of AMCphp is also ready! Now I just make it more configurable and add some new features to this template...
I have rewritten almost all source code (became 2 times smaller with more features ;)), and will be very hard to keep it up-to-date with Ormus' releases. So I will develop it as independent project.
Didn't your girlfriend tell ya, that size does matter? :hihi: kiddin...

Actually I'm really looking forward to see your version. I'll do some benchmarking comparison. My guess is, that the SQL version will be somewhat faster, but it should only be visible for the user when xml files exceed 1MB and in higher demand times...

What features do you plan? Maybe I can add some of them in the xml version as well.
Alexey Petrov
Posts: 25
Joined: 2004-07-16 09:12:26
Location: Moscow, Russia
Contact:

Post by Alexey Petrov »

List of features I have already implemented in AMCphp SQL Edition:
- Web-server doesn't save all movie-catalog in "php-sessions" - it's useless with SQL-database, which outputs data faster than PHP loads from its sessions
- Almost all data-fields (not only actors/directors/categories) have internal, correctly parsed, data-separators: e.g. "-" for countries, "/" for languages, subtitles, audio/video-formats, etc...
- "Combined search" works also by translated titles, countries, categories, languages, years & optionally by comments, descriptions
- 6 new types of reports: by countries, languages, categories, adding dates, video- & audio-formats
- More information in reports and all movies linked with their descriptions
- 6 new types of diagrams: by languages, adding dates, runtime, filesize, video- & audio-formats (each diagram at different page)
- More intensive content-linking - added: by years, countries, categories, languages, subtitles, adding dates, video- & audio-formats
- Modified "letters-frame" contains 2 strings of letters: for native and original alphabet (customizable in language-files)
- In "categories-frame" number of movies in every category shown
- Highlighting java-script in movie list works much faster and cursors's style changed to "hand" (typical for links)
- Special arrows in header of movie list show order and field of sorting
- AMC doesn't export picture names to SQL... so they are generated automatically by template according to customizable picture prefix and extension (all pictures may be even on another web-host)
- Empty fields don't showed in movie's detailed view
- Some bugs fixed: no warnings anymore even with error-checking enabled

And about size... ;) Main goal was not to reduce size of code, but to make it more modular: repeating code moved to functions, repeating files combined, etc... So, it is easier to modify.

Some of extra features I'm planning to implement in the future:
- Customizable lists of shown fields in "movie list" and in "detailed view"
- Optional features for registered users: personal list of favorite movies, list of seen/not seen movies, comments and ratings for each movie, possibility to add extra URLs for movies (e.g. "mirrors")
- Tool for automatical screenshots-making and adding to movie descriptions

PS: Release (without extra features) will be in 2 days...
Murnau_Vs_Buñuel
Posts: 58
Joined: 2004-11-18 12:48:40

Post by Murnau_Vs_Buñuel »

i will be with attention :clapping:
-----------------------------------------------
My AMCphp List: www.MurnauVsBunuel.tk
Ormus
Posts: 102
Joined: 2003-08-05 16:47:05
Contact:

Post by Ormus »

Here's a first version of AMCphp5: http://amc.loben.net/download/AMCphp5b1.rar
It sure ain't perfect yet, but please everyone interested have a look at it and tell me whatever problems/wishes you have...
Murnau_Vs_Buñuel
Posts: 58
Joined: 2004-11-18 12:48:40

Post by Murnau_Vs_Buñuel »

Ormus wrote:Here's a first version of AMCphp5: http://amc.loben.net/download/AMCphp5b1.rar
It sure ain't perfect yet, but please everyone interested have a look at it and tell me whatever problems/wishes you have...
my web AMCphp5b1http://murnauvsbunuel.hiya-host.com/ this look don´t work
i don´t know if the hosting is the guilty or me
Ormus
Posts: 102
Joined: 2003-08-05 16:47:05
Contact:

Post by Ormus »

It's your webspace. It doesn't recognize .php5 files as php.
option1: look for hosting that does recognize .php5
option2: make php recognize .php5 extension (in case you have the rights to do that)
option3: rename all .php5 files to .php. This includes replacing all ".php5' strings in the php files with ".php"

NB: make sure php5 is available for the webspace.
Guest

Post by Guest »

Ormus wrote:It's your webspace. It doesn't recognize .php5 files as php.
option1: look for hosting that does recognize .php5
option2: make php recognize .php5 extension (in case you have the rights to do that)
option3: rename all .php5 files to .php. This includes replacing all ".php5' strings in the php files with ".php"

NB: make sure php5 is available for the webspace.
nothing... the my hosting dont recognize *php5
Murnau_Vs_Buñuel
Posts: 58
Joined: 2004-11-18 12:48:40

Post by Murnau_Vs_Buñuel »

Ormus wrote:It's your webspace. It doesn't recognize .php5 files as php.
option1: look for hosting that does recognize .php5
option2: make php recognize .php5 extension (in case you have the rights to do that)
option3: rename all .php5 files to .php. This includes replacing all ".php5' strings in the php files with ".php"

NB: make sure php5 is available for the webspace.
i have had your 3 options but, my hosting have php 4.3.1 installed now, dont recognize *.php5 :badidea:

Someone know a free-hosting that recongnize *.php5?
Ormus
Posts: 102
Joined: 2003-08-05 16:47:05
Contact:

Post by Ormus »

Actually you only need php5 support, as you can change the extension from .php5 to .php
Guest

Post by Guest »

Ormus: please write basic configuration for php5. There is no need for index.html now?
Does your email on your page still works ?
Ormus
Posts: 102
Joined: 2003-08-05 16:47:05
Contact:

Post by Ormus »

Just point the browser to the index.php5 file. If your webhost supports it, the page will open. The settings file is nearly unchanged from the php4 version and comments are in the file.
Post Reply