His there a way to make a plug that return the Current URL?
Dec 16, 2007, 5:02 AM
User (339 posts)
Dec 16, 2007, 5:02 AM
Post #2 of 5
Views: 4099
Hi nir,
I'm using this global.
<%return_url%>
# ----------------------------------------
# Get current url
return $CFG->{build_root_url} . $ENV{REQUEST_URI};
}
Cheers,
Boris
Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
I'm using this global.
<%return_url%>
Code:
sub { # ----------------------------------------
# Get current url
return $CFG->{build_root_url} . $ENV{REQUEST_URI};
}
Cheers,
Boris
Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Jun 24, 2009, 12:13 AM
Veteran / Moderator (18436 posts)
Jun 24, 2009, 12:13 AM
Post #5 of 5
Views: 3901
Are you gettting that value in a GT::Template::dymp? If so, thats why. Any "functions" are shown as "sub { () } " in a dump. To see the proper value, you need to do :
Foo: <%function_name%>
..and it should print out right :)
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!
Foo: <%function_name%>
..and it should print out right :)
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!