1
ladon
Adding blocks in news module
  • 2004/1/14 18:43

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


I’ve been trying to add a block to the news module. Unfortunately I haven’t been very successful at it. I’ve read the wikki on this matter but it didn’t help me. The goal for this block is showing latest news by category. Eventually I want to be able to create several blocks to show latest news from various category’s.

Here’s what I’ve done so far:
I created a html file in ..\modules\news\templates\blocks (basically a copy of the “news_block_new.html”). I Created a PHP file in ..\modules\news\blocks. basically a copy of the “news_top.php”. I changed the SQL (edited SQL query to only show news from a specific topicid). Then I made changes in the xoops_version.php file (added block info).

Now I thought all I had to do was generate the block (html) in the template manager. Unfortunately after I tried to generate the block I received the following error:

Selected file does not exist)

I hope somebody can tell what it is I’m forgetting. Staring at my screen doesn’t seem to help Thank you

2
chapi
Re: Adding blocks in news module
  • 2004/1/14 18:48

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


When you add a new block, don't forget to update the module!

3
ladon
Re: Adding blocks in news module
  • 2004/1/14 18:53

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Well, thats just me, I always forget those kind of little things. Thank you very much, it's working now!

4
Mithrandir
Re: Adding blocks in news module

This is something I will incorporate in the next version of the News module and I would be very interested in looking at your solution.

If you wanna share it, PM me and I'll give an email addy to send it to.

5
jfebus
Re: Adding blocks in news module
  • 2004/9/9 12:29

  • jfebus

  • Just popping in

  • Posts: 97

  • Since: 2004/9/1 1


I just follow the instruction and after updating the module I am still getting a "Selected file does not exist)" error.

Any hints?

Best regards,

Jose Febus

6
batdevis
Re: Adding blocks in news module
  • 2005/2/18 16:10

  • batdevis

  • Just popping in

  • Posts: 41

  • Since: 2002/8/16


Quote:

jfebus wrote:
I just follow the instruction and after updating the module I am still getting a "Selected file does not exist)" error.

Any hints?

Best regards,

Jose Febus


the problem is that sometimes the template database isn't update when you update the module, I don't know why.

A temporary solution is:

- backup your module MySQL tables (ex with phpMyAdmin)
- take note of the module preferences and of the blocks
- uninstall the module
- install the module
- update the MySQL tables
- set the preferences and the blocks

bye
Devis_

Login

Who's Online

170 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 170


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