Ad Management mod

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

Previous topic - Next topic

king999

hiiii i have dizner theme ds4 so i wanna install ads management in ds4 so help me.

Liam.

Quote from: king999 on June 06, 2010, 09:21:36 AM
hiiii i have dizner theme ds4 so i wanna install ads management in ds4 so help me.

Parse it and manually install it.

iSutton59

How do I place ads right underneath the menu options (standard template/theme) while inside the message boards?  I currently have it doing this in my main page, but want to see ads in this same location while inside the message board - I tried all the options under Ad Settings, but it didnt work.  Thanks so much.

vbgamer45

I would try modifiying the index.template.php of theme since that is like a global headers and footers and anything you include there would be visible on any page in the forum
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

KirkhamsEbooks

Using RC3 I uploaded the ad mod, but did not get an install command under packages. Any suggestions?

Rick

Arantor

Quote from: KirkhamsEbooks on June 07, 2010, 02:30:17 PM
Using RC3 I uploaded the ad mod, but did not get an install command under packages. Any suggestions?

Rick

Which version of the mod?
Holder of controversial views, all of which my own.


KirkhamsEbooks

That was the problem

I assumed the top one was the most recent when I noticed the 2 at the end of the file name on the bottom .

I'm on the way over for an IQ test now and don't expect to do well

Rick

vbgamer45

Glad you got it figured out!
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Speakman

#5388
Hey guys


like the concept of your mod, but can't make the manual edits to get it working.

site: hxxp:blackwatch.net.nz [nonactive]
Build: SMF 2.0 RC3 w/ Porta MX and Black Rain Theme

my issue is with index.template.php in the default theme (or the Black Rain theme) directory


i cannot find

<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '

and

<div id="content_section"><div class="frame">
<div id="main_content_section">';


and

echo '
</div>
</div></div>';


to make the manual edits after.

attached is index.template.php (current version from default theme directory), and index.templateBR.php (current version of index.template.php from the Black Rain Theme directory)


i have looked through the backups of my original files, with no luck.

vbgamer45

Make sure are doing the correct manual install instructions with the right SMF version that you are using on the mod site.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Speakman

i am using: http://custom.simplemachines.org/mods/index.php?mod=255

with

ad_mod_v2-3-6-2_SMF_v2-0.zip selected, parsing Manual Install Instructions for SMF 2.0 RC3

vbgamer45

Would I do is normally take the default theme index.template.php find where the edits go then look for a similar location in the custom theme.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Speakman

when i search the .php file, i cannot find where to make the edit.


the three parts of code i pasted into my original post aren't there :(

C4G-TK

Quote from: C4G-TK on January 30, 2010, 01:39:53 PM
I see where people have asked to get the background color changed in the ads that appear in threads as posts.  But, I don't see where anyone shows where to change it.  Can someone just post where to change it?  I'd like to do the editing myself instead of making someone else do it for me.  I just want to have the background appear like the normal post background or board background.

BTW, is there a way to not have the QUOTE button (and other buttons) appear in those posts?

Yikes, took me long enough to get back to doing this.  Thanks for your help, vbgamer45.




I changed...

if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg">


to this...

if($modSettings['ads_lookLikePosts'])
{
echo '
<div class="windowbg2">


because I have it set up that Ads appear after the first post.  I wanted the Ad to appear not part of the first post since the first post uses windowbg.  That worked great.




Then, to get rid of some of the buttons and things, I ended up deleting the following from the code because I didn't want people quoting the Ad posts and saying anything rude about the potential advertisers.  LOL. 

I ended up getting rid of a lot more than the quotes.  I got rid of the forum name because I wanted things to be more distinguished.  I didn't want members to associate so closely the forum and the advertisers as being the same.  Having the name there kind of clouds the message.  (Kind of like how editorials have the disclaimer of being the "views expressed in this blah blah blah are not the necessarily the views of the station.")  I did this by deleting...

<div class="poster">
<h4>', $context['forum_name'], '</h4>
</div>



<div class="messageicon">
<img src="', $message['icon_url'] . '" alt="" border="0" />
</div>
<h5 id="subject_', $message['id'], '">
<a href="', $message['href'], '" rel="nofollow">', $message['subject'], '</a>
</h5>
<div class="smalltext">&#171; <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' &#187;</div>
<div id="msg_', $message['id'], '_quick_mod"></div>



// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a>', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a>', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a>', $txt['split'], '</a></li>';



Everything now looks the way I want it to look.  I'm not showing any errors or anything, but is there anything that I deleted that would cause problems? 

I'm going to do the same thing for the last Ad in a thread, too.


Once again, thanks for your help!  :D

-img removed-

uninvited13th

2.     Execute Modification     install.xml     Modification parse error
3.    Execute Modification    -                    Modification parse error


help please.. im using smf 1.1.11

qubbah

i didnt find
} echo ' </form>  </div>  <a id="lastPost"></a>';
in my display.template.php

hope anybody can help..

vbgamer45

Check the default theme then look for similar code/location in your theme that's what I do for custom themes if I can't find a match
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kartheekb

getting error???

MY Version: SMF 2.0RC3
Theme: Outlook

i have installed Ad management Mod & after that i have installed simple ads MODS

I am getting error





what to do now?


when i am trying to uninstall

www.jntuhub.com/forum (check out my forums)

vbgamer45

You need to uninstall mods in the order they were installed in order for them to uninstall cleanly last to first
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kartheekb

So i need to uninstall every MOD?


i have installed nearly 20 MODS?

so need to uninstall all?
www.jntuhub.com/forum (check out my forums)

Advertisement: