41
SLEO577
Re: "Session not expired" problem detected
  • 2005/12/6 19:29

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


*bump*

Anyone have any experience with the "Who's Online"? Again, sorry for the bump, but still trying to get this resolved.



42
SLEO577
Re: White Space in Username....is there an escape code?
  • 2005/12/6 19:27

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


*bump*

Anyone have any PHP experience with this one?

Sorry for the bump, just need to get the chatroom issue resolved.



43
SLEO577
Re: Wfdownloads help
  • 2005/12/6 19:21

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


Go to your Admin panel, click on Preferences and find WF-Downloads. From there, click on the Module Preferences.

About the 23rd one down you will see:

Upload Size (KB):
Maximum file size permitted with file uploads.

Make your changes there.



44
SLEO577
White Space in Username....is there an escape code?
  • 2005/12/5 20:45

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


This is not so much a problem with XOOPS core, as it is with PHP.

I am using XOOPS 2.2.3 and with the "Spaces" in the "Display Name" (i.e. SLEO 577 vs SLEO577) has created a problem with our chatroom.

PHP will only echo "SLEO" and leaves off the "577" because of the space. With the older versions of XOOPS 2.0.13 this was not a problem, because spaces were not allowed (actually 2.2.3 does not allow for this either in Username, just DisplayName).

Possible example using: modules/profile/edituser.php?
[b]Line 81:[/b]$edituser->setVar('uname'$myts->stripSlashesGPC(trim($_POST['uname'])));
[
color=CC0000]<PRE>str_replace(" """"uname);</PRE>[/color]

Is there a way to "Strip" the white space in the users "Displayname", but yet still have it display the users "Displayname" with the space (i.e. SLEO 577)?

If so, would I have to hack all the user.php files?



45
SLEO577
Re: "Session not expired" problem detected
  • 2005/12/5 18:38

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


I am using XOOPS 2.2.3 and was wondering if there is a setting to keep members "Showing Online" for as long as they are on the website.

The problem is, if members are reading the forum or using any of the modules that have them inactive for 10 minutes they disappear from the "Who's Online". Obviously they re-appear when clicking on a link "becoming active" again.

If say 20 members are in the chatroom for over 10 minutes, another member enters the website and it would appear no one is in the chatroom....so they don't go there.

I need to some how keep members who are online active on the "who's online" even if they are inactive due to reading the forums, articles, or are in the chatrooms.

Any ideas on this....I have already set the Custom Session time to "off" and set the time to 120 from 60, but they still disappear after 10 minutes or so?



46
SLEO577
Re: How do I make "Real Name" required on registration?
  • 2005/11/16 16:07

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


Yes....for XOOPS version 2.2.3a

open modules/profile/include/forms.php

find on line 259 or thereabouts:

$elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_DISPLAYNAME"uname"$uname_size75$user->getVar('uname''e')), 'required' => true);
    
$weights[0][] = 0;


Add just below the above script:

$elements[0][] = array('element' => new XoopsFormText(_PROFILE_MA_REALNAME"name"$name_size75$user->getVar('name''e')), 'required' => true);
    
$weights[0][] = 0;


That's should be all you need to get it in your registration form in addition to what Monty posted above



47
SLEO577
Re: Having a Serious Script Problem...
  • 2005/9/19 16:41

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


*Bump*



48
SLEO577
Re: If you build it, they might not come...
  • 2005/9/16 15:27

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


I run ten different State Law Enforcement Agency sites. To keep them coming back and to keep them interested in coming back I kept the website (Forum, News, RSS Feeds, and Video) material specific to their agencies theme.

Going back a year or so, when I started the website. I had one large site combining everyone on this site. There was a lot of arguing (my agency can beat-up your agency) (my car looks better and runs faster than your's) etc. This didn't work as the news, feeds, etc. did not always apply to them so no one replied....it became a ghost town also.

Moving forwarded to today. I have a homepage for everyone to communicate and talk about their agency, then I have individual websites specific to their agency. Everything in those Agency sites are agency specific right down to the RSS feeds, news headlines, downloads, and recently, the photo gallery so they can show pictures of helping those unfortunate people devasted by hurricane Katrina in New Orleans, Mississippi, etc.

They keep coming back to see and read about what is happening with there job (Union News), (Agency News), (Policy & Procedures), (Agency Announcements) and watch videos and view photos related to their specific job.

I also make sure not to list or show in their specific website any thing related to another agency. I believe this makes them feel like it is their site and they want to contribute as much as they can to its success. I have also notice it seems to be a competition of sorts.

Each SLEO (State Law Enforcement Officer) member can register in the other's website, so they see what the other agency has posted and sure enough, you start seeing the trend spread to the other agency websites.

Hope that helps!



49
SLEO577
Re: Having a Serious Script Problem...
  • 2005/9/16 13:14

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


I have ran it with the absolute URL and still no luck. I am somehow not getting this script to find the uname.



50
SLEO577
Having a Serious Script Problem...
  • 2005/9/16 4:44

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


I was hoping someone could help with a script problem I am having. I am running the below script in a "Custom Block (PHP)" and I am trying to get the script to call to the XOOPS database that has the registered members username (nickname). I have got it to start the chatroom and IM program, but it keeps identifying the user as: < ?

I have ran this as a "Custom Block (HTML)" with better results, but still shows the user as: < ?

I have highlighted in RED the code where I believe the problem is, but after a week of pulling out what little hair I left, I am now totally at a lost.
<?php
include("../../mainfile.php");
include(
"../../header.php");
?>
<applet NAME='Chat' CODEBASE='http://MyWebSite/Chat/Classes/'
CODE='com.net.chat.client.ChatApplet' 
WIDTH='200' HEIGHT='100' ALIGN='middle' 
ARCHIVE=Client.jar 
MAYSCRIPT>
<param name="cabbase" value="Client.cab">
<param name='language' value='client.lang'>
<param name="textcolor" value="000000">
<param name="browserClose" value="false">
<param name="WindowHeight" value="500">
<param name="WindowWidth" value="500">
<param name=siteID value=577>
<param name="background" value="FFFFFF">
<param name="BuddiesTab" value="true">
[color=CC0000]<param name="nickname" value=<? echo $GLOBALS['xoopsUser'] ? $GLOBALS['xoopsUser']->getVar('uname') : $GLOBALS['xoopsConfig']['anonymous']; ?>
<param name="url" value="http://MyWebSite/userinfo.php?viewuser=<? echo $GLOBALS['xoopsUser'] ? $GLOBALS['xoopsUser']->getVar('uid') : 0 ?>">[/color]
</applet>
<?php
include("../../footer.php");
?>


Just a note, there are no Anonymous user on this website, it is a VPN (Virtual Private Network) for State Employees, so everyone is registered member. I know the chatroom and IM are working as it starts and runs the programs with their autologin, it just will not show their uname.




TopTop
« 1 2 3 4 (5) 6 7 8 ... 11 »



Login

Who's Online

236 user(s) are online (169 user(s) are browsing Support Forums)


Members: 0


Guests: 236


more...

Donat-O-Meter

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

Latest GitHub Commits