HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


CEDI search again

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#29029 (In Topic #6658)
Avatar

Community saint

The search in CEDI does not work for me. It showed

Error
    The requested item could not be loaded by the proxy.
    Document contains no data

The page top and side panels were shown, thou

After I specified seėarch box to search only in CEDI

Code

[block limit_to="cedi_posts"]side_search[/block]

And when I tried to search for the things that really exist in cedi I got this answer:

Your search yielded no results. Please try a less specific search.


Besides, as you might know already my CEDI is in another zone and has different theme. But the search page opens in the default theme showing absolutely different menus from CEDI, which might be very confusing for a user. Is it possible to have search in the same theme as cedi?

And one more thing. I put the Shoutbox in the cedi's left panel, but it bears the bgcolor from the default theme. Where could I change this?
Back to the top
 
Posted
Rating:
#29062
Avatar

    The requested item could not be loaded by the proxy.
    Document contains no data

Assuming you're using a decent browser for developing on (i.e. not IE), try refreshing only the central frame where that error is shown (it is indeed a separate frame). Does the error still show? If not, it might be your server somehow choking on the initial frame subrequest. I can show you how to disable the result-browser framing if necessary.

It's not well documented, but most blocks can take a 'zone' parameter.
  1. Tell the search block the zone to search in your encyclopedia zone
  2. Set up a redirect page so that the search module exists in that zone as well as the site zone. i.e. redirect the encyclopedia:search page to site:search.

And when I tried to search for the things that really exist in cedi I got this answer:

I'll check this.

And one more thing. I put the Shoutbox in the cedi's left panel, but it bears the bgcolor from the default theme. Where could I change this?

I'll check this.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#29078
Avatar

The shoutbox thing can probably be solved by changing &{$KEEP*} to &{$KEEP*}&keep_theme={$THEME} in the BLOCK_SIDE_SHOUTBOX_IFRAME template. Then clear the template cache.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#29081
Avatar

Your CEDI search problem is strange. CEDI search works for me, and I can't see anything wrong with yours except that mySQL isn't returning any results.
What happens if you put:

Code

SELECT r.* FROM (ocp2_seedy_posts r) LEFT JOIN ocp2_translate t1 ON t1.id=r.the_message WHERE (MATCH (t1.text_original) AGAINST ('teksta' IN BOOLEAN MODE))
into phpMyAdmin and run it from there?
I imagine you get no rows.

See if you can persuade phpMyAdmin to rebuild your "full text search index".

If that doesn't help, try uploading an empty file called "mysql_old" – that'll turn off the mySQL fulltext search and use an alternate method.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#29104
Avatar

Community saint

2) Set up a redirect page so that the search module exists in that zone as well as the site zone. i.e. redirect the encyclopedia:search page to site:search.

Frankly, I dont understand what does that mean. O_o What exactly should I do here

The shoutbox thing can probably be solved by changing &{$KEEP*} to &{$KEEP*}&keep_theme={$THEME} in the BLOCK_SIDE_SHOUTBOX_IFRAME template. Then clear the template cache.
this helped even without clearing the cache. Thanks


Last edit: by Mindaugas
Back to the top
 
Posted
Rating:
#29129
Avatar

Frankly, I dont understand what does that mean.

In the Structure tab of the Admin Zone, go to 'Redirects'. Under the new header at the bottom you'll see 4 text boxes.
Enter the following values:
  • encyclopedia (actually whatever the zone is actually called in Lithuanian)
  • search
  • site
  • search

What this does is sets up the search module so that it can also operate from within your encyclopedia zone. The 'zone' parameter to the search block tells the search block to use the encyclopedia zone's entry point rather than the site zone's.

this helped even without clearing the cache. Thanks

Yeah, the inbuilt template editor will clear the cache automatically.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#29201
Avatar

Community saint

Now the search theme looks ok, but it doesnt work.
I was trying to search for Europa (there is such a page in Encyclopoedia), but as usual I got:
Error

    The requested item could not be loaded by the proxy.

    Document contains no data  :S  :'(
Back to the top
 
Posted
Rating:
#29202
Avatar

It's a server issue speed unfortunately. I think you're own internet connection is behind a proxy server, and the proxy server is timing out before it gets the results. Speed is something we're actively working on, and if we do find any optimisations that we can make, and aren't too disruptive to our architecture, we'll put them into a patch release.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#29313
Avatar

Community saint

Hello,

I have asked my friends to test the search from different proxies. (the live in the same country as the site server is; I live in different country)
thats what they wrote (translations from Lithuanian):

"Only extended search is working for me. Simple search gives error. I use Opera"

I've tried extended search as well. It does work indeed, but not the simple search. I use Firefox.

Maybe it is not proxy

And by the way, How could I replace {1} at the top of the page with someting meaningful.




Last edit: by Mindaugas
Back to the top
 
Posted
Rating:
#29358
Avatar

My main belief that this is a performance issue still stands. I hope to be able to come back with some optimisations in the next few weeks, but I can't make any guarantees. If you'd like me to test performance/optimisations on your server please drop me a PT with some FTP details.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#29359
Avatar

And by the way, How could I replace {1} at the top of the page with someting meaningful.

You've found a bug.
Please change line 44 of sources/cedi.php from:

Code

   return put_in_standard_box($content,do_lang('CEDI_PAGE'));

to:

Code

   return put_in_standard_box($content,do_lang('_CEDI_PAGE'));


and add:

Code

_CEDI_PAGE=CEDI page
to the bottom of the lang/EN/cedi.ini file.
(and an equivalent translation in your LI version)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: