4 Dec 2008
Lenon.com
Home Account Forums Downloads Web Links

ODP module - Need help with more categories link
 
       Lenon.com Forum Index » Modules     View previous topic :: View next topic  
Author Message
Akidrak
Newbie
Newbie


Joined: May 24, 2004
Posts: 5
Location: Porter OK USA

Posted: Wed May 26, 2004 6:26 pm    Post subject: ODP module - Need help with more categories link Reply with quote

I have installed the ODP module and have had to tweak it a little to get it to work with CPG. The only thing I can't seem to figure out is when you do a search on a subject which produces more than five categories, the "more..." link string is not right.

For instance, if you search for "cars" the "more..." link is as follows:
"site name"/modules.php?name=odp?search=cars&utf8=1&morecat=1

I need it to read:
"site name"/modules.php?name=odp&search=cars&utf8=1&morecat=1

I am new to PHP so I am just learning what I can figure out. I may be missing something simple... but it's driving me nuts! Smile

Any help would be appreciated.

And thanks for providing the module to download. I have downloaded several different versions and yours has been the easiest to work with for CPG-Nuke.
Back to top
View user's profile Send private message Visit poster's website
Author Message
VinDSL
Site Admin
Site Admin


Joined: Apr 03, 2003
Posts: 68
Location: Arizona (USA) Admin/mod: Disipal Designs Admin/mod: Nuke Cops

Posted: Wed May 26, 2004 8:27 pm    Post subject: Re: ODP module - Need help with more categories link Reply with quote

Akidrak wrote:
I have installed the ODP module and have had to tweak it a little to get it to work with CPG. The only thing I can't seem to figure out is when you do a search on a subject which produces more than five categories, the "more..." link string is not right...

Yeah, it was fun finding that little booger!

I'm on a public terminal right now. As soon as I get home, I'll look at my files and post the fix here. Wink

BTW, I'll be releasing a VinDSL'ified of phpODP for PHP-Nuke soon, with all the patches in place, center block, et cetera. I'm still playing around with the code - mostly look 'n' feel stuff at this point...
_________________
.::Buds not bombs::.
Back to top
View user's profile Send private message Visit poster's website
Author Message
VinDSL
Site Admin
Site Admin


Joined: Apr 03, 2003
Posts: 68
Location: Arizona (USA) Admin/mod: Disipal Designs Admin/mod: Nuke Cops

Posted: Thu May 27, 2004 1:47 am    Post subject: Reply with quote

Okay, Akidrak, let's light this candle.

I don't know if this is going to help you or not. I suppose it all depends on how much you know about PHP, and how knowledgeable you are with the interrelationship between DMOZ and phpODP, but here is how I solved the '[more...]' problem. I'm afraid you're going to have to read between the lines on this. I don't want to give away all my secrets... Wink

In 'index.php':

Code:
<snip>
    // replacement variables
    $replace = $filename . "?name=ODP&browse=";
    $top = $filename . "?name=ODP";                  // added by VinDSL
    $linkstr = '<a href="';
    $odp_image_path = '/img/';
    $your_image_path = 'modules/ODP/images/';
    $search_next = '<a href="search?';               // patched by VinDSL
    $search_next_replace = '<a href="' . $top . '&amp;'; // patched by VinDSL
    $searchurl = "http://search.dmoz.org/cgi-bin/search?search=";
       
    $startstr = "<table cellspacing";                // start str to search for on the main page
    $endstr = "</td></tr></table>";                  // end str to search for on the main page
    $startbrws = "<hr>";                             // start str to search for when browsing
    $endbrws = '<table width="95%" cellpadding=0';   // end str to search for when browsing
    $startsrch = '<CENTER>Search:';                  // start str to search for when searching
    $endsrch = '<TABLE cellpadding=0';               // end str to search for when searching
    $noresult = 'No sites matching your query were'; // feedback from dmoz.org when no sites are found
<snip>

Does this make sense? If not, like I said, I'll be releasing my own version soon... Twisted Evil
_________________
.::Buds not bombs::.
Back to top
View user's profile Send private message Visit poster's website
Author Message
Akidrak
Newbie
Newbie


Joined: May 24, 2004
Posts: 5
Location: Porter OK USA

Posted: Thu May 27, 2004 8:12 am    Post subject: Reply with quote

Awesome, VinDSL! That did the trick.

Thanks so much for taking the time to help with this... quick, even! Greatly appreciated.

