How to implement this code

Discussion forum for MOD Writers regarding MOD Development.
Locked
Jhonne
Registered User
Posts: 21
Joined: Sat Feb 27, 2010 7:36 pm

How to implement this code

Post by Jhonne » Fri Jul 01, 2011 3:46 pm

I tried to implement this code to be able to show it in my .html when I add {SHOW_TABLE}
but obviously I am doing it wrong.

How can I make this work?

Thanks for any help,
Jhonne

Code: Select all

$show = for($i = 1 ; $i+1< 46 ; $i++);

		$template->assign_block_vars('albumrow', array(
			'SHOW_TABLE'	=> $show,
		));

User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva
Contact:

Re: How to implement this code

Post by tumba25 » Fri Jul 01, 2011 5:40 pm

I assume you are trying to do something like this.

Code: Select all

for($i = 1; $i <= 46; $i++)
{
    $show = $some_image;
    $template->assign_block_vars('albumrow', array(
        'SHOW_TABLE'   => $show,
    ));
} 
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net

Locked

Return to “[3.0.x] MOD Writers Discussion”