I am using jshack and i have to display popup after student login into the account and also when student enter into any course not on all pages only after login and after entering in course so how can i do this? can anyone suggest
I have not used this building block myself, but I suspect you could identify a student by inspecting the list of courses they have access to and check the role it gives for them. Within a course their student role should be obvious by the absence of edit options. Perhaps the hardest part will be to know when a user first enters a course - you may want to keep a record of the course ID in their session to check against. Having determined their role you can then display content accordingly. The JS Hacks building block makes some objects available to your velocity templates, such as the Learn context - so you may find you can use this to get the information you need. This is documented on the wiki page for the project.
If this is your first project for Learn 9 then you have not picked the simplest to get started with!
ohk thnxx.. and if u have some knowledge about displayUrl than pls answer my question which i have posted before!
If you want a simple popup then you may wish to take a look at my latest blog posting. This is a simple Module Building block that allows and administrators to create a overlay onto a tab. All the source code and complied Building block is attached to this blog post. This was built to give an example of how to create portal modules.
Community Transparent Module Overlay
If you want to limit a hack to only be injected when the user is a student then I suggest looking at the Role Restriction: http://jshack.net/rolerestriction
Retrieving data ...