English:
Hello,
Before anything sorry for my bad language xD
<?php echo do_shortcode( '[buddypress id="49"]' ); ?>
<?php echo do_shortcode( '[buddypress id="50"]' ); ?>
<?php echo do_shortcode( '[buddypress id="51"]' ); ?>
<?php echo do_shortcode( '[buddypress id="52"]' ); ?>
I used wordpress and i want to use many php codes:
i need a java script code to make a random system to appear only one code each time i visit my site from this list.
I try to use code from stackoverflow but this code make random and choose one code only yes but it causes many problems because the code load all codes and choose only 1 to appear and the others code make their hide but if i view my site page source i found all codes.
Because that i need a code to choose only one code to appear in my site and in page source and never loaded the other codes.
And also i need make other random to appear the code or not, Like 50% appear and make a random system and choose one code to appear and 50% nothing happens.
Thanks.
Arabic:
انا استخدم واردبريس وعايز استخدم اكثر من كود شورت كود مثال
<?php echo do_shortcode( '[buddypress id="49"]' ); ?>
انا عايز كود راندوم يعنى انا هستخدم زى الكود اللى فوق داة 3 اكواد معاة بنفس الطريقة مع اختلاق ال id طبعا فا انا عايز اعمل راندوم مرة الاول يظهر مرة الثالث وكدة
جربت كود فى النت وعمل المطلوب لاكن تسبب ان التنين دخلو فى بعض لية ؟ لانة برضوا فى صفحة ال Html بتاعت الموقع هوا بيقرا كل الاكواد بس بيعمل للكود اللى ميظهرش منهم زى display: block كدة مثلا انة يختفى بس يعنى لاكن بيسبب مشاكل
فا انا عايز كود يشوف مين اللى علية الدور يظهر ويظهر ويخفى نهائيا اى حاجة تانية وميزهرش الا اللى علية الاختيار
اكون شاكر افضلكم بجد جدا لو كمان ينفع احدد نسبة الظهور يعنى كام فى المية او حسب عدد زيارات محددة احددة انا ان ممكن ميجيش حاجة نهائيأ وممكن يبدء يعمل عملية الراندوم بحيث 50% تظهر ويختار الكود راندوم و 50% ميجيش حاجة
اتمنى اكون قدرت اوضح ويرات بجد بسرعة لان الطلب مستعجل جدا
وشكرا لكم
Aucun commentaire:
Enregistrer un commentaire