Archaic Binary

 
  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • blue color
  • green color
Home arrow Forums
Welcome, Guest
Please remember that if you wish to join in the conversations, you must register an account or login.
Instructions (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 3
TOPIC: Instructions
#105
alviana (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Instructions 8 Months ago Karma: 0  
How to add more than one category?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#107
zharvek (Admin)
Server Admin, Webmaster, Programming, Eh More...
Admin
Posts: 70
graph
User Offline Click here to see the profile of this user
Gender: Male Archaic Binary Zharvek Location: Orlando, FL Birthdate: 1984-11-28
Re: Instructions 8 Months ago Karma: 4  
Well, at the moment I don't believe it is possible. There would need to be some changes to the module and possibly the component. I will take a look at the module, and see if this is the cause. I'll post here when I take a look.
 
Report to moderator   Logged Logged  
 
I once knew a Jewish girl who kept a diary. It ended badly... Ah! You thought I was making a Nazi joke... SHAME ON YOU! -Clouse (American Dad)
  The administrator has disabled public write access.
#108
disablez (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re: Instructions 7 Months, 4 Weeks ago Karma: 0  
I remember it was fairly easy... I just changed some "select x from jos_content where category=$category" to "saelect x from jos_content where category = any ( $category)" or where category in ($category). Then just need to write categories separated by commas in the config page. When I'm home I'll try to find the exact spot.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#109
alviana (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re: Instructions 7 Months, 4 Weeks ago Karma: 0  
If you can paste the code here would be very grateful.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#110
disablez (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re: Instructions 7 Months, 4 Weeks ago Karma: 0  
Ok, I think it was this. Not sure, though, so backup before you try...

* Showing the contents of more than 1 category when you click on a date:

modules/com_calendar/class_com_ab_calendar.php, function getContent() ... around line 106

$sql .= $this->showall || !strlen($this->sectionid) || !strlen($this->categoryid) ? '' : " and sectionid='$this->sectionid' and catid='$this->categoryid' ";

becomes

$sql .= $this->showall || !strlen($this->sectionid) || !strlen($this->categoryid) ? '' : " and sectionid='$this->sectionid' and catid IN ($this->categoryid)";

* Making a link on a calendar's day if it contains any content from one of several categories:

same folder, class_my_calendar.php, function getDateLink, around line 482:

$sql .= $this->general[4] == 1 || !strlen($this->general[0]) || !strlen($this->general[2]) ? '' : " and sectionid='$this->sectionid' and catid='$this->categoryid' ";

becomes

$sql .= $this->general[4] == 1 || !strlen($this->general[0]) || !strlen($this->general[2]) ? '' : " and sectionid='$this->sectionid' and catid IN ($this->categoryid) ";

For these changes to work, categoryid is supposed to look like 22, 43 ... or '22', '43'. In my case I could do that in the config panel, but don't remember if after Sven's changes this was still possible. Worst case, you can assign the value in the code.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/03/25 13:56 By disablez.
  The administrator has disabled public write access.
#111
zharvek (Admin)
Server Admin, Webmaster, Programming, Eh More...
Admin
Posts: 70
graph
User Offline Click here to see the profile of this user
Gender: Male Archaic Binary Zharvek Location: Orlando, FL Birthdate: 1984-11-28
Re: Instructions 7 Months, 4 Weeks ago Karma: 4  
Thanks disablez! There you go, happy to see others helping out too
 
Report to moderator   Logged Logged  
 
I once knew a Jewish girl who kept a diary. It ended badly... Ah! You thought I was making a Nazi joke... SHAME ON YOU! -Clouse (American Dad)
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop