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

myaicons

Quote from: babjusi on January 18, 2008, 09:25:32 PM
Have you made the necessary edits needed for the mod to work on a custom theme?

umm... no... what kind of necessary edits?
i scratch your back you scratch my back...
funny thing about my back is its located on my...

babjusi

Quote from: myaicons on January 18, 2008, 09:38:00 PM
Quote from: babjusi on January 18, 2008, 09:25:32 PM
Have you made the necessary edits needed for the mod to work on a custom theme?

umm... no... what kind of necessary edits?

All the mods work only with the default themes. I order to make them work with custom themes some changes are required. Fore more info have a look at the below links

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

http://sleepycode.com/PackageParser/index.php

Bigguy

If you are running a custom theme you can still install the mod as long as there are no errors. After that all that is left to do is template edits. Which means only do edits to the necessary template files that are in your custom theme folder.

babjusi

Quote from: Bigguy on January 18, 2008, 10:16:50 PM
If you are running a custom theme you can still install the mod as long as there are no errors. After that all that is left to do is template edits. Which means only do edits to the necessary template files that are in your custom theme folder.

Judging from his/her screenshot, he/she has already installed the mod. So the only thing left now, would be only the 4 template edits of the custom theme, hence my links above

myaicons

ok... sorry.. i was just in the smfads site and saw the post for the edits... (please kindly delete my inquiry there)

all of my files were installed correctly except for the index.template.php ...

so i added the appropriate codes for the file and my ads started showing up... all except for the </td>

// Welcome Ads


because im not sure which instance of the </td> i need to add the code to... (theres quite a few...)

so... if someone would clarify.... id be peachy keen!



(also the reports thing i just saw on firefox... and i guess those are check marks idicating placement... doh... thought there would be some cool number or image or something)
i scratch your back you scratch my back...
funny thing about my back is its located on my...

Bigguy

I was just making sure that they new all they had to do was the template edits and not all of them. That was not explained. :)

That edit might not be in all themes...at least I have a hard time finding it in some themes and I have edited a lot of them. :)

myaicons

Quote from: Bigguy on January 18, 2008, 10:37:57 PM
That edit might not be in all themes...at least I have a hard time finding it in some themes and I have edited a lot of them. :)

im actually using the default theme...

maybe you can let me know which line to find the </td>??
i scratch your back you scratch my back...
funny thing about my back is its located on my...

babjusi

Quote from: myaicons on January 18, 2008, 11:02:13 PM
Quote from: Bigguy on January 18, 2008, 10:37:57 PM
That edit might not be in all themes...at least I have a hard time finding it in some themes and I have edited a lot of them. :)

im actually using the default theme...

maybe you can let me know which line to find the </td>??

From the screenshot that you provided above it was a custom theme. Did you switch back to the default?

Anyhow, no changes are needed for the default theme, provided that the mod installed clean without errors. But if you got an error/errors, during the install, then make a note of the files that gave the error messages and then apply manually the codes that the ad mod ads to those files. Hope this helps

myaicons

Quote from: babjusi on January 18, 2008, 11:07:31 PM
From the screenshot that you provided above it was a custom theme. Did you switch back to the default?

nope...it is in fact a copy of the default theme (core)...

i just changed the background resized the table and fancied up the header and footer...

i scratch your back you scratch my back...
funny thing about my back is its located on my...

Bigguy

If it is the default theme you are using then the mod should have found and done that edit. If there were no errors on install then that edit is done.

Quote from: myaicons on January 18, 2008, 11:02:13 PM
Quote from: Bigguy on January 18, 2008, 10:37:57 PM
That edit might not be in all themes...at least I have a hard time finding it in some themes and I have edited a lot of them. :)

im actually using the default theme...

maybe you can let me know which line to find the </td>??

myaicons

#2050
Quote from: Bigguy on January 18, 2008, 11:39:23 PM
If it is the default theme you are using then the mod should have found and done that edit. If there were no errors on install then that edit is done.


aha... ive figured it out... it edited the index template on my default folder and not my copy of the default theme folder

(yet it the forum actually pulls the rest of the necessary files from the default folder even when using my modified default theme)

so i added that last bit of code...

above this little ditty right?

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

echo '
<table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>';



and now i know... where the alleged "welcome user area" is :)


i scratch your back you scratch my back...
funny thing about my back is its located on my...

Bigguy

Glad to hear you figured it out. ;) With a little work anything is possible. :)

The Tornado

#2052
hello
i just have this question
when i wanted to edit index.template.php  in my theme to use Ad management mod
i got this
<search position="before"><![CDATA[                     </td>]]></search>

the problem that u can find lots of </td> in the file
where should i put the next code ?
plz help me
i m waiting to go on editing the files

i am using dilbermc

any one could tell me about the line number (if we considered that the index.template.php is not modified)
help yourself by helping others

IT Group Syria Official Website

myaicons

aha... i knew i wasnt crazy!  someone else couldnt find the right </td>!

@ the Tornado

read my post above... is the answer.

i scratch your back you scratch my back...
funny thing about my back is its located on my...

The Tornado

Quote from: myaicons on January 19, 2008, 01:58:04 PM
aha... i knew i wasnt crazy!  someone else couldnt find the right </td>!

@ the Tornado

read my post above... is the answer.



hello my friend
you know what
I searched and searched alot
and i found 6 TDs with the corresponding pre-spaces

i thought that i am not professional enough to make it :)

any way
i read ur post
but u were talking about the default theme ... i v dilbermc
help yourself by helping others

IT Group Syria Official Website

The Tornado

so no one here to answer me ?
help yourself by helping others

IT Group Syria Official Website

Bigguy

Dilber might not have that edit in it. You can leave it out and the mod will still work.

The Tornado

Quote from: Bigguy on January 20, 2008, 12:24:49 PM
Dilber might not have that edit in it. You can leave it out and the mod will still work.

r u sure about it ??
help yourself by helping others

IT Group Syria Official Website

Bigguy


L.G.S

Been using the ad mod for a while, but only just noticed this.

I have a moderator of one forum, which has global permissions. This moderator can see ads under posts even though in the global permissions I have set it so that every membergroup EXCEPT guests do not see any ads at all.

This is not happening for super mods, normal members etc. How can I sort this? I tried making the permissions local then turning off ads for mods, but that option isn't there.
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Advertisement: