News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Ad Management mod

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

Previous topic - Next topic

akashbc

Quote

The solution is to make the manual edits to your theme that it indicates.

Can you help me matt?

I also face the same problem as  kartheekb face..Can you edit the files for me..If you can ,please dit the files in my previous post with attachments..

Please??


Thanks in advance :)

kartheekb

Quote from: MattH41 on November 21, 2010, 12:18:02 AM
Quote from: kartheekb on November 21, 2010, 12:05:08 AM
When i am trying to install getting some errors...

I am using SMF 2.0 rc4, soft cartoon theme.

When i am trying to upload showing errors on broard.index.template & index.template.php

here are the screen shots....

Test fail error image
http://img193.imageshack.us/img193/269/capturedlp.jpg

Showing Code To Modify.
http://img197.imageshack.us/img197/1017/capture2ui.jpg

and

http://img508.imageshack.us/img508/8316/capture3s.jpg

Hope i will get a solution. Thanks in Advance.

The solution is to make the manual edits to your theme that it indicates.


I have tryed, But what its showing to "find". it is not in that file .
www.jntuhub.com/forum (check out my forums)

MattH41

Quote from: PLAYBOY on November 18, 2010, 03:46:49 PM
Quote from: maihannijat on September 04, 2010, 12:15:19 AM
Hi

I tried alot to manually install this in my custom theme but not able to add code in index.template.php

I have attached my index.template.php


How to Add This code After <body> Tag
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Here is my Body Tag code:
<body>

   <div id="wrapper">
  <div id="header">
<div id="head-l">
<div id="head-r">
  <div id="userarea">';
if ($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member'], ' ', $context['user']['name'], '</b><br />';



I am facing the same problem except mine is 1.1.12
How can i edit this one?

It gives parse error.

Without looking at your whole file, it looks like you need:

Replace

<body>


With:

<body>';
//Display ads on the top of the page
   if (function_exists("show_topofpageAds"))
   {
      $ads = show_topofpageAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);   
      unset($ads);
   }
echo'


Brutto

#5783
Database error:

SQL logic error or missing database
near "NOT": syntax error
File: /home/saldusfo/public_html/smf/Packages/temp/install.php
Line: 51

P.S. RC4 + SQLite

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

MattH41

Quote from: MattH41 on November 20, 2010, 03:40:04 PM
I'm having a major problem on my site http://altmarket.net [nofollow]

The Ad Management Mod is not respecting the enable ad permission.

Instead it is just showing the ad to everyone. How can I fix this?

VB, any reason why this mod isn't respecting the enable ad permission and is instead just showing ads to everyone?

vbgamer45

Are you setting it under Permissions -> Modify each group there should be a permission there.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

MattH41

Yes. I have it set to show for guests and regular members, but I have it disabled for global moderators and sponsors.

However, it shows for every group regardless of their permission setting.

akashbc

Quote from: vbgamer45 on November 21, 2010, 09:42:35 PM
Are you setting it under Permissions -> Modify each group there should be a permission there.

Please help me?
Please help me to place some codes manually with some human guesses.If i put it in wrong way then it will cause some errors :(

vbgamer45

Use modsite for manual install instructions
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kartheekb

Quote from: kartheekb on November 21, 2010, 12:05:08 AM
When i am trying to install getting some errors...

I am using SMF 2.0 rc4, soft cartoon theme.

When i am trying to upload showing errors on broard.index.template & index.template.php

here are the screen shots....

Test fail error image
http://img193.imageshack.us/img193/269/capturedlp.jpg

Showing Code To Modify.
http://img197.imageshack.us/img197/1017/capture2ui.jpg

and

http://img508.imageshack.us/img508/8316/capture3s.jpg

Hope i will get a solution. Thanks in Advance.

Files attached;

Sorry For Bumping.. Can u plz tell me the solution.. i have attached the files what they are showing to modufy.
www.jntuhub.com/forum (check out my forums)

vbgamer45

Install package then use modsite to get manual install instructions and do the edits that failed.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

akashbc

Quote from: vbgamer45 on November 22, 2010, 12:42:47 AM
Install package then use modsite to get manual install instructions and do the edits that failed.

Where is the mod site?
I need human guesses to place manually?..So what do i do?


PLAYBOY

Quote from: MattH41 on November 21, 2010, 07:54:04 AM
Quote from: PLAYBOY on November 18, 2010, 03:46:49 PM
Quote from: maihannijat on September 04, 2010, 12:15:19 AM
Hi

I tried alot to manually install this in my custom theme but not able to add code in index.template.php

I have attached my index.template.php


How to Add This code After <body> Tag
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


Here is my Body Tag code:
<body>

   <div id="wrapper">
  <div id="header">
<div id="head-l">
<div id="head-r">
  <div id="userarea">';
if ($context['user']['is_logged'])
{
echo '<b>', $txt['hello_member'], ' ', $context['user']['name'], '</b><br />';



I am facing the same problem except mine is 1.1.12
How can i edit this one?

It gives parse error.

Without looking at your whole file, it looks like you need:

Replace

<body>


With:

<body>';
//Display ads on the top of the page
   if (function_exists("show_topofpageAds"))
   {
      $ads = show_topofpageAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);   
      unset($ads);
   }
echo'



I think what you said solved the problem. I ll let you know if it didnt. Thank you very much.

xseaplus

Mod is not working for custom theme RC4.
Manuel modifications cant be done because cant find requested codes to change...
Anyone help?

vbgamer45

What I do in that case is look for code that similar or similar layout areas in the theme that's the only way it can be done.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

MattH41

VB, any ideas as to where I should look as to why the mod is ignoring the 'enable ads' permission and just showing to everyone?

I checked my database to make sure there weren't any entries to the gmod and sponsor groups. There isn't, but they're still seeing ads.

Looking through all the theme edits, etc., it looks like its all installed correctly.

vbgamer45

I would need to check it out that would be the first reported instance for me. Just to be sure what SMF version?
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

MattH41

#5799
2.0RC4...

And oddly. When I run the same files on my local WAMP server, everything is okay. When I run them on my webhost, that's when it breaks.

It's like it's global moderator and sponsor group are inheriting the permission from the regular members group even though it shouldn't.


EDIT: You can ignore this now. After playing for a while I was able to find a solution. I enabled 'deny permissions' on my forum and the specifically denied the ad permission for the groups I didn't want to see it. Seems to have resolved my problem.

Advertisement: