Coinbase

Author Topic: Only admins can see ads - Weird problem/Permissions don't fix  (Read 2266 times)

0 Members and 1 Guest are viewing this topic.

Offline jack40k

  • Newbie
  • *
  • Posts: 8
    • Email
Only admins can see ads - Weird problem/Permissions don't fix
« 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.

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Only admins can see ads - Weird problem/Permissions don't fix
« Reply #1 on: November 14, 2008, 11:53:56 pm »
Did you edit your custom theme so the ads show..?

Offline jack40k

  • Newbie
  • *
  • Posts: 8
    • Email
Re: Only admins can see ads - Weird problem/Permissions don't fix
« Reply #2 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 :)

SMF Ads Support Forum

Re: Only admins can see ads - Weird problem/Permissions don't fix
« Reply #2 on: November 16, 2008, 05:27:36 am »
.

 

.