Giter VIP home page Giter VIP logo

yourcode's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sama34

yourcode's Issues

Upgrade Installer

Installer 2.0 adds PostgreSQL support.

  • upgrade installer class
  • update upgrade list (removed files)
  • update install data (per #40)

Apostrophes not escaped

http://puu.sh/3C4qW.png

I just installed YourCode and editing things with these characters in them worked fine before. Screenshot provided by one of my members.

[15:40:24] <%Keileon> I noticed in both instances there's an apostrophe screwing it up and said apostrophe is inside the color code
[15:40:55] <%Keileon> YEP it's that
[15:41:19] <%Keileon> I just randomly inserted "[color=blue]'[/color] into one of my posts
[15:41:25] <%Keileon> I got the error
[15:42:11] <%Keileon> Try momentarily disabling the plugin

SQL Error on install

SQL Error:
1366 - Incorrect integer value: 'NULL' for column 'sid' at row 1
Query:
INSERT INTO mybb_settings (`sid`,`name`,`title`,`description`,`optionscode`,`value`,`disporder`,`gid`) VALUES ('NULL','yourcode_minimize_js','Minimize JavaScript?','YES (default) to serve client-side scripts minified to increase performance, NO to serve beautiful, commented code ;)','yesno','1','10',45)

This is the current error i am getting on a fresh install. any way to bypass it or solve it @WildcardSearch ?

Using Permissions For Callback YourCode Broken, Generates Error Message

When a YourCode's callback option is true, and the user view permissions are set, and the alternate replacement is used, postParser sent information leading it to attempt to use the replacement text as the method of the callback, eg. postParser::alt_replacement.

If a callback YourCode cannot be viewed by the user and has an alternate replacement, that YourCode should be moved to the nestable category and the nestable count incremented.

EDIT: The alternate replacement is irrelevant.

Parser Is Not Working At All

...huge oversight on my part. A change in the parser class results in modules working fine, but no processing in parse_message_x.

oops

JavaScript Error in yourcode_inline.js

19:39:24.510 TypeError: this.prop is not a function
keepCount()yourcode_inline.js:109
m.event.dispatch()jquery.js:4
m.event.add/r.handle()jquery.js:4
1yourcode_inline.js:109:6

Fatal error after upgrading to 1.1

Hello!

After deactivating YourCode and uploading the new files, I see the following message on the plugins tab (and the plugin list does not load):

Fatal error: 'continue' operator with non-constant operand is no longer supported in /usr/www/kretol/public/conquestofthehorde.com/inc/plugins/yourcode/acp.php on line 663

Block in question:

elseif(in_array($mybb->input['inline_action'], array('deactivate', 'delete')))
                    {
                        if(!in_array($name, $active_modules))
                        {
                            continue $c_level;  //<-- here is line 663
                        }

                        // deactivate
                        $yourcode['active']['modules'] = $active_modules = array_filter(
                            $active_modules,
                            function($var) use($name)
                            {
                                return $var != $name;
                            }
                        );
                    }

Versions are as follows:
MyBB: 1.6.13
PHP: 5.4.26-pl0-gentoo
SQL: MySQLi 5.5.37

make mods have access to trashbin

Is there a way to make it so super moderators can use it too? A lot of the times moderators are the ones who accidentally delete a post/thread in which need it restored. But because its only available in ACP we have to wait for admins to log in to fix it.

SQL Error on Activation or Restore to Default

I just attempted to install YourCode and got the following error:

SQL Error:
1366 - Incorrect integer value: '' for column 'nestable' at row 1
Query:
INSERT INTO mybb_yourcode (`title`,`description`,`parse_order`,`nestable`,`active`,`case_sensitive`,`single_line`,`multi_line`,`eval`,`callback`,`regex`,`replacement`,`alt_replacement`,`can_use`,`can_view`,`default_id`,`dateline`) VALUES ('Format - Bold','MyBB Default Bold MyCode',10,'','1','','1','','','','\\[b\\](.*?)\\[/b\\]','<span style=\"font-weight: bold;\" class=\"mycode_b\">$1</span>','','','',1,1505928170)

MyBB Update Has Broken The Plugin

I haven't exactly figured out why, but the parse was updated in MyBB 1.6.11 to separate internal MyCodes that use a callback for the replacement-- even though they are treated identically within the parser.

This should be as simple as ensuring that the callback index of the mycode_cache property of the parser is stored as an (empty) array.

I'll be getting this done in the next day or so.

Install: Display Warning When Required Folders Are Not Writable

The installation system used in this plugin installs its images for every theme, both forum-side and for the ACP. If those folders {admin_folder}/styles (and its subfolders), and images (and its subfolders) are not writable the images (and ACP style sheets) cannot be installed/upgraded.

The admin should be warned pre-install of the issue if it exists, and installation should be halted if the problem exists.

Namespacing limits PHP version

Namespacing is a fairly new feature for PHP. I don't disagree with your using it, but for the sake of saving yourself major headaches, I'd personally make it very obvious that this plugin has minimum PHP requirements and would possibly add a check to install/activate too.

mysql error if you delete and restore, then delete

My sequence of events were...
made single post thread, deleted, restored thread, posted second post, attempted to delete thread again and got mysql error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1062 - Duplicate entry '2880' for key 'PRIMARY'
Query:
INSERT INTO mybb_backup_threads (tid,fid,subject,prefix,icon,poll,uid,username,dateline,firstpost,lastpost,lastposter,lastposteruid,views,replies,closed,sticky,numratings,totalratings,notes,visible,unapprovedposts,deletedposts,attachmentcount,deletetime,tlink,postpreview,lastpostpreview) VALUES ('2880','27','testing trashbin','0','0','0','1','metulburr','1492426282','15148','1492426345','metulburr','1','5','1','','0','0','0','','1','0','0','1','0','','','testing 2nd post')

Getting Language File Not Found On Fresh Install (MyBB 1.6.11)

yourforum/inc/languages/english/admin/yourcode.lang.php does not exist

I am not sure why this is happening. It is my understanding that if there is no admin/my.lang.php, MyBB is supposed to look in the language_name folder rather than reporting an error.

I'll probably just wind up separating all of the language into two files. :s

Conflicts Possible With Helper Libraries

I need to version my helper classes because of the possibility of existing obsolete copies of them present in plugins that have not been upgraded on end-user forums.

An example

Could you give us an example about YourCode? What is the different between YourCode and MyCode ? I'm confused.

Plugin Can Not Be Translated

There are several hard coded language strings in the file as well as functionality that depends upon hard coded English strings.

Potential conflict or just a bad My/YourCode?

I installed YourCode a few days back. Just today, the shoutbox I have installed (MyShoutbox) decided to randomly stop loading so I tried opening up one of the static pages to view the shouts. The 'Full Shoutbox' page loads fine, but the psp/mobile page seems to throw a warning involving yourcode:
myshout_error

In the error log, I see the following:

<error>
    <dateline>1393399020</dateline>
    <script>inc/plugins/yourcode/forum.php</script>
    <line>59</line>
    <type>2</type>
    <friendly_type>Warning</friendly_type>
    <message>Creating default object from empty value</message>
</error>

Any idea what may be the culprit?

STRICT Error If $parser Is Not Loaded

In MyBB's core code, $parser is always a global variable, but in plugins, it is up to the author as to the scope. In fact, there isn't any good reason for plugin authors to create and use a global copy of the parser, but if they don't, YourCode will not work.

There isn't much we can do about what other plugin authors do, but a check needs to be implemented to prevent an error and needless execution.

Reported here: https://community.mybb.com/thread-203531-post-1255920.html#pid1255920

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.