Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post [solved]Sponsor Only For Guests 
 
I try with the following code in viewtopic_body.tpl:
<!-- BEGIN switch_user_logged_out -->
/*adsense code*/
<!-- END switch_user_logged_out -->

But this code does not run in the sponsor(view topic banner) or inside a post.

Thansk.


Ps for Mighty Gorgon: I beg your pardon because in other post I dont see your answerds due to my email acount was not the good, and I had not answerds notice...   , but now i change my email acount.
 




____________
Acuarios, mascotas
Forografia, fotos
Informatica, pc
 
Last edited by portalpez on Tue 05 Feb, 2008 09:08; edited 3 times in total 
portalpezSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Sponsor Only For Guests 
 
try this on viewtopic.php

find

Code: [Download] [Hide] [Select]
        if ( ($i == 0) && ($board_config['switch_viewtopic_banner'] == 1) )


replace with

Code: [Download] [Hide] [Select]
        if ( ($i == 0) && ($board_config['switch_viewtopic_banner'] == 1) && (!$userdata['session_logged_in']) )

 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Sponsor Only For Guests 
 
Thanks Zuker, this code run very well. I test in http://biblioteca.portalpez.com. This is a user test if you want to look the result:

user: prueba
password: prueba

And another question: could be possible to insert the code inside the post(post one, two and three) only for guest?
 




____________
Acuarios, mascotas
Forografia, fotos
Informatica, pc
 
Last edited by portalpez on Tue 05 Feb, 2008 08:44; edited 1 time in total 
portalpezSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Sponsor Only For Guests 
 
Thanks Zuker!!!!

The code run inside the post too, but only in the first post.

If you want to show in the second post as well, i think you have tu add the following code:

if ( ($i == 0) || ($i == 1)  && ($board_config['switch_viewtopic_banner'] == 1) && (!$userdata['session_logged_in']) )
{
    $template->assign_block_vars('postrow.switch_viewtopic_banner', array());
}

Or you can use <!-- BEGIN switch_viewtopic_banner -->/*The code you want to show*/ <!-- END switch_viewtopic_banner --> to add to the begining and end of post.
 




____________
Acuarios, mascotas
Forografia, fotos
Informatica, pc
 
Last edited by portalpez on Tue 05 Feb, 2008 09:23; edited 3 times in total 
portalpezSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [solved]Sponsor Only For Guests 
 
you made it
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events