Ad Management mod

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

Previous topic - Next topic

Bigguy

What language are you using. ??? if you are using utf-8 this could be the problem.

jfertic

Thanks for the quick reply bigguy. I installed the mod with clean copy of subs. php in place. When I edited the file to have SMF appear inside the portal, the mod was no longer availabe in my admin panel. Right now if I want to use it, I have to have the SMF Forum outside the MK Portal. If I try to install the mod with the edited subs.php file, it errors on install. I was wondering if it can be done manually, or is there another type of work around for this? At present I am using the default theme of SMF.

jfertic
Searchable Directory of Tower Construction Resources:

http://towerclimbersgroup.com

Bigguy

Yes the edits can be done manually. All the edits are stickied to the top of the Theme Support board at www.smfads.com

wk38

I was creating a new ad and some how it's not letting me delete the ad. It only slows the name and content fields when I go back to edit, nothing underneath. All other ads are ok. The ad in question is displaying but I can't delete it now.

Help!

Bigguy

Can you change what type of ad it is (html/php) and then delete it. ??? I don't think I have heard of anyone having this problem.

wk38

It's a strange one for sure. This is all I get, can't do a thing with it.


Bigguy

Can you try to uninstall and re-install the mod

wk38

There's my other problem. When I do an uninstall I get some errors in the files. If I continue and do the uninstall I can't reload the site. Have to copy everything back from a hot backup directory I have. I'm stumped.

jerm

Is there anything in the error log when you view the page?
(delete all your errors, then visit that link only, then view the error log again)

wk38

No errors in the log. Can I get to it in the database or php files somewhere and delete it?

kenang82

I installed it on my smf1.1.2 but after adding the code, the code does not show up. Please help. My code: <!-- Begin: AdBrite -->
<script type="text/javascript">
   var AdBrite_Title_Color = 'CC0000';
   var AdBrite_Text_Color = '000000';
   var AdBrite_Background_Color = 'C3D9FF';
   var AdBrite_Border_Color = 'FFFFFF';
</script>
<span style="white-space:nowrap;"><script src="http://ads.adbrite.com/mb/text_group.php?sid=303682&zs=3436385f3630" type="text/javascript"></script><!--
--><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=303682&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-banner.gif" style="background-color:#FFFFFF" alt="Your Ad Here" width="11" height="60" border="0" /></a></span>
<!-- End: AdBrite -->
is this html or php code?

Farmacija

www.farmaceuti.com
www.farmaceuti.com/tekstovi

ovno

hi, I successfuly uploaded and installed this mod, however there is not a tab for it in the admin section. Anyone know why, or do I have to do something. Oh, I am using the default theme.

kenang82

Quote from: ovno on April 04, 2007, 06:55:40 PM
hi, I successfuly uploaded and installed this mod, however there is not a tab for it in the admin section. Anyone know why, or do I have to do something. Oh, I am using the default theme.
I also have this problem before but one of the members here ask me to go server setting and change the default langauge to "English"

kenang82

Whenever I add an ad, it duplicates. why??

Shonick

I have found this in the install.xml file
<file name="$themedir/index.template.php">
<operation>
<search position="before"><![CDATA[ </td>]]></search>
<add><![CDATA[';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo ']]>
</add>
</operation>


I can not find the <td> tag as shown above in the custom theme(dilbermc).Could anyone help me with this. what is the code above the <td> tage.Thanks


and one more question.I did not see the file Display.template.php and ManagePermissions.php in the custom theme(dilbermc).What should I do now?

  Please help me.I really need this mod.Thank you.

Bigguy

It would be a good idea to get a copy of the default index.template.php and search for your <td> there and see where it is and then compare places in the one you want to edit. If the files aren't there then they have already been edited in the default folder.

Shonick

Thank you so much.My ad mod seems to work now.But the place to put ad is not correct.Anyway that is ok.
in the Add Ads section it ask me for the type of the ad code either html or php.But I have set my code include javascript and php,so which one should I choose now?

Bigguy


alo

Quote!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Quote1. Execute Code install.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test successful
7. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
8. Execute Modification ./Sources/ManagePermissions.php Test failed
9. Extract File ./Sources/Ads.php 
10. Extract File ./Sources/LoadAds.php 
11. Extract File ./Themes/default/Ads.template.php 
12. Extract File ./Themes/default/languages/Ads.english.php 
it sounds get problem with managing permissions, the ad doesn't show on all browsers.

 
Advertisement: