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?

BBCodes do not enable

Asked Modified Viewed 2,014 times
W
Whitey
W
Whitey 10
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions
asked
Junior Member

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: PHPFusion
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.
Edited by Whitey on 30-10-2015 00:24,
0 replies

5 posts

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

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.
0 replies
W
Whitey
W
Whitey 10
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions
answered
Junior Member

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?
Edited by Whitey on 30-10-2015 06:25,
0 replies
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

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.


<?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')");
?>
0 replies
W
Whitey
W
Whitey 10
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions
answered
Junior Member

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

<?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.
0 replies
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

:) , change the 1 to 12 in the end there and it should be ok.
0 replies

Labels

None yet

Statistics

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

3 participants

F
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
W
W
Whitey 10
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet