Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

BULLET Reaplace and navigation front size!

Asked Modified Viewed 1,851 times
J
Jompsa
J
Jompsa 10
Visit my homepage - http://jomppaspace.net
  • Member, joined since
  • Contributed 96 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
asked
Member

I want reaplace that "BULLET" image to my own costum image.
My costum image located here "/infusions/sh_css_navigation_panel/images/bull.png" what i want use!

Code is here:
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| SH CSS Navigation Panel v3.0 for PHPFusion v7.02.01
| Copyright © 2008-2011 Stephan Hansson (StarglowOne)
| http://www.starglowone.eu/
+--------------------------------------------------------+
| Filename: sh_css_navigation_panel.php
| Author: Stephan Hansson (StarglowOne)
| Original Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/

if (!defined("IN_FUSION")) { die("Access Denied"); }

echo "<script type='text/javascript' src='".INCLUDES."jquery/jquery-ui.js'></script>\n";
echo "<script type='text/javascript' src='".INCLUDES."jquery/jquery.cookies.js'></script>\n";
echo '<script type="text/javascript">
$( function() {
var cookieName = "'.COOKIE_PREFIX.'css_nav";

$( "#navigation" ).accordion( {
autoHeight: false,
active: ( $.cookies.get( cookieName ) || 0 ),
change: function( e, ui ) { $.cookies.set( cookieName, $( this ).find( "h2" ).index ( ui.newHeader[0] ) ); }
} );
} );
</script> ';

$list_open = false;

openside($locale['global_001']);
$result = dbquery("SELECT link_name, link_url, link_window, link_visibility FROM ".DB_SITE_LINKS." WHERE link_position='1' OR link_position='2' ORDER BY link_order");
if (dbrows($result)) {
$i = 0;
echo "<div id='navigation'>\n";
while($data = dbarray($result)) {
$li_class = ""; $i++;
if (checkgroup($data['link_visibility'])) {
if ($data['link_name'] != "---" && $data['link_url'] == "---") {
if ($list_open) { echo "</ul>\n"; $list_open = false; }
$imagename = strtolower(str_replace(" ","_",$data['link_name']));
if (file_exists(INFUSIONS."sh_css_navigation_panel/images/".$imagename.".png")) {
$nav_img = "<img src='".INFUSIONS."sh_css_navigation_panel/images/".$imagename.".png' border='0' alt='".$data['link_name']."' />&nbsp;\n";
} else {
$nav_img = "";
}
echo "<h2>".$nav_img.parseubb($data['link_name'], "b|i|u|color|img")."</h2>\n";
} else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
if ($list_open) { echo "</ul>\n"; $list_open = false; }
echo "";
} else {
if (!$list_open) { echo "<ul>\n"; $list_open = true; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if ($i == 1) { $li_class = "first-link"; }
if (START_PAGE == $data['link_url']) { $li_class .= ($li_class ? " " : "")."current-link"; }
if (preg_match("!^(ht|f)tp(s)?://!i", $data['link_url'])) {
echo "<li".($li_class ? " class='".$li_class."'" : "").">\n";
echo "<a href='".$data['link_url']."'".$link_target." class='side'>".THEME_BULLET."\n";
echo "<span>".parseubb($data['link_name'], "b|i|u|color|img")."</span></a></li>\n";
} else {
echo "<li".($li_class ? " class='".$li_class."'" : "").">\n";
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='side'>".THEME_BULLET."\n";
echo "<span>".parseubb($data['link_name'], "b|i|u|color|img")."</span></a></li>\n";
}
}
}
}
if ($list_open) { echo "</ul>\n"; }
echo "</div>\n";
} else {
echo $locale['global_002'];
}
closeside();
?>[/syntaxhighlighter]

[size=16]And Second question:[/size]

How can change that text size,
www.jomppaspace.net/images/imagehost/d72e5ee9b367833956ed9f88a960c686.png

when i using bb code it not work and image lost!
0 replies

6 posts

H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

For images you just upload another image with the same name. That usually does the trick.

To identify css classes, I HIGHLY recommend using Firefox with the Web Developer toolbar plugin. It enables you to edit the css live, for testing until you find the right class, and then you just change the code.
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Use Firebug with Firefox to found the classes and the properties that apply to certain elements, just right click the text "Home"(in your case) > Inspect Element with Firebug.

Anyway the class is #navigation h2 and is found inside styles.css at line 404, change font-size: 10px.
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

Yeah, Firebug is good to. Thanks for reminding me, my friend...B)
0 replies
J
Jompsa
J
Jompsa 10
Visit my homepage - http://jomppaspace.net
  • Member, joined since
  • Contributed 96 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

I played little codes in style.ccs and results is like this http://www.jomppaspace.net/news.php what you think?

But that bullet image, thats very anoing and i dont get how reaplace that, i search with firebug and it not find that bullet image!
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

Hmm, could be because the image is not an image but a css "list" definition...

Check this out, read it; http://www.w3schools.com/css/css_list.asp

You need to edit the CSS to use an image as defined bullet as described in the link.
0 replies
K
KasteR
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

It could be that the values for the images are, or can be defined within the theme.php file. May want to check there, I'd help but my server is down at the moment.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
J
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
J
J
Jompsa 10
Visit my homepage - http://jomppaspace.net
  • Member, joined since
  • Contributed 96 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
K
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet