11
iliakros
Re: SmartSection category permissions deleted
  • 2009/11/4 12:02

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


They are both working

I choose the last one, because it is the smallest modification

if ($categoryid $this->db->getInsertId()) {
            
$category->assignVar('categoryid'$this->db->getInsertId());
        }
        
$category->assignVar('categoryid'$categoryid);
        return 
true;



12
iliakros
Re: SmartSection category permissions deleted
  • 2009/11/4 11:48

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


This solved the problem

Thank you very very much



13
iliakros
Re: SmartSection category permissions deleted
  • 2009/11/4 10:40

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


Ok, now it says

category id |5|

I retried and now it says

category id ||



14
iliakros
Re: SmartSection category permissions deleted
  • 2009/11/4 10:23

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


It says the following

category id |()|

and I have an error

Notice: Undefined property: SmartsectionCategory::$categoryid in file /modules/smartsection/admin/category.php line 236



15
iliakros
Re: SmartSection category permissions deleted
  • 2009/11/4 9:16

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


With XOOPS version 2.0.16 it is working fine
I didn't test 2.2 versions



16
iliakros
SmartSection category permissions deleted
  • 2009/11/4 8:32

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


When adding a new category all the read permissions are deleted.

I found out that the problem only appears in XOOPS 233.
What really goes wrong is that the permissions are deleted by this query, because there is no categoryid. This means all permissions get deleted.

DELETE FROM group_permission WHERE (gperm_modid = '117' AND gperm_name = 'category_read')

However when I look to the code in /xoops/modules/smartsection/admin/category.php line 236, there is a categoryid send.

smartsection_saveCategory_Permissions($categoryObj->getGroups_read(), $categoryObj->categoryid(), 'category_read');

Somehow xoops233 is messing things up.

I am using SmartSection 2.14

Does anyone know how to fix this?

many thanks



17
iliakros
extgallery 1.08 language constant error
  • 2009/11/4 8:24

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


Hello,

After installing the lolbuilder plugin I had the following error

Notice: Use of undefined constant _MD_EXTGALLERY_UPLOAD_ERROR - assumed '_MD_EXTGALLERY_UPLOAD_ERROR' in file /modules/extgallery/plugin/lolbuilder/postNewPhoto.php line 113

I found out that none of the language constants in postNewPhoto.php are working.

When I put a define string in postNewPhoto.php the constants are working, but the language constants of the previous upload page (modules/extgallery/public-upload.php) do not.

Does anyone know how to solve this?

Many thanks



18
iliakros
extGallery 1.08 lolbuilder permissions
  • 2009/11/4 8:23

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


Hello,

I installed the lolbuilder plugin. When uploading an image at the frontend, you can choose to not allow others to LOL your image. This is not working. When I look in the database, no permissions are saved either.
The module and lolbuilder are working fine.

Isn't this feature working yet? Or am I forgetting some settings?

Help appreciated

Thanks



19
iliakros
Re: extgallery 1.0.6 upload problem
  • 2009/11/3 15:43

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


In extGallery 1.08 I found the following code taking care of the sorting of the pictures

extgallery/class/photoHandler.php line 108-118


function getAlbumPhotoPage($catId, $start) {
$criteria = new CriteriaCompo();
$criteria->add(new Criteria('cat_id',$catId));
$criteria->add(new Criteria('photo_approved',1));
$criteria->setStart($start);
$criteria->setLimit($GLOBALS['xoopsModuleConfig']['nb_column']*$GLOBALS['xoopsModuleConfig']['nb_line']);
$criteria->setSort('photo_weight, photo_id');
$criteria->setOrder('ASC');

return $this->getObjects($criteria);
}

It sorts the pictures first on weight and then on id. You could check if extGallery 1.06 has these lines to.



20
iliakros
Re: Search in xHelp doesn't work
  • 2009/11/3 15:12

  • iliakros

  • Just popping in

  • Posts: 21

  • Since: 2009/11/3


I have the same notice but the search is working. So the notice has nothing to do with your problem.

Maybe your search does find results but isn't displaying them. Check your template file. Maybe it is messed up because of the (un)install.




TopTop
« 1 (2) 3 »



Login

Who's Online

169 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

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

Latest GitHub Commits