Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to modify "Validate Links" page?

Quote Reply
How to modify "Validate Links" page?
Hi, it's my first post on this board... :)
...and here my problem: I'd like to modify appearance of "Validate Links" page - wider inputs for Title and URL, longer list of categories. Which file do I have to modify and which place? TIA
Quote Reply
Re: [Varion] How to modify "Validate Links" page? In reply to
Hi,

Welcome =)

Your best bet, would be to change the FORM SIZE in Database > Links > Properties. For example, the default is 10 I believe, but you can change it to whatever is needed.

NB: Not all fields can be modified, as they arn't conventional "fields", i.e the "Expiry Date".

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] How to modify "Validate Links" page? In reply to
Thanks! I hope I can modify size of categories in next release of Links. I see it's not possible now.
Quote Reply
Re: [Varion] How to modify "Validate Links" page? In reply to
If you are talking about updating the INPUT form size, then yes it can be modified. Just update the "Form Size" in whatever table property you to change the INPUT form size.

Hope this helps.

Vishal

Vishal
-------------------------------------------------------
Quote Reply
Re: [SWDevil.Com] How to modify "Validate Links" page? In reply to
I can modify many INPUTS, but not for "categories" :(
Quote Reply
Re: [Varion] How to modify "Validate Links" page? In reply to
Still on the subject of the Validate Links page ("Validate Records"), is there any setting to have the dropdown "Links per page" default to 1? If no setting, can the code be safely modded?

Thanks,
--Jo
Quote Reply
Re: [iplay] How to modify "Validate Links" page? In reply to
Hi,

Erm, why would you want it set to 1? Whistle

But yes, you could modify it - but be aware it would get lost in any updates

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] How to modify "Validate Links" page? In reply to
Ha! I thought someone might ask but I didn't want to complicate things. Having 1 would be useful because each link has a lot of extra fields that need to be checked carefully. We also have to go and look at the website of the link. It can get confusing, especially when sites submit multiple links, sometimes legitimately. For other sites we use 5 or sometimes 25 links per page, but in this case 1 would be idealWhistle

Would it be tools_validate.html to mod?

I changed two instances of

Code:
<option value="1"<%if mh == 1%> selected="selected"<%endif%>>1</option>
<option value="5"<%if mh == 5 or not mh%> selected="selected"<%endif%>>5</option>

to


Code:
<option value="1"<%if mh == 1 or not mh%> selected="selected"<%endif%>>1</option>
<option value="5"<%if mh == 5%> selected="selected"<%endif%>>5</option>


but it still displays 5 links on the page (although the dropdown defaults to 1).

Any idea what else I need to mod please?

Thanks,
--Jo
Quote Reply
Re: [iplay] How to modify "Validate Links" page? In reply to
Ah ok :)

Well in that case, in /admin/Links/Tools.pm find:

Code:
sub validate_links {

Then below that, find:

Code:
my $mh = $IN->param('mh') || 5;

and change to:

Code:
my $mh = $IN->param('mh') || 1;

That should do it :) The part you were changing, is actually only used when you use the SELECT box to change the number of items per page

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] How to modify "Validate Links" page? In reply to
Thanks Andy. I'll go that a go ;)

Thanks,
--Jo
Quote Reply
Re: [iplay] How to modify "Validate Links" page? In reply to
Works like a charm!

Many thanks Andy, as always!

Jo