News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Ad Management mod

Started by SMFHacks.com Team, January 30, 2006, 08:41:19 PM

Previous topic - Next topic

jerm

Quote from: Bigguy on March 16, 2006, 08:58:53 PM
I have tried to manually add this mod to 1.06 everything looks fine except when I go to "features and Options" in the admin panel I get this:

QuoteParse error: syntax error, unexpected ',' in /home/*****/public_html/smf/source/Sources/ModSettings.php on line 309
either paste the contents of the file here, or pm me the file so that i can look into it

Bigguy

Actually I just got it to work. I installed it on a test server through package manager and then uploaded the other modsettings.php file to the forum I was modding. Thanks for the quick reply though.

Bigguy

I know thee are supposed to be permissions for each member group with this mod but I cant find then anywhere on my one forum that I am modifying, I can on the second one though. I can see the banner I put up but no one else can. What did I miss, like what code do I add ot get the permissions for this to show up in 1.0.6

jerm

if your using the most current version, the code for the permissions is at the bottom of the install.xml file

Bigguy

Is there a code I can insert somewhere that will just automatically show the ads for everyone guests included and just bypass the permissions for them ???

jerm

so if im understanding what your saying, you dont want to have the permissions feature installed. the reason why your having an issue is cause i think you installed this manually, and in the package, a script named install.php runs with sets the default value so that everyone can view the ads.
to remove the permissions completely, you will have to go through all the "if" statements that you had to put in for my ad mod, and take out && allowedTo('ad_manageperm')
be sure the ( brackets ) match up properly when you do this..

Bigguy

Ok I sort of understand that. How would I get the permissions to show in the admin panel for this. (manually)

jerm


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

Bigguy

#208
Yep that added the permissions, thank you for your time, it is greatly appreciated :)

woolly bugger

Help please....

I'm trying to install this mod....

uploaded files to the /forum dir and ran the install.php this is what I get:

QuoteFatal error: Call to undefined function: db_query() in /www/k/kcomm/htdocs/forum/install.php on line 3



Bigguy

It could be conflicting with another mod. How did you upload it ??? Sometimes ftp will make all the files 0kb Did you use the package manager to upload this ???

jerm

Quote from: woolly bugger on March 17, 2006, 09:35:59 AM
Help please....

I'm trying to install this mod....

uploaded files to the /forum dir and ran the install.php this is what I get:

QuoteFatal error: Call to undefined function: db_query() in /www/k/kcomm/htdocs/forum/install.php on line 3



you have to use the package manager to install this mod, you dont upload it to your forum through ftp

sprattzer

Hello I uploaded the zip file in package manager but there is no option to install it and since there wuz none I thought that it wuz already installed but when I went to look to see if the tab wuz there for it it wuznt. can u help me? My host is telling me to get the ad codes up!!

sprattzer

ok fixed it thanks. can u use this as a banner display??

jerm

Quote from: sprattzer on March 19, 2006, 05:31:09 PM
ok fixed it thanks. can u use this as a banner display??
ya, just put the correct code in the textarea box

sprattzer

i tried putting [img]......gif[img]

jerm

it needs to be html code, so <img src="location of the picture" />

sprattzer

oh thanks!! but im more worried about ma ad codes and in the template im using its not working! help

True Knight

I'm also trying to get Ads using this mod in my board with the Amber theme. I have installed the mod but have no luck.

I would like a banner ad at the top under the head and some ads on the left under the stats. Can anyone help?

Thanks!

jerm

if your using a custom theme, you will have to install it manually on your custom theme. but please still install the mod, then install it on your custom theme yourself

Advertisement: