 |
 |
 |
 |
 |
| Author |
Message |
Akidrak Newbie


Joined: May 24, 2004 Posts: 5 Location: Porter OK USA
|
Posted: Wed May 26, 2004 7:26 pm Post subject: ODP module - Need help with more categories link |
|
|
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!
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 |
|
|
 |
 |
 |
 |
 |
 |
 |
 |
| Author |
Message |
VinDSL Site Admin


Joined: Apr 03, 2003 Posts: 68 Location: Arizona (USA) Admin/mod: Disipal Designs Admin/mod: Nuke Cops
|
Posted: Wed May 26, 2004 9:27 pm Post subject: Re: ODP module - Need help with more categories link |
|
|
| 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.
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 |
|
|
 |
 |
 |
 |
 |
 |
 |
 |
| Author |
Message |
VinDSL Site Admin


Joined: Apr 03, 2003 Posts: 68 Location: Arizona (USA) Admin/mod: Disipal Designs Admin/mod: Nuke Cops
|
Posted: Thu May 27, 2004 2:47 am Post subject: |
|
|
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...
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 . '&'; // 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...  _________________ .::Buds not bombs::. |
|
| Back to top |
|
|
 |
 |
 |
 |
 |
 |
 |
 |
| Author |
Message |
Akidrak Newbie


Joined: May 24, 2004 Posts: 5 Location: Porter OK USA
|
Posted: Thu May 27, 2004 9:12 am Post subject: |
|
|
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 |
|
|
 |
 |
 |
 |
 |
 |
 |
 |
| Author |
Message |
Akidrak Newbie


Joined: May 24, 2004 Posts: 5 Location: Porter OK USA
|
Posted: Fri May 28, 2004 1:43 pm Post subject: |
|
|
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.
Any ideas? |
|
| Back to top |
|
|
 |
 |
 |
 |
 |
 |
 |
 |
| Author |
Message |
VinDSL Site Admin


Joined: Apr 03, 2003 Posts: 68 Location: Arizona (USA) Admin/mod: Disipal Designs Admin/mod: Nuke Cops
|
Posted: Fri May 28, 2004 6:37 pm Post subject: |
|
|
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...  _________________ .::Buds not bombs::. |
|
| Back to top |
|
|
 |
 |
 |
 |
 |
 |
 |
 |
| Author |
Message |
Akidrak Newbie


Joined: May 24, 2004 Posts: 5 Location: Porter OK USA
|
Posted: Wed Jun 09, 2004 12:01 am Post subject: |
|
|
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 |
|
|
 |
 |
 |
 |
 |
 |
 |
 |
| Author |
Message |
sandman229 Newbie


Joined: Jun 11, 2004 Posts: 2
|
Posted: Wed Jun 16, 2004 9:56 am Post subject: |
|
|
| 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.
Any ideas? |
And where can I get this file?? I have looked here and it not in the download section.. |
|
| Back to top |
|
|
 |
 |
 |
 |
 |
 |
 |
 |
| Author |
Message |
Akidrak Newbie


Joined: May 24, 2004 Posts: 5 Location: Porter OK USA
|
|
| Back to top |
|
|
 |
 |
 |
 |
 |
 |
 |
 |
| Author |
Message |
sandman229 Newbie


Joined: Jun 11, 2004 Posts: 2
|
Posted: Sat Jun 19, 2004 9:51 am Post subject: |
|
|
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 |
|
|
 |
 |
 |
 |
| |
 |