Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 + 8 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: Showing a block in one of the template files?
by kaotik on 2006/10/23 17:59:44

You can do it relativly easy:
place this inside the template where you want the random image to appear:
<img src="<{$random_img}>" alt="<{$random_img_alt}>">

Now go into the php file that calls this template file. You are going to create a function inside this file that will have it's result assigned to $random_img using :
$xoopsTpl->assign('random_img',$random_img);
Open the file that controls the random image block (located in folder xCgal/Blocks, Use that code inside your own function. You might have to change the var that gets returned, remeber that you want an image

This is just a general aproach on how to do it. You will now have to dig into the code to figure out precisly how to make it work.
Re: Showing a random block in xcgal template files?
by hydrO on 2006/10/23 17:37:40

Just making it a little clear.

There is a feature in xCgal which can be used to show random pics as a block.

I would like to show these random pictures right below each picture.

I know a way to go around by showing the Center blocks below the pictures in the module.

I was wondering if there is an easier way to do this by modifying the codes in xcgal templates file.

Any help would be greatly appreciated.
Re: Showing a block in one of the template files?
by hydrO on 2006/9/29 7:09:00

bump * * *
Showing a block in one of the template files?
by hydrO on 2006/9/28 16:42:45

Hi,

I wonder if it is possible for me to display Xcgal random pictures just below every picture. I dont' want it to appear as a block, as I have too many blocks at the moment and I want to place these random pics only under single pictures.


Pictures are displayed using xcgal_display.html template file, and I want to place the random picture codes in that file so it appears just below the picture.

I could't find the right codes from any of the files in the module.

Does anyone have an idea?

Who's Online

848 user(s) are online (797 user(s) are browsing Support Forums)


Members: 0


Guests: 848


more...

Donat-O-Meter

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

Latest GitHub Commits