21
Cavan
Re: Xoops Chat Errors...
  • 2005/6/6 5:19

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


RE stuie200's latest submission of the Xoopschat module:

[color=339966]//echo "[/b][/color][color=339966]";[/color]
echo "";
echo 
"
    .$theroom."' frameborder='0' framespacing='0' border='0' marginwidth='0' marginheight='0' height='".$xoopsModuleConfig["chatframe"]."'>
";
echo 
"3" class="odd" valign="top">";
getChatRooms($theroom);
echo 
"

 

center">

".$uname."

"
;
if (
$useravatar){
    echo 
".XOOPS_URL."/uploads/".$useravatar."' border=0 alt='"._MA_XCHAT_CONNECTEDAVATAR."'>";
}
echo 
"

 

"
._MA_XCHAT_LEAVECHAT.""._MA_XCHAT_PLZLEAVE."
";

echo 
"
    .$theroom."' frameborder='0' framespacing='0' border='0' marginwidth='0' marginheight='0' height='".$xoopsModuleConfig["msgframe"]."' scrolling="no">
";
echo 
"";
echo 
"
    .$xoopsModuleConfig["statframe"].">hallo
";
echo 
"";

//echo "";
echo "";

include(
XOOPS_ROOT_PATH."/footer.php");
?>


The above lines (51-74) are from xoopschat/index.php file. As you can see, line 51 is commented out which forces the "%>" after "width=100" to apparently act as "?>". This in turn eliminates the footer.php from displaying as it should. HOW do I fix this mess? It's the same way in the xoopschat/bottom.php file as well...

ALSO, how do I fix the message scrolling problem in the box where the messages are displayed (see pic below)?
Resized Image



22
Cavan
Re: PM Hacks...FIXED!!
  • 2005/6/5 17:10

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


Fixed the problem---it was a css issue, not the hack itself. A HUGE thank you to ladon for helping me get this working on our site!



23
Cavan
Re: PM Hacks...
  • 2005/6/5 16:36

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


ladon:

Thank you for helping me with this...One issue remains: After sending a pm, there's no longer a message stating that the message has been sent (in the pm popup window). Is there a way to get this back?



24
Cavan
Re: PM Hacks...
  • 2005/6/5 16:22

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


I'm no php expert by any means...Sorry about the confusion...I was concerned about mixing php in the theme.html. Regardless, this only worked while I was still logged in. I sent a test pm to a test account and when I logged out, I had a blank index.php page. Did I miss something here?



25
Cavan
Re: PM Hacks...
  • 2005/6/5 15:10

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


ladon:

Thank you, but I'm not sure what you meant by "include the phpblock on top of your theme.html"...

<{php}>
GLOBAL $xoopsUser;
$pm_handler =& xoops_gethandler('privmessage');
$uid = $xoopsUser->getVar('uid');
$criteria = new CriteriaCompo(new Criteria('read_msg', 0));
$criteria->add(new Criteria('to_userid', $uid));
$msgcount = $pm_handler->getCount($criteria);
$GLOBALS['xoopsTpl']->assign('msgcount', $msgcount);
<{/php}>

Where do I put this?



26
Cavan
Re: PM Hacks...
  • 2005/6/4 17:16

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


ladon:

Thank you for the information...

Quote:

ladon wrote:
...The FAQ shows you how to put it in a block. But if you don't want to use a block, look at the comments and see:

Quote:

<{php}>
GLOBAL $xoopsUser;
$pm_handler =& xoops_gethandler('privmessage');
$uid = $xoopsUser->getVar('uid');
$criteria = new CriteriaCompo(new Criteria('read_msg', 0));
$criteria->add(new Criteria('to_userid', $uid));
$msgcount = $pm_handler->getCount($criteria);
$GLOBALS['xoopsTpl']->assign('msgcount', $msgcount);
<{/php}>


I've set the above in between <{if $xoops_isuser}> <{/if}> otherwise I got a blank page when visiting my site anonymously.


