Coinbase

Author Topic: Hey Jerm... gotta request for you about permissions for the mod...  (Read 11021 times)

0 Members and 1 Guest are viewing this topic.

Offline MoreBloodWine

  • Jr. Member
  • **
  • Posts: 11
Is there anyway you would be able to implement a new permission for this mod that dis-allows the showing of ads on the login and registration pages... I use googles adsense and they kinda frown upon showing ads on non-content pages... so I was just curious if you could maybe add a new permission that says ( do not show ads on the login or registration pages ) ... if you could do that , that would be really awesome...

Edit : If it matters , I'd even consider sliding you a few bucks via paypal if you could do that for me...

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #1 on: October 19, 2006, 03:01:56 pm »
This is the reason why these options exist in the ad mod:
Display ads on board index     
Display ads on thread index    
Display ads on thread

Those are really the only pages you are allowed to display google ads on.

Offline MoreBloodWine

  • Jr. Member
  • **
  • Posts: 11
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #2 on: October 19, 2006, 03:16:05 pm »
This is the reason why these options exist in the ad mod:
Display ads on board index     
Display ads on thread index    
Display ads on thread

Those are really the only pages you are allowed to display google ads on.
But what would it take to add the do not show on login or registration pages permission... I wana show it on every page except for those... also with those check the placement gets kinda weird vs. havin the other stuff checked... when using those it... hel I'll just show you , its kinda hard top explain...

1. Using Those Above Options Places It Like This


2. Using The Option To Show On Every Page Under Button It Places It Like This


Number 2 is how I'd like the placement to always look which it does not when using any other option than the one that shows on every page under the buttons... anyway hope this makes sense but think you could add that option to not show on login or registration pages...

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #3 on: October 19, 2006, 03:21:58 pm »
ya, shouldn't be hard.
its supper time and i gatta eat, so i'll see if i can get this done tonite (been a long day..)

i hope you are using version 2 of the ad mod as well?
so just pm me the code you use for the ad mod.
i might be able to put something together were you dont have to modify the files.

Offline MoreBloodWine

  • Jr. Member
  • **
  • Posts: 11
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #4 on: October 19, 2006, 03:25:34 pm »
ya, shouldn't be hard.
its supper time and i gatta eat, so i'll see if i can get this done tonite (been a long day..)

i hope you are using version 2 of the ad mod as well?
so just pm me the code you use for the ad mod.
i might be able to put something together were you dont have to modify the files.
Thx man I just dont like the way the placement looks when you use the three ways you posted... it takes the forum out of its "uniform" look... whats your email so I can get my zip for the mod to you.. and yes I am using ver 2... but if I may ask why wouldnt you wana do this on a "grand scale" I mean I doubt I'm he only one whos weird like that hehe... and it is only an extra permission hehe... either way thx man.. ttyl and tc ;-)

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #5 on: October 19, 2006, 03:52:07 pm »
The formatting is actually an "issue" with TP. For whatever reason its looking like that.
The three options that i told you to use, is for google ads. When i orginally made the mod, i had just those three options.
I dont need a zip of anything, you can just PM me the code you use for your ads.

Offline MoreBloodWine

  • Jr. Member
  • **
  • Posts: 11
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #6 on: October 19, 2006, 03:56:46 pm »
The code / HTML for my ads I cant really send you bec google states any modifications of the code violates my ToS with them... and can get my adsense account with them banned... so if you could find it in your heart when you have the free time to make a new permission for the ad mod that disallows the showing of ads on the login or reg pages would be awesome... thx for the quick replies... ttyl and tc

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #7 on: October 19, 2006, 04:30:23 pm »
i wont be touching your code.. i would be making it easier for you to copy paste.

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #8 on: October 19, 2006, 04:38:10 pm »
actually...
open up sources/LoadAds.php
Look for:
Code: [Select]
if(isset($_REQUEST['action']) && ($_REQUEST['action'] == 'admod' || $_REQUEST['action'] == 'admin'))
and change it to:
Code: [Select]
if(isset($_REQUEST['action']) && ($_REQUEST['action'] == 'admod' || $_REQUEST['action'] == 'admin' || $_REQUEST['action'] == 'login' || $_REQUEST['action'] == 'register' || $_REQUEST['action'] == 'login2'))
« Last Edit: October 19, 2006, 04:40:01 pm by jerm »

Offline MoreBloodWine

  • Jr. Member
  • **
  • Posts: 11
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #9 on: October 19, 2006, 04:40:58 pm »
i wont be touching your code.. i would be making it easier for you to copy paste.
It's already easy to copy and paste as is... so I dont quite understand what your saying... and how would it help me being able to use the show on every page below the menu except for the log in and reg page (with the alignment I like as seen in pic two above)... anyway heres the code... also right now the way they are they stack ontop of eachotehr liek you can see in the pics... so if you could help me get em toalign side by side that would be even more awesome...
Code: [Select]

