SMF Ads Support Forum

Support => General Support => Topic started by: kleddon on June 05, 2008, 04:17:46 PM

Title: Adding Ad Management to smf version 1.1.5
Post by: kleddon on June 05, 2008, 04:17:46 PM
I am following the instructions to install ad management package, ad_mod_1-1-x_v2-3.zip according to the instructions
at: http://custom.simplemachines.org/mods/index.php?action=parse


I am editing the file:
./Themes/default/index.template.php

Instructions say:

find:

</td>

add after:

'; //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 '

There are several instances that have the code: </td>

Does that mean that I add the above script after every instance of; </td>  ?

Any help would be greatly appreciated
Title: Re: Adding Ad Management to smf version 1.1.5
Post by: gri on June 06, 2008, 02:29:54 AM
Quote from: "url=http://www.smfads.com/forums/index.php?topic=1657.msg6672#msg6672]kleddon in ~Adding Ad Management to smf version 1.1.5~[/url]"]
Instructions say:

find:

</td>

Instruction does not say to find </td> .

Instruction says to find </td> with seven leading tabs

which combination is unique in original index.template.php file .
Title: Re: Adding Ad Management to smf version 1.1.5
Post by: kleddon on June 06, 2008, 03:28:49 PM
At http://www.simplemachines.org

For this module: ad_mod_1-1-x_v2-3.zip

to use with smf 1.1.5

at this page
http://custom.simplemachines.org/mods/index.php?action=parse

all it said was this:

Find: [Select]
</td>

Add After: [Select]
'; //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 '

but, thanks anyway
Title: Re: Adding Ad Management to smf version 1.1.5
Post by: gri on June 06, 2008, 10:32:50 PM
Quote from: "url=http://www.smfads.com/forums/index.php?topic=1657.msg6679#msg6679]kleddon in ~Adding Ad Management to smf version 1.1.5~[/url]"]
at this page

The first source of true search strings is
install.xml file inside the mod packet.
Check it.

Concerning your page link with ~?action=parser~ -
I am getting the error:
~Sorry, but the modification could not be parsed.~


My path to a parser is:

Customize SMF
http://custom.simplemachines.org/mods/
( or http://custom.simplemachines.org/mods/index.php )

Installing mods
http://docs.simplemachines.org/index.php?board=49.0;sort=subject

Manual Installation of Mods
http://docs.simplemachines.org/index.php?topic=402

Comments:
Don't forget Daniel15's Mod Parser.
http://modparser.dev.dansoftaustralia.net/

That Parser definitely shows the ~</td>~ string
in the middle of the screen line.


And which parser and how exactly
you are browsing ?

ps.
Your forum link ?
Title: Re: Adding Ad Management to smf version 1.1.5
Post by: joejoe20 on June 07, 2008, 02:06:31 AM
gri:

heres the screen shot that the parsar says to us:
(http://img395.imageshack.us/img395/3453/ssfz8.th.jpg) (http://img395.imageshack.us/my.php?image=ssfz8.jpg)
Title: Re: Adding Ad Management to smf version 1.1.5
Post by: gri on June 07, 2008, 03:11:42 AM
Quote from: "url=http://www.smfads.com/forums/index.php?topic=1657.msg6681#msg6681]joejoe20 in ~Adding Ad Management to smf version 1.1.5~[/url]"]
heres the screen shot that the parser says to us:

Exactly.

Does each of you all.. agree that there are seven symbols of tabulation (09 Hex)
                     before the </td> symbols

all of which - it is necessary to seach for
               together with the consequent symbols "<", "/", "t", "d", ">"
?

ps.
joejoe20, thank you for showing of my mistype to me.
Seems i have fixed it.
Title: Re: Adding Ad Management to smf version 1.1.5
Post by: joejoe20 on June 07, 2008, 08:28:23 AM
Ok so i highlighted evertyhing and all i see is just spaces before the find code. I did search for it thinking it was a certain amount of spaces but still couldnt find anything.

I also tried 2 different web browsers (hopin the problem would be that, still the same outcome)

heres a screen shot of the "find code" highlights before and after it:

(http://img390.imageshack.us/img390/6421/ss2sm7.th.jpg) (http://img390.imageshack.us/my.php?image=ss2sm7.jpg)
Title: Re: Adding Ad Management to smf version 1.1.5
Post by: gri on June 07, 2008, 10:42:32 AM
Quote from: "url=http://www.smfads.com/forums/index.php?topic=1657.msg6683#msg6683]joejoe20 in ~Adding Ad Management to smf version 1.1.5~[/url]"]
I did search for it thinking it was a certain amount of spaces
but still couldnt find anything.

The symbol of tabulation is invisible -
it only creates an effect of several spaces.
But these symbols are significant in searching.

Go to original install.xml file
and try to move a cursor by an arrow along the line with tabs.
You will discover the cursor jumps on several spaces intervals.
Title: Re: Adding Ad Management to smf version 1.1.5
Post by: joejoe20 on June 07, 2008, 02:46:34 PM
I do understand now, 7 tabs then "<" "/" "t" "d" ">"

I tried notepad, dreamweaver, and also the text editor built into my ftp client still cant find it.. I guess you cant use this script on the CorpIt Theme..

Thanks For Your Help
Title: Gri to Joejoe20
Post by: gri on June 07, 2008, 10:38:40 PM
{
Quote from: "url=http://www.smfads.com/forums/index.php?topic=1657.msg6686#msg6686]joejoe20 in ~Adding Ad Management to smf version 1.1.5~[/url]"]
I guess you cant use this script on the CorpIt Theme..

Quote from: "url=http://www.smfads.com/forums/index.php?topic=1657.msg6672#msg6672]kleddon in ~Adding Ad Management to smf version 1.1.5~[/url]"]
I am editing the file:
./Themes/default/index.template.php

Seems the Author of the topic has no intentions
to discuss other themes modifications except the default one
in this his topic.
And this forum does not allow a topic author
to defend his topic from undesirable offtopic posts
(unlike gritoadmixes and antchugoviks types of topics).

Therefore,
would you like to branch the local dialogue
to a remote digrigible ?
For this purpose do begin with creating of your gritoadmix
and add the link to your forum
please.

joejoe20, Thank you.

ps.
To all:
Sorry for extra notification with no post text included.
I would allow to include.. if i was an administrator.
}
Title: Gri to Joejoe20
Post by: gri on June 09, 2008, 11:10:08 PM
Quote from: joejoe20 in ~Private Mail~
I didnt quite understand what you said here:

joejoe20,
You replied me in Private Mail.
It is a key to understanding.

Try to explain to yourself -
why have you replied to Private Mail.

And I will explain to you too.
I suppose that you replied to Private Mail
because there were no a Public Personal Mailing tool.

There _were_ no.. unless i have declared the technology
of defended dialogues in gritoadmixes and digrigibles.

To return a dialogue back to public zone
which would be natural for a Human Being -

just define your nickname for grivitational forum
and you may register on my forum with it..
or _I_ can register you on my forum with your nickname
    if you like.

Then create a first topic on my forum.
Otherwise there are no other place on the planet
where we two could speak publicly.

Grivitate to additional explanations - through my signature links.