Topic: Urgent problem - all users redirected to PayPal after logging in

Hi,

I tried to add a "donate"-button in the top menu, at position 10 (I've added several others before). However, after submitting the change, I was redirected to www.paypal.com, and all users are now redirected when they log in.

I've searched through phpmyadmin and have removed all my added menu items from the o_additional_navlinks, yet it still won't work.

Hope any has some clues here.


Jan Terje

Re: Urgent problem - all users redirected to PayPal after logging in

Could you post the exact code you added to the additional navlinks?

FluxBB - v1.4.8

Re: Urgent problem - all users redirected to PayPal after logging in

Thanks for your response. I added the following:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAFUrlNH/EN410sC+a1Fyu4nlA3QqiBQyihqkRYwgKQyJ9Or6bc+GjFRI5XKSB8yiDUBCRevRkUAIYALWSNneMVQ263mjqXUqrP5fSjtAMnN821JKiJ3USzy3oQfWeP5PB9ZNQUWVWT4/iqiBkdrqlqd6XDVTKy5OFZrvbTQAqQcTELMAkGBSsOAwIaBQAwgawGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQILmTUNq8YtMKAgYitNTPr+A4GF4+TTy0cQC2TxP05O7ulop+4do4B1EwVSiqT4qXizrYlQkEyu9SB+roECWxiSjeUd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aBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDcwMzE2MjIyODQxWjAjBgkqhkiG9w0BCQQxFgQUPt5zIQzzZssPJ31wH0PLMdHZDvgwDQYJKoZIhvcNAQEBBQAEgYA/1+7VpOp4Z+KRJcdUExT+BWbpsjjlVb0pRBUAe/AkAaG/yBhM4BX4HMYWk91n5kXR4R7cplvIXmvHGxkoSPMDEUT2XB1S1DQrlwuGd47MCc+YUa1bRaE/ySCD2az95M9chg0fPwsucJdScQX9G9POr95C9TXicYgfY0zr9KG3eA==-----END PKCS7-----
">
</form>

As html was allowed, I thought this would work.

I've tried to remove the code in the admin panel, but when I Submit the changes, I only get redirected. The database entry is empty, yet still the index.php generate the paypal-menu item. Could it be stored in a file somewhere? You could check the source code if you want at www.pianophilia.com.

Thanks for all help.


Jan Terje

Re: Urgent problem - all users redirected to PayPal after logging in

First: I don't see any paypal stuff on your forum.
Second: You can edit the navlinks (that's probably the better place to add some code) in the file include/functions.php in the function generate_navlinks() at about line 300. I am not sure anyways: Where exactly do you want the paypal box? Do you have any instructions from paypal? And - maybe you could add the miniportal.

FluxBB - v1.4.8

5

Re: Urgent problem - all users redirected to PayPal after logging in

what files have you edited?
go threw them and check for anythign redirecting to paypal.com
also, there is a hitch in your footer.php file putting an extra < in there.

Re: Urgent problem - all users redirected to PayPal after logging in

Hmm,

The paypal stuff is only visible if you watch the front page's source code (at www.pianophilia.com), and only interferes when logging in (I think). I have added the miniportal, which I think make things more difficult now.

The thing that really puzzles me, is that there is now no references to paypal anywhere in the database or the include/functions.php (the latter just calls up the database entry). Incidentally, the link in the frontpages source code says (whole line included):

<li id="navextra4"><form action="https://www.paypal.com/cgi-bin/webscr" method="post"></li>

Could the problem be the double number (the paypal menu was item no. 10)? Does PunBB translate that as 1, and tries to get there after logging in?

Very strange indeed!

7

Re: Urgent problem - all users redirected to PayPal after logging in

If you manually changed the database you need to delete the files in the cache directory. They will then automatically be recreated as per the new database entries.

For future reference, the problem may be that you hadn't closed the inputs e.g. <input .... />

The additional menu items is also really for adding straightforward links e.g. to a home page. Adding anything other than that is likely to result in improper nesting which would result in exactlyt the problem you had. Personally I would have added the donation item to main.tpl.

8 (edited by janterje 2007-03-16 23:36)

Re: Urgent problem - all users redirected to PayPal after logging in

Hi,

Deleting the cache-files solved the issue!! Thank you so much! I will see where else I can add the donation item, and refrain from adding anything other than simple links to the menu items.

I've also cleared the extra < from the footer.php! smile

I'm very grateful for all your help. Continue your great work in creating the best forum on the web.


Jan Terje,
Happy PunBB user


Edit: After spending 10 minutes looking through footer.php without finding where the extra < comes from, I decided I didn't care. Like most other things, I will patiently wait for 1.3 to have it solved, hehe.