SMF Ads Support Forum

Support => Ad Support => Topic started by: Mr. M on October 21, 2006, 02:32:28 AM

Title: Changing default username for ads in posts
Post by: Mr. M on October 21, 2006, 02:32:28 AM
Hi there,

I must say this is a great mod!  Thank you a lot!  It's very easy to use.

My question is about the ads that show up in the posts.  Can you tell me the line and in which file I need to modify if I want to change the username that appears for the ad post.  Right now I see it is set to the forum title but I have a long forum title so I would like to change it to something simpler.

Thanks again

Matt
Title: Re: Changing default username for ads in posts
Post by: jerm on October 21, 2006, 07:17:13 PM
I only did that because of the fact that most advertisers don't like you putting the words "ads" or any variant of that next to their ads. I do understand your problem though..
Display.template.php
Look for these two lines:
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $context['forum_name'], '</b>

Replace <b>', $context['forum_name'], '</b> with whatever you want
Title: Re: Changing default username for ads in posts
Post by: bigguy on October 21, 2006, 07:57:23 PM
Damn, I was trying to guess where that line might be, got it wrong, lol. Oh well, can't be right about everything.
Title: Re: Changing default username for ads in posts
Post by: Mr. M on October 23, 2006, 12:47:32 PM
Thanks!  It works and looks better now.
Title: Re: Changing default username for ads in posts
Post by: DoA on October 30, 2006, 10:18:32 AM
Yup, was gonna say, why not just hard-code it in.

Got it sorted now?