Log in | Register | Lost password

Bottom
Submit news popup images not working
  • Posted: 23.03.2004, 10:49
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I installed the submit_news hack in my site and works fine.The problem is that when someone tries to use the "insert image" button in the "Submit news" module,he can't use the thumbnail (popup) option or any other popup options.That is,inserting a picture as thumbnail works ok.When inserting a picture as popup,the code is inserted in the box,but when clicking on preview,it just redirects to the main page of the site (index.php).I haven't got a clue whay that happens,any help?
  • Posted: 23.03.2004, 16:31
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Do you mind if we give it a try?
  • Posted: 23.03.2004, 18:15
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Ofcourse not,give it a try and tell me what is the problem.
    I also receive a hack attempt on your site email each time this happens.The email says that there is an intrusion detection and it was detected on pnApi.php line 1238.
    Do youhave any idea?
    I reinstalled pnrender but I can't get Xanthia to work.Does it have something to do with this?
    Also,I can't seem to find an imgdisplaypopup function in my installation and script commands are disabled on my site.I hope these help.
    Thanks in advance for your help.
  • Posted: 23.03.2004, 18:28
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    How about a URL? ;)
  • Posted: 23.03.2004, 18:40
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Silly me!!!
    Here you are
    http://www.ledras.com
    hmm,although the site is in greek and there is no english option.
    Now,on the upper left side there is a dynamic java menu,highlight the fourth option and then click the second option on the submenu.
    There is the submit news module.
    there is a button submit image,you will get know what to do after that.
    I checked the pnApi.php code and it says something about script blocking attacks.Does this function work on others or is it just me??
  • Posted: 23.03.2004, 19:28
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Thanks for the navigation tips. I used your directions and made it to this link:

    http://www.ledr…ews&file=index

    and received the message below. Unfortunately, the forum is translating each character into a web-friendly but reader-unfriendly format.

    Δεν έχετε εξουσιοδότηση για να στείλετε νέα

    Do I need to be logged in to submit news?
  • Posted: 23.03.2004, 19:33
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Propably yes.
    You may use the following
    user:test
    pass:k
    Thanks again for trying to help.
  • Posted: 23.03.2004, 20:11
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    OK,the problem was that I had the pnanticracker mechanism on,that's why it would not work.I managed to get pass that problem but now I face another one.The image is inserted as a thumbnail,but when I click on it so the popup with the whole picture appears,it says error on page.Does this have something to do with the imgdisplaypopup javascript?Cause I cannot find that anywhere in my site nor the internet,and this is the function that the script calls.
    Any help much appreciated!
  • Posted: 23.03.2004, 21:54
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I'll let you look into it. The imgDisplayPopup function exists in photoshare/pnjavascript/showimage.js.
  • Posted: 24.03.2004, 08:23
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    So I finally made it.
    I overrided the Javascript and now it works like a charm and I can have the pncracker enabled.
    Here is what you should do.
    Find findimage.js under your_site/modules/photoshare/pnjavascript.
    Backup the file!!!!
    Open it using your favorite editor and find line

    case 'thumbnailPopup':
    html = ""
    + "
    ";
    break;

    Replace this with

    case 'thumbnailPopup':
    html = ""
    + "
    ";

    That's it.Everything should be working fine.You should make the necessary adjusments to the other popup options to if you want them to work similarly.
    I hope I solved other people problems too.
    Thanks a lot tjreo for interesting and helping me out!!
    :-)
  • Posted: 16.06.2005, 14:13
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I will start a new thread

    [Edited on 17/6/2005 by cyberbill]

Template courtesy of Designs By Darren.