PDA

View Full Version : Please point me to the right way to make a $function appear in a module...


stardotstar
07-17-2009, 01:20 AM
Hi Guys,

I am working on this by searching but I think I am missing some critical concept that will allow me to add something that a plugin adds to a standard template like forumhome by calling the $function wherever you want it to appear.

I thought I would be able to make a template module and call the $function but must be getting it wrong.

Its like this:

There is a product that allows social group recent posts to be integrated in the forumhome by simply adding:

$cel_social_groups

where you want it...

I have put it on the index page between the upcoming events and the forum lists and now I want to have it between my photoplog thumbs and the recent posts (or even call it within the recent posts module) on the portal...

I have made a new template module calling what I thought were the right components but it does not show.

I also note that I never am able to see a "preview" of even the existing working modules - like the recent posts - is there a connection, or something broken that is unrelated?

Thank you for any help in pointing me at the right reading or assisting me through making it work.

Will

Brian
07-17-2009, 11:53 AM
Admin CP => vBa CMPS => Default Settings => Portal Output Global Variables

Try adding 'cel_social_groups' to that setting.

Also make sure that the 'Process PHP File Modules Within A Function' setting below that is disabled and see if that helps.

Our Sponsors
 

stardotstar
07-18-2009, 01:24 AM
Thanks Brian.

I have done the things you suggest - I did not have cel_social_groups in that setting, nor was the other setting on. Both are now in place.

Can you look at the images I have attached and tell me what I may have missed.

The grabs are of the various components that I suppose I need to define to add the block. I have made a template module and then added the function call to the template.

The final image is of the index page with the $cel_social_groups inserted between the chat and forum home contents.

Thanks for your help.
Will

Brian
07-20-2009, 12:10 PM
If it's still not working then that variable is probably being set in a non-global plugin. The only thing I can suggest would be to check the thread you downloaded the plugin from to see if there's a vBadvanced CMPS version or instructions on how to convert it.

Our Sponsors
 

stardotstar
07-20-2009, 07:35 PM
Thanks Brian.
Will do.
Will