Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[ NEW PLUGIN ] PeopleWhoClicked v1

(Page 2 of 2)
> >
Quote Reply
Re: [Matthias70] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi,

No problem :D

BTW to delete the links that are referencing themseleves, just use:

Code:
DELETE FROM glinks_PeopleWhoClickedRelations WHERE LinkID = RelatedID

Then, to check (lets say tomorrow, for example) if this is still a problem - run:

Code:
SELECT * FROM glinks_PeopleWhoClickedRelations WHERE LinkID = RelatedID

If alls working well, it should give "no results" - but if its still cross-referencing itself, you will get some rows (we don't want this though Angelic)

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: [Matthias70] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
I am not sure if there is another plugin or global to recently clicked/visited links and if not is it possible to use this one.

I would like to show a list of recently visited links (for logged in users) that they have already clicked on, either on account page or on a different page?

Thanks
Quote Reply
Re: [socrates] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi,

Mmm... I guess this could be done with this plugin.

I guess this could be done with the ClickTrack table. I'll see what I can come up with.

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] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
There is error when use click on "Random Link"

Code:
A fatal error has occured:

LinkID cannot contain the value 'random' at /admin/Plugins/PeopleWhoClicked.pm line 64.

Please enable debugging in setup for more details.

I also found this in my error log but don't know how it is produced.

Code:
Column LinkID cannot be left blank at /admin/Plugins/PeopleWhoClicked.pm line 64.

Regards.

UnReal Network

Last edited by:

deadroot: Feb 23, 2008, 2:26 PM
Quote Reply
Re: [deadroot] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi,

Thanks for the heads up. I've fixed this up now in 1.4. You can get it from the Members Area.

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] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Still got error.

Code:
A fatal error has occured:

LinkID cannot contain the value 'random' /admin/Plugins/PeopleWhoClicked.pm line 80.

Please enable debugging in setup for more details.

UnReal Network
Quote Reply
Re: [deadroot] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Whoops, sorry - should be fixed now. There was another bit that adds a link ID to the database =)

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] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi,

Love the plugin.
Thanks Andy.

Ok, so the display is say 5 links, all going down.
I wish to display 5 links but going sideways.

Instead of showing all info from link.html, I only want to show the small image asociated with it. Ive got the image part done, no prob. But I want them to display side by side and not vertically.

I cant get the loop table right.

Anyone can help?

Thanks,

Juan Carlos
Quote Reply
Re: [Gorospe] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Does this work?

Code:
<%Plugins::PeopleWhoClicked::Get_Related($ID)%>

<%if related_links_loop.length%>
<h2>People also visited...</h2>
<%loop related_links_loop%>
<%-- show the image here --%>
<%endloop%>
<%endif%>

You may need to add some "padding" to the images (so they don't show next to each other).

Something like this:
Code:
style="padding: 5px 5px 5px 5px;"
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] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi, thanks for the quick reply.

Nop, it doesnt work. Same result.

In link.html ive added an if the page id is detailed shot only the image and title.

Hmm I thought the code needed would be similar to the categories code. Where a table is actualy drawn.

Any ideas?
Quote Reply
Re: [Gorospe] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi,

Can you PM me, with the template your doing it in? I'll have a look (that should work fine)

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] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Today I found lot of this lines in my error log:

Code:
LinkID cannot contain the value '4662//modules/My_eGallery/public/displayCategory.php?basepath=http://www.wehrmachtsgespanne.com/apboard/bajo-id.txt???' at /home/myserver/Plugins/PeopleWhoClicked.pm line 81.

Now, what is this? Does this has something to do with people try to hack into? I don't know anything about this site www.wehrmachtsgespanne.com and that site isn't in my directory.

Regards.

UnReal Network
Quote Reply
Re: [DeadMan] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi,

Mmm.. looks like it may be someone trying to find a hole in your system - with something like:

page.cgi?g=Detailed/1234http://www.domain.com

A way around this, would be in PeopleWhoClicked.pm, find:

