News: When asking for support, it helps us and you, if you read the Posting Guidelines

Login  |  Register
* * *

Welcome !!!

Welcome, Guest. Please login or register.
Did you miss your activation email?
Please welcome brandixgd, our newest member.

 
 

TinyPortal on Twitter
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 28, 2016, 10:56:45 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 180435
  • Total Topics: 20248
  • Online Today: 84
  • Online Ever: 383
  • (January 02, 2015, 05:58:49 AM)
Users Online
Users: 1
Guests: 52
Total: 53

Please read the Posting Guidelines


Recent Posts

Pages: [1] 2 ... 10
1
Older SMF versions / Re: Website help! - 8192: Function ereg() is deprecated
« Last post by illori on August 23, 2016, 03:03:20 PM »
you really really really need to upgrade your SMF install. ideally it should be upgraded to SMF 2.0.

without further details on the error message you are getting, like what file and line number, there is not much we can do to help you.
2
Older SMF versions / Website help! - 8192: Function ereg() is deprecated
« Last post by Offroad-Review on August 23, 2016, 09:26:31 AM »
Yesterday I was surprised to see my website down with the following error message.

"8192: Function ereg() is deprecated"

I'm now scrambling to find a way to get it back up and running but I'm not sure where to start. My servers tech support told me I'm getting this message due to an outdated php script (pre PHP 5.3) that hasn't been around since Aug 2014. How could my site be functioning until recently if this is in fact the issue? Any suggestions on what I can ask them to do? Reset something? load a backup of my database? Any suggestions would be greatly appreciated.

I am running SMF version 1.1.4 & Tinyportal version 0.9.8

Website URL: www.offroad-review.com

Thanks
3
Support / Re: Hide Panel/Block when logged in as Admin
« Last post by Pravi on August 19, 2016, 08:18:02 AM »
you would need to use a php block, with code similar to this
i have not tested it but it should work.

Code: [Select]
global $context
if (!$context['user']['is_admin'])
 echo '
<div align="center">
your ad code here
</div>';

Hi illori,
I tried the code, its working fine. Initially it was not working, add a semicolon to global variable and every thing is working fine.

Code: [Select]
global $context;
if (!$context['user']['is_admin'])
 echo '
<div align="center">
your ad code here
</div>';
[/quote]

Thank you illori,
Thank you very much

4
Support / Re: Hide Panel/Block when logged in as Admin
« Last post by illori on August 17, 2016, 02:39:18 PM »
you would need to use a php block, with code similar to this
i have not tested it but it should work.

Code: [Select]
global $context
if (!$context['user']['is_admin'])
 echo '
<div align="center">
your ad code here
</div>';
5
Support / Re: Hide Panel/Block when logged in as Admin
« Last post by Pravi on August 17, 2016, 05:37:33 AM »
global moderators or?

Hide block only for admin. Except admin, it should visible to everyone.
6
Support / Re: Hide Panel/Block when logged in as Admin
« Last post by illori on August 16, 2016, 03:21:12 PM »
global moderators or?
7
Support / Re: Hide Panel/Block when logged in as Admin
« Last post by Pravi on August 16, 2016, 03:23:52 AM »
no you cant use css to hide it from the admin.

what group(s) should the block be visible to?

if more the just guest, provide the group id number.

Hi illori,
I want the block visible only for guest, regular members and moderators.
8
Support / Re: Hide Panel/Block when logged in as Admin
« Last post by illori on August 16, 2016, 03:10:12 AM »
no you cant use css to hide it from the admin.

what group(s) should the block be visible to?

if more the just guest, provide the group id number.
9
Block Codes / Re: Invite A Friend Block [side block]
« Last post by Skb on August 16, 2016, 01:19:03 AM »
I solved the problem, by editing the tellck.php file. For anyone else who might need the solution.
Code: [Select]
META HTTP-EQUIV=REFRESH CONTENT="6;URL=http://www.diabetic.pub/forum//index.php?Just remove the "?" at the end of the code. I don't know how it got inserted there in the first place. It led to the user getting logged out of the forum, though being redirected to the index page.
10
Support / Re: Hide Panel/Block when logged in as Admin
« Last post by Pravi on August 15, 2016, 12:18:09 PM »
Hi.

I just want to hide a block which contains my adsense ads while logged in as admin. I want to avoid accidental clicks on the ads. Can I use css to hide the block only for the admin ??
Pages: [1] 2 ... 10