11
optikool
Re: Gallery (Optikool) - Cannot create categories or collections
  • 2010/1/25 17:52

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Hi Burning,

Thanks for all the testing you are doing. I don't run into any of these issues even though I uninstall and re install before I zip up the finished module. I'm also using a Linux web server to do my tests and most PHP plug-in are already installed.

exif_imagetype() is a PHP function to test image type. Mazarin if you're not seeing an error relating to this, your server already has it enabled.

checkPermissions: I'm not sure why my didn't see this in my tests, but try adding the following to the top of index.php

include_once "include/functions.php";


Undefined offset on line 792. I'll have to look into this more and try installing a version of XOOPS in a sub directory.

I am using XOOPS version 2.4.0

Optikool



12
optikool
Re: Gallery (Optikool) - Cannot create categories or collections
  • 2010/1/25 5:38

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Firebug is a plug-in for Firefox. It is used by developers to track down errors among other things. It's a must have if you are doing web development.

Calling generate.php directly will not work. You need to give it a list of parameters.

I just update the module to fix the json issue with jquery 1.4. Try reinstalling or copying over just the js and include folders. Let me know if this fixes the problem...

http://www.optikool.com/modules/mydownloads/singlefile.php?cid=2&lid=15

Optikool



13
optikool
Re: Gallery (Optikool) - Cannot create categories or collections
  • 2010/1/25 2:24

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Hi,

Can you try this in Firefox using Firebug and on the Net tab, check for get requests going to generate.php. Let me know if the variable spath is undefined.

Optikool



14
optikool
Re: Gallery (Optikool) - Cannot create categories or collections
  • 2010/1/25 1:26

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Hi,

If you check Firebug and look at the ajax requests being made... if there are a bunch of undefined values, check if you are using the newest version of jQuery. My module has had problems with jQuery 1.4 in that it doesn't like my json string. This module is currently using the previous version 1.3.2 and I haven't had time to do the research to find out why my json string is not formatted correctly to the standard that 1.4 is using.

Optikool



15
optikool
Re: Gallery (Optikool) - Cannot create categories or collections
  • 2010/1/23 16:23

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Hi,

Thanks, I will update the readme file and add this information to it.
I'm not sure how you are adding the collections to the category, but if after you created your categories and then went to New Collections and click the add button there, it should automatically add the collection to the category. But keep in mind, if you have a list of collections, for example my wife has over 100 collections in different categories, it will take time for the process to finish because thumbnails are generated in the cache folder for each collection. Originally I had the module generate thumbnails on the fly when ever a visitor would visit that collection on the front end, but Protector saw this as an attack and would ban the visitor. If you are using Firebug in Firefox, you can click on the Net tab and see if there are ajax requests being made for each collection. If you are seeing flickers, this may mean the thumbnails have already been created and it's just taking the rest of the information it needs and then going to the next collection. You said you're not seeing errors in the error log so this tells me that your cache directory is writable and everything is processing normally.

Also I just updated this module on my website back on the 21st with some fixes so if you downloaded this module before that date please download it again.

Optikool



16
optikool
Re: Gallery (Optikool) - Cannot create categories or collections
  • 2010/1/23 15:46

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Hi,

This is a very simple module in that categories are considered empty folders and collections are considered folders with images. In order to create a category you must create a folder and put your collection folders that belong in that category inside the empty category folder. The module will then find the empty category folders and display them so you can add in the admin section. You could then go in and modify this category. When you go to the new collection tab you will see all of the collections and when you click the add button they will be added to the database and will be assigned to the category based on the folder the collection is in on the server. You can at a later time go in and modify the category for this collection.

When I have time I may change this whole approach and just make users manually create categories and then manually create the collections, like a I do with the Joomla version of this module. This approach takes all that manual work out of the process. :) But here is an example of what the folder structure could look like on your server...

gallery (folder of the root for your gallery)
  |
_ Animals (category if folder has no images)
    |
_ Cats (collection if images are in this folder)
    |
_ Dogs (collection if images are in this folder)
  |
_ Trees (category if folder has no images)
    |
_ Winter Trees (collection if images are in this folder)
    |
_ Summer Trees (collection if images are in this folder)
    |
_ Trees in the Spring (collection if images are in this folder)
  |
_ Me (collection if images are in this folder)

Let me know if this doesn't make sense. Also if at a later time you decide a collection belongs in a different category, don't move this folder on the server (unless you deleted the category in the admin menu then that fine). You can modify the collection and choose a different category from the list.

Optikool



17
optikool
Re: X-Movie
  • 2010/1/21 17:33

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Hi,

What does your server logs say when you try to upload a video? Also what size is the video and in the x-movie preference what is the max size you are allowing? Also what is the max size that your php.ini file allows? If you have know way of finding out, you can either create a php file and echo phpinfo(); or you can set the max upload in x-movie pref to an extremely high number. If it goes beyond the max in your php.ini file, the value in php.ini will be used instead. Mainly look at the server log files?

Also what type of video are you uploading?? divx, avi, mpg, flv?

Another thing you can try is add the following after function getMovieUpAttr($movieUp) {

global $dirnameXOOPS_ROOT_PATH;
include_once 
XOOPS_ROOT_PATH."/modules/" .$dirname"/include/getid3/getid3.php";


I did not test this but it should work.

Optikool



18
optikool
Re: Joombla
  • 2009/10/28 18:51

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


What would really be cool is if XOOPS had an option to turn on modRewrite and have a pre .htaccess file setup to be used if this was turned on. From what I understand so far about Joomla Modules, the developer would need to create an encoder and decoder of the query string to it could be converted to a friendly url. That will take some work from core developers as well as module developers unless XOOPS Core had another field parameter to store a name specified by the user in the modules section and XOOPS somehow could use that to create friendly urls. But this is just a simplified observation. It more complicated then that when you get into the details. :)



19
optikool
Re: Adding javascript to a block
  • 2009/9/30 1:22

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Quote:

Ok, I thought it might have been possible to reference a file in a block_show function.
So do you mean that I just put it in the template file ?


No you wouldn't put your js code in the show_block function. Find the module that the block belongs, then look for it's template file under templates/blocks and add the code there. If you don't want to go through all that then add it to the header part of your theme.html file.



20
optikool
Re: Main Menu - Unordered List ??
  • 2009/9/30 1:09

  • optikool

  • Not too shy to talk

  • Posts: 154

  • Since: 2007/3/26


Wow, I remember that theme... sorry it is giving you so much trouble. That was a theme I created when I was first learning XOOPS theme development, so some things might be missing. If I was creating it today I would do it differently. Looks nice though.




TopTop
« 1 (2) 3 4 5 ... 14 »



Login

Who's Online

242 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 242


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits