Moderated by: FocalMedia Team, Miles, Gerrit, Rian

FocalMedia.Net Forums » Turbo Seek »  Discussions, Suggestions & Tips, Tricks

Page: 1 of 1

« Back to Topic Index Page 8 | Replies: 3

 Author  Topic: Couple of questions
  Steve

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of Steve 
Hi Miles and all at FM,

Hope you are all well - it has been a while since
I have posted as everything has been working
fine ;-)


I have just done some modifications again along
the lines of adding Premium and Basic Listings.
This is all working fine with some modifications
to the code bringing up two different pages etc.

There is just a couple of things that I wanted to
ask:

When viewing the new submissions in the admin
panel - its says 'list at top: no'
Can this be passed across as a variable from a
form - something like:
input type="hidden" name="listattop" value="yes"
If so what would the variable name be??


Secondly when displaying the results when searching
could you say make a particular listing bold based on
the contects of a variable i.e. if hits exceeds 1000 make
this listing bold otherwise just display normally.

Lastly is there a file with or list of all the variables that
are stored in the database/flat files.


Thanks again for all the help - it's a great little program
well written with good backup!!! A++++

Cheers


Steve


Total Posts: 7 | Joined: Oct 3, 2001 - 10:56am | IP Logged

  FocalMedia Team

Moderator
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of FocalMedia Team 
Hi Steve,

Quote:

When viewing the new submissions in the admin
panel - its says 'list at top: no'
Can this be passed across as a variable from a
form - something like:
input type="hidden" name="listattop" value="yes"
If so what would the variable name be??




Yes, you could. You will have to add code to indicate that it should be listed at the top in line 635 - The value written to the file should be Y

Quote:

Secondly when displaying the results when searching
could you say make a particular listing bold based on
the contects of a variable i.e. if hits exceeds 1000 make
this listing bold otherwise just display normally.




At this point in time it could be tricky as the number of hits is not packed into the search index which does not make it possible to easilly retrieve it. You could add code that it is packed into the search index but this can get tricky. Future versions will likely have this.

Quote:

Lastly is there a file with or list of all the variables that
are stored in the database/flat files.




Open tsbuild.pm and go to line 633

Miles



Total Posts: 1453 | Joined: Jul 27, 2002 - 4:28am | IP Logged

  uknation

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of uknation 

Many thanks for the reply Miles - much appreciated!

Just to make sure that I understand you -

when you say line 635 are you refering to the
addurl.cgi file?? Could you please just give me a
little of how the line starts as with the modifications
the line numbers may have changed slightly from
the original.

Many thanks again.

Cheers


Steve


Total Posts: 12 | Joined: Dec 31, 2001 - 6:03am | IP Logged

  FocalMedia Team

Moderator
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of FocalMedia Team 
Yes, it's addurl.cgi

The line should look like this:

"" . "[::]" . ### 9 LIST AT TOP

and should be changed to

"Y" . "[::]" . ### 9 LIST AT TOP

Miles

Total Posts: 1453 | Joined: Jul 27, 2002 - 4:28am | IP Logged


Lock Topic

 

Forum Legend

New Member

Reply to topic

More than 50 posts | Member

Reply to topic with quoted message

More than 100 posts | Full Member

Edit Message

More than 150 posts | Advanced Member

View profile

More than 200 posts | Advanced Member

Email member