<script type="text/javascript"><!--
google_ad_client = "pub-1631518239820577";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "000000";
google_color_bg = "B3B3B3";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom" target="google_window">
<table border="0" bgcolor="#000000">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25blk.gif" border="0" alt="Google" align="middle"></img></a>
</td>
<td nowrap="nowrap">
<input type="hidden" name="domains" value="www.choice-online-gaming.com"></input>
<input type="text" name="q" size="31" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search"></input>
</td></tr>
<tr>
<td> </td>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#ffffff">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="www.choice-online-gaming.com"></input>
<font size="-1" color="#ffffff">www.choice-online-gaming.com</font>
</td>
</tr>
</table>
<input type="hidden" name="client" value="pub-1631518239820577"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="2979594926"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="safe" value="active"></input>
<input type="hidden" name="flav" value="0000"></input>
<input type="hidden" name="sig" value="QpCA0S2x2_4t2eMT"></input>
<input type="hidden" name="cof" value="GALT:#663300;GL:1;DIV:#333333;VLC:663300;AH:center;BGC:FFCC00;LBGC:000000;ALC:000000;LC:000000;T:333300;GFNT:000000;GIMP:000000;LH:50;LW:260;L:http://www.choice-online-gaming.com/images/forumlogo1.jpg;S:http://www.choice-online-gaming.com;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #10 on: October 19, 2006, 08:36:38 pm »
you happen to try the above code? ^^?

Offline MoreBloodWine

  • Jr. Member
  • **
  • Posts: 11
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #11 on: October 19, 2006, 09:02:43 pm »
you happen to try the above code? ^^?
Ya I'm sorry about that I noticed it after I made my post but that worked like a charm... thx man you rock hehe... but hey what would I need to do to get those to align left to right (side by side) bec using the code as is stacks em one on top of the other... if you click this link http://www.choice-online-gaming.com/index.php you'll see what I mean by them stacking and what I wana do is get em to align left to right with the search box on the right side and the banner shit on the left... this may or may not be something you can solve and sure I could use two ads but I want em to show at the same time and not have em cycle back n forh with every refresh of the page... hops this makes sense hehe...

Edit : Also what do I need to do to keep the ads from showin to admins... im the only ne and ever will be the only admin since its my site... but to keep myself from clickin my ads accidently which will get my google adsense act banned how can I keep them from showing to admins since admin permissions are never able to be modified... I basically want it to show to everyone else which they do bec I have the show ad permission set but I dont want em to show to me... hope this makes sense lol
« Last Edit: October 19, 2006, 09:07:05 pm by MoreBloodWine »

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #12 on: October 19, 2006, 09:19:24 pm »
Code: [Select]
<table><tr><td>

<script type="text/javascript"><!--
google_ad_client = "pub-1631518239820577";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "000000";
google_color_bg = "B3B3B3";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td>

<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom" target="google_window">
<table border="0" bgcolor="#000000">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25blk.gif" border="0" alt="Google" align="middle"></img></a>
</td>
<td nowrap="nowrap">
<input type="hidden" name="domains" value="www.choice-online-gaming.com"></input>
<input type="text" name="q" size="31" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search"></input>
</td></tr>
<tr>
<td> </td>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#ffffff">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="www.choice-online-gaming.com"></input>
<font size="-1" color="#ffffff">www.choice-online-gaming.com</font>
</td>
</tr>
</table>
<input type="hidden" name="client" value="pub-1631518239820577"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="2979594926"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="safe" value="active"></input>
<input type="hidden" name="flav" value="0000"></input>
<input type="hidden" name="sig" value="QpCA0S2x2_4t2eMT"></input>
<input type="hidden" name="cof" value="GALT:#663300;GL:1;DIV:#333333;VLC:663300;AH:center;BGC:FFCC00;LBGC:000000;ALC:000000;LC:000000;T:333300;GFNT:000000;GIMP:000000;LH:50;LW:260;L:http://www.choice-online-gaming.com/images/forumlogo1.jpg;S:http://www.choice-online-gaming.com;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
</td></tr></table>
should do it i think


LoadAds.php again
look for:
Code: [Select]
if(!empty($adverts) && allowedTo('ad_manageperm'))Change to
Code: [Select]
if(!empty($adverts) && allowedTo('ad_manageperm') && !allowedTo('admin_forum'))

Offline MoreBloodWine

  • Jr. Member
  • **
  • Posts: 11
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #13 on: October 19, 2006, 09:31:13 pm »
The alignment thing worked but the images are still a lil cockeyed "crooked"... but the code you said to change in LoadAds.php didnt do the trick , I can still see the ads while logged in with my admin name...

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #14 on: October 19, 2006, 09:34:04 pm »
make sure you did it in the function showAds($type) function..

as for the ads, you will just have to play around with the html till you find something you like..

SMF Ads Support Forum

Re: Hey Jerm... gotta request for you about permissions for the mod...
« Reply #14 on: October 19, 2006, 09:34:04 pm »
.