1
alienday
Re: Not reveal probes of userinfo.php?uid=X
  • 2008/2/20 5:00

  • alienday

  • Just popping in

  • Posts: 16

  • Since: 2004/11/27


Thanks. In the end I had to use the following in userinfo.php (just after ROOT PATH)

// Added following line to only allow admin to view profile.  User cannot view, but can edit.//
$xoopsUser or redirect_header('index.php'3_NOPERM);
$isAdmin $xoopsUser->isAdmin();
$isAdmin or redirect_header('index.php'3_NOPERM);
// End modified file //


Ideally, I'd like to have only admin or user themself view. Without the first line above, a registered user gets a blank page instead of redirect.... Anyway, mission accomplished.

Jim



2
alienday
Not reveal probes of userinfo.php?uid=X
  • 2008/1/6 2:13

  • alienday

  • Just popping in

  • Posts: 16

  • Since: 2004/11/27


Is there a way to make user profiles only available to admin?

IE, I can iterate through every user by incrementing X below.

https://xoops.org/userinfo.php?uid=X

Thanks,

Jim



3
alienday
Re: Transferred Site - Group Permissions Do Not Work
  • 2007/6/18 6:25

  • alienday

  • Just popping in

  • Posts: 16

  • Since: 2004/11/27


Spent since previous post trying to isolate. Export using the following instead of MySQL 4 compatible and backquotes fixed my specific problems. Go figure....

"SQL export compatibility: None"
"Enclose table and field names with backquotes" not checked.



4
alienday
Transferred Site - Group Permissions Do Not Work
  • 2007/6/18 3:22

  • alienday

  • Just popping in

  • Posts: 16

  • Since: 2004/11/27


I transferred a site about a week ago, and everything appeared to work fine.

Today I added a block, then went into anonymous group to grant access. When I clicked then updated, database said updated. When I go back into anonymous group, every selection I had is unchecked. I cannot check and update. The entire site became permission denied for any anonymous user.

I imported the MySQL again, site works, same abnormal groups behavior:
--4.1.20 to 4.1.20 MySQL
--Xoops 2.0.16
--I haven't looked at PHP versions yet.

Any ideas?

Update:
--Every module possible works as expected. It's almost like I can't write to the core of Xoops: groups, cannot create new blocks, etc.

Jim



5
alienday
Adding Google Adsense to Block
  • 2006/2/12 2:23

  • alienday

  • Just popping in

  • Posts: 16

  • Since: 2004/11/27


I try to add this:
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxx";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

------------------------------

I get this: The resource you are looking for cannot be opened by your browser. HTTP Error 406 - Not acceptable
Internet Explorer.

xoops 2.2.3 No error with PHP debugging, no trackable error within Apache.

I can submite fine if I remove <script type="text/javascript" references..... Of course this doesn't help displaying the js.



6
alienday
Re: starting page
  • 2006/1/23 7:29

  • alienday

  • Just popping in

  • Posts: 16

  • Since: 2004/11/27


My problem was knowing XOOPS 2.0.X. Anyway, for anyone else: After setting start page in general preferences, you also have to set login page under blocks. 2.0.X did not require this.



7
alienday
Re: starting page
  • 2005/11/24 5:25

  • alienday

  • Just popping in

  • Posts: 16

  • Since: 2004/11/27


Same issue here. Any module I set for start page does not display assigned blocks. With no other change other than changing start page, the blocks show again. XOOPS 2.2.3 Final.



8
alienday
Porting a Java Menu into Module
  • 2005/7/29 4:37

  • alienday

  • Just popping in

  • Posts: 16

  • Since: 2004/11/27


I am 90% done with module, yet I cannot get my Java Menu (horizontal dropdown) to work. When I add the require mainfile.php, all is okay. When I add the header and footer includes, the Java menu goes to the very top of the XOOPS portal. Any workaround ideas? Below is CoolMenu code. Page is perfect is its own window with only manfile.php.

<?
require( '../../mainfile.php' ) ;
//include( XOOPS_ROOT_PATH.'/header.php' ) ;
//global $xoopsUser;
//$userid = $xoopsUser->uid();
//$username = $xoopsUser->uname();
//$title = "Message";
?>

<html>
<head>
<title>TEST</title>
<!-- Using a linked stylesheet -->
<link rel="STYLESHEET" type="text/css" href="dhtmlcentral.css">
<script language="JavaScript1.2" src="coolmenus4.js">
/*****************************************************************************
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
This script can be used freely as long as all copyright messages are
intact.
******************************************************************************/
</script>
<script language="JavaScript1.2" src="cm_addins.js">
/*****************************************************************************
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)
Coolmenus add-in file for more advanced featuers..
******************************************************************************/
</script>
</head>
<body topmargin=0 marginheight=0>
<script language="JavaScript1.2" src="dhtmlcentral.js">
/*****************************************************************************
Linked js file with all the menucreation code inside
******************************************************************************/
</script>
</body>
</html>

<?
//include( XOOPS_ROOT_PATH.'/footer.php' ) ;
?>



9
alienday
Upgrade 2.0.9.2 to 2.0.10 Blank with Errors
  • 2005/7/20 23:24

  • alienday

  • Just popping in

  • Posts: 16

  • Since: 2004/11/27


Upgraded 2.0.9.2 to 2.0.10. Copied all html files (no mainfile.php), and click system upgrade. System return to admin page and showed 2.0.10 as version.

Going to any page outside of admin, I get the following with PHP Debug turned on: "PHP Fatal error: _compile_source(): Failed opening required '/pathToXoops/class/smarty/Smarty_Compiler.class.php' (include_Path='.:/pathToXoops/lib/php') in /opt/pathToXoops/class/smarty/Smarty.class.php on line 1443

Group other is readable to all paths, and line 1443 really doesn't mean anything to me. Any ideas? Reverting to backups....



10
alienday
Re: Knowledge Base
  • 2005/1/25 4:49

  • alienday

  • Just popping in

  • Posts: 16

  • Since: 2004/11/27


I did see that. I think the course of least resistance is to upgrade to the newbb 2.0.1. I'm really just missing the file attachment piece, so that should get me by. Thanks for the input.




TopTop
(1) 2 »



Login

Who's Online

241 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 241


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