Ad Management mod

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

Previous topic - Next topic

callteg4

Hi I have a problem I am getting install failed on display.template and managepermissions any ideas please

holly.celeb.fan

Any one please help me.
How I show advertise to guest ??

ccbtimewiz

Quote from: holly.celeb.fan on August 27, 2008, 03:11:01 AM
I have one question.

Why Advertise not display to guest ?
Is there any way to show advertise to guest ?

Admin > Permissions > modify guest

Quote from: callteg4 on August 27, 2008, 06:41:56 AM
Hi I have a problem I am getting install failed on display.template and managepermissions any ideas please

What mods do you have installed?

grevan

Hello to all, i´m having trouble editing the Pn-Pn Theme. I´ve tried to edit the php files using the SMF Package Parser, but i´m getting some errors. I don´t know php so it´s being hard.
I get this message:
Template Parse Error!
syntax error, unexpected T_STRING, expecting ',' or ';'
The code is here:
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


I think the error is in this line: if($ads['type']==0)

Any help?
Thanks a lot.

ccbtimewiz

Find:
if(!empty($ads))

Replace with:
if( !empty ( $ads ) ) {

Find:
eval($ads['content']);

Replace with:
eval( $ads['content'] ); }

grevan

Thanks ccbtimewiz, but i still get the same error.
I replaced everything you said.

ccbtimewiz

Quote from: grevan on August 27, 2008, 11:45:57 AM
Thanks ccbtimewiz, but i still get the same error.
I replaced everything you said.

Strange. Can you attach your index.template.php file?

grevan


ccbtimewiz

Various echo() problems. Fixed them all; here you are.

grevan

Thanks for your time! But i get a different error now:
syntax error, unexpected $end

ccbtimewiz


callteg4

Quote from: ccbtimewiz on August 27, 2008, 11:16:22 AM
Quote from: holly.celeb.fan on August 27, 2008, 03:11:01 AM
I have one question.

Why Advertise not display to guest ?
Is there any way to show advertise to guest ?

Admin > Permissions > modify guest

Quote from: callteg4 on August 27, 2008, 06:41:56 AM
Hi I have a problem I am getting install failed on display.template and managepermissions any ideas please

What mods do you have installed?

These below

   Mod Name     Version     
1.    E-Arcade    2.5.0    
2.    TinyPortal    0.983    
3.    Contact Page    1.1
4.    Referrals Mod    2.0.1    
5.    Social Bookmarks    1.1    
6.    SMF Gallery Lite    
7.    simplemp    3.1    
8.    Users Online Today Mod    1.4.0    
9.    Age and Gender Board Filter    1.2.0    
10.    Prevent Adding Signature Images And Links    1.3    
11.    Member Awards    1.0.1    
12.    SMF Staff Page    1.6
13.    SMFShop    3.0    
14.    Auto Email Inactive Users    1.7    
15.    Welcome Topic Mod    1.1
16.    SMF Shop Lottery    1.0.1
17.    SMFChess    1.0    
18.    Member List Position Filter    1.1.0    
19.    Custom Action Mod    2.04    
20.    Forum Epoch    1.0    
21.    Ultimate Profile    0.8.5    
22.    Profile_Visitors    4.0
23.    AvatarSelect    1.1.2    
24.    arcwd    1.0e    
25.    Karma Description Mod    2.3.1
26.    Top Karma On Stats    1.0    
27.    Avatar on Member List    1.0
28.    Banlist    1.0    
29.    hof    1.0    
30.    leaders    1.0    
Avatar Package
   Mod Name    Version    
1.    Country Flags    1.1.1    
2.    Dogs Avatars    1.1.2
Unknown Packages
   Mod Name    Version    
1.    SMFShop Stats Mod    0.1

grevan

I get the same error.
I put the code in a "php syntax check" and there´s the message:
Parse error:  parse error, unexpected $ in index.template.php on line 884
But the code goes only to line 883. Maybe this could be a hint for you.

callteg4

Update it all works on my deafitl theme but not on my custom theme

grevan


holly.celeb.fan

Quote from: ccbtimewiz on August 27, 2008, 11:16:22 AM
Admin > Permissions > modify guest

Thanks this is work ...
Thanks again.

callteg4

Forgive me for being a newbie but I deleted my themes index.template and the ad managment works lol changes my theme a little but it works however i have but it back on now

KirkhamsEbooks

I never put up a theme and it still doesn't work for me

newbie
Rick

kromonos

How do I use it with babylon theme? Please help ..

ccbtimewiz

Quote from: callteg4 on August 28, 2008, 05:17:46 AM
Forgive me for being a newbie but I deleted my themes index.template and the ad managment works lol changes my theme a little but it works however i have but it back on now

You need to manually edit your theme's index.template.php file. Shouden't be too difficult. Attach your index.template.php and I'll walk it through you.

Quote from: KirkhamsEbooks on August 28, 2008, 01:12:48 PM
I never put up a theme and it still doesn't work for me

newbie
Rick

Can you be a bit more descriptive? What problem are you having? Is the mod working on the default theme? As I said before-- you need to edit custom themes in order for this work correctly.

Quote from: kromonos on August 28, 2008, 07:30:07 PM
How do I use it with babylon theme? Please help ..

You need to, once again, edit your custom theme for this mod to work. :)

Advertisement: