Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 05-25-2006, 10:14 AM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
Savant (posting a fix for another problem) fixed this problem also.

xmlhttp.js, line 62, add the "var"

var content = "id=" + id + "&user=" + user + "&md5=" + md5 + "&value=" + value;




Quote:
Originally Posted by AshDigg
I have been able to reproduce the problem. I have NO idea why this problem exists, I can only guess it's an IE bug.

On a clean install of pligg, in the file shakeit_center.tpl, line 18 says...

echo '<div id="contents">';

If I change it to...

echo '<div id="content">';

Which is what DuckFat has on his site, I get the javascript error ONLY in IE.


Like I said, I have no idea why it does this.
__________________
- Ash
Reply With Quote
  #22 (permalink)  
Old 05-25-2006, 11:20 AM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,218
Thanks: 64
Thanked 207 Times in 148 Posts
glad i could help
Reply With Quote
  #23 (permalink)  
Old 05-25-2006, 04:09 PM
New Pligger
 
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
I had the voting error as well. I'm running 7.1 right now and I pasted this into lines 61 and 62

url = "/menealo.php";
var content = "id=" + id + "&user=" + user + "&md5=" + md5 + "&value="+ value;

voting works now!
Reply With Quote
  #24 (permalink)  
Old 05-26-2006, 07:21 AM
Constant Pligger
 
Join Date: Apr 2006
Posts: 122
Thanks: 1
Thanked 1 Time in 1 Post
THANK YOU!

I had to change line 61 to url = "./menealo.php"; (note the period) but now it works in both IE6 and FF! I'm really happy that this bug was figured out!
Reply With Quote
  #25 (permalink)  
Old 05-26-2006, 12:06 PM
Casual Pligger
 
Join Date: Mar 2006
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Arrrrgh!

This is bonkers. i still get the error, even though I've hard coded the full URL into the .js file, as follows:

url = "http://www.hugg.com/menealo.php";
content = "id=" + id + "&user=" + user + "&md5=" + md5 + "&value=" + value;
anonymous_vote = false;
if (anonymous_vote == false && user == '0') {
window.location="http://www.hugg.com/login.php?return="+location.href;
} else {


Have a look at www.hugg.com ... it works great, except on a hugged page. It's trying to find menealo in /story/ and I can't figure out why!

Thanks!
Reply With Quote
  #26 (permalink)  
Old 05-26-2006, 12:31 PM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,218
Thanks: 64
Thanked 207 Times in 148 Posts
what do you mean by hugged page

Voted from the main page *works*
Vote from the story page *works*
and on both conditions when not logged in it redirects to login page
Reply With Quote
  #27 (permalink)  
Old 05-26-2006, 12:33 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
This bug was fixed in 7.2 I believe.

Try opening your login.php and replace

header('Location: '.$_REQUEST['return']);

with

header('Location: '.my_base_url.my_pligg_base."/".$_REQUEST['return']);

It's not the prettiest fix but it works.
__________________
- Ash
Reply With Quote
  #28 (permalink)  
Old 05-26-2006, 12:35 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
Savant,

To clarify, go here. When you "login" to comment, you are returned here to a 404.
__________________
- Ash
Reply With Quote
  #29 (permalink)  
Old 05-26-2006, 12:45 PM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,218
Thanks: 64
Thanked 207 Times in 148 Posts
he's already fixed it.

got there too late

but found a new bug at hugg

in the register when you type in the username
firebug says button has no properties.

PHP Code:
function enablebutton (buttonbutton2target)
{
    var 
string target.value;
    
button2.disabled false;
    if (
string.length 0) {
        
button.disabled false;
    } else {
        
button.disabled true;
    }

thought it was a template error but the register seems to be the same as skiddo in trunk.

edit: does it matter that two forms have the same id.
the search form is thisform and so is the register form.

Last edited by savant; 05-26-2006 at 12:49 PM..
Reply With Quote
  #30 (permalink)  
Old 05-26-2006, 01:27 PM
3dKiller's Avatar
Constant Pligger
 
Join Date: Mar 2006
Location: Newport Beach
Posts: 142
Thanks: 24
Thanked 2 Times in 1 Post
Hey AshDigg and Savant,

It's great you fixed these problems. However, I hope you are applying these fixes to the codebase on our Trac site so we won't have to fix it again at another date.

Just trying to save us all some pain later.

~3d
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Voting Error on page jitu "Mollio-Beat" 7 11-02-2007 05:46 AM
Pligg 9.5 Beta: 500 Internal Server Error!!!! Genghis Bug Report 0 05-02-2007 03:10 AM
Got This Parse Error on c_ file on line 141 endph General Help 0 02-14-2007 06:44 PM


Search Engine Friendly URLs by vBSEO 3.2.0