1
TexAcoon
Help with custom blocks
  • 2010/5/21 5:50

  • TexAcoon

  • Just popping in

  • Posts: 35

  • Since: 2010/5/10


So far so good .. my Xoops site is really starting to shape up and very pleased with the programing by the Xoops team!

After learning a lot from supporters .. Where I have an issue is on custom blocks .... Hopefully I'll get better as time progresses ..

What I want to do is add a random image link to a custom block for my top page using a php file.

example:http://www.myhomepage.com/randomimage.php

Currently randomimage.php is working like it should rotating my images when I refresh the php script ..

Problem is formating (editing) a script (or code) into a custom block ..


Thanks!

2
Burning
Re: Help with custom blocks
  • 2010/5/21 10:28

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi' Doug

When you create / edit a block, you can choose wich language to insert. A list is available under edit area : php, xoopscode or html.

Other solution :
• tarik as made a very simple module to slide images
• there is something more sophisticated here thanks to JJDai
Still learning CSS and... english

3
red_Slider
Re: Help with custom blocks

There is also mastop go2
and new solution:
spotlight (beta) from xoops China

PS Burning - hmmm I didn't know about Tarics module, so thanks!

4
TexAcoon
Re: Help with custom blocks
  • 2010/5/21 23:49

  • TexAcoon

  • Just popping in

  • Posts: 35

  • Since: 2010/5/10


Thanks Guys! ...

I'll give them a try .. I am acutally using Coppermine ... one because I am familure with the program .. and have it integrated in my Xoops 2.4.4 ... Works like a champ .. Just can't get my radom images to post on the Top Page ..


5
TexAcoon
Re: Help with custom blocks
  • 2010/5/22 0:32

  • TexAcoon

  • Just popping in

  • Posts: 35

  • Since: 2010/5/10


Well I took a look at all three of them ...

I have no idea what the READ says .. LOL! ..
Can't read all the different (foreign) languages ..

6
red_Slider
Re: Help with custom blocks

use translate.google.com

7
DonCurioso
Re: Help with custom blocks

Texacoon,

it's very easy to do. Use a rotator or similar & load it over a block

Ragards
HispaXoops | Xoops España

That's the way i like it! | Nada mejor que una Alhambra bien helada con aceitunas...

8
BJS3D
Re: Help with custom blocks
  • 2011/5/15 17:09

  • BJS3D

  • Just popping in

  • Posts: 7

  • Since: 2010/2/11


Understandable, this is an old thread but still valid. The problem is getting certain php code to work directly within the block. The solution is to use an iframe to load the php file.

We had a similar issue recently, attempting to generate random image links with php within a custom block. The code functioned just fine outside xoops on the test server. We concluded that it would be better to just use an html iframe within the custom block to load the php... and it worked.

Visit That Thread

Login

Who's Online

199 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 199


more...

Donat-O-Meter

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

Latest GitHub Commits