Code:
sub handle_jump {
# -----------------------------------------------------------------------------
# This subroutine will be called whenever the hook 'handle_jump' is run. You
# should call $PLG->action(STOP) if you don't want the regular
# 'handle_jump' code to run, otherwise the code will continue as normal.
#
my (@args) = @_;

..and add this after: my (@args) = @_;

Code:
if ($IN->param('ID') !~ /^\d+$/) {
print $IN->header;
print qq|INVAILD ID!!!|;
exit;
}

Hopefully that'll stop it.

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] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi Andy, can you insert the option to limit the lists of the People Who Clicked just to a category and all here subcategory
<%Plugins::PeopleWhoClicked::Track_Detailed($ID,3,catid)%>
Quote Reply
Re: [nir] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi,

Mmm.. not sure off hand. Been a while since I did much with that plugin. Kinda bogged down at the moment, so would have to take a look at some point in the future.

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] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi,

I have same problem here like in NewInCategory plugin.

Links are display like http://www.domain.com/category/Link.php although I'm using this type of URL http://www.domain.com/Detailed/Category/Link.php

Missing "Detailed" in URL when displaying links in page where I put "People who clicked also visit..:"


Regards.

UnReal Network
Quote Reply
Re: [DeadMan] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi,

I'll have to go through and fix up those plugins when I get a chance =) Its cos the way "detailed" pages are set, was changed in later versions. You can fix this in /Plugins/PeopleWhoClicked.pm, by changing:

Code:
if ($CFG->{build_detailed}) { $link->{detailed_url} = $CFG->{build_root_url} . "/" . $DB->table('Links')->detailed_url( $link->{ID} ); }

..to:

Code:
if ($CFG->{build_detailed}) { $link->{detailed_url} = $CFG->{build_detail_url} . "/" . $DB->table('Links')->detailed_url( $link->{ID} ); }

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] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Done. Working. Thanks.

Regards.

UnReal Network
Quote Reply
Re: [Andy] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Andy wrote:
Hi,

Mmm.. looks like it may be someone trying to find a hole in your system - with something like:

page.cgi?g=Detailed/1234http://www.domain.com

A way around this, would be in PeopleWhoClicked.pm, find:

Code:
sub handle_jump {
# -----------------------------------------------------------------------------
# This subroutine will be called whenever the hook 'handle_jump' is run. You
# should call $PLG->action(STOP) if you don't want the regular
# 'handle_jump' code to run, otherwise the code will continue as normal.
#
my (@args) = @_;

..and add this after: my (@args) = @_;

Code:
if ($IN->param('ID') !~ /^\d+$/) {
print $IN->header;
print qq|INVAILD ID!!!|;
exit;
}

Hopefully that'll stop it.

Cheers

Is this reason I'm getting INVAILD ID!!! message for my random link url which is like http://www.domain.com/jump.cgi?ID=random;Detailed=1 ?

Regards.

UnReal Network
Quote Reply
Re: [DeadMan] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi,

Yeah, it looks it. What you wanna probably do, is remove:

Code:
if ($IN->param('ID') !~ /^\d+$/) {
print $IN->header;
print qq|INVAILD ID!!!|;
exit;
}

..and change:

Code:
if ($linkid !~ /\d+/) { return @args; }

..to:

Code:
if ($linkid !~ /^\d+$/) { return @args; }

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] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Well, it did fix problem with random link. Hope plugin is working as expected :)

Regards.

UnReal Network
Quote Reply
Re: [DeadMan] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Yeah, it should do =)

The problem with the old regex:

Code:
/\d+/

..is that it would also mathc:

1234Foo

Foo3343

etc

With the new regex:

Code:
/^\d+$/

..it will ONLY match numbers, i.e:

123
5345
343445
etc

I'll have to get the plugin updated at some point 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] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Just interested, if I delete some link from database, will data about that link also delete from PeopleWhoClicked data?


Regards.

UnReal Network
Quote Reply
Re: [DeadMan] [ NEW PLUGIN ] PeopleWhoClicked v1 In reply to
Hi,

Its been a while since I did anything around that, but I have a feeling it doesn't. If you wanted it to, you could open up:

admin/defs/glinks_PeopleWhoClickedRelations.def
and
admin/defs/glinks_PeopleWhoClickedLastClicked.def

Find:

Code:
'fk' => {},

and replace with:
Code:
'fk' => {
'hotels_Links' => {
'LinkID' => 'ID'
}
},

That should then get rid of any entries for those link ID's, when you delete any.

May be worth backing up the DB too, before testing the deleting of a link (should be fine, but you can never be too careful)

Hope that helps

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!
> >