Hi there, recently imported from SMF2 - I’m looking to re-implement tow things. Add WoWhead link tooltips (when hovering over a wowhead link, you get a preview of the link (game items, etc.) and we also had an in-line JS script that would load one of the pre-set quote (Quote of the Day, but really just a random quote each time the page load)
For the first one, after adding the script in before /head it doesn’t appear to be working.
I was reading somewhere in a plugin reply saying that all hovers are uniform-ized (sanitized?) So that would make it not work? Is there a workaround? I am only familiar with the basics with HTML
As for the quote of the day - I am just not sure how or where I can add it. I tried to use Versatile Banner but it seems to only allow HTML/CSS. I don’t think there’s any HTML code that would allow a dynamic load?
I’ll google what onebox is in the meantime
The Quote of the Day code is something like this:
<script type="text/javascript" language="JavaScript">
//<![CDATA[
<!-- Begin
var quote=new Array()
quote[0]="Say your name. You all sound the same when you are panicking. - <b>Togalog</b>";
.
.
.
quote[110]="Did you try saran wrap? - <b>Xb</b>";
var Q = quote.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation(){document.write(quote[whichQuotation]);}
showQuotation();
// End -->
//]]>
</script>
Writing a plugin is probably beyond my skill-set, my IT skill set is in troubleshooting
I’ll dig in a little bit and see if there’s enough there for me to attempt to duplicate and pull from WoWhead’s database.
As for the random quote of the day, is there a place that I can just add a block of unfiltered JavaScript with the code I pasted?
Sei que acabei necroando este tópico com essa resposta, mas estou procurando EXATAMENTE o que @FireAllianceNX tinha em termos das dicas de ferramenta do WoWhead.
Se não for nada mais, só preciso de um lugar para colocar isso no código, no cabeçalho ou no início da instalação do Discourse:
Acabei de tentar adicionar o script à seção ‘before ’ de Admin > Personalizar > Editar CSS/HTML, mas sem sucesso. Publicar um link do Wowhead em uma postagem de ambas as formas (usando hiperlink e HTML bruto) ainda não aciona a dica de ferramenta.