Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

bbcode !autolink

Asked Modified Viewed 1,682 times
H
Harlekin
H
  • Member, joined since
  • Contributed 57 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
asked
Member

Can not activate the bbcode !autolink in 7.02.07 in all of my sites. All other bbcodes works. If i activate the !autolink with phpmyadmin in the database, the bbcode work.
0 replies

3 posts

N
NetriX
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
answered
Senior Member

If I recall correctly it is due to your PHP version and the fact that some code is deprecated.

Fortunately for PHPFusion 9 the problem has been addressed.

Quote

NetriX wrote:

Alright, here is a temp solution until the bigger problem gets looked at.

Admin Panel -> Custom Pages

Add title, paste the following into Page Content, Click Preview:

<?php
$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."bbcodes");
$result = dbquery("CREATE TABLE ".$db_prefix."bbcodes (
bbcode_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
bbcode_name VARCHAR(20) NOT NULL DEFAULT '',
bbcode_order SMALLINT(5) UNSIGNED NOT NULL,
PRIMARY KEY (bbcode_id),
KEY bbcode_order (bbcode_order)
) ENGINE=MYISAM;");
$result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('!autolink', '1')");
$result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('smiley', '2')");
$result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('b', '3')");
$result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('i', '4')");
$result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('u', '5')");
$result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('url', '6')");
$result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('mail', '7')");
$result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('img', '8')");
$result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('center', '9')");
$result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('small', '10')");
$result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('code', '11')");
$result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('quote', '12')");
?>


You'll need to re-enable any additional bbcodes that you previously used.

Also, you're most likely gonna get a error message at bottom of your page, to stop it from showing go to your Admin Panel -> System Admin -> Error Log and then ignore all the !autolink errors.
0 replies
H
Harlekin
H
  • Member, joined since
  • Contributed 57 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

The Problem is the ! without the ! i can activate the bbcode.
0 replies
— 5 months later —
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

OK, NetriX's code fixed the Autolink issue, but List BBcode won't work properly.

[olist=a]test
test
test[/olist]

[ulist=circle]test
test
test[/ulist]

Got the same BBcodes on the site and as you can see on this site the olist does not work either. It indents, but it does not place any numbering.

[olist=a]test
test
test[/olist]

[ulist=circle]test
test
test[/ulist]


PHP 5.4.45
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
N
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
H
H
  • Member, joined since
  • Contributed 57 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet