News:

Join the Facebook Fan Page.

Main Menu

Banner Mod

Started by Midgard, January 08, 2005, 12:32:16 PM

Previous topic - Next topic

dtm.exe

I can't seem to get this to work ::)  Does it only work with the default SMF theme?

-Dan The Man

Jerry

it will work with other themes, but you must the code manually to other themes.


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

dtm.exe

#42
And how would I go about doing that?

-Dan The Man

Jerry

since I just got my forums online I will tell you :P
<edit file>
$themedir/index.template.php
</edit file>

<search for>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
}
</search for>

<replace>
<td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
showBanner($zone = 'top');
}
</replace>

<search for>
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
</search for>

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

showBanner($zone = 'bottom');
</replace>


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

dtm.exe

OK, you're going to have to help me out here.  All I see is one big code, what file do I edit?!

-Dan The Man

Jerry

#45
in that code there are these tags

<edit file>
</edit file>

Those will tell you which file to edit.

<search for>
</search for>

Search for that in the file it told you to

<replace>
</replace>

will tell you what to replace what you searched for with.

Hopes that makes sense :-\


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

dtm.exe

#46
Wow, I am such a n00b because all this stuff you're saying to me makes no sense at all...

-Dan The Man

ingmar

Unknown column 'WINDOW' in 'field list'
Bestand: /home/2445/parkieten-land.nl/HTML/smf/Sources/Banner.php
Regel: 362


This is what i getr, when adding a banner. what is going wrong.

Pause

Here's a suggestion - can the option be made to add in HTML code instead of the image? For example, if somebody wanted to put Google Adsense code
"You and me, inside that box, now." - The Doctor

Bite Fusion
Fusion Web Network
VG Fusion
Wrestling Fusion + Wrestling Fusion Forums

webhigh

Does the Banner mod allow you to attach banners to particular category forums of message boards. For example I have created a category for a particular group and within that group is their clients I'd like to be able to create a banner that just those clients see - an ad for the vendor that just their clients will see.

I don't know if I'm explaining this correctly.

Thanks

Jerry

no, this mod only has one set of banners. But you can control which groups get to see banners


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

gusto5

#51
Quote from: ingmar on January 22, 2005, 03:47:10 AM
Unknown column 'WINDOW' in 'field list'
Bestand: /home/2445/parkieten-land.nl/HTML/smf/Sources/Banner.php
Regel: 362


This is what i getr, when adding a banner. what is going wrong.

i get the same thing: (when i try to add a new banner)
Unknown column 'WINDOW' in 'field list'
File: /home/gusto5/public_html/board/Sources/Banner.php
Line: 362

Bullcat Webhosting

You have to rename a fieldname TARGETWINDOW in your banners table to WINDOW you can do that with phpMyadmin !


Wij ondersteunen SMF forums & safe mode staat uit.

gusto5

and by what means do i do that? ive never used phpMyAdmin before :S

Jerry



- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

gusto5

Ive fixed the problem, but only registered users can see it :S

Jerry

you have go on your Admin Panel -> Edit Permissions -> (the group you want) -> Allowed to View Banners.


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

gusto5

OK. Im finally good with the mod. thanks alot./

danking

I would really like to use this in the xt enchanced theme

www.connexions.mfhosting.com/smf

I would like to be able to have small gifs that link to other sites where currently it says connexions arcade but dont no what to edit please help :)

Pause

Quote from: danking on January 26, 2005, 12:01:06 PM
I would really like to use this in the xt enchanced theme

www.connexions.mfhosting.com/smf

I would like to be able to have small gifs that link to other sites where currently it says connexions arcade but dont no what to edit please help :)
Look in the .mod file that comes in the package, and find the template.phip files that it mentions, and do those edits to the theme you wish it to appear on.
"You and me, inside that box, now." - The Doctor

Bite Fusion
Fusion Web Network
VG Fusion
Wrestling Fusion + Wrestling Fusion Forums

Advertisement: