News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Ad Management mod

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

Previous topic - Next topic

BoA

2) When using Opera, a white space is left when the Ad management MOD tries to dsplay Google Adsense. (even though I set the background color exactly the same as the background color of the board)

Round11

Wonderful job.  Works wonderfully on my board.  Much appreciated.

hjiljgkl

Great mod, good for making your ads easy to add and not making them look out of place ;)

ComputerLady

I like the idea of this mod a lot, but did get errors when I tried to install (ad_mod_rc2_v1-2.zip from MOD download area). Attempts to open the 'Features and Options' section would produce a fatal error. Was able to remove it, and delete it. For some odd-ball reason, the 'AD' section within 'Features and Options' now shows! Anything added here doesn't show up because the rest of the mod is gone.

Using SMF 1.1 RC2, with new default theme. (No real customization there.)

Other MOD's installed:
1.    Enchanced post template      1.0.1
2.    Attachments Mod    1.0
3.    Board Viewers    0.6
4.    Merge Double Posts    1.04
5.    Report PM to Administrator    0.2
6.    CAPTCHA (code verification)    0.1
7.    VisualWarning    1.3    
8.    SMF 1.0.7 / 1.1 RC2 Update    1.0
9.    Custom Profile Mod    1.11
10.    Reason For Editing Mod    1.12
11.    Topic Ratings    1.03

I can remove some of these MOD's, especially those that are not all that useful to assist with troubleshooting. (Some of them have kind of outlived their usefulness as my moderators have grown more sophisticated.) 
The Computer Lady!
Design Works Internet - CEBUG
Custom Web Design & Programming, Video Tutorials

Niteblade

How do I disable, not just hide, my forum name from being displayed as the poster of the ads after the first topic ?

I would like the entire space after the first post to be reserved for ads; No date, no buttons ( quote, modify, remove, split topic ) , no icon, no subject line, no forum name : nothing but an ad.
affiliate blog

Bigguy

Computerlady, if your installing onto smf 1.1 rc2 you should be installing this version:
ad_mod_rc2_v1-5.zip

@ nite0859: I don`t think you can do that without making aditional edits.

jerm


Vinspire

Quote from: electrohome on June 19, 2006, 12:48:30 PM
version 2 is now out

Awesome !!! And i guess i am the first to get to download it.

ad_mod_rc2_v2.zip (15KB)     Download : 1

;D ;D ;D

tosp2

Before I install this new version, so I know what I am doing right off the bat...how will this upgrade affect my modifications for my custom theme that I had to do in version 1?  Will it work with these modifications?  Will it overwrite them?  Will I have to do the modifications for each file again for the theme?  Will I encounter any errors due to the modifications I had to do?  Im excited to install this, but nervous about screwing up the way its working now.  Can you please advise on this matter?  Thanks

Bigguy

If you had to install the last version of the Ad mod manually then you will have to take out those edits and replace them with the new edits. The edits for this mod differ from 1.5 so you will have to refer to the install.xml file for the manul way to add the code to your theme.

Try going here for more help

tosp2

Ugghh, that was a job in itself the first time  LOL  Wasnt looking forward to doing it again.  Thanks anyway!

P.S.  I'm assuming that I can just overwrite the existing modifications with the new ones? Or do I have to completely go back down to the bare files again by removing the current edits and start fresh with the new ones?

Bigguy

I would suggest uninstalling 1.5 if that is the version you have installed, removing the edits. Then installing the new one on the default them and add the new edits to your theme you are using.

EDIT: This version is only for smf 1.1rc2

ComputerLady

Quote from: electrohome on June 19, 2006, 12:48:30 PM
version 2 is now out

Guess I was trying wrong version. At any rate, installed new one with no problems or errors. Now all I need to do is finish writing the code for my ad section! Much appreciated and good job!

Before I forget, I better get over and become a charter member. Been meaning to do that for a while....
The Computer Lady!
Design Works Internet - CEBUG
Custom Web Design & Programming, Video Tutorials

Bigguy

Glad it installed ok for you. It`s nice your suporting smf, glad to hear that to. ;)

muhammadasad

I am trying to install Ads mod on my SMF 1.0.7 but its not working. I also download mod from http://mods.simplemachines.org/index.php?mod=255 for SMF 1.0.7, it was installed but it doesn't working.

Bigguy

I this the one you downloaded for smf 1.0.7:

ad_mod_1-0-7_v1-0-2b.zip

RBH

#536
i went to uninstall 1.5 and had errors so i manually removed. i then went to install ver 2 and had errors in display template. i am trying to make the changes to display template but hit a snag.

here is what i have.
</td></tr>';
if($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;">&nbsp;</td></tr>';
}

if($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;">&nbsp;</td></tr>';
}

}

}
echo '


it looks like something got added twice maybe when i installed a sticky post mod a while back? the question i have though is what to remove and what to replace for the ad mod. here is whats suppose to be searched for
<search position="replace"><![CDATA[ </td></tr>';
}]]>
</search>


here is the code that gets added

</td></tr>';
if ($adpost = show_posts($adcounter))
{
echo '

<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg3">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>
<div class="smalltext">
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><img src="', $message['icon_url'] . '" alt="" border="0" /></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>
<div class="smalltext">« <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' »</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
', $reply_button, '';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
', $reply_button, '';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
', $modify_button, '';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
', $remove_button, '';

// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
', $split_button, '';
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post">', $adpost['type'] == 0 ? $adpost['content'] : eval($adpost['content']) , '</div>
</td>
</tr>
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />&nbsp;', $txt[511], '
</td>
</tr></table>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}

}


any ideas or suggestions? ???

Bigguy

Take the top edit out...unless you don`t have that mod installed now then take them both out and add the normal edit for the add mod. BACKUP BACKUP BACKUP

RBH

thanks bigguy, so far so good. ;D  love the new features electrohome!

jerm


Advertisement: