Page 60 of 80

A bug was found...

Posted: Wed Oct 14, 2009 11:09 pm
by umarizal
Hello my friends!

I am the author of the translation into Brazilian Portuguese (pt-BR) of the Ads Mod.

I request you to change one line in a file because there is a problem (BUG).

In file: /language/pt-BR/mods/info_acp_ads.php please:

Find these lines:

Code: Select all

	'acl_a_ads' => array('lang' => 'Pode gerenciar publicidade',
	'cat' => 'Opções'),
Replace with this:

Code: Select all

	'acl_a_ads' => array('lang' => 'Pode gerenciar a publicidade', 'cat' => 'settings'),
Remembering that the folder /pt-br/ should have the same name as your default language...
such as /pt-BR/ or /pt-br/ or /pt_br/ ... Understand?

To download mod:

[The extension zip has been deactivated and can no longer be displayed.]


Re: Advertisement Management

Posted: Thu Oct 15, 2009 1:31 am
by Mitch1063
Nice Mod.

All styles work perfectly except in Serenity
I don't see the ad after first post.
Come to think of it I had the same problem with tas's ad mod also same spot. Took that Mod out since he abandoned it and installing this fine looking one.

the peace of code I'm talking about is this

Code: Select all

<!-- IF postrow.S_FIRST_ROW -->{ADS_5}<!-- ELSE -->{ADS_6}<!-- ENDIF -->
here is the section of code from view_topic.html effected can you tell me if its the correct spot.

Code: Select all

		<td class="spacer" colspan="2" height="1"><img src="{T_THEME_PATH}/images/spacer.gif" alt="" width="1" height="1" /></td>
	</tr>
	<!-- ENDIF -->
<!-- BEGINELSE -->
	{$CA_BLOCK_START}
	<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
	{$CA_CAP_START}{TOPIC_TITLE}{$CA_CAP_END}

	<!-- IF postrow.S_FIRST_ROW -->{ADS_5}<!-- ELSE -->{ADS_6}<!-- ENDIF -->

<!-- END postrow -->
	<!-- IF not S_IS_BOT -->
	<tr align="center">
		<td class="cat" colspan="2"><form name="viewtopic" method="post" action="{S_TOPIC_ACTION}"><span class="gensmall">{L_DISPLAY_POSTS}:</span> {S_SELECT_SORT_DAYS}&nbsp;<span class="gensmall">{L_SORT_BY}</span> {S_SELECT_SORT_KEY} {S_SELECT_SORT_DIR}&nbsp;<input class="btnlite" type="submit" value="{L_GO}" name="sort" /></form></td>
	</tr>
	</table>
	<!-- ENDIF -->
<!-- IF .postrow -->
	{$CA_BLOCK_END}
<!-- ENDIF -->

	<table width="100%" cellspacing="1">
	<tr>
		<td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
		<!-- IF not S_IS_BOT -->

Re: Advertisement Management

Posted: Thu Oct 15, 2009 1:44 am
by EXreaction
I think you would need to go above the <!-- BEGINELSE --> in that case. For some reason the style author thought it was a brilliant idea to put the BEGINELSE statement in there even though it is completely impossible for anything between <!-- BEGINELSE --> and <!-- END postrow --> to ever happen in viewtopic.

Re: Advertisement Management

Posted: Thu Oct 15, 2009 3:12 am
by Mitch1063
EXreaction wrote:I think you would need to go above the <!-- BEGINELSE --> in that case. For some reason the style author thought it was a brilliant idea to put the BEGINELSE statement in there even though it is completely impossible for anything between <!-- BEGINELSE --> and <!-- END postrow --> to ever happen in viewtopic.
As you can see that put it above the first post and below the Unsubscribe topic | Bookmark topic | Print view | E-mail friend | Bump topic links

Image

Re: Advertisement Management

Posted: Thu Oct 15, 2009 3:58 am
by EXreaction
You sure you didn't select the before posts position?

Re: Advertisement Management

Posted: Thu Oct 15, 2009 4:09 am
by Mitch1063
Positive I will double check now

yes picked
Below header
After First post
Above footer

Re: Advertisement Management

Posted: Thu Oct 15, 2009 4:28 am
by Mitch1063
Here is the same options with subsiler2

Image

Re: Advertisement Management

Posted: Thu Oct 15, 2009 1:36 pm
by EXreaction
Oh, ya, you will need to add it into the table as well because of the style, between <tr><td> and </td></tr>

Re: Advertisement Management

Posted: Mon Oct 19, 2009 10:41 pm
by Aahz
Absolutely loving this mod. Thank you so much.

I'm using the Glass Styles which have 6 different color themes all using the prosilver template. Is there any way to have Advertising Management identify the style being used in order to serve the correctly colored Adsense ads?

If not, can anyone tell me a way to simply determine what style a given user is using so I can include an if statement to serve the correct ad?

Re: Advertisement Management

Posted: Mon Oct 19, 2009 11:03 pm
by EXreaction
You could add different positions for each style.

Re: Advertisement Management

Posted: Tue Oct 20, 2009 12:12 pm
by tiyakap
how can i use this mod with OpenX..plz help me...can i put the OpenX script into the advertisement management in the ACP.. where i have to put the ad code..

Re: Advertisement Management

Posted: Tue Oct 20, 2009 4:29 pm
by valaraukar
Hi!!!

Sorry, my english is bad...

Is there any problem installing this mod and Forum Sponsors?. I tried to install this mod after have installed forum sponsor, and it didn't work at all.

But, when I tried to do it in a new forum, it worked perfectly.

As far as I kwow, both mods have archives in ./ads/...is that the reason it didn't work?

I think I'm not explain it very well. In the DIY instruccions of AM, it say something like "now visit any page, and the database section will be done". When I tried it in my forum (where I installed Forum Sponsors), it didn't do anything, no matter if I cleaned the cache...cleaned firefox cache...and refresh styles (why? dunno)...

But, when I installed it in a new forum (no mods installed), it worked like a charm...

is there any sollution for this?

thank you for reading...

bye bye ^^)!

Re: Advertisement Management

Posted: Tue Oct 20, 2009 10:56 pm
by saycey
Hey great mod you got here but I have a problem with it. It was working fine to start with and about an hour after I put it on there it started giving me this error.

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /language/en_us/mods/ads.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3830: Cannot modify header information - headers already sent by (output started at /language/en_us/mods/ads.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3831: Cannot modify header information - headers already sent by (output started at /language/en_us/mods/ads.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3832: Cannot modify header information - headers already sent by (output started at /language/en_us/mods/ads.php:1)
Can you help please.

Re: Advertisement Management

Posted: Wed Oct 21, 2009 11:56 am
by Gremlinn
saycey: That error occurs when you use something like notepad to edit the language files. I recommend using Notepad++. It will save the files in the format that they were opened. The language files need to be saved in UTF8 w/o BOM format.

Re: Advertisement Management

Posted: Wed Oct 21, 2009 12:17 pm
by saycey
Yay! Thank You. Worked.