Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

query field - substitution number groupjive

  • orgone
  • orgone
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: 0
11 years 2 weeks ago - 11 years 2 weeks ago #235122 by orgone
Replied by orgone on topic query field - substitution number groupjive
Thanks for your response

Sorry i was not clear. Can I add, each time an user create a group, this sql request in "about tab" of group

SELECT AVG(bestscore) AS avgscore
FROM score, groupjive_users
WHERE score.id=groupjive_users.user_id
AND groupjive_users.group=24

But in the "about tab" of group number 1 the last line of request should be "AND groupjive_users.group=1"
In the "about tab" of group number 2 the last line of request should be "AND groupjive_users.group=2"
Last edit: 11 years 2 weeks ago by orgone.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48471
  • Thanks: 8280
  • Karma: 1443
11 years 2 weeks ago #235168 by krileon
Replied by krileon on topic query field - substitution number groupjive
You can't add that to the About tab. It does not process substitutions. Nor does it execute SQL or PHP. You'll need to do as suggested in my previous reply and modify the template files to add your query directly to it. In the Group template files you'll have access to the GJ group object which contains its ID and various other information.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • orgone
  • orgone
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: 0
11 years 2 weeks ago #235172 by orgone
Replied by orgone on topic query field - substitution number groupjive
Ok

If i modify the template, i have default of hack. Each time I upgrade groupjive, i should start all hover again.

The best way, will be have a "Hello world" pluggin for groupjive. Have you got this ?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48471
  • Thanks: 8280
  • Karma: 1443
11 years 2 weeks ago #235185 by krileon
Replied by krileon on topic query field - substitution number groupjive

If i modify the template, i have default of hack. Each time I upgrade groupjive, i should start all hover again.

The template system supports overrides. Create a new folder (e.g. "mytemplate") in the templates folder. Now copy over the file you want to modify from "default" to "mytemplate". Navigate to GJ configuration and change the template to "mytemplate". Now modify the file you copied over. Your custom template changes will not be lost on upgrade or re-install.

The best way, will be have a "Hello world" pluggin for groupjive. Have you got this ?

Yes, that's basically what the About integration is. It's the absolute most simple working integration for GJ. It should be used as an example or even modified if you like.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum