Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
Gossamer Links
:
Development, Plugins and Globals
:
Mylinks sql display on home page
Previous Thread
Next Thread
Print Thread
View Threaded
May 10, 2002, 4:52 AM
nt6
User
(362 posts)
May 10, 2002, 4:52 AM
Post #1 of 16
Views: 8119
Shortcut
Mylinks sql display on home page
Paul,
What would it take to get the "<%total%>" tag to work on the home page (and possibly others)?
Thank you.
May 12, 2002, 7:43 AM
Paul
Veteran
(19537 posts)
May 12, 2002, 7:43 AM
Post #2 of 16
Views: 8006
Shortcut
Re: [nt6] Mylinks sql display on home page
In reply to
You'd need something like:
Code:
sub {
return $DB->table('MyLinks')->count( { UserID => $_[0] } );
}
...then in your template add:
<%TagName(Username)%>
May 12, 2002, 7:49 AM
nt6
User
(362 posts)
May 12, 2002, 7:49 AM
Post #3 of 16
Views: 8000
Shortcut
Re: [Paul] Mylinks sql display on home page
In reply to
Paul,
I replaced the <%total%> tag by your global and got this:
(username),
you have
Error: Variable 'TagName' is not a code reference
saved link s !
Any ideas?
Jun 26, 2002, 6:32 AM
nt6
User
(362 posts)
Jun 26, 2002, 6:32 AM
Post #4 of 16
Views: 7897
Shortcut
Re: [Paul] Mylinks sql display on home page
In reply to
Could you please give this a look Paul?
I still haven't got your plug in to display on any of the "regular" pages.
Thank you.
Jun 26, 2002, 6:35 AM
nt6
User
(362 posts)
Jun 26, 2002, 6:35 AM
Post #5 of 16
Views: 7890
Shortcut
Re: [nt6] Mylinks sql display on home page
In reply to
Sorry Payl, my wrong. I had messed up the sub.
Ir works fine now
Jun 26, 2002, 1:57 PM
nt6
User
(362 posts)
Jun 26, 2002, 1:57 PM
Post #6 of 16
Views: 7906
Shortcut
Re: [I.P.Daily] Mylinks sql display on home page
In reply to
This global is giving me a link count that is always 0, no matter how many links I save.
Any Ideas?
Jun 26, 2002, 2:00 PM
Paul
Veteran
(19537 posts)
Jun 26, 2002, 2:00 PM
Post #7 of 16
Views: 7930
Shortcut
Re: [nt6] Mylinks sql display on home page
In reply to
Try changing Username to $Username
Jun 26, 2002, 2:02 PM
nt6
User
(362 posts)
Jun 26, 2002, 2:02 PM
Post #8 of 16
Views: 7927
Shortcut
Re: [I.P.Daily] Mylinks sql display on home page
In reply to
Thank you. That did it
Jun 27, 2002, 12:09 AM
nt6
User
(362 posts)
Jun 27, 2002, 12:09 AM
Post #9 of 16
Views: 7840
Shortcut
Re: [Paul] Mylinks sql display on home page
In reply to
Paul what is is latest version of this plug in ?
Jun 27, 2002, 7:11 AM
katabd
Veteran
(1187 posts)
Jun 27, 2002, 7:11 AM
Post #10 of 16
Views: 7885
Shortcut
Re: [nt6] Mylinks sql display on home page
In reply to
Hi
What was the global that worked for you?
I was unable to get it to work .. getting: Error: Variable 'g_linkssql_t' is not a code reference even with $Username
Regards
KaTaBd
Users plug In
-
Multi Search And Remote Search plug in
-
WebRing plug in
-
Muslims Directory
Jun 27, 2002, 7:15 AM
Paul
Veteran
(19537 posts)
Jun 27, 2002, 7:15 AM
Post #11 of 16
Views: 7884
Shortcut
Re: [katabd] Mylinks sql display on home page
In reply to
That error is related to your global code formatting. What did you try? (Tag and global code)
Jun 27, 2002, 7:31 AM
nt6
User
(362 posts)
Jun 27, 2002, 7:31 AM
Post #12 of 16
Views: 7897
Shortcut
Re: [Paul] Mylinks sql display on home page
In reply to
Paul what is is latest version of this plug in ?
Jun 27, 2002, 7:37 AM
Paul
Veteran
(19537 posts)
Jun 27, 2002, 7:37 AM
Post #13 of 16
Views: 7828
Shortcut
Re: [nt6] Mylinks sql display on home page
In reply to
I think it is 1.0.0 ...it is 93kb
Jun 27, 2002, 8:14 AM
katabd
Veteran
(1187 posts)
Jun 27, 2002, 8:14 AM
Post #14 of 16
Views: 7849
Shortcut
Re: [Paul] Mylinks sql display on home page
In reply to
Global
sub
{ return $DB->table('MyLinks')->count( { UserID => $_[0] } ); }
tag
<%TagName($Username)%>
Regards
KaTaBd
Users plug In
-
Multi Search And Remote Search plug in
-
WebRing plug in
-
Muslims Directory
Jun 27, 2002, 8:21 AM
Paul
Veteran
(19537 posts)
Jun 27, 2002, 8:21 AM
Post #15 of 16
Views: 7855
Shortcut
Re: [katabd] Mylinks sql display on home page
In reply to
The global must start exactly:
sub {
not
sub
{
or
Code:
sub {
Jun 27, 2002, 8:38 AM
katabd
Veteran
(1187 posts)
Jun 27, 2002, 8:38 AM
Post #16 of 16
Views: 7840
Shortcut
Re: [Paul] Mylinks sql display on home page
In reply to
Hi Paul
The one that worked for me was:
sub {
my ($total) = $DB->table('MyLinks')->count( { UserID => $_[0] } );
return $total;
}
Thanks
Regards
KaTaBd
Users plug In
-
Multi Search And Remote Search plug in
-
WebRing plug in
-
Muslims Directory
Previous Thread
Next Thread
Print Thread
View Threaded