Gossamer Forum
Home : Products : Links 2.0 : Customization :

Hey Guys, please help us girls!

Quote Reply
Hey Guys, please help us girls!
How do I remove the following fields as I don't need them nor do I want to see them shown in the Validate/Modify pages(or any other pages):
Hits, isNew, isPopular, Rating, Votes & ReceiveMail
I am busy on a pen-pals mod for Links2 with my friend Sandy. Please note that we are not very good at CGI yet so if you can help, please give us detailed comments )
Quote Reply
Re: Hey Guys, please help us girls! In reply to
You would remove them from links.def.

------------------
-----------------
Lavon Russell
LookHard! Search
http://lh.hypermart.net
webmaster@lh.hypermart.net



Quote Reply
Re: Hey Guys, please help us girls! In reply to
What kind of mod is a pen-pals mod? I am curious.... =)
Quote Reply
Re: Hey Guys, please help us girls! In reply to
 
Quote:
Validate/Modify pages(or any other pages):
Hits, isNew, isPopular, Rating, Votes & ReceiveMail

I would leave them alone, since parts of links use them, and you'd have to make other changes to get rid of them properly. If you don't use them, they don't take up any real space, and the _USERS_ never see them, only the ADMIN.

If you don't want 'hits' to show to your users, just remove the <%hits%> from all your templates, same with <%votes%> and <%ratings%>.

Theses values are how Links tracks some things internally. If you ignore them, so does Links, but it's better to leave them there, since the code that uses them is pretty built-in to links.

Quote Reply
Re: Hey Guys, please help us girls! In reply to
Hi Guys. Thanks for the help so far. Is there
a way to hide them in the admin page?
Quote Reply
Re: Hey Guys, please help us girls! In reply to
Not without a lot of modification. The easiest method is to delete those fields out of your links.def file.

Then in your nph-build.cgi file, you can use the # character in front of the routines for building the hits, voting, ratings, and receive email. Using the # character (rem) is better than deleting out routines within scripts because if you want to use them at a later time, then you can just delete the # characters.

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Hey Guys, please help us girls! In reply to
or for the people that don't care.. just change the fields length to -1 and then it will be hidden.. hehe Wink

but it will still apear in the database..

jerry