1
Blake
Modifying Recent Comments Links
  • 2003/11/3 8:21

  • Blake

  • Just popping in

  • Posts: 4

  • Since: 2003/10/25


I have the recent comments block enabled on some pages and I was wondering if there's a way to change how it links to certain comments.

Currently, it uses this format:

mysite.com/modules/myalbum/photo.php?lid=1372&com_id=36&com_rootid=36&com_mode=thread&#comment36

I want com_mode to always =flat. Is there a way I can hard code that into the link somehow?

2
onokazu
Re: Modifying Recent Comments Links
  • 2003/11/3 9:51

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Yes, you can just change the com_mode=thered to com_mode flat.

3
Blake
Re: Modifying Recent Comments Links
  • 2003/11/3 16:33

  • Blake

  • Just popping in

  • Posts: 4

  • Since: 2003/10/25


Where in the code can I do that? Which file should I edit??

4
PureLuXus
Re: Modifying Recent Comments Links
  • 2003/11/3 18:14

  • PureLuXus

  • Not too shy to talk

  • Posts: 116

  • Since: 2002/1/3 2


system - templates

5
Montisarts
Re: Modifying Recent Comments Links
  • 2003/11/3 18:24

  • Montisarts

  • Not too shy to talk

  • Posts: 158

  • Since: 2003/1/26


That's what I thought, but it's not in system_block_comments.html. I can't find it either...
Can anyone be more specific?

<table width="100%" cellspacing="1" class="outer">
  <{foreach 
item=comment from=$block.comments}>
      <
td align="center"><img src="<{$xoops_url}>/images/subject/<{$comment.icon}>" alt="" />td>
    <
td><div align="left"><{$comment.title}>div>td>
        <
td align="center"><div align="left"><{$comment.poster}>div>td>
      tr>
  <{/foreach}>
table>


it's not in there.. but I can't find it anywhere...

6
Montisarts
Re: Modifying Recent Comments Links
  • 2003/11/3 18:34

  • Montisarts

  • Not too shy to talk

  • Posts: 158

  • Since: 2003/1/26


ok I found it:

it is in /modules/system/blocks/system_blocks.php line 344

change com_mode=thread to com_mode=flat and you are done!

greetz Frank

7
Blake
Re: Modifying Recent Comments Links
  • 2003/11/4 3:18

  • Blake

  • Just popping in

  • Posts: 4

  • Since: 2003/10/25


Thanks! Worked perfectly.

Login

Who's Online

311 user(s) are online (235 user(s) are browsing Support Forums)


Members: 0


Guests: 311


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