1
czokie
Re: Upgrade woes
  • 2005/10/12 7:42

  • czokie

  • Just popping in

  • Posts: 8

  • Since: 2004/4/12


Quote:

Problem #2:
Apache error log:
File does not exist: /mysitepath/<{$xoops_imageurl}>poweredby.gif, referer:http://www.retroroms.foreverchat.net/modules/news/

Fixed the above - Earlier versions of XOOPS supported a footer that contained code like:

<img src="<{$xoops_imageurl}>poweredby.gif"

This does not work in the current version. I changed the footer, and have fixed one of the main problems.



2
czokie
Upgrade woes
  • 2005/10/12 1:25

  • czokie

  • Just popping in

  • Posts: 8

  • Since: 2004/4/12


I was working on an upgrade to a XOOPS site to 2.2. Things went fairly well over all, but I still have a few outstanding problems. The most troublesome one relates to logging in to the site.

Problem #1:
The login block appears to be a little screwy. When I try and login via the login block, it takes me straight to the user.php, and asks me to login on that page. No wrong password error, no debug errors etc.

Problem #2:
Apache error log:
File does not exist: /mysitepath/<{$xoops_imageurl}>poweredby.gif, referer:http://www.retroroms.foreverchat.net/modules/news/

After the above problems, I tried to go to 2.2.3 just in case it was a fixed problem. No joy.

My environment:
php 4.3.9
Apache 2.0.52
mySQL 4.1.10a

Any help appreciated.



3
czokie
Re: Wanted: Paypal donations code
  • 2004/4/14 2:07

  • czokie

  • Just popping in

  • Posts: 8

  • Since: 2004/4/12


Bingo! Got it in one. Havnt checked yet, but that makes sense.

Thanks for your time. My next task - Learn how XOOPS modules are built, and turn this thing into a module...

Czokie



4
czokie
Re: Wanted: Paypal donations code
  • 2004/4/13 17:02

  • czokie

  • Just popping in

  • Posts: 8

  • Since: 2004/4/12


Quote:

Dave_L wrote:
Hint: Were you logged in as user #1?

Maybe I don't understand what information you're trying to get.


Nope - It returns 1 for ALL users.



5
czokie
Re: Wanted: Paypal donations code
  • 2004/4/13 15:48

  • czokie

  • Just popping in

  • Posts: 8

  • Since: 2004/4/12


Quote:

Dave_L wrote:
$xoopsUser is the currently logged-in user, if that's what you mean.

I played with that a little in xoopsblock.php... but it always returned a uid of 1... Any hints? (code fragment below)

global $xoopsUser;      // only needed if inside a function
if (is_object($xoopsUser)) {
        
$uid   $xoopsUser->getVar('uid');
        
$uname $xoopsUser->getVar('uname');
} else {
        
$uid 0;
        
$uname "";

}

...

if ( 
$c_type == 'H' ) {
        
$content str_replace('{X_SITEURL}'XOOPS_URL.'/'$this->getVar('content''N'));
        
$content str_replace('{X_UID}'$uid$content);
        return 
$content;
        
// The above 3 lines replace the existing line below
        // return str_replace('{X_SITEURL}', XOOPS_URL.'/', $this->getVar('content', 'N'));
}



6
czokie
Re: Wanted: Paypal donations code
  • 2004/4/12 23:17

  • czokie

  • Just popping in

  • Posts: 8

  • Since: 2004/4/12


OK. I'm game. I may be new to OOP - but that's never stopped me before.

But, I wouldnt mind a little help along the way.

First task: Make {X_UID} available in xoopsblock.php so that I can pass the userid as a variable on the link to the paypal site. Rationale: I want to acknowledge donations like on your site - but paypal email addresses are not always the same as the email address for the registered user. I noticed that this is available in xoopsmailer.php and tried to understand how to replicate the functionality.

I can see that $this is an array that is constructed based on search criteria, and iterated to produce $user for each email that is sent... Thats fine: But which object is available to me to find the currently online user?

Thanks to anyone who can help.

Czokie



7
czokie
Wanted: Paypal donations code
  • 2004/4/12 12:49

  • czokie

  • Just popping in

  • Posts: 8

  • Since: 2004/4/12


Hello XOOPS people.

I am looking for any code to help manage site donations for PayPal. Idealy, I would like to get my hands on the code that is used on the XOOPS site...

Features wanted:
Link to paypal site, that passes the uid or uname field to paypal

List of recent contributors

Backend to verify PayPal transactions, and store results.

Czokie




TopTop



Login

Who's Online

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


Members: 0


Guests: 107


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