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.
Sign In
Not a member yet? Click here to register.

BBCodes do not enable

I disabled a few currently enabled bbcodes to enable them again in the order I want them, instead of constantly moving them up and down to my desired preference. Now, however, they do not enable. I click enable, the page seems to load, but nothing happens.

I don't seem to have any other issues, and I've made no changes to the bbcode system nor the maincore aside from the HTML usernames. There are also no infusions enabled that would cause an issue.

Site: http://www.overclockedlan.com
Admin
User: PHP-Fusion
Pass: testtest123
Admin: testtest456
Ver: v7.02.07

I'm not sure what would cause this issue, I've never had it before. My site will highly rely on these.
The ones I am having issues with are:
!autolink, Bold, Italic, Underline

I am going to replace the files and see if that solves the issue. If it does, I will update this. If I don't the issue is still persisting.
I've made a backup, in case you break anything.

Merged on Oct 29 2015 at 19:24:40:
Update: replacing the files did not work.

I also found this in my error log:

administration/bbcodes.php
Undefined variable: __BBCODE__ Line: 141 10/29/2015 7:22 PM EST

administration/bbcodes.php
Undefined variable: __BBCODE__ Line: 142 10/29/2015 7:22 PM EST

Replaced that page as well. No change. I still cannot enable those 4 bbcodes.
Hi, should not be, because __BBCODES__ = "" is initialized. It will not be undefined.

try re-upload administration/bbcodes.php or use the 1-click installation wizard from Softalucous that all hosting cpanel has to install the CMS.

Quote

Hi, should not be, because __BBCODES__ = "" is initialized. It will not be undefined.

try re-upload administration/bbcodes.php or use the 1-click installation wizard from Softalucous that all hosting cpanel has to install the CMS.
- by hien


I had already tried this before you replied, to no avail.
Issue still persists, never has before.

Is there a way to force enable them outside of the admin panel, perhaps through phpmyadmin on the database table itself?
Sure sounds like server got a hickup to me there
Clear your BBCodes as a whole (disable them) and run this in a custom page preview.
You can increment as such per line.

CodeDownload  

<?php
         $result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('smiley', '1')");
         $result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('b', '2')");
         $result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('i', '3')");
         $result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('u', '4')");
         $result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('url', '5')");
         $result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('mail', '6')");
         $result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('img', '7')");
         $result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('center', '8')");
         $result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('small', '9')");
         $result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('code', '10')");
         $result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('quote', '11')");
?>

Domi! I love you!
You happened to include the ones that are all the ones I want just missing two, but I was able to enable those.

I just need to add !autolink now, which still won't enable automatically. What is this to run in the page? Is it !autolink? or just autolink

CodeDownload  
<?php
         $result = dbquery("INSERT INTO ".$db_prefix."bbcodes (bbcode_name, bbcode_order) VALUES ('!autolink', '1')");
?>



Would this be correct? I don't want to break anything, as I'm not a fan of messing with MySQL unless it is exact. I can't stand troubleshooting MySQL issues.
:) , change the 1 to 12 in the end there and it should be ok.
Thread Information
Author
Replies
6 posts
Views
1,389 times
Last Post
Last updated on 5 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Chan, Whitey