List Info

Thread: Link Problems




Link Problems
user name
2006-03-11 16:53:54
On 11 Mar 2006, at 17:32, Jerry  Rocteur Com wrote:

Hi All,

Last week I upgraded to 1.4.0sr1 and searching around I
liked the  
Naked Bike theme so I installed that as well.

So far all is going well .. I think..  Except weird things
with links ..

	Problem #1

When I do a general search on my site using a query like
this:

	http://www.rocteur.cc/geeklog/public_html/search.php? 
query=bmw&type=all&mode=search

It returns me a list of links.. When I click on a link, it
loads up a  
url like this:

	http://www.rocteur.cc/geeklog/public_html/links/porta
l.php? 
what=link&item=20060311135636813

Which takes me to my link Category index.

If in the above link, I replace this:

	index.php?page=

With this:

	portal.php?what=link&item=

Giving this:

	http://www.rocteur.cc/geeklog/public_html/links/porta
l.php? 
what=link&item=20060311135636813

I get expected behaviour.

What have I forgotten to do ?????

	Problem #2

If I go to the link admin page:

	http://www.rocteur.cc/geeklog/public_html
/admin/plugins/links/index.php

Whatever I search for, I get:

	- No entries found -

HELP.......

Thanks in advance,

Jerry Rocteur

_______________________________________________
geeklog-users mailing list
geeklog-userslists.geeklog.net
http:
//lists.geeklog.net/listinfo/geeklog-users
Link Problems
user name
2006-03-11 17:17:45

Rocteur CC wrote:

>It returns me a list of links.. When I click on a link,
it loads up a  
>url like this:
>
>	http://www.rocteur.cc/geeklog/public_html/links/porta
l.php? 
>what=link&item=20060311135636813
>
>Which takes me to my link Category index.

I assume you pasted the wrong link here. But, yeah, it
doesn't work.
It's linking to index.php, not portal.php. That's a bug,
obviously.


>Whatever I search for, I get:
>
>	- No entries found -

It only searches the URL, title, and category at the moment.
Which isn't
too useful.

In admin/plugins/links/index.php, find the line that reads

    'query_fields' => array('title', 'category',
'url'),

and change it to

    'query_fields' => array('title', 'category',
'url', 'description'),

Also, you'll have to pad your query strings with '*',
e.g. '*rocteur*'
to find anything. All the Admin search options work that
way. This
hasn't occured to me until now, but it's odd that they
should work
different than the normal search. We should probably change
that ...

bye, Dirk


-- 
http://www.haun-online.de/

http://spam.tinyweb.net/

_______________________________________________
geeklog-users mailing list
geeklog-userslists.geeklog.net
http:
//lists.geeklog.net/listinfo/geeklog-users
Link Problems
user name
2006-03-11 18:41:00
Thanks Dirk!

On 11 Mar 2006, at 18:17, Dirk Haun wrote:

>  Rocteur CC wrote:
>
>> It returns me a list of links.. When I click on a
link, it loads up a
>> url like this:
>>
>> 	http://www.rocteur.cc/geeklog/public_html/links/porta
l.php?
>> what=link&item=20060311135636813
>>
>> Which takes me to my link Category index.
>
> I assume you pasted the wrong link here. But, yeah, it
doesn't work.
> It's linking to index.php, not portal.php. That's a
bug, obviously.

Yes I did paste the wrong link, I'm sorry. But you got the
drift 

I just changed plugins/links/functions.inc line 424

From:
	'/links/index.php?page=' . $A['lid']);

To:
	'/portal.php?what=link&item=' . $A['lid']);

That fixed it.


>> Whatever I search for, I get:
>>
>> 	- No entries found -
>
> It only searches the URL, title, and category at the
moment. Which  
> isn't
> too useful.
>
> In admin/plugins/links/index.php, find the line that
reads
>
>     'query_fields' => array('title',
'category', 'url'),
>
> and change it to
>
>     'query_fields' => array('title',
'category', 'url',  
> 'description'),

Works GREAT thanks.

> Also, you'll have to pad your query strings with
'*', e.g. '*rocteur*'
> to find anything. All the Admin search options work
that way. This
> hasn't occured to me until now, but it's odd that
they should work
> different than the normal search. We should probably
change that ...


Inconsistency sucks doesn't it.

Cheers and thanks again,

Jerry

_______________________________________________
geeklog-users mailing list
geeklog-userslists.geeklog.net
http:
//lists.geeklog.net/listinfo/geeklog-users
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )