Extension talk:PCR GUI Inserts

Duplicates
Hi! Thanks for this great extension first of all. I'm sure I'll find many ways to utilize it. I just instaled on http://en.wikiarquitectura.com and it works almost fine. The only issue is that any text I include is printed 5 times on the site... any clue what might be going on? Thanks! (guillermo@wikiarquitectura.com) --216.83.98.130 17:26, 30 November 2010 (UTC)
 * That sure is weird... could you post the relevant parts of your configuration file? Patheticcockroach 19:40, 30 November 2010 (UTC)


 * Hey thanks for getting back to me so fast. Actually I also thought it was weird… so I tried reinstalling and everything seems to works fine now.By the way. Is there any way to add a couple more parameters to include some piece of code at the beginning and end of each article? I’ve been looking to something like that for a long time in order to be able to better control my ads. The site is http://en.wikiarquitectura.com, I’ve you check any random article I’m sure you’ll understand what I mean. Thanks again for getting back to me. I really appreciate it, and congratulations for the extension, it’s one of the coolest things I’ve seen lately, simple but INCREDIBLY USEFULL!--216.83.98.130 23:01, 30 November 2010 (UTC)
 * You mean, like adding your Template:AdsenseHead and AdsenseFoot? Sorry, I don't know how to add wiki code before or after an article. But you could replace AdsenseFoot with something set in $wgPCRguii_Inserts['BeforePageDisplay']. I don't know for AdsenseHead, there might be a hook there but I didn't find it yet. Patheticcockroach 07:01, 1 December 2010 (UTC)
 * I was thinking in including some kind of javascript code to show where AdesenseHead and AdsenseFoot show right now, not wiki code. Anyway, the extension is very useful as it is, I’m using it to include the Quantcast code on my site. Thanks a lot!--207.38.155.69 18:23, 1 December 2010 (UTC)
 * Well, as I said $wgPCRguii_Inserts['BeforePageDisplay'] should place your stuff just where your AdsenseFoot is (you can put JavaScript and such in there). Patheticcockroach 18:48, 1 December 2010 (UTC)

German I18N
Hi, perhaps you would like to introduce the German description into :

/* *** Deutsch *** */ $messages['de'] = array(  	'pcr_guii' => 'PCR GUI Inserts',  	'pcr_guii-desc' => 'Ermöglicht das Einfügen von HTML-Quelltext in die grafische Benutzeroberfläche',

Cheers --kgh 19:01, 11 November 2010 (UTC)
 * Thanks, now at least I'll have something to modify in the 1.0 final version ;) (b1 is stable enough to be final already ) Patheticcockroach 19:04, 11 November 2010 (UTC)
 * That was fast :-) Cool! I am just giving it a try. This extension is a good idea and should work alike. Thank you --kgh 19:06, 11 November 2010 (UTC)
 * Well, spending a few whole days working on the computer for some university projects, so as long as notifications arrive fast (this wasn't the case some weeks ago), I can reply fast too :) Not sure when I'll be able to release the updated version though, crazy schedule and I don't like to release stuff in a hurry, that's the best way to make silly mistakes... Patheticcockroach 19:17, 11 November 2010 (UTC)
 * Yeah, notifications a quite unpredictable sometimes. Just recently I received a bunch of thirty-something of them and I instantly knew why it was nice and quiet the days before :) Take your time with the next release. --kgh 19:27, 11 November 2010 (UTC) PS What does PCR stand for?
 * It took a while. Finally I realised what PCR stands for. :) --kgh 22:24, 20 November 2010 (UTC)
 * Haha, yeah it's not polymerase chain reaction ;) And once again a notification got lost which is why I'm replying so late... Patheticcockroach 23:47, 26 November 2010 (UTC)
 * And this even though polymerase chain reaction is the mother of all articles on German wikipedia. That's a kind of sad. ;) No worries. Cheers --kgh 23:51, 26 November 2010 (UTC)

rename and move this extension
Acronyms always should be avoided. This extension has so much promise and is so incredible, but it is advertised poorly. I attempted to rewrite some of the text, making it more understandable about what this awesome extension does. Adamtheclown 08:03, 25 December 2010 (UTC)
 * Yeah, nice rewrite (except maybe you shouldn't try to get what's within source tags inside nowiki tags ;)) but how do you suggest I rename it? GUI isn't really an unusual acronym I think, but I agree that it's not really the proper term to describe what the extension does... Yet it's the only word that came to my mind to summarize all the places where the extension can write stuff. Patheticcockroach 08:30, 25 December 2010 (UTC)

Insert Google Translator
Hello, I have MediaWiki 1.19.0, PHP 5.3.10 (apache2handler) MySQL 5.1.49. skin vector on a personal NAS Synology DS 212 http://78.246.232.150/MediaWiki/index.php/Main_Page Please how insert Google Translator in the left sidebar ? Have you the code that i must use ? Thank you for your answer. Norbert (France)
 * Hi, I don't know much about Google Translator. What code do they tell you to insert on your page? Patheticcockroach (talk) 11:33, 19 December 2012 (UTC)

