1
dreamgear
request: pass list of groups to template
  • 2006/2/18 16:04

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


I made the following hack to header.php to allow me to show different things based on whether users are members of a specific group:
*** header.php.orig_060218      Sat Feb 18 15:40:09 2006
--- header.php  Sat Feb 18 15:57:11 2006
***************
*** 
85,104 ****
--- 
85,105 ----
          
$xoopsTpl->assign('xoops_banner'' ');
      }
      
// Weird, but need extra <script> tags for 2.0.x themes
      
$xoopsTpl->assign('xoops_js''//--></script><script type="text/javascript" src="'.XOOPS_URL.'/include/xoops.js"></script><script type="text/javascript"><!--');
      
// get all blocks and assign to smarty
      
$xoopsblock = new XoopsBlock();
      
$block_arr = array();
      if (
$xoopsUser != '') {
          
$xoopsTpl->assign(array('xoops_isuser' => true'xoops_userid' => $xoopsUser->getVar('uid'), 'xoops_uname' => $xoopsUser->getVar('uname'), 'xoops_isadmin' => $xoopsUserIsAdmin));
          
$groups $xoopsUser->getGroups();
+         
$xoopsTpl->assign('xoops_ugroups',$groups);
      } else {
          
$xoopsTpl->assign(array('xoops_isuser' => false'xoops_isadmin' => false));
          
$groups XOOPS_GROUP_ANONYMOUS;
      }
      
$toppage false;
      if (isset(
$xoopsModule) && is_object($xoopsModule)) {
          
// set page title
          
$xoopsTpl->assign('xoops_pagetitle'$xoopsModule->getVar('name'));
          
$xoopsTpl->assign('xoops_dirname'$xoopsModule->getVar('dirname'));
          
$moduleid $xoopsModule->getVar('mid');
The line that begins with the plus sign "+" is the only addition. It would be nice if this made it into the next version. BTW this site is running 2.0.13.1.



2
dreamgear
Re: WARNING! someone may be systematically attacking unpatched xoops sites!
  • 2005/8/17 14:23

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


The latest ones seem to have the email addy set to "myaccount009@gmail.com" and the web site set to "iqwork.com" as the previous poster noted.



3
dreamgear
Re: WARNING! someone may be systematically attacking unpatched xoops sites!
  • 2005/8/17 3:12

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


It's certainly not definitive evidence, but it seems awfully suspicious that all my sites were growing users with made up names that all used the email address "myaccount009@tom.com". "tom.com" is a japanese site (I think). Not sure what kind of site it is.. I don't read japanese. These site were completely unrelated other than that I maintain them and they're on the same host.

Just about done patching.. I'm going to go through the raw logs tomorrow and see if they were up to anything nefarious.



4
dreamgear
WARNING! someone may be systematically attacking unpatched xoops sites!
  • 2005/8/16 20:56

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


In the last few hours someone has been registering a bogus username on each of my XOOPS sites. The name is of the form FirstnameNNN where NNN is three digits.

I'm going on a mad patching spree, but my host's server has become very slow at about the same time these accounts were created. I will recover whatever evidence I can, but here's fair warning: Someone is apparently systematically attacking XOOPS installations

Your helpfull suggestions are encouraged.



5
dreamgear
PHP5 ?
  • 2005/8/9 6:17

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


So XooSphere will require PHP5 ?

As another noted, not many hosting companies are deploying PHP5. Anyone know otherwise ?


Also, a conceptual diagram might help us get our minds around the roadmap.



6
dreamgear
Re: The Dracko Universe
  • 2005/8/3 21:45

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


At first glance, the text is not bright enough.

I generally like light-on-dark themes, but there's not enough contrast for my monitor (a 21" LaCie/Mitsubishi).



7
dreamgear
Re: "This is your first time to enter the administration section." loop SOLUTION
  • 2005/2/27 22:00

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


If this note gets posted, then I've figure out how to deal with the problem.

You need to remove your Firefox profile and recreate it.

First go into "manage bookmarks" and save your bookmarks somewhere.

go to your "documents and settings/<username>/application/data/mozilla/firefox/profiles" and delete your profile. It will be called "default.???" probably.

Then start firefox, recreating your profile, and then use the bookmark manager to restore your bookmarks.



8
dreamgear
Re: "This is your first time to enter the administration section." loop
  • 2005/1/6 16:08

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


Relative paths where ?

I've still got problems after re-installing firefox. I can't even post to this forum. I get this error:


Insert post error:INSERT INTO x_bb_posts ( post_id, pid, topic_id, forum_id, post_time, uid, poster_ip, poster_name, subject, dohtml, dosmiley, doxcode, doimage, dobr, icon, attachsig, attachment, approved, post_karma, require_reply) VALUES (0, 128644, 29465, 7, 1105027493, 2685, 408636353, '', 'Re: "This is your first time to enter the administration section." loop', 0, 1, 1, 1, 1, '', 0, '', 1, 0, 0)

I'd like to report this to the firefox team if I can figure out what it is doing that XOOPS dislikes so much.



9
dreamgear
Re: "This is your first time to enter the administration section." loop
  • 2005/1/4 22:31

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


I cleared Firefox's cache and the problem went away. So then I went in to try to twiddle the block visibility like I wanted to. No go. It just didn't do it. If I tried to edit the block and change the visibility there it gave me "block update failed - id: nn" or something like that.

I tried disabling the web developer extension (handy, that) and restarted firefox. Same problem. Clead the cache again. Still a problem.

What's more, earlier I was having trouble posting to this forum with firefox. With IE it would work. I emailed the error to Herko since I thought there was something wrong with the site.

This is the first instance of firefox misbehaving that I can remember, and I've been using it since 0.7 or so.


The only thing I can think to try is replacing the fancy "Moox" build of firefox that I have (that was compiled with SSE2 instructions for my P4 3Ghz with hyperthreading) with a vanilla build.


What would firefox have to be doing to give me all these symptoms ?



10
dreamgear
Re: "This is your first time to enter the administration section." loop
  • 2005/1/4 22:09

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


Ok, you're never going to believe this.

I have discovered that my problems go away if I use IE instead of Firefox ! I still get the first message saying that this is the first time, but then when I click submit I go to the admin menu normally !




TopTop
(1) 2 3 4 ... 7 »



Login

Who's Online

56 user(s) are online (29 user(s) are browsing Support Forums)


Members: 0


Guests: 56


more...

Donat-O-Meter

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

Latest GitHub Commits