31
builderb
Re: xdirectory
  • 2004/5/11 5:14

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


You're right! I think I need sleep.

You should limit the SQL by CID not LID.

Thanks wtravel!

Builderb



32
builderb
Re: xdirectory
  • 2004/5/11 3:38

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


Ok, after re-reading your last comment I think I know what you're trying to do.

It sounds like to want to have only one category with all the sub-categories for that category show up on the index page.

then possibly create more index pages that show only one category and the sub-categories that go with it.

If that's the case then you will need to edit the sql statement to look like this:

$result=$xoopsDB->query("SELECT cid, title, imgurl FROM ".$xoopsDB->prefix("xdir_cat")." WHERE lid = "YOUR_LID" ORDER BY title") or exit("Error");

replace YOUR_LID with the lid of your chevy trucks category.

Hope this is what you wanted.

-Builderb



33
builderb
Re: xdirectory
  • 2004/5/11 3:24

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


Ok, I'm a little confused.

Are you talking about the index page where all the categories and sub-categories are displayed?

If so, Do you just want to display the parent categories only?

If I could see your example site I can provide better help.

builderb



34
builderb
Re: xdirectory
  • 2004/5/11 2:24

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


are you talking about sub-categories?

If so, it's very easy. If not please specify.

-builderb



35
builderb
Re: Business Directory Created
  • 2004/5/8 16:40

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


That is a good question. I've been thinking of the best way to do this without changing the entire structure of the DB.

It could be done if there was a seperate table linking categories with listings but, that would change the way all the pages currently work.

If anyone has an easier way please let me know.

-Builderb



36
builderb
Re: xdirectory
  • 2004/5/4 4:35

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


Yes, In this file - xdirectory/templates/xdir_links.html
Add this code where you'd like the country to appear:

<{$link.country}>

Same with this file - xdirectory/templates/xdir_listingfull.html

Then refresh the module and voila!

-Builderb



37
builderb
Re: Math
  • 2004/4/16 17:27

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


Try changing this line:
<{if $mod == 2 || $cat.i == $subcat_count}><{/if}>

to this:
<{if $mod == 3 || $cat.i == $subcat_count}><{/if}>

I believe the problem with the layout is the way it handles "extra" columns. What I mean is...If you make this change it will work for all categories that are divisible by 3 but if you have an odd-ball number like "7" categories then you will run into the same problem again. and since we're dealing with a template that is used for all categories and sub-categories it needs to be able to handle the extra 's where they don't quite fill up the row.

I have the same problem but I haven't had the time to dig in and really correct the problem.

Let me know if you or someone else is able to fix it.


Builderb



38
builderb
Re: list mylink categories vertically instead of horizontally
  • 2004/4/5 18:58

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


@ line # 24

replace this:
<{if $category.count is div by 3}>

<{/if}>


with this:


That should work for the index page.

If you want to do the same thing with the sub-category pages you will need to replace the following text @ line 24:

<{if $subcat.count is div by 4}>

<{/if}>

with this:




39
builderb
Re: Jobs Module - Reward
  • 2004/3/31 7:21

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


I was able to get some R&R, unfortunately my work didn't take some R&R with me. It was all waiting for me when I got back

Thanks!

Builderb



40
builderb
Re: Yellow Pages problem
  • 2004/3/30 23:46

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


I appoligize, but it may be awhile before I get a beta copy ready for release of the version I'm using on my site.

I have to add the new functionality to the admin area which is going to take quite a while. Plus some of the new features will have to be easily removeable for those websites that don't require those features.

There is still a lot of work to be done before I would feel comfortable with distributing it.

I tried emailing XOOPS in hopes of getting a spot on their xoopsforge CVS site for the xDirectory module so it would be available for public development but I still haven't heard anything back from them.

I will keep you updated on new versions.

-Builderb




TopTop
« 1 2 3 (4) 5 6 7 ... 14 »



Login

Who's Online

170 user(s) are online (51 user(s) are browsing Support Forums)


Members: 0


Guests: 170


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits