81
kalamata
WebLinks
  • 2005/10/29 20:23

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I am trying to present web links ctaegories and sub-categories in a different way than the original. I would like to have a row with two columns for each web link category - the one on the left will have the name of the category and the column on the right will have the name of the sub-categories. For example, if you have two categories and the second one has two sub-categories, then I would like my display to be like the following:
<pre>
Category 1 (4)
Category 2 (5) Sub-Category 1 (12)
Sub-Category 2 (12)
</pre>

I wrote the following code for that:
<{if count($categoriesgt 0}>
<
hr />
<
table border='0' cellspacing='5' cellpadding='0' align="center">
<
tr>
<!-- 
Start category loop -->
<{foreach 
item=category from=$categories}>

<
td valign="top">

<{if 
$category.image != ""}>
<
a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$category.id}>"><img src="<{$category.image}>" height="50" border="0" alt="" /></a>
<{/if}>

</
td>
<
td valign="top" width="40%"><a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$category.id}>"><b><{$category.title}></b></a>&nbsp;(<{$category.totallink}>)<br /></td>
<{if 
count($infercategoriesgt 0}>
<{foreach 
item=subcat from=$infercategories}>

<
td>
<
a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$subcat.id}>"><b><{$subcat.title}></b></a>&nbsp;(<{$subcat.totallink}>)
</
td>
<{/foreach}>
<{/if}>
</
tr>
<
tr>

<{/foreach}>

However, I have problems in getting the sub-categories to work - if I am not wrong infercategories is used by XOOPS to denote sub-categories, or am I wrong?

I look forward to hearing from you soon.

Thanks,
George



82
kalamata
WebLinks
  • 2005/10/12 11:21

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I am trying to present web links ctaegories and sub-categories in a different way than the original. I would like to have a row with two columns for each web link category - the one on the left will have the name of the category and the column on the right will have the name of the sub-categories. For example, if you have two categories and the second one has two sub-categories, then I would like my display to be like the following:
<pre>
Category 1 (4)
Category 2 (5) Sub-Category 1 (12)
Sub-Category 2 (12)
</pre>

I wrote the following code for that:

<{if count($categories) gt 0}>
<hr />
<table border='0' cellspacing='5' cellpadding='0' align="center">
<tr>
<!-- Start category loop -->
<{foreach item=category from=$categories}>

<td valign="top">

<{if $category.image != ""}>
<a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$category.id}>"><img src="<{$category.image}>" height="50" border="0" alt="" /></a>
<{/if}>

</td>
<td valign="top" width="40%"><a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$category.id}>"><b><{$category.title}></b></a>&nbsp;(<{$category.totallink}>)<br /></td>
<{if count($infercategories) gt 0}>
<{foreach item=subcat from=$infercategories}>

<td>
<a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$subcat.id}>"><b><{$subcat.title}></b></a>&nbsp;(<{$subcat.totallink}>)
</td>
<{/foreach}>
<{/if}>
</tr>
<tr>

<{/foreach}>

However, I have problems in getting the sub-categories to work - if I am not wrong infercategories is used by XOOPS to denote sub-categories, or am I wrong?

I look forward to hearing from you soon.

Thanks,
George



83
kalamata
Tropical Mail
  • 2005/10/9 20:31

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I installed Tropical Mail on my XOOPS site, but can not see any option for setting it visible as a block.It is accessible from the main menu, but not as a block.

Is that correct or am I doing something completely wrong?

I look forward to hearing from you soon.

Thanks in advance.

George



84
kalamata
Web Links Presentation
  • 2005/10/6 21:40

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


to be like the following:

Category 1 (4)
Category 2 (5) Sub-Category 1 (12)
Sub-Category 2 (12)

I wrote the following code for that:

<{if count($categories) gt 0}>
<hr />
<table border='0' cellspacing='5' cellpadding='0' align="center">
<tr>
<!-- Start category loop -->
<{foreach item=category from=$categories}>

<td valign="top">

<{if $category.image != ""}>
<a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$category.id}>"><img src="<{$category.image}>" height="50" border="0" alt="" /></a>
<{/if}>

</td>
<td valign="top" width="40%"><a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$category.id}>"><b><{$category.title}></b></a>&nbsp;(<{$category.totallink}>)<br /></td>
<{if count($infercategories) gt 0}>
<{foreach item=subcat from=$infercategories}>

<td>
<a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$subcat.id}>"><b><{$subcat.title}></b></a>&nbsp;(<{$subcat.totallink}>)
</td>
<{/foreach}>
<{/if}>
</tr>
<tr>

<{/foreach}>

However, I have problems in getting the sub-categories to work - if I am not wrong infercategories is used by XOOPS to denote sub-categories, or am I wrong?

I look forward to hearing from you soon.

Thanks,
George



85
kalamata
Web Links Presentation
  • 2005/10/5 12:37

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I am trying to present web links ctaegories and sub-categories in a different way than the original. I would like to have a row with two columns for each web link category - the one on the left will have the name of the category and the column on the right will have the name of the sub-categories. For example, if you have two categories and the second one has two sub-categories, then I would like my display to be like the following:

Category 1 (4)
Category 2 (5) Sub-Category 1 (12)
Sub-Category 2 (12)

I wrote the following code for that:

<{if count($categories) gt 0}>
<hr />
<table border='0' cellspacing='5' cellpadding='0' align="center">
<tr>
<!-- Start category loop -->
<{foreach item=category from=$categories}>

<td valign="top">

<{if $category.image != ""}>
<a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$category.id}>"><img src="<{$category.image}>" height="50" border="0" alt="" /></a>
<{/if}>

</td>
<td valign="top" width="40%"><a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$category.id}>"><b><{$category.title}></b></a>&nbsp;(<{$category.totallink}>)<br /></td>
<{if count($infercategories) gt 0}>
<{foreach item=subcat from=$infercategories}>

<td>
<a href="<{$xoops_url}>/modules/mylinks/viewcat.php?cid=<{$subcat.id}>"><b><{$subcat.title}></b></a>&nbsp;(<{$subcat.totallink}>)
</td>
<{/foreach}>
<{/if}>
</tr>
<tr>

<{/foreach}>

However, I have problems in getting the sub-categories to work - if I am not wrong infercategories is used by XOOPS to denote sub-categories, or am I wrong?

I look forward to hearing from you soon.

Thanks,
George



86
kalamata
Re: News Module
  • 2005/6/13 19:19

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Did a bit of research and found out that the block using news_block_top.html as its template is news_top.php.

I looked in there for $xoopstpl->assign statements, but there were none. There were a few in article.php , but none of them related to the date or the title of the story.

Basically, I want to add an assign statement - pressumably it would need to be done in news_top.php - so that the introductory text (bodytext in the database) is included on the page as well.

Any help would be valuable.

Thanks,
George



87
kalamata
Re: News Module
  • 2005/6/12 22:40

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


I am using the first version (version 1.1). Any advice would be really helpful.



88
kalamata
News Module
  • 2005/6/8 22:56

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

Not sure whether this is the right forum or the modules forum would be more appropriate, but since the news module is included in the core XOOPS version, I thought I would try this one.

I am a bit puzzled with the template about Recent News. What I want it to do is display the introductory text as well - or even better a set number of lines from every story.

I started workion on the news_block_new.html template file as I think it is the right one; that's where I start having problems. I noticed the code and thought that by adding a line at the end saying <p><{$news.hometext}></p> (as hometext is the field in the database holding the introductory text) everything would be fine. It doesn't work though:(

Could somebody shed some light into this?

Also, it would be helpful if we could have some explanation about how the database fields map to Smarty variables as this would allow for easy manipulation of the templates.

Thanks,
George



89
kalamata
Re: User Registration
  • 2005/6/7 19:41

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Great, works fine. Is there a way we can get documentation about these PHP functions, what arguments they expect, what is their functionality and so on?

If possible, that would be ideal.

Thanks,
George



90
kalamata
User Registration
  • 2005/6/7 18:49

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I want the users of my site when registering to fill in certain boxes - say their MSN box.

My understanding is that it would be achieved through Javascript - however I do not know what file to modify - think it is include/regform.php but I am not sure how to apply the changes.

Could somebody please help?

Thanks,
George




TopTop
« 1 ... 6 7 8 (9) 10 11 12 »



Login

Who's Online

194 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 194


more...

Donat-O-Meter

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

Latest GitHub Commits