1
irmtfan
weblinks: problem with a lot of submits
  • 2006/5/5 6:27

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


for some reasons i dont check the approve page of this module and now have 113 waiting links there.
so now failed to approved them because the page is very heavy and i see a time out page.

2
irmtfan
Re: weblinks: problem with a lot of submits
  • 2006/5/10 16:22

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


anyone?

3
patagon
Re: weblinks: problem with a lot of submits
  • 2006/5/10 18:07

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


is this the standard weblinks module or the one by ohwada (which is also called weblinks). if so i remember seeing something on its forum, but no idea if its the one that came with xoops...

4
gestroud
Re: weblinks: problem with a lot of submits
  • 2006/5/10 18:28

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


113 is a LOT. Do you have your notification option turned on for the module?

5
wtravel
Re: weblinks: problem with a lot of submits

I would suggest you hack the file in the admin section that selects the links with status 'to be approved'.

I do not have that module, but probably within the function listNewLinks() or something like that, you will find a SQL statement that selects the new links.

Underneath you will most likely find something like:
$result = $xoopsDB->query($sql);

To limit the number of results to 10, change this to:
$result = $xoopsDB->query($sql, 10, 1);

It is just a temporary solution so don't mind that your admin page will tell you that there are 10 links waiting instead of 113 .

To create a permanent solution I would add a counter in the function that loops through the result. You should define the maximum number of links shown on the page somewher and if the counter exceeds this nummer, exit the loop.

HTH

6
irmtfan
Re: weblinks: problem with a lot of submits
  • 2006/5/11 7:34

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


huum
1- yes weblinks module
2- i think i must update to the latest version
see this in his website:
http://linux2.ohwada.net/
(1) 3743: fatal error ocucred when six or more links waiting to apoval

7
irmtfan
Re: weblinks: problem with a lot of submits
  • 2006/5/11 9:38

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


the problem solved by upgrade to the latest version weblinks 1.1 beta
thanks everyone

Login

Who's Online

196 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 196


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