powered by error
bekti Offline
Junior Member
**
Posts: 43
Joined: Mar 2012
Post: #1
powered by error
hey can mybb do this...

if someone delete this code in footer, it will be show an error that say

PHP Code:
{$lang->powered_by}


"you cannot delete powered by in footer template"

that will be nice if you help me

09-12-2012 01:28 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: powered by error
The whole concept of doing this sounds silly.
If you don't want someone to remove it, don't stick it there in the first place, though it's not like you can stop someone determined anyway.

My Blog
(This post was last modified: 09-12-2012 09:38 AM by ZiNgA BuRgA.)
09-12-2012 09:38 AM
Find all posts by this user Quote this message in a reply
bekti Offline
Junior Member
**
Posts: 43
Joined: Mar 2012
Post: #3
RE: powered by error
i make this in index.php

PHP Code:
1
2
3
4
5
6
 if ($lang->powered_by) {
	  $powered_by = ' <a href=\"http://www.mybb.com\">{$lang->powered_by} MyBB Group</a>';
      }
      else {
        echo 'You cannot delete powered_by from footer template.';
      }


but this not working..any suggest?

(This post was last modified: 09-12-2012 04:53 PM by bekti.)
09-12-2012 04:52 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: powered by error
Of course it won't because you're doing absolutely nothing to check the actual footer template.
Also you're doing very little to integrate into MyBB at all - for example, MyBB doesn't really use echo anywhere.

My Blog
09-12-2012 05:51 PM
Find all posts by this user Quote this message in a reply
bekti Offline
Junior Member
**
Posts: 43
Joined: Mar 2012
Post: #5
RE: powered by error
(09-12-2012 05:51 PM)ZiNgA BuRgA Wrote:  Of course it won't because you're doing absolutely nothing to check the actual footer template.
Also you're doing very little to integrate into MyBB at all - for example, MyBB doesn't really use echo anywhere.

can u make the code?
09-12-2012 10:03 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #6
RE: powered by error
I wonder what do you need this for, it really doesn't seems like you know the basics of PHP coding so it would be rather ridiculous to be programming any kind of script. Perhaps you don't want your co-workers to remove the link from your forum? If so, then it would be probably easiest to just tell them not to.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
09-13-2012 03:15 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: