Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
9 - 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: Is it possible with xoops?
by nightr on 2004/9/7 12:32:44

by the way, when i added
Quote:

if (!$xoopsUser) {
redirect_header('index.php', 2, _NOPERM);echo "akaka";
}

to article.php, and try to view it being logged in as administrator, i see a blank page. Why is that?
Re: Is it possible with xoops?
by nightr on 2004/9/3 11:51:32

DUDE THANX! I LOVE YOU!
The helping and reacting rate on this forum is amazing!!!
Re: Is it possible with xoops?
by Mithrandir on 2004/9/3 10:21:45

Yes it's possible. Using fopen (PHP function) or Snoopy (3rd party class included in XOOPS) it should be possible to load another page and manipulate with it before displaying it.

Not my field of expertise, though.
Re: Is it possible with xoops?
by nightr on 2004/9/3 10:11:41

thanx a lot! :)
P.S. maybe you could tell me, is my second task (from my first post) solvable? Is it possible with XOOPS or with php at all?
Re: Is it possible with xoops?
by Mithrandir on 2004/9/3 9:55:15

If a user is logged in, $xoopsUser will be a XoopsUser object. If he is not, the object will be null. Therefore the test
le="color: #000000"><?php if (!$xoopsUser)

(note the exclamation mark before the variable) will return true as it asks "IF the $xoopsUser variable does NOT hold a value (or a value equal to zero) THEN do this"

The second approach is a bit more complicated (especially to an unskilled PHP programmer) and has changed from News 1.0 (the one shipped with the XOOPS package) to News 1.2 version. I don't have a copy of the 1.0 version with me, so I wouldn't be able to say exactly where to put the code.

Who's Online

224 user(s) are online (177 user(s) are browsing Support Forums)


Members: 0


Guests: 224


more...

Donat-O-Meter

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

Latest GitHub Commits