Jump to content

LexHammer

Members
  • Posts

    34
  • Joined

  • Last visited

    Never

Everything posted by LexHammer

  1. I have 7 codes that i want to display in a row one next to another. The first is {$ads->ads_display('1')}, the second {$ads->ads_display('2')} and so on... They appear one under the other. I want them to appear like this: @ @ @ @ @ @ Can you pls give me the code that i need for that...
  2. Not working... the whole table disappear when i insert the php code.
  3. When i insert the codes, i get only "1" (number 1 digit) on the top or on the bottom of the table, where the user is shown. But its till just 1 user!
  4. I'm newbie to php so could you pls tell me, do i have to just insert them in the other code or i have to do some other coding as well?
  5. Sorry, but when i crated this topic, i realized that i will need php to do what i wanted, and this is tpl code. I will just make it show another picture if the user is not on that levels. Thank you anyway for you help!
  6. Forgot to say that this is the code from the tpl file and i cant put php in it . I can put the php code in the php file of the page where this tables shows... So i need clear php code.
  7. Hello, i have a table that shows users only if I, as Administrator, want to be shown. But its showing just 1 user and i want to show at least 4. If i copy the code, or use loop, its showing the same user 4 times... How to make it show 4 different users? I tried with "LIMIT 1" changed to LIMIT 4, but nothing happens. Here are the codes: PHP code <?php ////////GET LANG IDS $aValues = array(); $sSql = " SELECT `languagevar_id`, REPLACE(`defVarName`, 'home.', '') AS `key` FROM `advFetMem_settings` WHERE `defVarName` LIKE '%home.%' "; $rResult = mysql_query($sSql); while( ($aRow=mysql_fetch_assoc($rResult)) ) $aValues[ $aRow['key'] ] = $aRow['languagevar_id']; $smarty->assign('aCusLang_advFetMem', $aValues); //GET SETTING $sql ="SELECT `setting_username` FROM `se_settings` LIMIT 1"; $result = mysql_query($sql); $aRow = mysql_fetch_assoc($result); $bUserNames = $aRow['setting_username'] == 1 ? TRUE : FALSE; $iTime = time(); $sql = "SELECT `u`.`user_id` AS `userId` FROM `advFetMem_info` AS `i` INNER JOIN `se_users` AS `u` ON `u`.`user_id` = `i`.`userid` WHERE '".$iTime."' BETWEEN `i`.`start` AND `i`.`end` ORDER BY RAND() LIMIT 1"; $result = mysql_query($sql); $smarty->assign('aAdvFetMem', FALSE); if( $aRow = mysql_fetch_assoc($result)) { $tempUser = new se_user(Array($aRow['userId'])); $tempUser->user_displayname(); $aRow['username'] = $tempUser->user_info['user_displayname']; $aRow['photo'] = $tempUser->user_photo("./images/nophoto.gif", TRUE); $smarty->assign('aAdvFetMem', $aRow); } ?> TPL code {* include_advFetMem_home.tpl 2009-07-21 12:57:53 rhutton *} {if $aAdvFetMem} <div class='header'>{lang_print id=$aCusLang_advFetMem.featured_member}</div> <div class='portal_content'> <table cellpadding='0' cellspacing='0' align='center'> <tr> <td class='portal_member' valign="bottom" style="width:50%;"> <a href='./profile.php?user_id={$aAdvFetMem.userId}'>{$aAdvFetMem.username|truncate:15:"...":true}</a><br /> <a href='./profile.php?user_id={$aAdvFetMem.userId}'><img src='{$aAdvFetMem.photo}' class='photo' width='60' height='60' border='0' alt='' /></a><br /> </td> </tr> </table> </div> <div class='portal_spacer'></div> {/if} Thank you!
  8. Hello, I have this table, which shows user levels with picture. How to make this table appear only if the user is level 1,2 or 3. and not to show if the user is on another level? As it is now, if the user is on another level, the table is there empty, only with the header and its... ugly Thank you! {* DISPLAY USER LEVEL *} <table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: 10px;'> <tr> <td class='header'>User Level</td> <tr> <td class='profile'> {if $owner->user_info.user_level_id == 1} <img src="../images/nophoto.gif" border="0" /> {/if} {if $owner->user_info.user_level_id == 2} <img src="../images/newupdates.gif" /> {/if} {if $owner->user_info.user_level_id == 3} <img src="../images/search.gif" /> {/if} </td> </tr> </table> {* END USER LEVEL *}
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.