SMF Ads Support Forum

Support => General Support => Topic started by: stormvibrant on November 14, 2008, 10:13:46 PM

Title: Only admins can see ads - Weird problem/Permissions don't fix
Post by: stormvibrant on November 14, 2008, 10:13:46 PM
I run the smf ads mod, and after changing my board round a little bit, nobody can see see the ads that I have put up anymore.

I have checked through tonnes of permissions and board properties, but cannot find the source of the problem. Weirdly enough, administrators, moderators and other groups can see the ads...

I would really like some suggestions, since I have paying advertisers on the forum!!! The forum is on smf 1.1.5 and runs the theme Musiconica.

I know there's an option with the ad management mod in permissions saying "enable ads" for certain membergroups, BUT I CAN'T SEE IT! What the hell? Is it because I'm on 1.1.5? God I hate this.
Title: Re: Only admins can see ads - Weird problem/Permissions don't fix
Post by: ccbtimewiz on November 14, 2008, 11:53:56 PM
Did you edit your custom theme so the ads show..?
Title: Re: Only admins can see ads - Weird problem/Permissions don't fix
Post by: stormvibrant on November 16, 2008, 05:27:36 AM
Hey.

The problem had to do with an error in the install.xml instructions that you guys provided. The last instruction in the .xml file is:

------------------------------------------------------------------------------------------------

<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="replace"><![CDATA[         'pm' => array(]]>
</search>
<add><![CDATA[         'ad_manage' => array(
            'ad_manageperm' => false,
         ),
         'pm' => array(]]>
</add>
</operation>
</file>


------------------------------------------------------------------------------------------------

Now you see how is tells you to find the line of code: 'pm' => array(]]>. Well there's no such thing in ManagePermissions.php. It's actually: 'pm' => array(

When you find that you need to replace it with: 'ad_manage' => array(
            'ad_manageperm' => false,
         ),
         'pm' => array(

The "]]>" at the end of array never existed.

Once I corrected this it worked completely. Make sure that you fix it so that everyone can get it right :)