I was going to start working on the center block next but I think I will wait for yours.
Back to top
View user's profile Send private message Visit poster's website
Author Message
Akidrak
Newbie
Newbie


Joined: May 24, 2004
Posts: 5
Location: Porter OK USA

Posted: Fri May 28, 2004 12:43 pm    Post subject: Reply with quote

OK... I have been testing this on my local server and everything was working great. But when I uploaded the module to my site, I realized that the module name was case sensitive so I changed all that.

Now everything is working fine, except for the copyright. It worked fine on my local server but now it gives an error message that says you don't have access to view the requested page.

The copyright doesn't affect the function of the ODP module. It works great. But, if someone were to click on the copyright, it would be nice if it worked. Smile

Any ideas?
Back to top
View user's profile Send private message Visit poster's website
Author Message
VinDSL
Site Admin
Site Admin


Joined: Apr 03, 2003
Posts: 68
Location: Arizona (USA) Admin/mod: Disipal Designs Admin/mod: Nuke Cops

Posted: Fri May 28, 2004 5:37 pm    Post subject: Reply with quote

Hrm... I don't know why it's doing that. It's hard to say without looking at the code and/or your setup.

I'm getting closer to releasing my hack. I spent the last day getting those pesky underscores out of the breadcrumbs, and making the categories display in the titlebar at the top of the browser window. Like I said, look 'n' feel stuff.

I'll play with it a few more days and see if anything else is bugging me... Cool
_________________
.::Buds not bombs::.
Back to top
View user's profile Send private message Visit poster's website
Author Message
Akidrak
Newbie
Newbie


Joined: May 24, 2004
Posts: 5
Location: Porter OK USA

Posted: Tue Jun 08, 2004 11:01 pm    Post subject: Reply with quote

I had the same problem with the copyright link on MS Analysis.

I posted a message on the forum at matyscripts and apparently the copyright information has been arranged differently for CPG-Nuke.

Mat posted a reply with a script to fix the problem and it worked great so I thought I would post here in case anyone else is having the same issues with the copyright link.

This is the link to the post:

http://www.matyscripts.com/modules.php?name=Forums&file=viewtopic&p=235#235
Back to top
View user's profile Send private message Visit poster's website
Author Message
sandman229
Newbie
Newbie


Joined: Jun 11, 2004
Posts: 2

Posted: Wed Jun 16, 2004 8:56 am    Post subject: Reply with quote

Akidrak wrote:
OK... I have been testing this on my local server and everything was working great. But when I uploaded the module to my site, I realized that the module name was case sensitive so I changed all that.

Now everything is working fine, except for the copyright. It worked fine on my local server but now it gives an error message that says you don't have access to view the requested page.

The copyright doesn't affect the function of the ODP module. It works great. But, if someone were to click on the copyright, it would be nice if it worked. Smile

Any ideas?


And where can I get this file?? I have looked here and it not in the download section..
Back to top
View user's profile Send private message
Author Message
Akidrak
Newbie
Newbie


Joined: May 24, 2004
Posts: 5
Location: Porter OK USA

Posted: Sat Jun 19, 2004 1:26 am    Post subject: Reply with quote

sandman,

You can download the file here:
http://www.bie.no/products/phpodp/

You may have to make some modifications.
_________________
www.NFO2.com - for gourmet coffee fans
Back to top
View user's profile Send private message Visit poster's website
Author Message
sandman229
Newbie
Newbie


Joined: Jun 11, 2004
Posts: 2

Posted: Sat Jun 19, 2004 8:51 am    Post subject: Reply with quote

Akidrak wrote:
sandman,

You can download the file here:
http://www.bie.no/products/phpodp/

You may have to make some modifications.



What kind of modifications do I need?? I noticed there isn't any index.php with the files..

Hmmm I guess I can use Nukewrap for it. That should work..
Back to top
View user's profile Send private message
Display posts from previous:   
       Lenon.com Forum Index » Modules All times are GMT - 5 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB 2.0.19 © 2002, 2007 phpBB Group
FlowControl Forums Theme by Disipal Designs

Copyright 1996-2008 - Lenon.com - All Rights Reserved.

This Website is Powered by an Enhanced Version of PHP-Nuke
The Most Advanced Content Management System in the World.

Script generation time: 0.5129 seconds  (PHP 95% - MySQL 5%)
Queries: 26 | Views last 5 mins: 88 | Server load: Perfect  (0.69)
Disipal Designs