1
jayjay1
xdirectory
  • 2004/5/3 22:21

  • jayjay1

  • Friend of XOOPS

  • Posts: 12

  • Since: 2004/4/22


I want to add country data to listing...
The submit listing has form field for country but it does not show on listing?

How do i add this to the listing?

Help is greatly appreciated

jj

2
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

3
jayjay1
Re: xdirectory
  • 2004/5/6 3:47

  • jayjay1

  • Friend of XOOPS

  • Posts: 12

  • Since: 2004/4/22


Did not work!


I inserted <{$link.country}> into the files but all you see is
<{$link.country}> not the information from database?

The only thing i did not do is refresh the module... how do i refresh the module? do you mean refresh browser?

I have:

Update module template .html files from themes/your theme/templates directory?


Set to YES.


jj

4
jayjay1
Re: xdirectory
  • 2004/5/6 4:06

  • jayjay1

  • Friend of XOOPS

  • Posts: 12

  • Since: 2004/4/22


It works:)

I had copied <{$link.country}> from forum and then pasted it into files this added additional characters to code...

Thanks for the Help...

Now can you PLEASE:)

Tell me how to add print button to the listing so that a pop up window displays the listing and user can then print it... I was looking at the news module which uses print.php can this also work to print the listing?

Again thanks for Your Help:)

jj


5
Mithrandir
Re: xdirectory

The news module print.php is a special file for news, fetching a news story and showing it in a printer-friendly version.

You can, however, copy it to the xdirectory and modify it to take an xdirectory item and show it in a similar fashion.

6
rabideau
Re: xdirectory
  • 2004/5/6 9:39

  • rabideau

  • Home away from home

  • Posts: 1042

  • Since: 2003/4/25


Hello BuilderB...

Another quick question on yellow pages. Is it possible that a link counter might be available in a forthcoming version? I would find that feature very useful, as a way of seeing which Yellow Page access/links are being used.

7
jayjay1
Re: xdirectory
  • 2004/5/9 21:46

  • jayjay1

  • Friend of XOOPS

  • Posts: 12

  • Since: 2004/4/22


Hello,

Thankyou for your input...

Can you give me a few details???

Do i only copy print.php into xdirectory or do i have to include other files from the news module...

Best Regards,

JJ

8
jayjay1
Re: xdirectory
  • 2004/5/11 2:15

  • jayjay1

  • Friend of XOOPS

  • Posts: 12

  • Since: 2004/4/22


Hello,


Is there a way to limit catagory listings?

Example:

I only want to display Catagory "Chevy Trucks" when xdirectory/index is loaded.

Instead of loading all of the catagories....

Best Regards:

JJ

9
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

10
jayjay1
Re: xdirectory
  • 2004/5/11 2:34

  • jayjay1

  • Friend of XOOPS

  • Posts: 12

  • Since: 2004/4/22


Wow!

Quickest reply ever

Yes...I think your correct and i want subcategories





Login

Who's Online

116 user(s) are online (45 user(s) are browsing Support Forums)


Members: 0


Guests: 116


more...

Donat-O-Meter

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

Latest GitHub Commits