Search found 36 matches

by Animor
08 Aug 2013, 16:48
Forum: Modders MOD support
Topic: Checking if username is admin using sql
Replies: 25
Views: 3476

Re: Checking if username is admin using sql

ok, I now have this code: if (!$auth->acl_gets('a_', 'm_')) { meta_refresh(3, $index); $message = $user->lang['NO_AUTH_OPERATION'] . '<br /><br />' . '<a href="' . $index . '">' . $user->lang['BACK_TO_PREV'] . '</a>'; trigger_error($message); login_box('', $user->lang['LOGIN']); } However,...
by Animor
08 Aug 2013, 16:23
Forum: Modders MOD support
Topic: Checking if username is admin using sql
Replies: 25
Views: 3476

Re: Checking if username is admin using sql

Thank you both! Do I still need these lines: { meta_refresh(3, $index); $message = $user->lang['NO_AUTH'] . '<br /><br />' . '<a href="' . $index . '">' . $user->lang['BACK_TO_PREV'] . '</a>'; trigger_error($message); }
by Animor
08 Aug 2013, 14:57
Forum: Modders MOD support
Topic: Checking if username is admin using sql
Replies: 25
Views: 3476

Re: Checking if username is admin using sql

Thank you, it's working now! However, the behavior is strange: I no longer have the special login screen for that page. - If I'm not logged in, I am redirected to the forum index page. - If I'm logged in as normal user, I again redirected to the forum index page. - If I'm logged in as Admin, I am tr...
by Animor
08 Aug 2013, 14:05
Forum: Modders MOD support
Topic: Checking if username is admin using sql
Replies: 25
Views: 3476

Re: Checking if username is admin using sql

Update: I was mistaken, sorry. It's not the same error after I removed the line you told me to remove. I modified the bkp file instead of the online file. The new error is: Fatal error: template->_tpl_load_file(): File /message_body.html does not exist or is empty in /home2/gamadia/public_html/forum...
by Animor
08 Aug 2013, 13:18
Forum: Modders MOD support
Topic: Checking if username is admin using sql
Replies: 25
Views: 3476

Re: Checking if username is admin using sql

This is the content of this file (I replaced the DB username and password with ****) But I removed this line and still got the same error message... <?php //ob ob_start(); //session session_start(); //connect $error = 'could not connect to the database'; mysql_connect('localhost','*****','*****') or...
by Animor
08 Aug 2013, 12:49
Forum: Modders MOD support
Topic: Checking if username is admin using sql
Replies: 25
Views: 3476

Re: Checking if username is admin using sql

I still get this error.
I also tried to remove the other line I had there, so now I have only the 4 lines you gave me between the top php.
But I still get this error message.
by Animor
08 Aug 2013, 11:03
Forum: Modders MOD support
Topic: Checking if username is admin using sql
Replies: 25
Views: 3476

Re: Checking if username is admin using sql

Thank you very much, I will do that.

I know it's written badly, I just lack the knowledge to rewrite it myself...
by Animor
08 Aug 2013, 10:43
Forum: Modders MOD support
Topic: Checking if username is admin using sql
Replies: 25
Views: 3476

Re: Checking if username is admin using sql

Yes, this is the file. I don't think it's written very well in terms of coding, but this is what I have... <?php include_once "scripts/connect.php"; require $_SERVER["DOCUMENT_ROOT"] . "/scripts/functions.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transi...
by Animor
08 Aug 2013, 10:39
Forum: Modders MOD support
Topic: Checking if username is admin using sql
Replies: 25
Views: 3476

Re: Checking if username is admin using sql

Yes, this is the url: <!-- m --><a class="postlink" href="http://www.gamadia.co.il/index_management.php">http://www.gamadia.co.il/index_management.php</a><!-- m --> First field is username, second field is the password. I don't know why, but it doesn't work now on chrome. It used to work, but now I ...
by Animor
08 Aug 2013, 10:28
Forum: Modders MOD support
Topic: Checking if username is admin using sql
Replies: 25
Views: 3476

Re: Checking if username is admin using sql

Thank you for your reply. How will $auth work if this script is run in an external page (not from within the forum)? Don't I have to declare $auth before I use it? Right now, all I have is $username, which is a text the user types in. I want to compare $username with the forum DB, in order to tell i...
by Animor
08 Aug 2013, 09:27
Forum: Modders MOD support
Topic: Checking if username is admin using sql
Replies: 25
Views: 3476

Checking if username is admin using sql

Hello, I have a php script that was written by someone else. This script asks for username and password and check if they match according to phpbb DB. It is used for a main/portal page (external to phpbb forums). I would like the script to check if the username is admin or global moderator, using sq...
by Animor
16 Dec 2012, 15:38
Forum: Modders MOD support
Topic: How to add a news ticker to a forum?
Replies: 7
Views: 1631

Re: How to add a news ticker to a forum?

Hehe :-)
Can you (or someone else) help me or guide me in doing so?
If you think it's too complicated then let me know, so i will stop wasting my time on that...

Thanks!

[ Post made via Android ] [img]http://www.rmcgirr83.org/images/mobile/Android.png[/img]
by Animor
16 Dec 2012, 12:10
Forum: Modders MOD support
Topic: How to add a news ticker to a forum?
Replies: 7
Views: 1631

Re: How to add a news ticker to a forum?

I didn't code myself, just took it from a website.
Is there a way to integrate it somehow as a ticker in a specific forum?

[ Post made via Android ] [img]http://www.rmcgirr83.org/images/mobile/Android.png[/img]

Go to advanced search