Coinbase

Author Topic: Edits for ad_mod_rc2_v2 for themes other than default  (Read 156635 times)

0 Members and 1 Guest are viewing this topic.

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #30 on: July 25, 2006, 04:31:52 pm »
Set your permissions for each membergroup to see the ads.

Offline Cholo

  • Jr. Member
  • **
  • Posts: 35
    • The Tarheel Forum
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #31 on: August 11, 2006, 04:25:25 pm »
 Hey bigguy, I'm running the Dilber MC theme and I'm still confused about that </td> that I need to find. Could you help me locate exactly which one I'm looking for? Thanks a bunch.

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #32 on: August 11, 2006, 05:39:37 pm »
There will only be a few that have the space infront of it. Thats what you have to look for.

Quote
      </td>

Offline Cholo

  • Jr. Member
  • **
  • Posts: 35
    • The Tarheel Forum
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #33 on: August 11, 2006, 06:33:50 pm »
 Then do I add code after each one I find with the space in front of it? or just the first? Could you please show me a little more of the code that goes before and after that particular "</td>?
-I just got done editing the boardindex.template.php and I've noticed that I can't find any display.template.php -->Was there one to begin with? or did something happen, bc now I've got "error_log" in bold black there. This has got me worried, I appreciate all your help already. Thanks  :'(
« Last Edit: August 11, 2006, 07:17:04 pm by Cholo »

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #34 on: August 11, 2006, 09:39:27 pm »
Any template files that you dont find in a theme you are trying to modify means that smf is reading from the "Default" theme templates, so there is no reason to edit or try to find files that aren`t there. I will look in my index.template.php and find the position of the code for you. hold on for a minute or 3. :)
« Last Edit: August 11, 2006, 09:49:45 pm by bigguy »

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #35 on: August 11, 2006, 09:48:34 pm »
In the dilberMC theme in the Index.template.php find:

Code: [Select]
<td valign="middle" height="30" class="smalltext" style="padding-left:10px; padding-top:0px; padding-bottom:0px;">
<b>', $txt[102], '</b>: ', $context['random_news_line'], '
</td>
';

After that put:

Code: [Select]
        //Welcome Ads
$ads = show_welcomeAds();

if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
echo '

Offline Cholo

  • Jr. Member
  • **
  • Posts: 35
    • The Tarheel Forum
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #36 on: August 11, 2006, 10:00:26 pm »
Thanks a ton, I'll do that- I've been waiting for you to get on here all day. haha.
 Hey, two more questions
-So, I need to edit the display.template.php in the default theme? (I was just wondering about that template bc the Classic Yabbse      theme and the Babylon theme have that template, but I guess Dilber MC does not).
-My ads (on the bottom of the page) are off to the left; of course I'm not done with all the edits yet-Should they center themselves  when I'm done or do I need to do something else? Thanks again!

-oh yeah, and so I shouldn't be scared of the "error_log"?
« Last Edit: August 11, 2006, 10:03:58 pm by Cholo »

Offline Cholo

  • Jr. Member
  • **
  • Posts: 35
    • The Tarheel Forum
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #37 on: August 11, 2006, 10:15:11 pm »
  I put it here-this is what my code looks like now. I saved the changes and I got a parse template error. Or parse code, I forget. haha.



          </td>
         ';
     //Welcome Ads
         $ads = show_welcomeAds();
   
         if(!empty($ads))
         {
            echo '<td class="windowbg2">';
            if($ads['type']==0)
               echo $ads['content'];
            else
               eval($ads['content']);
            echo '</td>';
         }
         unset($ads);
   echo '
 
 

        echo '
            </form>

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #38 on: August 11, 2006, 10:28:52 pm »
Putting center tags around the ad code should center it. Did you find the code I talked about and place the ad code in the right spot ??? I can`t help but seeing this in your code:

Code: [Select]
</form>
that is not part of the ad code or the template i don`t think. ( I closed my editor but I didn`t see that anywhere)

Offline Cholo

  • Jr. Member
  • **
  • Posts: 35
    • The Tarheel Forum
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #39 on: August 12, 2006, 12:21:23 am »
 Yeah, that part is just the code that follows where I put in the part you told me to.  My forum's not showing up now-parse template error  >:(

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #40 on: August 12, 2006, 12:35:18 am »
Did you place it like I said 5 posts up ???

Offline Cholo

  • Jr. Member
  • **
  • Posts: 35
    • The Tarheel Forum
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #41 on: August 12, 2006, 12:54:58 pm »
1.  Just like that, and it screwed up my template for some reason  :-\  RebelRose gave me her template and I just overwrote my messed up one with hers and now I'm fine. I am still wanting to finish doing the edits I need for the ad mod, so I guess I'll just try it again.
2. So bigguy, for the ad mod, what I need to do is edit the templates of the Dilber MC theme, right? Except for the files that it doesn't have, like display.template.php -- with that file (for example) I need to edit the default files. correct?

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #42 on: August 12, 2006, 12:58:51 pm »
When you install a modification through the package manager it modifies the default theme so no you don`t have to touch the default templates unless the mod didn`t install right. All you need to edit is the temlpate files in the DilberMC theme folder.

EDIT: And maybe the Modifications.english.php file

Offline Cholo

  • Jr. Member
  • **
  • Posts: 35
    • The Tarheel Forum
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #43 on: August 12, 2006, 10:02:30 pm »
 In your instructions for editing modified themes, it calls for editing the "display.template.php" file. My Dilber MC theme doesn't have that file. So does that mean I go look for that file in the default theme and edit it there? or does that mean that I just don't make the edits to display.template.php?

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #44 on: August 12, 2006, 10:23:24 pm »
When you install a modification through the package manager it modifies the default theme so no you don`t have to touch the default templates unless the mod didn`t install right. All you need to edit is the temlpate files in the DilberMC theme folder.

EDIT: And maybe the Modifications.english.php file


SMF Ads Support Forum

Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #44 on: August 12, 2006, 10:23:24 pm »
.

 

.