Gossamer Forum
Home : Products : DBMan : Installation :

Where is Max Hits Control Short/Long html.pl?

Quote Reply
Where is Max Hits Control Short/Long html.pl?
More questions!

On which line is the control for the maximum number of hits to be displayed in the short form?

My .cfg is set to ten but I get only one short form per page.

Also, in the short display, every field is linked to the long display.

Yet in the script only title is selected.

Here's the code:

Code:
# <-- Start of short display formatting -- >

print qq|
<a href="$long_url">$rec{'Title'}</a>
|;


Another bug is that when I press modify, I get the short form with a radio button next to every field?!

What voodoo-gremlins are at busy at work?


[This message has been edited by siddhu (edited June 07, 1999).]
Quote Reply
Re: Where is Max Hits Control Short/Long html.pl? In reply to
I'll have to see your database in action in order to help you out.



------------------
JPD





Quote Reply
Re: Where is Max Hits Control Short/Long html.pl? In reply to
Sorry,

I forgot to add the url.

Here it is:

http://www.millenniumshiva.com/cgi-bin/dbman/dbman.cgi
Quote Reply
Re: Where is Max Hits Control Short/Long html.pl? In reply to
This is very strange. It is treating each of the fields as if it were a record. Have you changed anything in the database itself or in the .cfg file?

I would suggest that you re-upload the .cfg file and the .db file from the original, changing only the URL line at the beginning of the .cfg file. And let me know what happens.


------------------
JPD





Quote Reply
Re: Where is Max Hits Control Short/Long html.pl? In reply to
Sidhu, JP

I would suggest that something is goofed up in the long/short mod not the cfg file if you search and find one record it gives you the long display alright so me thinks that you have something messed up in the sub html_record or the view_success. But I'm just another rookie with an opinion. Good luck...

Mike
Quote Reply
Re: Where is Max Hits Control Short/Long html.pl? In reply to
The only thing is that the long display isn't right either.


------------------
JPD





Quote Reply
Re: Where is Max Hits Control Short/Long html.pl? In reply to
I think that the long record is OK his short record URL is just not calling it properly. This is the URL for the long record from the short for a test record I added

http://www.millenniumshiva.com/...=*&nh=1&mh=1

now if you change ID =* to ID=74 (which is the ID for that record it works.

http://www.millenniumshiva.com/...74&nh=1&mh=1

Mike

[This message has been edited by mike1 (edited June 08, 1999).]

[This message has been edited by mike1 (edited June 08, 1999).]
Quote Reply
Re: Where is Max Hits Control Short/Long html.pl? In reply to
Your guess was correct JP, I uploaded a new .cfg file and db file and it works correctly BUT there is one last bug.

Go to the log on and use list all.

You will see 1O titles. Up to this point everything is OK.

Click on one of the titles and you will then see just the title displayed.

So if I clicked on "Holodeck Indonesia" the following is what is displayed:

Code:
Your search returned 43 matches.

Pages: [< ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ... [>>]

Holodeck Indonesia

Pages: [< ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ... [>>]

| Home | Add | View | Delete | Modify | List All | Log Off |


Click again and nothing is displayed just the table with the results links:


Code:
Your search returned 43 matches.
Pages: [< ... 30 31 32 33 34 35 36 37 38 39 40 41 42 43 [>>]

Pages: [< ... 30 31 32 33 34 35 36 37 38 39 40 41 42 43 [>>]
| Home | Add | View | Delete | Modify | List All | Log Off |


Try it yourself and let me know where the voodoo is!

Heres the url:

http://www.millenniumshiva.com/cgi-bin/dbman/db.cgi
Quote Reply
Re: Where is Max Hits Control Short/Long html.pl? In reply to
I'll have to take a look at your html.pl file. If you can copy it to a web-accessible directory (one where you would place html files) and rename it to html_pl.txt and let me know where I can find it, I'll see what I can figure out.


------------------
JPD





Quote Reply
Re: Where is Max Hits Control Short/Long html.pl? In reply to
Hi,
Here's the url:

http://www.millenniumshiva.com/dbtest/html_pl.txt
Quote Reply
Re: Where is Max Hits Control Short/Long html.pl? In reply to
I found it!

You changed a line in html_view_success. You have

my ($maxhits); $in{'10'} ? ($maxhits = $in{'10'}) : ($maxhits = $db_max_hits);

It must be

my ($maxhits); $in{'mh'} ? ($maxhits = $in{'mh'}) : ($maxhits = $db_max_hits);

It looks like that was the only thing you changed, although I could have missed something.

------------------
JPD





Quote Reply
Re: Where is Max Hits Control Short/Long html.pl? In reply to
100% Right.

I had changed that to try to fix the original bug. AND duh I forgot to change it back.

Thanks for the patience Smile