Hello, Google Translator : https://translate.google.com/manager/website/suggestions Google Analytics is installed on my wiki with PCR GUI Inserts - no problem To install on my wiki Google Translator the code is in two part

Part I Paste this code onto your website Copy and paste the following code snippets onto every page you want to translate Place this meta tag before the closing

 Part II Place this snippet where you'd like to display the Website Translator plugin on your page

  function googleTranslateElementInit { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false}, 'google_translate_element'); } 

Thank you for your help Norbert (France)
 * Then, if I recall correctly, you'll have to set it like:


 * (if you already have stuff in addHeadItem or SkinBuildSidebar, of course make sure you combine them an not override them) Patheticcockroach (talk) 20:21, 19 December 2012 (UTC)

AdSense in the sidebar
Hi, I inserted the code for AdSense in the sidebar, but I wish it was always visible ... is it possible?


 * What's up? Doesn't AdSense show up at all or just occasionally? If the latter is your issue when there is a worry with AdSense and you probably ask at their end. Cheers --&#91;&#91;kgh&#93;&#93; (talk) 22:30, 27 March 2015 (UTC)

Help with TradeDoubler
Hi, could someone help me to insert the banners of TradeDoubler through this extension? I tried to insert the javascript code provided by the site, but I always get an error


 * why you are not posting the error? --Metathom (talk) 13:55, 27 March 2015 (UTC)


 * Indeed, what's up? What would a typical TradeDouble code look like and where should it be placed? Sidebar, etc.? Cheers --&#91;&#91;kgh&#93;&#93; (talk) 22:28, 27 March 2015 (UTC)

Warning: require_once + Fatal error: require_once
Hello, my system:
 * MediaWiki 	1.24.1
 * PHP 	5.3.28-nmm2 (fpm-fcgi)
 * MySQL 	5.5.40-nmm1-log
 * Extension installed: /wiki.domain.org/extensions/PCR GUI Inserts 1.0 (all three files: pcr_guii.i18n.php, pcr_guii.php, pcr_guii_body.php)
 * LocalSettings.php: require_once "$IP/extensions/PCR GUI Inserts/pcr_guii.php";

But I receive this errors:
 * Warning: require_once(/www/htdocs/user/wiki.domain.org/extensions/PCR GUI Inserts/pcr_guii.php) [function.require-once]: failed to open stream: No such file or directory in /www/htdocs/user/wiki.domain.org/LocalSettings.php on line 160
 * Fatal error: require_once [function.require]: Failed opening required '/www/htdocs/user/wiki.domain.org/extensions/PCR GUI Inserts/pcr_guii.php' (include_path='.:/usr/share/php:..') in /www/htdocs/user/wiki.domain.org/LocalSettings.php on line 160

I read several answer in the web about joomla to typo3 and so on, but didn't get what is the problem. Thank you. --Metathom (talk) 13:54, 27 March 2015 (UTC)

EDIT: For example I got the extension CustomSidebar successfully installed in my wiki. --Metathom (talk) 14:04, 27 March 2015 (UTC)


 * I believe it will make your life easier if you rename the folder "PCR GUI Inserts 1.0" to "PCRGUIInserts" and call the extension with  Cheers --&#91;&#91;kgh&#93;&#93; (talk) 22:26, 27 March 2015 (UTC)


 * Thanks!!! Of course! My different paths will not work ;))
 * /wiki.domain.org/extensions/PCR GUI Inserts 1.0/
 * require_once "$IP/extensions/PCR GUI Inserts/


 * @Patheticcockroach, could you edit the install description line 2? https://www.mediawiki.org/wiki/Extension:PCR_GUI_Inserts#Installation it says:


 * 2. Move the PCR GUI Inserts 1.0 folder to your /extensions/ folder. That does not work! ;) Anyway thanks a lot for the script! --Metathom (talk) 10:28, 28 March 2015 (UTC)


 * Well, never looked at this section. I have fluffed it up for others. It is a bit different due to restrictions imposed by the template used, but it will work as well. Cheers --&#91;&#91;kgh&#93;&#93; (talk) 10:49, 28 March 2015 (UTC)

Extension error on sidebar
Hi, I have this error in my error_log, PCR don't show anything in sidebar.

--PediarS (talk) 17:30, 27 May 2015 (UTC)


 * I got the same error with MW 1.25.2 :(


 * -- Nicolas NALLET (talk) 09:31, 20 September 2015 (UTC)


 * Keeping fingers crossed for a fix. --&#91;&#91;kgh&#93;&#93; (talk) 17:06, 21 September 2015 (UTC)


 * @User:PediarS, User:Nicolas NALLET, User:Kghbln - please try the version at https://github.com/dennisroczek/PCR_GUI_Inserts - maybe this simple fix already did the trick. I have no 1.25 installed as our php version is too low, but we plan to migrate and i have to fix this extension first then... Dennisroczek (talk) 05:57, 16 October 2015 (UTC)


 * If you are just talking about changing the I18n then this will not help I'm afraid. The issues start with 1.25x and and in a line unrelated to I18n. Another issue that I realize now is that the current license does not permit changing the source code of the extension. We need a completely new extension. :( --&#91;&#91;kgh&#93;&#93; (talk) 08:27, 16 October 2015 (UTC)