21
Mestophales
Is anyone developing a hot or not type module?

Just wondering if anyone is in the process of building a hot or not style module where users can rate peoples pics and leave comments on the pics.
in case you don't know what hot or not is:

Hot or Not



22
Mestophales
Re: Bypassing the Login

This is the new error

Fatal error: Call to undefined function: xoops_getenv() in d:\inetpub\wwwroot\xoops\html\default.php on line 11



23
Mestophales
Re: Note from my hosting service

2000 users daily??? Have you always had that traffic?
The database is inundated with constant queries to login, etc. How many user record does your DB have?



24
Mestophales
Re: Bypassing the Login

This is the error I get

Parse error: parse error, unexpected ';' in d:\inetpub\wwwroot\xoops\html\default.php on line 12



25
Mestophales
Re: Insert Javascript into theme.html?

Ah!!! That makes sense! Thanks!



26
Mestophales
Re: Insert Javascript into theme.html?

My guess is you are trying to edit or modify the theme.html located in the theme folder. I have found that does nothing, you will need to modify the Name_of_Theme_theme.html in your xoops/html/templates_c directory in order to see the change.

This is how I have had to change or modify anything, and it works. If anyone else has a better way of doing it please share.



27
Mestophales
Re: Bypassing the Login

OK, I am an ASP programmer converting to the PHP side, and since I didn't get a response, I thought I would share my workaround. I am using this XOOPS as a departmental intranet on a win2k3 server. I first created a default.asp page that reads your NT Login to check against the SQL 2000 DB server to see if you belong in this department if so I pass along a username and general password, if not I send you on to the basic XOOPS start up page that will require them to register in order to login.

<%
Dim IIS_USER
Dim CurrentTime
IIS_USER 
request.servervariables("LOGON_USER")
Session("IIS_USER")= IIS_USER
LN 
Request.ServerVariables("REMOTE_USER")  
UserName LCase(Right(LNLen(LN) - InStr(1LN"")))

  
set rs=Server.CreateObject("adodb.Recordset")  
  
connectme="driver={SQL Server};SERVER=MyServer;DATABASE=MyDatabase_Name;UID=MyUser_ID;PWD=MyPassword;"
  
sqlstmt "SELECT * FROM Department_Employees WHERE UserName='" UserName "'"
  
rs.open sqlstmtconnectme
  
if rs.eof then
      call pass_on
  
else
%>
<
body onLoad="MyForm1.submit()">

<
form method="POST" action="http://MyDomain/xoops/html/user.php" name="MyForm1">
  <
p><input type="text" name="uname" size="20" value="<%=UserName%>"></p>
  <
p><input type="password" name="pass" size="20" value="<%=12345%>"></p>
  <
input type="hidden" name="xoops_redirect" 
  
value="/xoops/html/modules/news/index.php" /><input type="hidden" name="op" 
  
value="login" />
  <
p><input type="submit" value="User Login" /> </p>
</
form>
<%
end if
function 
pass_on()
response.redirect "http://MyDomain/xoops/html"
end function
%>


So in essence what happens is when the users navigate tohttp://MyDomain which is our local intranet the get redirected to where I want them to go based on if they are part of my department or not.

Again I thought this might be useful to someone else in the future. If you can think of a better way to do this, Please let me know.



28
Mestophales
Re: starting page

Download and install the c-jay content module, it will allow you to create your own start web page and have it wrapped in the XOOPS portal



29
Mestophales
Bypassing the Login

I am using XOOPS as an intranet for my department and instead of logging in I would like for it to read the NT Login. Does anyone know how to do this?



30
Mestophales
Adding a custom column to the XOOPS Memebers Mod

I have added the following to the main.php & index.php for the members mod
It doesn't seem to bring back any results...YES...I have added it to the DB.

Can anyone tell me why?

//This is from the main.php of the xoopmembers module
    define("_MM_EXTENSION","Extension");
//*****************************************************************************************************
//This is in the index.php of the xoopmembers module
//Line 85
    $Extension = new XoopsFormText(_MM_EXTENSION, "Extension", 10, 5);
//Line 289-291
        if ( !empty($HTTP_POST_VARS['Extension']) ) {
        $criteria->add(new Criteria('user_extension', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['Extension'])).'%', 'LIKE'));
    }
//Line 312-315
    $criteria->add(new Criteria('level', 0, '>'));
    $validsort = array("uname", "email", "last_login", "Extension", "posts");
    $sort = (!in_array($HTTP_POST_VARS['user_sort'], $validsort)) ? "uname" : $HTTP_POST_VARS['user_sort'];
    $order = "ASC";
//Line 338
    $xoopsTpl->assign('lang_Extension', _MM_EXTENSION);
//Line 373
    $userdata['Extension'] = "Ext. " .$foundusers[$j]->getVar("user_extension");
//*******************************************************************************************************
//This is from the db%Axoopsmembers_searchresults.htm located in the xoopshtmtemplates_c directory
//Line 15
    </th><th align="center"><?php echo $this->_tpl_vars['lang_Extension']; ?>
//Line 56
    </td><td class="even" align="center"><?php echo $this->_tpl_vars['users'][$this->_sections['i']['index']]['extension']; ?>




TopTop
« 1 2 (3) 4 »



Login

Who's Online

138 user(s) are online (72 user(s) are browsing Support Forums)


Members: 0


Guests: 138


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