I don't want to use a block because it will interfere with the center block on my home page. This is exactly what I'm looking for, but where should I put this code, and in which file? Does it go in the index.php?

Edit: Just realized that I'm not sure how to add this to my particular theme.html because my main and user menus are different (using html) than typical XOOPS sites. Below is the code from my theme.html for the Inbox:

<a href"<{$xoops_url}>/viewpmsg.php" onMouseOver"if (document.images) document.icon_mini_message.src= 
'<
{$xoops_url}>/themes/phpbbstyle/images/icon_mini_message2.gif';" onMouseOut"if (document.images) 
document.icon_mini_message.src= '<
{$xoops_url}>/themes/phpbbstyle/images/icon_mini_message.gif';">
<
img src"<{$xoops_url}>/themes/phpbbstyle/images/icon_mini_message.gif" width=12 height=13 
alt
="Inbox" name="icon_mini_message" border=0>&nbsp;Inboxa>&nbsp;


Is this correct?
<{if $msgcount 0}>
<
class="highlight" href="<{$xoops_url}>/viewpmsg.php">Inbox 
(<span style="color:#ff0000; font-weight: bold;"><{$msgcount}>span>)a><{else}>
<
a href"<{$xoops_url}>/viewpmsg.php" onMouseOver"if (document.images) document.icon_mini_message.src= 
'<
{$xoops_url}>/themes/phpbbstyle/images/icon_mini_message2.gif';" onMouseOut"if (document.images) 
document.icon_mini_message.src= '<
{$xoops_url}>/themes/phpbbstyle/images/icon_mini_message.gif';">
<
img src"<{$xoops_url}>/themes/phpbbstyle/images/icon_mini_message.gif" width=12 height=13 
alt
="Inbox" name="icon_mini_message" border=0>&nbsp;Inboxa>&nbsp;<{/if}>



27
Cavan
Re: PM Hacks...
  • 2005/6/4 5:05

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


gtop00:

To clarify, I'm aware that I can do this from the admin backend. But what about users who want notifications as pms and not emails? What I meant is being able to do this from the PM itself, in the dropdown box with the users' names.

As for notification, I meant when a user logs in to the site, a text message (or whatever) is displayed showing that they have a new private message. Is there a way to do either of these in Xoops?



28
Cavan
Re: PM Hacks...
  • 2005/6/3 20:29

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


Well, I suppose I'll ask again: The Wani PM Hack isn't what I'm looking for but rather two minor improvements on the XOOPS PM function.

1. I'd like to be able to send private messages to ALL users, but only allow myself the ability to do this (using <{if $xoops_isadmin}> somewhere in the right file).

2. I can live without a pop-up notification, but how do I allow notification of new pms for users?

Is there anyone using XOOPS with either of these functions on their site?



29
Cavan
Re: Formulaire image upload problems---MySQL issues, too...
  • 2005/5/29 23:39

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


I tried using Formulize but I had difficulty getting it to install properly and it just didn't seem to fit our needs. I'm unfamiliar with the Survey module. For now, I'm back to using Liaise 1.21 without any problems---there appears to be a temporary lag in its development but I'm happy with the way it's working for our site.



30
Cavan
Re: Formulaire image upload problems---MySQL issues, too...
  • 2005/5/28 11:25

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


animas: I'm not sure if it does---I never had a need for that feature. In fact, one of our forms requires that users be able to submit multiples of the form. You could probably check with the Liaise developers at Brandycoke Productions in their Discussions (forums).
Two drawbacks I've found using Liaise (vs. Formulaire) are that there is no displaying of the form details in the admin backend, the way Formulaire has on its consult.php page, and none of the details are written to the database. In my opinion, these drawbacks can be worked around (if you don't mind keeping email records) but they remain major disappointments that really could be addressed by the Liaise developers. Other than that, the Liaise module works flawlessly.




TopTop
« 1 2 (3) 4 5 6 ... 21 »



Login

Who's Online

170 user(s) are online (55 user(s) are browsing Support Forums)


Members: 0


Guests: 170


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits