Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Invite option

  • lennox
  • lennox
  • OFFLINE
  • Posts: 148
  • Thanks: 0
  • Karma: 53
18 years 10 months ago #4742 by lennox
Replied by lennox on topic Re:Invite option
no i want a example...
Just learning.. i'm new at this


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

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

  • lennox
  • lennox
  • OFFLINE
  • Posts: 148
  • Thanks: 0
  • Karma: 53
18 years 10 months ago #4808 by lennox
Replied by lennox on topic Re:Invite option
mmm, this is to difficult for me, i have pain in my eyes from the Pc screen. :S
mmm, is it possible to create a text template preinstalled in UddeIM?

So if you use this link : (for example:
www.yoursite.nl/index.php?option=com_uddeim&task=invitemessage&recip=451

The pm system call the pre-installed message.
You create at that moment a 'standard pre-installed Private message'.
This is a great function, with much options!
I hope you can help me Benjamin!


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

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

  • benjamin
  • benjamin
  • OFFLINE
  • Posts: 86
  • Thanks: 0
  • Karma: 22
18 years 10 months ago #4870 by benjamin
Replied by benjamin on topic Re:Invite option
Yes, it is possible to hack that into udde. However, that does not solve your problem of making it visible in the CB profile.

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

  • GUEST
18 years 10 months ago #4887 by
Replied by on topic Re:Invite option
... mmm
i think the best option is to copy the code from components/cb/plugins/cb_menu :

[code:1]// Send PM FOR CHAT INVITE
if ($my->id!=$user->id && $my->id > 0) {
global $_CB_PMS;
$resultArray = $_CB_PMS->getPMSlinks($user->id, $my->id, $subject="", $message="", 1);
if (count($resultArray) > 0) {
foreach ($resultArray as $res) {
if (is_array($res)) {
$mi = array(); $mi["_UE_MENU_MESSAGES"][$res["caption"]]=null;
$this->menuBar->addObjectItem($mi, getLangDefinition($res["caption"]),sefRelToAbs($res["url"]), "",
"","", getLangDefinition($res["tooltip"]),""«»);
}
}
}
}[/code:1]

and edit this? So it get's a other URL?
like:
www.yoursite.nl/index.php?option=com_uddeim&task=invitemessage&recip=451

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

  • lennox
  • lennox
  • OFFLINE
  • Posts: 148
  • Thanks: 0
  • Karma: 53
18 years 10 months ago #4888 by lennox
Replied by lennox on topic Re:Invite option
maybe something like this ?
in the cb_menu.php

[code:1]
// Send PM FOR CHAT INVITE
if ($my->id!=$user->id && $my->id > 0) {
global $_CB_PMS;
$resultArray = $_CB_PMS->getPMSlinks($user->id, $my->id, $subject="", $message="", 1);
if (count($resultArray) > 0) {
foreach ($resultArray as $res) {
if (is_array($res)) {
$mi = array(); $mi["_UE_MENU_INVITE"][$res["caption"]]=null;
$this->menuBar->addObjectItem($mi, getLangDefinition($res["caption"]),sefRelToAbs($ue_invite_url), "",
"","", getLangDefinition($res["tooltip"]),""«»);
}
}
}
}[/code:1]

and the invite url: (base url string)

$ue_invite_url = "the right link to messege template and user";


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

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

  • lennox
  • lennox
  • OFFLINE
  • Posts: 148
  • Thanks: 0
  • Karma: 53
18 years 10 months ago #5094 by lennox
Replied by lennox on topic Re:Invite option
ok, maybe i can motivate some one:
i'm will using the 'invite' system for 'chat' sessions.

I will make 3 chat sessions in a day.
Standerd times.
like 12.00 /19.00/22.00
Now people can invite users with the menu button in a profile:
invite for chat (12.00)
invite for chat (19.00)
invite for chat (22.00)

the user get's a messege:

Lennox has invited you to go on chatting on 12.00 u.
See you then?

This creating a better change of more users in the chatbox at the same time.

I hope you understand me :) english is sometimes not so good :)


LENNOX
Official CB 3th Party Developer
Working on the CBRC2 Lennoxonline module
Official partner and PR-man of dcsFlashGames
RELEASED: Highest Karma Module
RELEASED: PROFILE VOTE KARMA PLUGIN


www.nightcity.nl

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum