Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
1221
ME_Haber 2.3 ..(110937 okuma, 145 yanıt) Resim Galerisi Modülü 2.0 ..(123430 okuma, 173 yanıt) Ustalardan Bir Ricam Olac ..(13794 okuma, 6 yanıt) nukecode.com will close ..(11337 okuma, 5 yanıt) super youtube player a lo ..(6440 okuma, 1 yanıt) Need good PHP Haber port ..(5684 okuma, 0 yanıt) Forum Nasil Tam Sayfa Olu ..(35599 okuma, 40 yanıt) Php nuke Forumu Düzenleme ..(10054 okuma, 6 yanıt) Yeni Üyelik Aktivasyon Li ..(11111 okuma, 6 yanıt) Aşk Flashları Modülü ..(7117 okuma, 2 yanıt) resim galeri 2.0 da kateg ..(11589 okuma, 9 yanıt) Yeni iki modul: Merhumlar ..(32682 okuma, 36 yanıt) ürün tanıtım modülü ..(25511 okuma, 23 yanıt) PHP Nuke is out ..(15243 okuma, 13 yanıt) MSN Video Bing Video oldu ..(5288 okuma, 0 yanıt) haberhit.com ..(5873 okuma, 1 yanıt) Bilgi Yarışması 1.0 tama ..(52735 okuma, 72 yanıt) Musıc Box elinde olan var ..(6800 okuma, 2 yanıt) Online Okey , Batak , Tav ..(176028 okuma, 340 yanıt) Emlak Modül ve Blockları ..(12465 okuma, 8 yanıt) WM who ist shampions ..(5144 okuma, 1 yanıt) coppermine resim galerisi ..(5562 okuma, 1 yanıt) Forumda Teşekkür Eklentis ..(9176 okuma, 7 yanıt) free wordpress themes ..(5658 okuma, 1 yanıt) JW image rotator for nsn ..(7762 okuma, 4 yanıt) need Iletisim module ..(11153 okuma, 8 yanıt) Yeni modul: İletişim modu ..(28002 okuma, 33 yanıt) Başvuru Modulu ve Etkinli ..(5930 okuma, 1 yanıt) world cup flash ..(5114 okuma, 0 yanıt) ..:: Php Nuke FTP link Ha ..(5005 okuma, 0 yanıt) yeni phpnuke youtube 2.0 ..(5248 okuma, 1 yanıt) Content Plus Önceki Konu ..(4844 okuma, 0 yanıt) Php nuke Tickets Modülü ..(8078 okuma, 5 yanıt) need help to news time ..(4618 okuma, 0 yanıt) NSN News v3.0 new plugin ..(4901 okuma, 0 yanıt) how to save flash as imag ..(6135 okuma, 2 yanıt) Video Blok Yardım Lütfen. ..(6069 okuma, 2 yanıt) gazete ara ..(9919 okuma, 5 yanıt) Bizim Yazarlar ve Bizim Ş ..(15139 okuma, 14 yanıt) Nuke Reflections v2 Türkç ..(14794 okuma, 14 yanıt) CNB Your Account 750 442 ..(14430 okuma, 13 yanıt) Admin panelindeki simge ç ..(12477 okuma, 9 yanıt) Hosting Modülü ..(14219 okuma, 13 yanıt) Bizim şairler Modülü ..(5282 okuma, 1 yanıt) new plugin for nsn news v ..(4829 okuma, 1 yanıt) php nuke 8.0 türkce dil s ..(7027 okuma, 3 yanıt) Kan Bankası Modül istek ..(6258 okuma, 2 yanıt) Haber Konulari Sayfasinda ..(5854 okuma, 2 yanıt) Kan Bankası Modülünde İsi ..(7173 okuma, 3 yanıt) sonhaberler flash block ..(6723 okuma, 4 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Modül içinde bir bölümü sadece üyelere açmak
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
bulent_atlas Mesaj: 1+
Kayıt: Nov 14, 2002 Mesajlar: 39 Konum: Ankara
Tarih: 2005-10-07, 19:33:04 Mesaj konusu: Modül içinde bir bölümü sadece üyelere açmak
Problemimi kısaca anlatayım.
Sitemde modül içerisinde fiyat hanesini sadece üyelere göstermem gerekiyor.
Gerekli bölümün üzerine
Kod:
if (is_user($user)) {
satırını ekledim
gerekli satırın sonunu da
ile kapattım. Bir terslik oluştu. Login olmadan fiyat görünüyor. Login olunca o satır kayboluyor. Yani mantık ters işliyor. Hatanın nerde olduğunu söyleyecek vatan evlatlarının yardımlarını bekliyorum.
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-06-18, 14:04:49 Mesaj konusu: Forum Arası Reklamlar
Başa dön
Ertugrul Mesaj: 500+
Kayıt: Jun 05, 2004 Mesajlar: 776
Tarih: 2005-10-07, 19:42:44 Mesaj konusu: Re: Modül içinde bir bölümü sadece üyelere açmak
mantık yürütelim
madem tam tersi çalışıyor.
doğru çalışması için sende kodun tam tersini kullan
ama bana sorarsan
Kod:
if ( is_user( $user ) )
{
FİYAT
}
kodunun çalışması lazım
ilgili modulün kodlarını buraya eklersen
daha kolay açıklayabiliriz
Başa dön
bulent_atlas Mesaj: 1+
Kayıt: Nov 14, 2002 Mesajlar: 39 Konum: Ankara
Tarih: 2005-10-07, 19:46:34 Mesaj konusu:
Kod:
<?php
} else {
$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
$product_info = tep_db_fetch_array($product_info_query);
tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");
if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
$products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
else {
$products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}
if (tep_not_null($product_info['products_model'])) {
$products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>';
} else {
$products_name = $product_info['products_name'];
}
?>
ben burda $products_price ı gizlemeye çalışıyorum.
Başa dön
bulent_atlas Mesaj: 1+
Kayıt: Nov 14, 2002 Mesajlar: 39 Konum: Ankara
Tarih: 2005-10-08, 12:05:55 Mesaj konusu:
buda çalışmadı bu arada
Başa dön
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız