PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
schwim
Hangin' Around


Joined: Feb 28, 2006
Posts: 38

PostPosted: Fri May 02, 2008 6:30 pm Reply with quote Back to top

Hi there everyone,

I'm trying to button up an install and am slowly working through my list of issues. Now up:

Weblinks: When user submits a broken link, it gets properly added in the admin panel. The problem I have is this:

If there is more than one broken link reported, regardless of the ID of the link in the URL, it opens the editor for the first reported link in the list:

Lets say I have four links:

Bob's house of links: ID 39
Jack's house of pancakes: ID 92
Jane's house of Jacks: ID 12
Don's house of houses: ID 98

I go to the reported links panel, then decide I want to edit Jane's house of Jacks, since I know what is wrong with that link. I click the edit link, which has a URL of:
Only registered users can see links on this board!
Get registered or login to the forums!


When it gets to the edit page, instead of Jane's house of Jacks' information, I have Bob's house of links' information. No matter which link I try to edit, I get the information for the first link in the list.

If I edit the links via the id number at the front of the weblinks module, it works properly, but it doesn't work via the reported broken links panel.

Does anyone have an idea of what I might be able to do to resolve this issue?

thanks,
json


Last edited by schwim on Fri May 02, 2008 9:49 pm; edited 1 time in total
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Fri May 02, 2008 9:37 pm Reply with quote Back to top

Compare the 2 links and see what the difference(s) are. That should at least tell you what script (or part of the script) needs to be changed.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
schwim
Hangin' Around


Joined: Feb 28, 2006
Posts: 38

PostPosted: Fri May 02, 2008 9:43 pm Reply with quote Back to top

Do you mean to compare the two functions? I don't understand what two links I would be comparing.

thanks,
json
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Sat May 03, 2008 7:23 am Reply with quote Back to top

I may have misunderstood but it sounded like you were using 2 different links.

Error Link:
I click the edit link, which has a URL of:
Only registered users can see links on this board!
Get registered or login to the forums!


Working Link:
If I edit the links via the id number at the front of the weblinks module, it works properly
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
schwim
Hangin' Around


Joined: Feb 28, 2006
Posts: 38

PostPosted: Sat May 03, 2008 7:32 am Reply with quote Back to top

Hi there Raven,

I explained it poorly. The LinksEditBrokenLinks function does not work properly. It puts the data for the first reported broken link in the edit fields when I try to edit any reported broken link.

At the front, it's a form for inputting the link ID to edit ,and it leads to a link like this(when converted to GET):
Only registered users can see links on this board!
Get registered or login to the forums!


So, function LinksModLink works correctly, but LinksEditBrokenLinks does not.

thanks,
json
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Sat May 03, 2008 8:00 am Reply with quote Back to top

I don't recommend nor use that version nor do I even have a test site installed. Are you using the virgin modules that came with v7.8 or has it been modified?

As we tell most everyone v7.8 is a v-e-r-y buggy release overall. We highly recommend reversion to v7.6 and recommend even more strongly changing to RavenNuke(tm).
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
schwim
Hangin' Around


Joined: Feb 28, 2006
Posts: 38

PostPosted: Sat May 03, 2008 8:08 am Reply with quote Back to top

Thanks very much for your help, Raven. When the entirety of the PHP-Nuke community collapsed, your site was the only guys left to help. I appreciate you being here.

thanks,
json
View user's profile Send private message
schwim
Hangin' Around


Joined: Feb 28, 2006
Posts: 38

PostPosted: Sat May 03, 2008 8:18 am Reply with quote Back to top

I resolved the issue by changing line 543 of /modules/Web_Links/admin/index.php from:

Code:

      $row = $db->sql_fetchrow($db->sql_query("SELECT requestid, lid, cid, title, url, description, modifysubmitter from " . $prefix . "_links_modrequest where brokenlink='1' order by requestid"));


to

Code:

      $row = $db->sql_fetchrow($db->sql_query("SELECT requestid, lid, cid, title, url, description, modifysubmitter from " . $prefix . "_links_modrequest where lid='$lid'"));


thanks,
json
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14928
Location: Kansas

PostPosted: Sat May 03, 2008 8:23 am Reply with quote Back to top

Good job! Were you using the original module or a modified one?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
schwim
Hangin' Around


Joined: Feb 28, 2006
Posts: 38

PostPosted: Sat May 03, 2008 8:29 am Reply with quote Back to top

Hi there Raven,

It's the original module that shipped with 7.8.

thanks,
json
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum