SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Member
    Join Date
    Feb 2006
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    If statement to fetch image. - Joomla Component

    Hi guys

    i just want any help that can make me solved this riddle. T_T

    actually i m using 1 of the joomla 1.0 component to manage all my company events. so basically for a week i have 1 problem that i cant solved by myself, i already try to google a few of other website that maybe can help me in this but its appear there is nothing much they can do.

    and here is the question, i want to put events image that actually been stored on others place to been show on this page
    http://www.protempgroup.com/index.ph...ist&Itemid=116

    under category section.


    and the sample of events is not the same. the sample is over here
    http://www.protempgroup.com/index.ph...details&did=12

    so basically for this page how i can fetch the image so that i can fetch the image link from the db and its will be properly show the correct image under the correct events.

    i attach a sample of db

    and a sample how i want it to be like with a code for that page.

    Code:
    				<?php
    				}
    				if ($layoutsettings[$idx['category']]->set_show == 1) {
    					if ($layoutsettings[$idx['category']]->set_linked == 1) {
    						if ($datimage=1)
    					?>
    						<td width="<?php echo $layoutsettings[$idx['category']]->set_width; ?>"> 
                                <img src="<?php echo $datimage = $mosConfig_live_site."/images/eventlist/events/".$row->datimage; ?>" alt="original" />   
    						</td>
    					<?php
    					} else {
    					?>
    						<td width="<?php echo $layoutsettings[$idx['category']]->set_width; ?>">
    							<?php echo $row->catname; ?>
    						</td>
    				<?php
    					}
    				}
    				?>
    and the whole code for this page i put in zip file at here
    http://www.protempgroup.com/download/eventlist.html.zip

    and the code i want to change start from 232 - 234

    any help will be really help my life. thx
    Attached Images Attached Images


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •