Coinbase

Author Topic: Edits for ad_mod_rc2_v2 for themes other than default  (Read 164337 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 #165 on: November 01, 2006, 10:15:56 am »
Ok you can post them here again and can you also post the version of SMF that you are running and what version of the ad mod. Lately people haven't been very clear about that.

Offline Rastarr

  • Jr. Member
  • **
  • Posts: 10
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #166 on: November 01, 2006, 05:39:40 pm »
Sure, sorry about the lack of clarity.

I'm using SMF Live Forum Messanger theme 1.1 RC2 and the SMF Ads v2.0
The files are attached.

Cheers and thanks again

Offline botcee

  • Newbie
  • *
  • Posts: 8
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #167 on: November 02, 2006, 08:02:36 am »
@ botcee: have you edited this file or is it a un-modified version of your template. ???

semi edited version :(

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #168 on: November 02, 2006, 12:42:23 pm »
@ Rastarr: Try this file and see if it works. I am going to do this one at a time so I know which has the error. This one might produce one because of the edit near
Code: [Select]
         </td>
EDIT: I know the BoardIndex.template.php is right so here is that file.
EDIT: The MessageIndex.template.php should be ok to.
« Last Edit: November 02, 2006, 12:51:44 pm by bigguy »

Offline Rastarr

  • Jr. Member
  • **
  • Posts: 10
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #169 on: November 03, 2006, 09:07:25 am »
bigguy,

Still testing though looks pretty darn good so far. Certainly look forward to the last file you're working on - thank you so much for your work so far.

Now if I can only get rid of these pesky non-English ads, I'll be in heaven  ;D

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #170 on: November 03, 2006, 10:29:41 am »
So all those work fine then, awesome. Are these NON-edited files. Do they have any other mods installed on them. ??? Here is the last file:
« Last Edit: November 03, 2006, 10:33:38 am by bigguy »

Offline Rastarr

  • Jr. Member
  • **
  • Posts: 10
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #171 on: November 03, 2006, 10:34:21 am »
Bog standard - no mods installed, no past edits done.
Still testing the 3 out of 4 files in off viewing time - looks good though. Haven't tested skyscraper mode yet either.

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #172 on: November 03, 2006, 10:43:03 am »
Ok, if these edits work I am going to zip these for everyone else to use. What theme is this again, lol. (Sorry short memory)

Offline Rastarr

  • Jr. Member
  • **
  • Posts: 10
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #173 on: November 03, 2006, 10:24:11 pm »
I installed the display.template.php file and received the error below:

Code: [Select]
Template Parse Error!
There was a problem loading the /Themes/SLFM/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected $end in .../Themes/SLFM/Display.template.php on line 1105

1096: // Finally the most important bit - the actual text box to write in!
1097: echo '
1098: <tr>
1099: <td valign="top" align="right"></td>
1100: <td>
1101: <textarea class="editor" name="', $context['post_box_name'], '" rows="', $context['post_box_rows'], '" cols="', $context['post_box_columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="6"></textarea>
1102: </td>
1103: </tr>';
1104: }
1105: ?>
1106:
1107:

I also notice that the 'Display ads in the welcome user area' option plonks an Ad into the News banner section like the attached - is that the position it's meant to be ?

This theme is called SMF Live Forum Messenger over at http://ztut.com/

Cheers
Rastarr

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #174 on: November 03, 2006, 11:22:11 pm »
Ok, rename your display.template.php file to display.template1.php and SMF should pick it up from the default template file. As for were the welcome ads are shown; I can't be exactly sure where they are going to show up as every template file is different. I only go by the edits in the .xml file of the ad mod. If you would like it customized for your theme then that would require a little more work and time, but could be done.

Offline Rastarr

  • Jr. Member
  • **
  • Posts: 10
    • Email
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #175 on: November 03, 2006, 11:31:19 pm »
Not sure I understand, bigguy.
Do you mean I have both a modded file called display.template.php file and an unmodded original file called display.template1.php and that this fixes the above error?

Offline botcee

  • Newbie
  • *
  • Posts: 8
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #176 on: November 04, 2006, 04:48:22 am »
dude i really need to get my index.php fixed...could you please rectiy that thing please?

Offline lill-micke

  • Newbie
  • *
  • Posts: 2
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #177 on: November 09, 2006, 05:12:58 am »
Hi!

I use:
Forum: SMF 1.1 RC3
Portal: MKPortal M1.1 Rc1
Theme: pdx-dk03 RC3

I hava installed this grate mod whit the package manager.
And I have alter my theme after the first post in this Topic.
But I have one problem, I get this error when I enter a Topic:

Code: [Select]
Parse error: syntax error, unexpected $end in /hsphere/local/home/bikerlin/bikersite.se/forum/Themes/pdx-dk04rc3/Display.template.php on line 758

I have attachment the four files that have to bee altered (The files that I attached are original and not altered)

Can enyone alter or help me to alter this files so I don't get this error?

//Micke
« Last Edit: November 09, 2006, 10:03:16 am by lill-micke »

Offline lill-micke

  • Newbie
  • *
  • Posts: 2
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #178 on: November 09, 2006, 10:19:00 am »
I have fixed that problem, but now I have this problem.
I get this error where the Ads will show in the forum:

Code: [Select]
Parse error: syntax error, unexpected '<' in /hsphere/local/home/bikerlin/bikersite.se/forum/Sources/Load.php(1702) : eval()'d code(12) : eval()'d code on line 1

Why do I get this error?

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #179 on: November 09, 2006, 09:18:00 pm »
@ Rastarr: No I mean rename the display.template.php file in your theme to display.template1.php

This way SMF will read off of the default theme for that template file and the edits should already be there.

@ botcee: There are no edits that go ito the index.php file. If I have forgotten about you I am sorry I have been a bit busy lately. Please send me a link to the original post and I will try to get things sorted out for you.

@ lill-micke: Then try doing the same as I have told Rastarr to do. This should take care of that problem.

SMF Ads Support Forum

Re: Edits for ad_mod_rc2_v2 for themes other than default
« Reply #179 on: November 09, 2006, 09:18:00 pm »
.