Ad Management mod

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

Previous topic - Next topic

ivanstech

edit should go to my custom theme right???  because i try to edit the default theme like you write in "theme support" is coming with error ! my theme is sullen madness and i only can find index.template.php   , what should i do ?

Bigguy

If the only template file you have in your theme you want to edit is index.template.php then that is the only one in that theme you need to edit.

ivanstech

after i edit the index.template.php i'ts coming with ... Fatal error: Call to undefined function: show_topofpageads() in /home/ivanste/public_html/forum_ivanstech/Sources/Load.php(1040) : eval()'d code on line 170.... can you tell me how to fix it and make it run properly please bigguy ! thanks a lot! (now i'm still using the default theme)

Bigguy

Can you send me your index.template.php file and I will see if I can fix the problem.

geezmo

Can I add PHP codes in Ad Management Mod? I tried to add the jump-to navigational menu at the Welcome User area section using the Ad Management Mod but it didn't work. You can see the discussion about my problem here:

http://www.simplemachines.org/community/index.php?topic=121415.msg777381#msg777381

jerm

If you are using version 2, then yes it does support php
Make sure to change the "type" from HTML to PHP

L.G.S

Would it be possible to somehow choose permissions for each add?

I would like ads that appear for guests only (eg JOIN NOW!) and some others for only certain groups (eg FREE PRIZE!).

??
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


ivanstech

#847
Quote from: Bigguy on October 22, 2006, 10:50:55 AM
Can you send me your index.template.php file and I will see if I can fix the problem.

i have send the index.tempalte.php to your mail box in hotmail ... thanks for your help bigguy!

Bigguy

Ok, I will get to it as soon as I can.

Assistance

Quote from: L.G.S on October 23, 2006, 04:49:54 PM
Would it be possible to somehow choose permissions for each add?

I would like ads that appear for guests only (eg JOIN NOW!) and some others for only certain groups (eg FREE PRIZE!).

??

ad php
change 13 and 1 to groups you want to view it


 
if (in_array('13',$GLOBALS['user_info']['groups']) || in_array('1',$GLOBALS['user_info']['groups']))
{
  echo 
'what you want them groups to see';
}
 else
{
  echo 
'what you want other then the above groups to see';
}



play with it, ya know ya wanna
~playing poker~

deskjet2

im newbie here. just install SMF

i've installed these package in order to apply for adsense ads.

Modification Packages
       Mod Name                                        Version     
1.    Ad Managment                                      1.0.2d    
2.    SMF 1.0.9 and 1.1 RC3-1 Security Patch     1.0.8/1.1 RC3

but i could not find the ad management panel..anyone can help me?

can refer to below picture of my admin panel..



Bigguy

Look under "Edit Features & Options" Right at the bottom.

L.G.S

Quote from: Assistance on October 29, 2006, 06:22:16 PM
Quote from: L.G.S on October 23, 2006, 04:49:54 PM
Would it be possible to somehow choose permissions for each add?

I would like ads that appear for guests only (eg JOIN NOW!) and some others for only certain groups (eg FREE PRIZE!).

??

ad php
change 13 and 1 to groups you want to view it


 
if (in_array('13',$GLOBALS['user_info']['groups']) || in_array('1',$GLOBALS['user_info']['groups']))
{
  echo 
'what you want them groups to see';
}
 else
{
  echo 
'what you want other then the above groups to see';
}



play with it, ya know ya wanna

Thanks Im'a try now
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


L.G.S

Damn it doesn't work for me :(

Could somebody please show me the code which I would use which would:

Have this message appear to guests:

<div align="center"<a href="http://www.ruthlessintent.com/board/index.php?action=register"><img src="http://www.ruthlessintent.com/board/indexadvert.JPG" /></a></div>

And have this message appear to group ID 7:

code example
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Assistance

 if (in_array('7',$GLOBALS['user_info']['groups']))
{
  echo 
'Hi YOUR Group 7 code';
}
 else
{
  echo 
'<center><a href="http://www.ruthlessintent.com/board/index.php?action=register"><img src="http://www.ruthlessintent.com/board/indexadvert.JPG" /></a></center>';
}
~playing poker~

neddim

Hi,
My Google Ads doesnt shown in IE.
In Mozilla Firefox it is okay, but when I look my site via IE, there is no any Google Ads.
Is this Mod made only for Mozilla Firefox ?
Or, how can I change this !!!

BTW, You made a great mod, thanks a lot guys !

neddim

ACTUALY,
MY ADS ARE VISIBLE ONLY WHILE I AM LOGGED AS ADMIN !!!

Can anyone help me please :)

Assistance

go to permission per group and enable ads
~playing poker~

neddim

That solved my problem.
Thanks man :)

anjori

#859
ad_mod_rc3_v2 produces an error while trying to install on SMF 1.1 RC3. The file in question is:

6.     Execute Modification     ./Themes/default/Display.template.php     Test failed

Any ideas?

Advertisement: