21
baloch
Re: Need help regarding news layout by topic
  • 2007/5/30 14:18

  • baloch

  • Just popping in

  • Posts: 34

  • Since: 2006/3/22


news_bY_topic.html

div class="item">
<table width='100%' border='0'>
<tr>
<{section name=i loop=$columns}>
<td width="<{$columnwidth}>%" valign="top">
<{foreach item=topic from=$columns[i]}>
<div class="itemBody">
<div class="itemInfo"><span class="itemText"><a href="<{$xoops_url}>/modules/news/index.php?storytopic=<{$topic.id}>"><{$topic.title}></a></span></div>
<{counter start=0 print=false assign=storynum}>
<{foreach item=story from=$topic.stories}>
<{if $storynum == 0}>
<{include file="db:news_item.html" story=$story}><br />
<{else}>
<{if $storynum == 0}>
<ul>
<{/if}>
<li><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>"><{$story.title}></a> (<{$story.posttime}>)</li>
<{/if}>
<{counter}>
<{/foreach}>
<{if $storynum > 0}>
</ul>
<a href="<{$xoops_url}>/modules/news/index.php?storytopic=<{$topic.id}>"><{$lang_morereleases}><{$topic.title}></a>
<{/if}>
</div><br />
<{/foreach}>
</td>
<{/section}>
but i want this to show three topics in full and the rest in title in news by topic mode. i dont want the classic one
thanks in advance



22
baloch
Re: Need help regarding news layout by topic
  • 2007/5/30 13:56

  • baloch

  • Just popping in

  • Posts: 34

  • Since: 2006/3/22


I dont think it is defined in template. it might be somewhere defined in classes. but i canot find it.
i checked in XOOPS version and modinfo it is there but cannot find the link to where it is defined i mean the number of the topics etc



23
baloch
Need help regarding news layout by topic
  • 2007/5/30 13:16

  • baloch

  • Just popping in

  • Posts: 34

  • Since: 2006/3/22


News Display Layout

Classic shows all news ordered by date of publish. News by topic will group the news by topic with the latest story in full and the others with just the title.

now i want to use news by topic but i want to display 3-5 artilces in full and others with just title instead of displaying latest story in full.

how can i do that?
Plz help



24
baloch
Re: Need help Integrating html page into xoops.
  • 2006/7/22 16:06

  • baloch

  • Just popping in

  • Posts: 34

  • Since: 2006/3/22


I am trying to integrate external html page into xoops. the one you reffered me is to e.g include('heck.html');
I tried this method it is not showing the jpeg files of the external site in my site.

anyway thanks for the link but it dint work for me.



25
baloch
Need help Integrating html page into xoops.
  • 2006/7/22 15:28

  • baloch

  • Just popping in

  • Posts: 34

  • Since: 2006/3/22


I need help in integrating a external html page into my site. But i am having problem. Is there any one help me regrading this.

I used include and then url it worked but was not showing the content the site i am integrating uses jpeg files.
then i made my code like this

include 'mainfile.php';
$xoopsOption['template_main'] = 'index.html';
include XOOPS_ROOT_PATH.'/header.php';
$go_to_address1="http://whatever.com/news.htm";
$go_to_address=rawurldecode($go_to_address1);
OpenTable();
echo "<iframe SRC=\"".$go_to_address."\" width=\"100%\" height=\"1200\"
framespacing=0 frameborder=no border=0 scrolling=auto></iframe>";
echo "<br><center>NB. Using iframes!</center><br>";
CloseTable();
include_once XOOPS_ROOT_PATH.'/footer.php';
?>
but it is displaying a blank page.

anyone out here to help me in embeding this external html page into my XOOPS site.

Thanks in advance.



26
baloch
Cloned Article module for xoops.
  • 2006/5/22 19:42

  • baloch

  • Just popping in

  • Posts: 34

  • Since: 2006/3/22


Guys here is a article cloned module if anyone is interested in using it. i have cloned it for my site and using it. working perfectly.

Article2 module



27
baloch
Getting hit by ddos
  • 2006/3/22 8:42

  • baloch

  • Just popping in

  • Posts: 34

  • Since: 2006/3/22


I have been using XOOPS for 2 years.my site got hit by ddos recenlty. i upgraded my site to the latest version and tried to block the ips of attackers in my .htaccess file. still no remedy.

any one out here to help please

thanks
Baloch




TopTop
« 1 2 (3)



Login

Who's Online

274 user(s) are online (196 user(s) are browsing Support Forums)


Members: 0


Guests: 274


more...

Donat-O-Meter

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

Latest GitHub Commits