News:

Welcome to SMF Ads Support Forum

Main Menu
Coinbase

Edits for ad_mod_rc2_v2 for themes other than default

Started by bigguy, June 20, 2006, 08:26:59 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

botcee

Hey bigguy, really appreciate for your doing this for us.I have added the codes in all the places except index.template.php.Im attaching the untouched version, could you please modify it and give it to me?Thanks a lot


bigguy

@ botcee: um What theme is this. It is completely different then anything I have seen. I don't think I can edit this.

Rastarr

Quote from: bigguy 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.

OK, I understand. I've done this however all the formatting is now wrong, per the attached example.
Have you been unable to properly insert the ad mod code into this theme?

BlueJayWay

Quote from: bigguy on October 28, 2006, 03:59:29 AM
@ BlueJayWay: Is this your error or did you get this solved. ??? If you didn't you can send me your template files and i will see what I can do. ;)

The error I got after editing.
The files are attached, thank you.


botcee


mutya

hello bigguy,
still have the same problem with the parse error  :(
can you pls. help? see the error below:
thank you!

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/dilbermc/index.template.php on line 260

251:                echo $ads['content'];
252:             else
253:                eval($ads['content']);
254:             echo '</td>';
255:          }
256:          unset($ads);
257:    echo '
258:
259:    echo '

260:                <td valign="middle" height="30" style="padding-top:0px; padding-bottom:0px; padding-right:20px" class="middletext" align="right">

261:             <form action="', $scripturl, '?action=search2" method="post" style="margin: 0px;">
262:                <a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0px;" alt="" /></a>
263:                <input type="text" name="search" value="" style="width: 190px;" />
264:                <input type="submit" name="submit" value="', $txt[182], '" s

bigguy

Try taking out the extra echo on line 259. I don't think 2 are need there. See if that helps. That looks wrong to me to echo statements in the same place.

bigguy


mutya

Quote from: bigguy on November 13, 2006, 09:17:03 PM
Try taking out the extra echo on line 259. I don't think 2 are need there. See if that helps. That looks wrong to me to echo statements in the same place.
it worked! you're the guy, bigguy! tnx!  :)

Nikitostik

#190
Hi all! I have a problem to, if i edit some sing in index.themplate.php i see only errors and my board don´t open
maybe you (bigguy) can look it. Theme is Ih-oh  and SMF 1.0.9

Thanks in Advice!

angie1791

Just want to say THANKS bigguy!  Your modifications work great! I am using Ig-Oh theme (1.1 RC3) and was able to get it working with no further modifications.

You're awesome!   ;)

Ange

bigguy

@ Nikitostik: try this.

@ angie1791: You are more than welcome.


Nikitostik

Thanks but the same, board show me folloing error: Template Parse Error!
There was a problem loading the /Themes/igoh10xb/index.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.
----------------------------
i can´t edit nothing, if i edit somesing, board shows me errors

axlarry

bigguy, thanks for this mods and the tips. I have done all the editing, except for the index.template.php as I can't find any code that I have to edited  :'( As I said on another thread, I'm using RC3 and orange-lt2 theme. Would you pls look into the file?

Thanks bigguy :)
I'm using SMF on my Science Forum :D