1
Poslanik
Custom block
  • 2005/11/1 17:28

  • Poslanik

  • Just popping in

  • Posts: 95

  • Since: 2005/2/11


When I make a custom block I can't make nothing appear in it. It's currently in centre-right and I tried BB, html but nothing is working. Any ideas?

2
Bender
Re: Custom block
  • 2005/11/1 21:00

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


What do you mean by you tried bb or html? For the content?

If so: Did you chose the correct "Content type" in the settings of your custom block?
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

3
Poslanik
Re: Custom block
  • 2005/11/2 8:44

  • Poslanik

  • Just popping in

  • Posts: 95

  • Since: 2005/2/11


Yes I did, first I Tried html (I just wanted an image to show) and I chose HTML.

I also get this error if I leave the content blank.

Warning [Xoops]: Smarty error: unable to read resource: "db:system_block_dummy.html" in file class/smarty/Smarty.class.php line 1084

------------------------------------------------------------

Do I need to set something in general admin or anything of that sort in order to get this up and running?

4
davidthomas1
Re: Custom block

You may need to generate the system_block_dummy.html template.

1) Go to Admin>System>Templates.

2) Find the System templates link and click the 'list' link (you may be able to generate the template from there, if not, click the 'list' link.

3) Scroll down until you find the system_block_dummy (or similar dummy template) and click the 'generate' link next to it.

That may work.
みんなちがってみんないい。

XOOPS 2.0.13.2

5
Poslanik
Re: Custom block
  • 2005/11/2 18:44

  • Poslanik

  • Just popping in

  • Posts: 95

  • Since: 2005/2/11


Thanks for your post, I believe that's the problem. I say believe because, as usual, things aren't working as they should.

First of all, when I click the list link by the System templates I can't find system_block_dummy in there anywhere. I do have a system_dummy but that isn't it.

Problem is I don't have 1 file in here that has a "generate" link, I got "View" and "Donwload" on all :/

Any ideas?

6
davidthomas1
Re: Custom block - create system_block_dummy.html template

Ok. There's a couple of options

Before you do any of this, backup your DB.

1) Update the system module. ( Admin>System>Modules>click the update icon next to the system module

This will cause XOOPS to reinsert the template data into the DB and may work.

2) Manually add the system_block_dummy code to the DB

I created the SQL you need

INSERT INTO `[xoops_table_prefix]_tplfileVALUES (14661'system''default''system_block_dummy.html''Dummy template for custom blocks or blocks without templates'11296399100'module');

INSERT INTO `[xoops_table_prefix]_tplsourceVALUES (1466'<{$block.content}>');


You could use PHPMyAdmin or similar to run this SQL query on the database. Open the DB, click the 'SQL' button and copy+paste this SQL statement. It's a simple INSERT query that will add the records to the appropriate tables. Note: you will need to change the [xoops_table_prefix] part in the SQL to match yours.

Hope it helps,

D
みんなちがってみんないい。

XOOPS 2.0.13.2

7
Poslanik
Re: Custom block - create system_block_dummy.html template
  • 2005/11/3 10:14

  • Poslanik

  • Just popping in

  • Posts: 95

  • Since: 2005/2/11


Thanks david you helped a lot. Everything is working now, dummy file was generated when I updated the module. Dont' know why it hasn't in the first place but no matter.

Thanks again!

8
davidthomas1
Re: Custom block - create system_block_dummy.html template

Glad it's working

Happy Xooping!
みんなちがってみんないい。

XOOPS 2.0.13.2

9
winabe
Re: Custom block - create system_block_dummy.html template
  • 2005/11/8 9:53

  • winabe

  • Just popping in

  • Posts: 19

  • Since: 2002/5/12


Quote:

davidthomas1 wrote:
Ok. There's a couple of options

Before you do any of this, backup your DB.

1) Update the system module. ( Admin>System>Modules>click the update icon next to the system module

This will cause XOOPS to reinsert the template data into the DB and may work.

2) Manually add the system_block_dummy code to the DB

I created the SQL you need

code ........
D


i confirmed that this solution works !!!!!

thank daviedthomas1 :)

Login

Who's Online

207 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 207


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