Jump to content

spiros

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About spiros

  • Rank
    Newbie
  1. spiros

    mysql_real_escape_string(): Access denied

    Thank you so much. That gave me: Line 234 is where the snippet provided starts ($dbw - >insert...): function Lookup_addLookup ($url, $name, $group) { $dbw = wfGetDB(DB_MASTER); $dbw->insert( 'lookups', [ 'lu_name' => $name, 'lu_url' => $url, 'lu_group' => $group, 'lu_order' => 1, 'lu_group_order' => $groupOrder ] ); Lookup_reOrderGroups(); return true; }
  2. spiros

    mysql_real_escape_string(): Access denied

    Right, thanks to both of you. How should that snippet be edited so that it is compatible with the most recent php versions? Pardon my ignorance.
  3. I tried to Enter something in a legacy Extension and I got: Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) Then I changed all instances to mysqli_real_escape_string And retried. At that point I got: mysqli_real_escape_string() expects exactly 2 parameters, 1 given on line 235 Here is the function: function Lookup_addLookup ($url, $name, $group) { $dbw = wfGetDB(DB_MASTER); $groupOrder = Lookup_getGroupOrder($group); $dbw->query ("INSERT INTO ".Lookup_prefix()."lookups (lu_name, lu_url, lu_group, lu_order, lu_group_order) VALUES ('".mysqli_real_escape_string($name)."', '".mysqli_real_escape_string($url)."', '".mysqli_real_escape_string($group)."', 1, $groupOrder)"); Lookup_reOrderGroups(); return true; }
  4. spiros

    Change results snippet layout

    Thank you! I added that in Common.css and the output I get is the attached. Instead of the desired which is like https://imgur.com/bGrtm1H
  5. Currently the snippet is like this (MW 1.31) compos com-pŏs: (conp-), pŏtis, adj. potis, I having the mastery, control, or power over a thing, master of, partaking of, possessing, participating or sharing 6 KB (891 words) - 12:19, 15 August 2017 How could it be changed in a two column table format (applying a style to the list items) and get rid of the date/size info line? compos com-pŏs: (conp-), pŏtis, adj. potis, I having the mastery, control, or power over a thing, master of, partaking of, possessing, participating or sharing I have tried some css changes, got rid of the unwanted metadata bit (size/date), but when page is resized, some text from the right "column" moves to the left one. .mw-search-results li { columns: 2; border-bottom: 1px dotted #555; padding: 5px 0; } .mw-search-result-data { display: none; } .mw-search-results { /* max-width: 38em; */ } Above, quoted only the part of the css I edited. For example this is what I want to be maintained in different screen sizes: https://imgur.com/bGrtm1H but when it gets smaller; this is what I get now with some screen sizes/changes of zoom https://imgur.com/YQAzMNH
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.