Gossamer Forum
Quote Reply
Form Question
Ok, I've added a new feild in my form for the add a link page. I'd like to know which files to edit so it will show up in my emails. This isn't something that needs to be added to their listing. Just something for my use to make things easier. It's for a link back. Just to display the url of the page which contains our link back to our site.

How would I do this?



Mike Bowden
Webmaster Directory Network
Quote Reply
Re: [MikeB2204] Form Question In reply to
Hi. The emails should be;

email-val.txt
email-mod.txt
email-add.txt

... and your new values should be available there (<%FieldName%>).

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] Form Question In reply to
Always quick to answer Andy, and every time you have they were right. :) I'll give it a try now.



Mike Bowden
Webmaster Directory Network
Quote Reply
Re: [MikeB2204] Form Question In reply to
My head just exploded Laugh

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] Form Question In reply to
Ok, still no go. When I get the email saying their is a new link the link back still isn't in the email. That's the one I want it to be in.



Mike Bowden
Webmaster Directory Network
Quote Reply
Re: [MikeB2204] Form Question In reply to
What does your email-val.txt template look like?

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!
Post deleted by MikeB2204 In reply to
Quote Reply
Re: [MikeB2204] Form Question In reply to
Oh, I see where it is. In the Admin directory. I was in the wdn template directory. I think I've got it, let me try editing the file you originally told me to edit. :)



Mike Bowden
Webmaster Directory Network
Quote Reply
Re: [MikeB2204] Form Question In reply to
Ok, got it to email me now. But I'm getting this.

Unknown Tag: 'Re_Link'

How would I fix that?



Mike Bowden
Webmaster Directory Network
Quote Reply
Re: [MikeB2204] Form Question In reply to
Looks like I need a global, but I have no idea how I would make a global for this.

Any ideas?



Mike Bowden
Webmaster Directory Network
Quote Reply
Re: [MikeB2204] Form Question In reply to
Hi. You could try a new global;

Code:
sub {

my $ID = $_[0];
my $field = $_[1];

my $link = $DB->table('Links')->select( { ID => $ID } )->fetchrow_hashref;
return $link->{$field};

}

.. and call with;

<%global_name($ID,'Re_Site')%>

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!

Last edited by:

Andy: Jul 31, 2004, 10:19 AM
Quote Reply
Re: [Andy] Form Question In reply to
Error: Variable 'global_name' is not a code reference

That's what I get inside the text box.



Mike Bowden
Webmaster Directory Network
Quote Reply
Re: [MikeB2204] Form Question In reply to
Erm, what name did you give the global? global_name was just an example Tongue

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] Form Question In reply to
Code:
A fatal error has occured:
GT::SQL::Table (17995): Unknown method 'fetchrow_Hashref' called at (eval 15) line 1.

Please enable debugging in setup for more details.


That's what I get......



Mike Bowden
Webmaster Directory Network

Last edited by:

Andy: Aug 2, 2004, 1:46 AM
Quote Reply
Re: [MikeB2204] Form Question In reply to
Sorry, fetchrow_hashref (I fixed my other post a day or so ago, but I guess you didn't see that, as I didn't mention anything about the change Smile).

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] Form Question In reply to
Ok, got it working. Thanks



Mike Bowden
Webmaster Directory Network

Last edited by:

MikeB2204: Aug 2, 2004, 8:04 AM