MyBB Community Forums

Full Version: PHP links
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I don't know how to add PHP links in header. I read the tutorials etc, but nothng understand :I
(2016-08-24, 12:39 PM)IceEyes Wrote: [ -> ]I don't know how to add PHP links in header. I read the tutorials etc, but nothng understand :I

http://php.about.com/od/learnphp/qt/php_links.htm
I linked a post for you. To help you
basically we add the links to header template of the theme.

Quote:<li><a href="{$mybb->settings['bburl']}/newFile.php" style="background:none;"><img src="images/newFile.png" alt="" />&nbsp;newFile</a></li>

code similar to above can be added above {$menu_portal} or wherever the new link is required within top_links block
MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
0 -
Query:
[READ] Unable to connect to MySQL server
Please contact the MyBB Group for technical support.

In that link: http://link123.com/foorum/adminlist.php
Make sure the database settings in the inc/config.php file are correct.

(2016-08-24, 01:22 PM)IceEyes Wrote: [ -> ]MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
0 -
Query:
[READ] Unable to connect to MySQL server
Please contact the MyBB Group for technical support.

In that link: http://link123.com/foorum/adminlist.php

MySQL Error 0 -
Database: MySQL
SQL Error: 0 -
Query: [READ] Unable to select database
Information: This occurs when you are using MySQL and the database name or database username is incorrect in ./inc/config.php. To fix this, open ./inc/config.php and check the entries for $config['database']['database'] and $config['database']['username']. If you do not know what needs to be here, contact your host provider.
if other pages of forum work then looks like there is coding mistake in adminlist.php file
(2016-08-24, 01:28 PM).m. Wrote: [ -> ]if other pages of forum work then looks like there is coding mistake in adminlist.php file

https://github.com/mybb/mybb/tree/feature/admin Im including A Admin File from github So you May take a look And for the other user to Use if their admin Is messed up
How to add PHP link in design? Like this http://www.nonstopcs.eu/adminlist.php
^ unable to get your exact requirement. do you want to make a custom php page ?
in general, php page uses html content from a template where content can be formatted as required
http://www.yellowpipe.com/yis/tools/HTML_converter/
Maybe Try that Make the page into html and convert to PHP