1
yyvonne
Re: Hack to display "New messages" popup on login
  • 2010/4/22 2:24

  • yyvonne

  • Just popping in

  • Posts: 38

  • Since: 2008/4/4 2


You can try putting popup javascript in modules/system/templates/block/system_block_user.html

I use popup layer instead, because a lot of popup window will be blocked.

I did this, and it works:

Paste this on top, before everything
<script language="JavaScript1.2">

// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this header

isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function 
ddInit(e){
  
topDog=isIE "BODY" "HTML";
  
whichDog=isIE document.all.theLayer document.getElementById("theLayer");  
  
hotDog=isIE event.srcElement e.target;  
  while (
hotDog.id!="titleBar"&&hotDog.tagName!=topDog){
    
hotDog=isIE hotDog.parentElement hotDog.parentNode;
  }  
  if (
hotDog.id=="titleBar"){
    
offsetx=isIE event.clientX e.clientX;
    
offsety=isIE event.clientY e.clientY;
    
nowX=parseInt(whichDog.style.left);
    
nowY=parseInt(whichDog.style.top);
    
ddEnabled=true;
    
document.onmousemove=dd;
  }
}

function 
dd(e){
  if (!
ddEnabled) return;
  
whichDog.style.left=isIE nowX+event.clientX-offsetx nowX+e.clientX-offsetx
  
whichDog.style.top=isIE nowY+event.clientY-offsety nowY+e.clientY-offsety;
  return 
false;  
}

function 
ddN4(whatDog){
  if (!
isN4) return;
  
N4=eval(whatDog);
  
N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  
N4.onmousedown=function(e){
    
N4.captureEvents(Event.MOUSEMOVE);
    
N4x=e.x;
    
N4y=e.y;
  }
  
N4.onmousemove=function(e){
    if (
isHot){
      
N4.moveBy(e.x-N4x,e.y-N4y);
      return 
false;
    }
  }
  
N4.onmouseup=function(){
    
N4.releaseEvents(Event.MOUSEMOVE);
  }
}

function 
hideMe(){
  if (
isIE||isNNwhichDog.style.visibility="hidden";
  else if (
isN4document.theLayer.visibility="hide";
}

function 
showMe(){
  if (
isIE||isNNwhichDog.style.visibility="visible";
  else if (
isN4document.theLayer.visibility="show";
}

document.onmousedown=ddInit;
document.onmouseup=Function("ddEnabled=false");

</
script>


Paste this right below <{if $block.new_messages > 0}>
<!-- BEGIN FLOATING LAYER CODE //-->
<div id="theLayer" style="position:absolute;width:250px;left:100;top:100;visibility:visible">
<
table border="0" width="250" bgcolor="#424242" cellspacing="0" cellpadding="5">
<
tr>
<
td width="100%">
  <
table border="0" width="100%" cellspacing="0" cellpadding="0" height="36">
  <
tr>
  <
td id="titleBar" style="cursor:move" width="100%">
  <
ilayer width="100%" onSelectStart="return false">
  <
layer width="100%" onMouseover="isHot=true;if (isN4) ddN4(theLayer)" onMouseout="isHot=false">
  <
font face="Arial" color="#FFFFFF">Attention</font>
  </
layer>
  </
ilayer>
  </
td>
  <
td style="cursor:hand" valign="top">
  <
a href="#" onClick="hideMe();return false"><font color=#ffffff size=2 face=arial  style="text-decoration:none">X</font></a>
  
</td>
  </
tr>
  <
tr>
  <
td width="100%" bgcolor="#FFFFFF" style="padding:4px" colspan="2">
<!-- 
PLACE YOUR CONTENT HERE //-->  
You have <class="highlight" href="<{$xoops_url}>/viewpmsg.php">(<span style="color:#ff0000; font-weight: bold;"><{$block.new_messages}></span>)</amessage(sin your inbox
<!-- END OF CONTENT AREA //-->
  
</td>
  </
tr>
  </
table
</
td>
</
tr>
</
table>
</
div>
<!-- 
END FLOATING LAYER CODE //-->



2
yyvonne
Re: Strange Profile Problem
  • 2010/1/14 6:20

  • yyvonne

  • Just popping in

  • Posts: 38

  • Since: 2008/4/4 2


Also...

This problem occurs only if I activate both newbb and x-forum, if I deactivate either one, it solves the problem.



3
yyvonne
Re: Strange Profile Problem
  • 2010/1/14 6:06

  • yyvonne

  • Just popping in

  • Posts: 38

  • Since: 2008/4/4 2


By the way, this is after I installed X-forum. After I deactivate the forum, it works again.

Please help. I need the X-Forum, cannot deactivate it.



4
yyvonne
Strange Profile Problem
  • 2010/1/14 6:02

  • yyvonne

  • Just popping in

  • Posts: 38

  • Since: 2008/4/4 2


I suddenly encounter this problem that I cannot solve.

My registered users are able to view their profile but Admin cannot, it shows a blank page! I checked very carefully the access rights, but cannot find the problem.

http://www.mysite.com/salon/modules/profile/userinfo.php?uid=1

I created another admin, same problem. After I changed the new admin to registered user, no problem to view profile again. Strange.

My Admins are belong to user group: Webmasters and Registered Users.



5
yyvonne
Implement Cooliris
  • 2009/11/11 4:00

  • yyvonne

  • Just popping in

  • Posts: 38

  • Since: 2008/4/4 2


Has anyone implemented Cooliris into extgallery?

http://developer.cooliris.com/?p=full

If not, can someone try?

Thank you.



6
yyvonne
Re: Remove Menu from Newbb
  • 2009/9/8 3:00

  • yyvonne

  • Just popping in

  • Posts: 38

  • Since: 2008/4/4 2


Oh ya! It works. Forgot all about doing it that way! Thank you.



7
yyvonne
Remove Menu from Newbb
  • 2009/9/8 2:20

  • yyvonne

  • Just popping in

  • Posts: 38

  • Since: 2008/4/4 2


I tried to remove the link to newbb at the mainmenu, so I changed the

$modversion['hasMain'] = 0;

at xoops_version.php

but the link still appear.

How do I disable it? Please help. Thank you.



8
yyvonne
Re: Only Moderator
  • 2009/6/3 5:34

  • yyvonne

  • Just popping in

  • Posts: 38

  • Since: 2008/4/4 2


No, I want everybody to see the module.

Just that inside the module, there is a link that I want to show it to the Moderators (or a particular user) to view it.



9
yyvonne
Only Moderator
  • 2009/6/3 2:19

  • yyvonne

  • Just popping in

  • Posts: 38

  • Since: 2008/4/4 2


I have done something, and I just want it to be viewed by Moderator and Administrator, how can I do it?

I understand if I just want Administrator to view it I can do the below:

<? $isadmin = $xoopsUserIsAdmin;
if ($isadmin == 1) {} ?>

What about Administrator and Moderator?

Thanks.



10
yyvonne
Menu Sideblock Question
  • 2009/5/25 10:20

  • yyvonne

  • Just popping in

  • Posts: 38

  • Since: 2008/4/4 2


If I disable my Guest to view my Forum, the link to my Forum at the Side Block Menu will not be show at all.

Is there a way to set it so that my Guests can view the link to my Forum at the Side Block Menu?

I do not want my Guests to view the Forum at all, but I do want them to know there is a Discussion Forum in my site.

And I do not wish to put a Forum Block on the main page.




TopTop
(1) 2 3 4 »



Login

Who's Online

238 user(s) are online (163 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

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

Latest GitHub Commits