MediaWiki Extensions and Skins Ipb Wiki: Integration of Invision Power Board and MediaWiki

From Ipb Wiki: Integration of Invision Power Board and MediaWiki

Personal tools
3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> [Mediawiki Skin] Monobook (Adsense Ready), Updated 10/5/2006, 11:30
Peter
post Aug 28 2006, 08:47 PM
Post #1


Administrator
***

Group: Root Admin
Posts: 2,955
Joined: 5-February 06
From: Belgium
Member No.: 1



File Name: Monobook (Adsense Ready)
File Submitter: Peter
File Submitted: 28 Aug 2006
File Updated: 29 Apr 2007
File Category: Mediawiki Skin

The popular monobook skin with google ads. search for google in monobook_ads.php and change the client with your id.

Click here to download this file
Go to the top of the page
 
+Quote Post
Eric Goff
post Oct 3 2006, 08:37 AM
Post #2


Advanced Member
***

Group: Customer
Posts: 72
Joined: 27-September 06
Member No.: 311



I installed this and everything seems to be working great the only thing that seems to be wrong is I don't have ads on the bottom of my wiki instead I have them at the top of the wiki. The side ones below the navigation menu work perfectly (they only appear every couple of refreshes figure it has to learn what ads to put up) I'm using version 1.6.8 not sure if that matters but

I do want you to know that so far this was by far the easiest adsense extension to install. All the others were extremely complicated. I appreciate the effort that you put into this one. Just hoping I can move that ad on the top to the bottom instead.
Go to the top of the page
 
+Quote Post
Peter
post Oct 3 2006, 03:15 PM
Post #3


Administrator
***

Group: Root Admin
Posts: 2,955
Joined: 5-February 06
From: Belgium
Member No.: 1



open monobook_ads.php and search for:
CODE
            <center><script type="text/javascript"><!--
                google_ad_client = "pub-3408113110878552";
                google_ad_width = 728;
                google_ad_height = 90;
                google_ad_format = "728x90_as";
                google_ad_type = "text";
                google_ad_channel ="";
                google_color_border = "FFFFFF";
                google_color_bg = "FFFFFF";
                google_color_link = "0000FF";
                google_color_text = "5F5F5F";
                google_color_url = "5F5F5F";
            //--></script>
            <script type="text/javascript"
              src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
            </script></center>


press delete.

then search for:
CODE
            <!-- start content -->
            <?php $this->html('bodytext') ?>
            <?php if($this->data['catlinks']) { ?><div id="catlinks"><?php       $this->html('catlinks') ?></div><?php } ?>


and replace it with:
search for:
CODE
            <!-- start content -->
            <?php $this->html('bodytext') ?>
            <?php if($this->data['catlinks']) { ?><div id="catlinks"><?php       $this->html('catlinks') ?></div><?php } ?>
            <center><script type="text/javascript"><!--
                google_ad_client = "pub-3408113110878552";
                google_ad_width = 728;
                google_ad_height = 90;
                google_ad_format = "728x90_as";
                google_ad_type = "text";
                google_ad_channel ="";
                google_color_border = "FFFFFF";
                google_color_bg = "FFFFFF";
                google_color_link = "0000FF";
                google_color_text = "5F5F5F";
                google_color_url = "5F5F5F";
            //--></script>
            <script type="text/javascript"
              src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
            </script></center>
Go to the top of the page
 
+Quote Post
Eric Goff
post Oct 4 2006, 04:52 AM
Post #4


Advanced Member
***

Group: Customer
Posts: 72
Joined: 27-September 06
Member No.: 311



Ok we're really close again. Now the ads appear at the bottom of the body of the wiki. What I was looking to do was put this code

"<script type="text/javascript"><!--
google_ad_client = "pub-3971914587151387";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>"

In the very bottom footer where you currently have skin by peter. In that yellow box like the picture shows. ? If not I'm ok with having it in the body of the text I guess. Or I could just live with the side ads.

Also sort of an unrelated question but what's the best program to use to edit php? I've been using notepad but seems like there would be a less clumsy way of doing it.

Again any help you can provide is appreciated.
Go to the top of the page
 
+Quote Post
Peter
post Oct 4 2006, 07:37 AM
Post #5


Administrator
***

Group: Root Admin
Posts: 2,955
Joined: 5-February 06
From: Belgium
Member No.: 1



I've adjusted the download yesterday to have an extra series of ads in the footer.

There are several php editors around, I dunno on which one is best though, I just use Editplus to do all my php programming: it's just an editor which has color highlighting for php which loads fast but doesn't have any other bells or whistles...
Go to the top of the page
 
+Quote Post
Guest_Guest_*
post Oct 20 2006, 05:54 PM
Post #6





Guests






Hi Peter,
for me, the ads just appear when i'am loged in.
help please
thanks
Go to the top of the page
 
+Quote Post
Peter
post Oct 20 2006, 06:31 PM
Post #7


Administrator
***

Group: Root Admin
Posts: 2,955
Joined: 5-February 06
From: Belgium
Member No.: 1



hmm, the login shouldn't affect the ads, what's your site?
Go to the top of the page
 
+Quote Post
Guest_Bob Greer_*
post Nov 14 2006, 08:48 PM
Post #8





Guests






ive downloaded and uploaded your files into my wiki's root directory. how do i install? what else am i required to do in order to view the ads?
Go to the top of the page
 
+Quote Post
Peter
post Nov 15 2006, 08:17 AM
Post #9


Administrator
***

Group: Root Admin
Posts: 2,955
Joined: 5-February 06
From: Belgium
Member No.: 1



- extract the files into your skins folder
- in Localsettings.php set $wgDefaultSkin = 'monobook_ads';
Go to the top of the page
 
+Quote Post
Guest_CHIP_*
post Apr 29 2007, 04:47 AM
Post #10





Guests






Hello. I have this installed on my wiki, however, the "Edit" link on the headers show up really big...

Go to the top of the page
 
+Quote Post
Peter
post Apr 29 2007, 07:59 AM
Post #11


Administrator
***

Group: Root Admin
Posts: 2,955
Joined: 5-February 06
From: Belgium
Member No.: 1



I just fixed the download so that it is compatible with the new features of MediaWiki 1.9, redownload it and it should work now...
Go to the top of the page
 
+Quote Post
Guest_matt_*
post May 8 2007, 06:16 AM
Post #12





Guests






I'm a little concerned. All of my ads are either "invision" something or "IPB hosting." Could I be serving your ads? I changed the configurations. My site is here.
Go to the top of the page
 
+Quote Post
Peter
post May 8 2007, 07:27 AM
Post #13


Administrator
***

Group: Root Admin
Posts: 2,955
Joined: 5-February 06
From: Belgium
Member No.: 1



I looked at the source code and it's your id in the ad_client so it are your ads.
Go to the top of the page
 
+Quote Post
Guest_matt_*
post May 9 2007, 03:07 AM
Post #14





Guests






Thanks...now I've just noticed that the ads are misplaced in Internet Explorer. Has anyone else experienced this? Refer to the link in the last post...
Go to the top of the page
 
+Quote Post
Guest_matt_*
post May 10 2007, 01:25 AM
Post #15





Guests






I've fixed this by removing the </div> before the ad and placing it after. You might want to change it as well.
Go to the top of the page
 
+Quote Post
Peter
post May 10 2007, 07:05 AM
Post #16


Administrator
***

Group: Root Admin
Posts: 2,955
Joined: 5-February 06
From: Belgium
Member No.: 1



I'll make a mental note smile.gif
Go to the top of the page
 
+Quote Post
Guest_Guest_*
post May 14 2007, 03:49 AM
Post #17





Guests






I keep getting this once its all installed when i click a link:

The requested URL /~solarsys/monobook_ads//~solarsys/index.php was not found on this server.

?
Go to the top of the page
 
+Quote Post
Peter
post May 14 2007, 07:17 AM
Post #18


Administrator
***

Group: Root Admin
Posts: 2,955
Joined: 5-February 06
From: Belgium
Member No.: 1



did you modify anything other than the ad client?
Go to the top of the page
 
+Quote Post
Guest_Abhi_*
post May 14 2007, 04:00 PM
Post #19





Guests






Even i am facing the problem of the ads being misplaced in internet explorer, i even tried (unsuccessfully) to put </div> at the bottom of the ad, but the ads are still getting misplaced.

I don't know if i am doing it right, can someone paste the before and after code so as to give me some hint on where i have to place </div>

Go to the top of the page
 
+Quote Post
Peter
post May 14 2007, 05:19 PM
Post #20


Administrator
***

Group: Root Admin
Posts: 2,955
Joined: 5-February 06
From: Belgium
Member No.: 1



you don't have to replace any divs, just searching for ad_client and replacing the number next to it should do it really smile.gif
Go to the top of the page
 
+Quote Post

3 Pages V   1 2 3 >
Fast ReplyReply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: