How can i modify Company Directory Module?
Posted: Sat Aug 25, 2007 8:27 pm
I've installed the Company Directory module but have some issue with it .
Number 1: There seems to be a bug where no check boxes is checked in edit mode on the Company Edit Page even thou I've checked either one or more categories - the same goes for custom fields.
I can see in the source code there is assigned a value to the check boxes - they are just missing the checked="checked".
What file should i edit to solve that as i can't seem to find the right place in the action.editcompany.php file?
Number 2: My host has Safe Mode On and this cause trouble for upload of pictures and logos as the Company Directory Module wants to create folders for each upload - I have solved the upload problem as i have manually created the companydirectory and tmp folders in uploads with the right permissions.
And then i edited the action.addcompany.php and action.editcompany.php not to include and create the id folder for each upload. I have also edited action.default.php and the lines containing "picture_path" and "logo_path" not to include the id folder in the path.
But the problem is front end still can't show picture and logo for a company as the output path still include the id folder! (img src="http://domain.dk/uploads/companydirectory/id62/img.jpg)
Where else should i edit the paths?
Number 3: This one is properly more difficult!
I want to change how company summary is displayed in front end;
I want 2 different summary pages in front end: One page show the companies sorted alphabetic but in 2 or more columns. Second page also show companies in 2 or more columns but are sorted and grouped by category.
How and where do i edit to make these changes?
I hope someone can point me in the right direction as i need to solve these problems.
TIA.
Finn
Number 1: There seems to be a bug where no check boxes is checked in edit mode on the Company Edit Page even thou I've checked either one or more categories - the same goes for custom fields.
I can see in the source code there is assigned a value to the check boxes - they are just missing the checked="checked".
What file should i edit to solve that as i can't seem to find the right place in the action.editcompany.php file?
Number 2: My host has Safe Mode On and this cause trouble for upload of pictures and logos as the Company Directory Module wants to create folders for each upload - I have solved the upload problem as i have manually created the companydirectory and tmp folders in uploads with the right permissions.
And then i edited the action.addcompany.php and action.editcompany.php not to include and create the id folder for each upload. I have also edited action.default.php and the lines containing "picture_path" and "logo_path" not to include the id folder in the path.
But the problem is front end still can't show picture and logo for a company as the output path still include the id folder! (img src="http://domain.dk/uploads/companydirectory/id62/img.jpg)
Where else should i edit the paths?
Number 3: This one is properly more difficult!
I want to change how company summary is displayed in front end;
I want 2 different summary pages in front end: One page show the companies sorted alphabetic but in 2 or more columns. Second page also show companies in 2 or more columns but are sorted and grouped by category.
How and where do i edit to make these changes?
I hope someone can point me in the right direction as i need to solve these problems.
TIA.
Finn