News:

Wondering if this will always be free?  See why free is better.

Main Menu

Ad Management mod

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

Previous topic - Next topic

Bigguy

All you have to do is put the edits in the index.template.php of the theme you are using and it will work.

dextrous

Quote from: Bigguy on March 27, 2006, 10:47:55 AM
All you have to do is put the edits in the index.template.php of the theme you are using and it will work.

I don't I follow  :(

jerm

another mod is conflicting with my mod.
you can try installing it anyways and see if it works

ynneb

I have the most recent installation of SMF and when i try to install any of the Versions I get an error saying the package is corrupt or incompatiable with this version.

Prasad007

Quote from: ynneb on March 30, 2006, 12:19:50 AM
I have the most recent installation of SMF and when i try to install any of the Versions I get an error saying the package is corrupt or incompatiable with this version.
then try downloading then uploading the package.

jerm

#245
oh.. i will have to update it so it installs on 1.0.7, thanks for letting me know

done.. theres nothing new at all with this version, it just allows you to install it on 1.0.7 now

carlatf

Hi,
I got an error when I tried to installed so I started to do the rest manually.
The problem is in the file index.template.php

1-

file name="$themedir/index.template.php">
   <operation>
      <search position="replace"><![CDATA[   template_menu();]]></search>


I have NO line template_menu();
The most similar I have is

        <div align="left" style="padding-top: 4px;">
                ', template_menu(), '
        </div>';

It's the same thing?
Can I replace the code like this



//Ad management code to display ads on top of the menubar

if ($modSettings['ad_management_index_above'] && allowedTo('ad_manageperm'))
   echo '<div align="',$modSettings['ad_management_align'],'">',$modSettings['ad_management_content'],'</div>';

   <div align="left" style="padding-top: 4px;">
                ', template_menu(), '
        </div>';

//Ad management code to display ads on the bottom of the memubar

if ($modSettings['ad_management_index_below'] && allowedTo('ad_manageperm'))
   echo '<div align="',$modSettings['ad_management_align'],'">',$modSettings['ad_management_content'],'</div>';
   
   
2- <search position="replace"><![CDATA[function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;]]>
</search>


I've got TWO of these:

function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '</td>
   </tr></table><br />';
   

and

// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Show the [home] and [help] buttons.


Do I have to add the data on both?


Many thanks for reading such a long msg.
Best,
Carla

ynneb

Thanks, I am still getting the same error message.
Please excuse my ignorance but is my procedure correct?
I download the zip file to my computer, then upload it as it is to my forum.
Then run the install process.

Is this correct.

BTW I am using the latest Release cantidate that is available for down load.Is this the one you enabled for 1.0.7 ?

jerm

it appers to me that you are both using 1.0.* version of SMF?
if thats correct, you will need to download ad_mod_1-0-7_v1-0-2b.zip

ynneb

#249
That worked superbly. You are a fabulous contributor.
Thanks so much for sharing this. :)

I just put a Flash banner in frontpage, copeid the code and pasted it into the your management winodw and every thing worked perfectly first go. http://machsupport.com/forum/index.php

I wonder if there is a random html script so that i could display different adds randomly?

Thanks again electro.. :)

carlatf

Quote from: electrohome88 on March 30, 2006, 11:40:54 PM
it appers to me that you are both using 1.0.* version of SMF?
if thats correct, you will need to download ad_mod_1-0-7_v1-0-2b.zip
Hi, sorry I forgot to post that, I'm using the SMF 1.1rc2 version. Updated with the last patch.


jerm

Quote from: carlatf on March 31, 2006, 07:50:25 PM
Quote from: electrohome88 on March 30, 2006, 11:40:54 PM
it appers to me that you are both using 1.0.* version of SMF?
if thats correct, you will need to download ad_mod_1-0-7_v1-0-2b.zip
Hi, sorry I forgot to post that, I'm using the SMF 1.1rc2 version. Updated with the last patch.


custom theme?
my mod only installs on the default theme..

eriktm


jerm

Quote from: Erik™ on April 01, 2006, 12:55:23 PM
Can I use php?
nope.. i've tried a few times, and it just gives me errors

eriktm

But if I wanna use the include(); function...

jerm

why not just grab everything in that file, and place it in the textarea box instead?

nattydread

hello,
I have read this long forum,
I have an error when try to install the mod
./Themes/default/Display.template.php     Test failed
Strange because this is a new installation of the forum and in the previous installation (that unluckely went broken) I have had no problems with this mod...

I am running: joomla 107
smf bridge
SMF Integration version is 1.1 RC2 patch3
Latest Joomla-SMF Forum Version is 1.1RC2
AD MANAGEMENT Version 1.5 Mar 19, 2006

Before to attempt to install the mod I unwrapped the board
and unpatched as suggested.
I am using the default theme.

Do you think it could be fixed?

thanks
Time only exist to avoid things happen all together.

Looking for great Domain Names? Visit www.GenialNames.com
....  because the name says it all!

jerm

heres your options..
install anways with the error
if you dont use the options "Display ads on thread" or "display ads after first post"
you wont have any problem using my mod..

if you do use one of those options, you will have to manually edit the file.. something got screwed up with your files. look in the install.xml for what to edit

nattydread

Quotesomething got screwed up with your files. look in the install.xml for what to edit
do you meanthat another mod could have screwed?
for brevity I have odmitted to say that below the error message a part of a file was shown, and there a particular line is marked in red. It is something about a slash or a tag, couldn't remember.
Do  you think I can try fix it this one?

Sorry if I look like dummy but I am little afraid to put the hands on the code of this boar, it seems a little critical. Few days ago I had a board apparently perfectly working and then, after have installed a mod everything stopped to work.
It was something very bad (coul'nt doing nothing since the error just doesn't allowed me to ener ion no way in any part of the board to correct the issue!) then  I had to rebuild everything from scratch and it costed to me several oter days of work......that's why I am so prudent and I think is  better to ask to the master progrsammer.
Time only exist to avoid things happen all together.

Looking for great Domain Names? Visit www.GenialNames.com
....  because the name says it all!

jerm

lol, well i dont consider myself a master programmar.. but i'll take the complement :)

and yes, i think another mod might be conflicting with my mod
cause i've tested this on multiple forums and it installs fine

Advertisement: