| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | ||||
| 
 | ||||
|  Convert buttons to text - multiquote problem 
			
			Hello, I don't think I will have a problem replacing buttons with links which are stuled to look like buttons, but I am struggling with the Multiquote button. This threadhttps://vborg.vbsupport.ru/showthread.php?p=1604783#post1604783 offers an answer which doesn't work. Code: <a href="$post[replylink]" rel="nofollow" onclick="return false"><span style="color:<if condition="$show['multiquote_selected']">green<else />red</if>;" id="mq_$post[postid]">$vbphrase[multi_quote_this_message]"</span></a> Any help appreciated. Thanks | 
| 
			 
			#2  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			Ok I've examined the Javascript and established that it's the function which uses the img tag content which won't work on a span. I'm surprised there isn't a resource on here which has already been created to help people wanting to do this. Also somewhat disappointed (though not entirely surprised) at the lack of response to my thread. | 
| 
			 
			#3  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			I could respond but I wouldn't have anything of value to add- JavaScript isn't one of my strong points.    | 
| 
			 
			#4  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			I compromised and used buttons in the end. Is there a decent forum out there where I could get a better response to this or is vBulletin dead? | 
| 
			 
			#5  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   Quote: 
 1) A lot harder to do than you think it is and/or 2) No one else really thinks it's worth the effort I'd say this is probably a combination of both- is it really that big a deal to change multi-quote to text? A small 4 color gif file will load just as fast even on a mobile browser and work just fine as is- probably look better too. That combined with the fact good javascript programmers are much more rare on this site than good php programmers probably has a lot to do with it. | 
| 
			 
			#6  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			I got it working.   Guess I picked up more about javascript than I though. Open your vbulletin_multi_quote.js file find: Code: (D,"img") Code: (D,"span") Code: {A.src=A.src.replace(/\/multiquote_off\.([a-zA-Z0-9]+)$/,"/multiquote_on.$1")}Code: {A.textContent = "MultiQuote On";A.style.color = "green";}Code: {A.src=A.src.replace(/\/multiquote_on\.([a-zA-Z0-9]+)$/,"/multiquote_off.$1")}Code: {A.textContent= "MultiQuote Off";A.style.color = "red";}I used the replacement instead of what you put in your first post: Code: <a href="$post[replylink]" rel="nofollow" onclick="return false"><span style="color:red;" id="mq_$post[postid]">$vbphrase[multi_quote_this_message]</span></a> | 
| 
			 
			#7  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			thank you
		 | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |