منتديات المسلم
هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.



 
الرئيسيةالبوابةأحدث الصورالتسجيلدخول

 

 php fusion theme issues

اذهب الى الأسفل 
كاتب الموضوعرسالة
عبدالله




عدد الرسائل : 603
تاريخ التسجيل : 14/09/2006

php fusion theme issues Empty
مُساهمةموضوع: php fusion theme issues   php fusion theme issues Emptyالخميس 14 ديسمبر - 7:21

Hi, I am looking to replace my top navigation text buttons with image buttons, but am not sure how to go about this, I am using the Void theme.

Could someone please explain what I would need to change in what files.

I have the buttons made but just cant get them on my site atm.

Thanks for any help.
-------------------------------------
Replace this code in theme.php:
الكود:
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='cellpic'>\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/divider.gif'> "; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";


by
الكود:
echo"<td class='cellpic'>
<a href='URL'><img src='IMGURL' alt='Alternative Text'></a>
<a href='URL2'><img src='IMGURL2' alt='Alternative Text2'></a>
</td>";


الرجوع الى أعلى الصفحة اذهب الى الأسفل
عبدالله




عدد الرسائل : 603
تاريخ التسجيل : 14/09/2006

php fusion theme issues Empty
مُساهمةموضوع: رد: php fusion theme issues   php fusion theme issues Emptyالخميس 14 ديسمبر - 7:26

to have the buttons in the centre
remove this line in theme.php:
الكود:
echo "[b]".ucwords(showdate($settings['subheaderdate'], time()))."[/b]";

open styles.css and find:
الكود:
background-image:url(images/cellpic_nav.gif);background-repeat:repeat-x;}

add the red code:
[codecellpic {text-align:center; font-size:10px;font-weight:bold; color:#DBDBDB; padding:0px 8px 0px 8px;
background-image:url(images/cellpic_nav.gif);background-repeat:repeat-x;}


][/code]
الرجوع الى أعلى الصفحة اذهب الى الأسفل
عبدالله




عدد الرسائل : 603
تاريخ التسجيل : 14/09/2006

php fusion theme issues Empty
مُساهمةموضوع: رد: php fusion theme issues   php fusion theme issues Emptyالخميس 14 ديسمبر - 7:46

to change the bg color
Open theme.php
Find
الكود:
// theme settings
$body_text = "#555555";
$body_bg = "#ffffff";
$theme_width = "100%";
$theme_width_l = "175";
$theme_width_r = "175";


Replace the color code #ffffff with your own color
الكود:
$body_bg = "#ffffff";
Open styles.css

Find
الكود:
side-border-left {
border-right : 1px solid #e1e1e1;
padding : 5px;
}

.side-border-right {
border-left : 1px solid #e1e1e1;
padding : 5px;
Under border-right : 1px solid #e1e1e1;
Under border-left : 1px solid #e1e1e1;

Add
الكود:
background-color : ffffff;
Note: replace: ffffff w/ the color code of your choice
الرجوع الى أعلى الصفحة اذهب الى الأسفل
 
php fusion theme issues
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1
 مواضيع مماثلة
-
» Theme Quickstart-smf-
» Rough Guide to Theme Editor -mybb
» Integrating a WYSIWYG editor in PHP-Fusion
» معرض لستايلات PHP-Fusion Themes

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
منتديات المسلم :: اللغه الانجليزيه :: All Other English Topics-
انتقل الى: