Eric @ EricBess WebHome

Rather than just thinking, knowing it would be meaningless

Chinese (Simplified) flagItalian flagKorean flagPortuguese flagEnglish flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flag
By N2H

One guy WP-Codebox release suggestion

Hello --

Let me first tell you that I love this plugin. Today I had the brilliant idea of changing the '+' and '-' symbol that are in the upper right corner of the box. I wanted to use an image instead. At first I just changed the 'main.php' file. That made the images appear fine when the page loaded. Although, once clicked on, it would go back to the text version. I determined that the problem was with the javascript file. I found where I though should be changed and I got it to work fine in Firefox, but it's getting stuck in Internet Explorer.

I've attached a text file of the changes that I've made. Is there any way that you can help me out with this?

Thank you so much!

Bill Fisher

? Download changes.txt
 1 
 2 
 3 
 4 
 5 
 6 
 7 
 8 
 9 
 10 
 11 
 12 
 13 
 14 
 15 
 16 
 17 
 18 
 19 
 20 
 21 
 22 
 23 
 24 
 25 
 26 
 27 
 28 
 29 
 30 
 31 
  ------------------- 
  original ) main. php (original) 
  ------------------- 
  "<a href= \" javascript:; \"  onclick= \" toggle_collapse('p" . $post -> ID . $codeid . "'); \" >[<span id= \" p" . $post -> ID . $codeid . "_symbol \" >" ; $ output .= "<a href= \" javascript:; \" onclick= \" toggle_collapse('p". $post -> ID. $ codeid." '); \ "> [<span id = \" p ". $ Post -> ID. $ Codeid." _symbol \ ">"; 
		  $cb_colla && ( ! ( $colla == "+" ) ) ) || ( $colla == "-" ) ) { $output .= "+" ; } else { $output .= "-" ; } if (($ cb_colla & & (! ($ colla == "+"))) | | ($ colla == "-")) ($ output .= "+";) else ($ output .= "-" ;) 
		  "</span>]</a>" ; $ output .= "</ span>] </ a>"; 
	    "</span>" ; $ output .= "</ span>"; 

  ------------------ 
  changed ) main. php (changed) 
  ------------------ 
  "<a href= \" javascript:; \"  onclick= \" toggle_collapse('p" . $post -> ID . $codeid . "'); \" ><span id= \" p" . $post -> ID . $codeid . "_symbol \" >" ; $ output .= "<a href= \" javascript:; \" onclick= \" toggle_collapse('p". $post -> ID. $ codeid." '); \ "> <span id = \" p " . $ Post -> ID. $ Codeid. "_symbol \"> "; 
		  $cb_colla && ( ! ( $colla == "+" ) ) ) || ( $colla == "-" ) ) { $output .= "<img src= \" xxx \"  border= \" 0 \" >" ; } else { $output .= "<img src= \" xxx \"  border= \" 0 \" >" ; } if (($ cb_colla & & (! ($ colla == "+"))) | | ($ colla == "-")) ($ output .= "<img src = \" xxx \ "border = \" 0 \ ">";) else ($ output .= "<img src= \" xxx \" border= \" 0 \">";) 
		  "</span></a>" ; $ output .= "</ span> </ a>"; 
	    "</span>" ; $ output .= "</ span>"; 


  --------------------- 
  original ) codebox. js (original) 
  --------------------- 
	  symbol =  $ ( objname + '_symbol' ) ) { if (symbol = $ (objname + '_symbol')) ( 
		   symbol . innerHTML == '+'  ? '-' : '+' ; symbol. innerHTML = symbol. innerHTML == '+'? '-': '+'; 
	  ) 

  -------------------- 
  changed ) codebox. js (changed) 
  -------------------- 
	  symbol =  $ ( objname + '_symbol' ) ) { if (symbol = $ (objname + '_symbol')) ( 
		   symbol . innerHTML == '<img src="xxx" border="0">'  ? '<img src="xxx" border="0">' : '<img src="xxx" border="0">' ; symbol. innerHTML = symbol. innerHTML == '<img src="xxx" border="0">'? '<img src="xxx" border="0">': '<img src = "xxx" border = "0"> '; 
	  ) 
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
- Welcomed the rating for this article

Log-related

In this paper, readers are also concerned about the following:

  • N / A

June 20th, 2008 Author: eric | Wordpress Programming | Trackback? | No comments | Email This Post Print This Post | 131 views

Add a Comment

Leave a reply

Comments Hide Post Comments