31
GSake
Re: last news post in a block
  • 2005/1/17 11:15

  • GSake

  • Just popping in

  • Posts: 51

  • Since: 2004/5/30


so, I found the solution!!

here's the rebuilt code for the news template of spotlight 2.1 after combining the original and the one from linuxgamers!

Quote:

<div class="item">
<div class="itemTitle">
<{if $block.storyid != "0"}>
<a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$block.storyid}>"><b><{$block.newstitle}></b></a>
<{else}>
<{$block.newstitle}>
<{/if}>
</div>
<div class="itemInfo">
<{$block.lang_by}> <{$block.author}>
</div>
<div class="itemBody">
<a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$block.storyid}>">
<img src="<{$xoops_url}>/<{$block.imgpath}>/<{$block.image}>" alt="<{$block.newstitle}>" width="<{$block.imgwidth}>" height="<{$block.imgheight}>" align="left"/>
</a>
<{$block.hometext_news}>
</div>
<div style="clear: both;"></div>
<div class="itemFoot">
<a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$block.storyid}>"><{$block.lang_read}></a>
</div>
</div>

<{if $block.lang_other_news !=""}>
<div class="item">
<div>
<{foreach item=news from=$block.stories}>
<div class="itemInfo">
<div class="itemTitle"><a href="<{$xoops_url}>/modules/news/article.php?storyid=<{$news.id}>"><{$news.title}></a>&nbsp;(<{$news.hitsordate}>)<br/>
</div>
<div class="itemBody">
<{$news.hometext}>
</div>
<div style="clear: both;">&nbsp;</div>
</div>
<{/foreach}>
</div>
<div style="clear: both;">&nbsp;</div>
<{if $block.lang_ministats != ""}>
<div class="itemFoot">
<{$block.lang_ministats}>&nbsp; <{$block.ministats}>
</div>
<{/if}>
</div>
<{/if}>



32
GSake
my homepage
  • 2005/1/17 1:40

  • GSake

  • Just popping in

  • Posts: 51

  • Since: 2004/5/30


GHome

well, this is my homepage, unfortunately impossible to read, all in Greek.


any comments welcome!



33
GSake
Re: last news post in a block
  • 2005/1/17 1:19

  • GSake

  • Just popping in

  • Posts: 51

  • Since: 2004/5/30


unfortunatelly the way spotlight presents things is awful... and it has some bug too...
also the template is really tough coded 4me to be edited quickly and safely!

isn't a code with some php functions to call a specific news post via id in a block??

I want to show only this part:

<div class="item">
<div class="itemBody">
<{$story.imglink}>
<p class="itemText"><{$story.text}></p>
</div>
<div class="itemFoot">
<span class="itemAdminLink"><{$story.adminlink}></span> <span class="itemPermaLink"><{$story.morelink}></span>
</div>
</div>

like I wrote before...
and perhaps the title!

thnks in advance and sorry for being annoying...



34
GSake
Re: last news post in a block
  • 2005/1/16 20:01

  • GSake

  • Just popping in

  • Posts: 51

  • Since: 2004/5/30


thanks a lot!!!!!

you saved me from lots of lost hours...



35
GSake
last news post in a block
  • 2005/1/16 18:22

  • GSake

  • Just popping in

  • Posts: 51

  • Since: 2004/5/30


is there a way to build a custom block for the news module in order to display only the last news post, like in news index.php,with "read more" link,icon, etc,etc. I mean not only the link like in latest posts block.

but the block should contain only the last post from every (or even better from a chosen) news category.

are there any suggestions for how to combine the existing block .html templates' code?

After managing the code, installing should be easy by just updating news module on admin menu after uploading the extra html temlate block file in /modules/news/templates/blocks/ dir.


the following is what i want to display.
I am missing the how to call in from the db part that should wrap this code

Quote:

<div class="item">
<div class="itemBody">
<{$story.imglink}>
<p class="itemText"><{$story.text}></p>
</div>
<div class="itemFoot">
<span class="itemAdminLink"><{$story.adminlink}></span> <span class="itemPermaLink"><{$story.morelink}></span>
</div>
</div>



36
GSake
Re: Xtremguestbook
  • 2005/1/13 8:34

  • GSake

  • Just popping in

  • Posts: 51

  • Since: 2004/5/30


the module adds a file, xoopscodes.php, a file that already exists on my server.

There are clearly some additions on the code.

Has anyone had problems with that?

I can definately bkup the default file by just renaming it but I don't won't to risk any mulfunctions in the first place!



37
GSake
Re: Dynamic menu - somehow should able be done
  • 2005/1/8 18:40

  • GSake

  • Just popping in

  • Posts: 51

  • Since: 2004/5/30


I would propose css menus...

much better, faster, cleaner, easier.


dhtml and java menus are always "external codes" and cause speed problems or make our lives difficult.

the only way to display 100% correctly a dhtml menu is using the theme html file.

otherwise it is tricky to find a good FREE dhtml menu and install in a block.



38
GSake
Re: How do I embed a outside page in xoops
  • 2004/8/7 22:03

  • GSake

  • Just popping in

  • Posts: 51

  • Since: 2004/5/30


why don't u try the iframe module!!

easy 2 use and very effective!



39
GSake
Re: Help with upgrading from 2.0.6 to 2.0.7
  • 2004/7/10 18:18

  • GSake

  • Just popping in

  • Posts: 51

  • Since: 2004/5/30


i uploaded the htlm folder and it sais to me: "script not allowwed"!!!!

what have i done wrong?



40
GSake
Re: main menu disapeared!!
  • 2004/5/30 14:32

  • GSake

  • Just popping in

  • Posts: 51

  • Since: 2004/5/30


thanks a lot!!!!!

after trying some ideas like yours, I have finaly made it visible again!!




TopTop
« 1 2 3 (4) 5 »



Login

Who's Online

262 user(s) are online (190 user(s) are browsing Support Forums)


Members: 0


Guests: 262


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