Forum
Welcome, Guest
Please Login to access forum.
Re:Restrict Jchat social pro based on article id (1 viewing) 
Go to bottom
TOPIC: Re:Restrict Jchat social pro based on article id
#786
non
Fresh Boarder
Posts: 3
User Offline
Restrict Jchat social pro based on article id Karma: 0  
My client has installed the Jchat social Pro version on his site(Joomla).
He wants me to restrict it:
For some article
and for other it must be shown is that possible ?
In backend it has parameter based on Menu in joomla not based on links.
"That would be great if it can be restricted or shown on specific link that administrator provides in backend".
let me know if that possible or how should i code for this
 
Logged Logged  
  The administrator has disabled public write access.
#788
John Dagelmore
Admin
Posts: 3722
User Offline
Re:Restrict Jchat social pro based on article id Karma: 79  
Hello,

normally exclusions work with access levels and menu items but the option to match single articles is not included.

The easiest way to do this would be using articles ids that need to be excluded and in the plugin file that embed chat application filter out this, as already happens for menu.


Best regards

John Dagelmore
 
Logged Logged  
  The administrator has disabled public write access.
#790
non
Fresh Boarder
Posts: 3
User Offline
Re:Restrict Jchat social pro based on article id Karma: 0  
First of all thanks For Quick Response.
If you could give a quick example to us,
with code and file thats has to be edited that would be great for everybody with same problem on this forum.
just what i have seen it has to be at: "\plugins\system\jchat"
in function "onAfterInitialise()".
 
Logged Logged  
  The administrator has disabled public write access.
#791
John Dagelmore
Admin
Posts: 3722
User Offline
Re:Restrict Jchat social pro based on article id Karma: 79  
Well you should add this in the function 'injectApp'
You will find the code for menu after the comment 'Check for menu exclusion'

You need a similar code to check the content component of Joomla, then the article view and article id,
and finally estabilish if the id of the article is excluded, and in that case return from the function.

Regards

John
 
Logged Logged  
  The administrator has disabled public write access.
#792
non
Fresh Boarder
Posts: 3
User Offline
Re:Restrict Jchat social pro based on article id Karma: 0  
Thanks a lot ! I get what you are saying !
 
Logged Logged  
  The administrator has disabled public write access.
#5197
Ilya Renar / J Stream
Fresh Boarder
Posts: 1
User Offline
Re:Restrict Jchat social pro based on article id Karma: 0  
It is possible to do it without coding.

Set rendering to module type
Control Panel -> Themes and aspect -> Rendering mode -> Custom module.

Then module mod_jchat woudl appear.
And JChat woud appears as this module.
You need to turn this module on. But don't set this module position (set position to nothing).

Then you need to add free plugin Modules Anywhere
And put JChat directly to article by writing {loadmodule mod_jchat,My Chat} anywhere in the article text.

But if you want JChat not to scroll (with article text), put Chat into div container with position fixed to screen.
 
Logged Logged  
  The administrator has disabled public write access.
Go to top