back soft

مطالب مرتبط با «custom» در back soft | نویسنده: استخدام کار

yii2 custom validation in rule not working

Vote count: 0 How to implement custom validation in yii2? My code in model rules is public function rules() { retu [ [['product_price'], 'checkMaxPrice'], } public function checkMaxPrice($attribute,$params) { if($this->product_price > 1000) { $this->addError($attribute,'Price must be less than 1000'); } } Anything else I have to do in view? asked 51 secs agokritika555 Let's block ads! بخوانید...

ادامه مطلب

add custome field in opencart checkout page

Vote count: 0 I need to add extra promo-code field in opencart checkout page. If customer role is dealer than accept promo-code otherwise can not accept. Any one know how to add please reply answer.... asked 51 secs agoKishan Kothari Let's block ads! بخوانید...

ادامه مطلب

Crash after QGraphicsScene::removeItem() with custom item class

Vote count: 0 I am populating a QGraphicsScene with instances of a custom item class (inherting QGraphicsPathItem). At some point during runtime, I try to remove an item (plus its children) from the scene by calling: delete pItem; This automatically calls QGraphicsScene::removeItem(), however it also leads to a crash in the class QGraphicsSceneFindItemBspTreeVisitor during the next repaint. asked 24 secs agoPhilip Allgaier 1 Answer Vote count: 0 TL;DR: The solution is to ensure that QGraphicsItem::prepareGeometryChange() gets called before the item's removal from the scene. The problem is that during the item removal from the scene, the scene inteal index was not properly updated, resulting ...

ادامه مطلب

Add Objects to custom listView in Firebase

Vote count: 0 I want to add an whole object to my listview using Firebase. Have been illustration this with a image because sometimes an image is just easier than text. Firebase tutorials show how to retu each child as an item and display it with Firebase UI and I want to almost do the same thing but the difference is that I want the whole object to be the child and the childs inside that object will be additional information for each listitem. So in my image I have object Camping and the "Mountains", "Nature", "Place". In an custom listView I want the different values be set to textViews.to be the asked 36 secs agomrg3tools This entry passed through the Full-Text RSS service - if this is yo...

ادامه مطلب

Advanced Custom Post Wont Display

Vote count: 0 Here is the code, the 5th and final one is not showing up in the ADMIN CP Panel. All the others are working fine, but when I try add a 5th one. nothing shows up. Not sure if there is a limit or something, does not appear to be from what I have read. add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'Slides', array( 'labels' => array( 'name' => __( 'slides' ), 'singular_name' => __( 'slide' ) ), 'public' => true, 'has_archive' => true, ) ); register_post_type( 'Programs', array( 'labels' => array( 'name' => __( 'programs' ), 'singular_name' => __( 'program' ) ), 'public' => true, 'has_archive' => true, ) ); register_post_type( 'Boards', ...

ادامه مطلب

Trying to create customer service messaging app, but other users can see and message other users not just me

Vote count: 0 (Leaing Swift as 1st programming language) (1st time using stack) Hi, I am creating a local delivery app where users will be messaging me to place orders for delivery. However users can see every other user registered on the app and message them. How would I make it so that just 1 primary admin can see and message every other users, whereas users can only message me? I'm using Firebase for back-end. The tutorial and pretty much exact code i'm using is available here: http://letsbuildthatapp.com/2016/07/15/swift-firebase-3-create-chat-bubbles-using-constraints-ep-13/ download entire xcode project: http://letsbuildthatapp.com/wp-content/uploads/2016/07/gameofchats_ep13_chat_bubbl...

ادامه مطلب

Saving custom objet in NSUserDefaults returning null

Vote count: 0 I am trying to save a custom object in the NSUserDefaults but it is retuing nill. I made sure that the object had values before it saves. func syncObjects(){ let userDefaults = NSUserDefaults.standardUserDefaults() userDefaults.setValue(NSKeyedArchiver.archivedDataWithRootObject(profile), forKey: "Profile") userDefaults.setValue(NSKeyedArchiver.archivedDataWithRootObject(preference), forKey: "Preference") userDefaults.synchronize() print("objects synced") } func getObjects(){ if let data = NSUserDefaults.standardUserDefaults().objectForKey("Profile") as? NSData { profile = NSKeyedUnarchiver.unarchiveObjectWithData(data) as! UserProfile if profile.firstName == nil { print("Profi...

ادامه مطلب

knockout custom binding bootstrap popover

Vote count: 0 I am using asp.net mvc with dynamic knockout columns. One of the column headers, "Status", should have a bootstrap popover in which a user can click a font-icon question mark and be provided with a popover containing information about the column: Visual Studio doesn't like this syntax and I get the following errors: 1.near data-bind: "If this attribute value is enclosed in quotation marks, the quotation marks must match" near '...

ادامه مطلب

-Perform doesn't show up when creating a custom segue

Vote count: 0 When with custom segues in Xcode 7.3 the -perform method doesn't show up when trying to type override func perform() {} the -perform method doesn't appear. Even if I just type it the sourceViewController and destinationViewController are not available. I am using a cocoa touch file and the subclass is UIStoryboardSegue. asked 17 secs agoHayden Bowden Let's block ads! بخوانید...

ادامه مطلب

Using custombox plugin in asp.net mvc?

Vote count: 0 How can I use custombox plugin to render actions in asp.net mvc? With modal boostrap, I use the following code, but the same code gives error with custombox: BUTTON New VIEW JS $(".btnModal").click(function () { $("#myModal").load($(this).attr("data-href")); $("#myModal").modal({ backdrop: 'static', keyboard: false }); }); asked 30 secs agoZack Morgan Let's block ads! بخوانید...

ادامه مطلب

APEX 4.2 custom theme image redirects to webcenter

Vote count: 0 We have a custom theme in our apex 4.2 application and when the application runs, the image on the custom theme becomes clickable and redirects to our webcenter. After much searching I couldn't find the URL or link which redirects it within the theme. Basically our requirement is to make the image act as an image and not link to another page or webpage. asked 47 secs agocode_error Let's block ads! بخوانید...

ادامه مطلب

Wanted To Make A Custom Domain Seach Script In My Domain

Vote count: 0 I am trying to make ip tracking system for my web and then inserting it into the sql. But my problem is that on a single click i am getting 2-4ip in my sql. Coding am using this currently....

ادامه مطلب

Give Flash Drive a Custom Icon

Vote count: 0 I have to produce several hundred USB drives and am using a supplier who can preload files onto each one. What I'd like to do is replace the default drive icons— —with a custom icon I've created. I know about the copy+paste method, but the number of drives makes that prohibitive. I know about the .VolumeIcon.icns method, but it seems that too requires another step, namely ruing SetFile -a C .VolumeIcon.icns on each drive (if I'm mistaken, please correct me). What I'm looking for is a way to have the supplier load a (.icns) file onto each drive that will automatically set the drive's icon. One thread hinted at a way of adding 3 files, but I'm not sure how to come by these. Any i...

ادامه مطلب

How to find out customers that only shopped in one store using SQL

Vote count: 0 I want to see the number of customers who only shopped in one specific store during a specific period, so I wrote the following SQL: SELECT COUNT (DISTINCT CARD_NUMBER) FROM WHERE DATE BETWEEN ‘XXXX-XX-XX’(DATE) AND ‘XXXX-XX-XX’(DATE) AND STORE_NUMBER = 1234; What if these customers (card holders) shop in other store chains? I couldn’t use AND CARD_NUMBER NOT IN… Because we have too many stores. Any syntax that could be used here to solve this problem? asked 50 secs agoYuan Yuan Let's block ads! بخوانید...

ادامه مطلب

wordpress insert value in metabox from custom textbox

Vote count: 0 hi i am new for wordpress, i have crete a custom textbox in woocommerce/includes/admin/meta-boxes/views/html-order-item.php. id; $_SESSION["itemID"] = $item_id; ?>`enter code here` id, $_SESSION["itemID"],wc_clean($_POST[ '_trans_id' ])); ?> textbox trans_ID created by manually this is my result show in database, metavalue is empty asked 26 secs agoYJ Teh Let's block ads! بخوانید...

ادامه مطلب

AngularJS: custom filter overwrites $scope

Vote count: 0 Here are my custom filters: This filter removes records with the same property: .filter('distinct', function () { //filter, which removes records with same property retu function (data, keyname) { var output = [], keys = []; angular.forEach(data, function (item) { var key = item[keyname]; if (keys.indexOf(key) === -1) { //If not already existing keys.push(key); output.push(item); } }); retu output; } }) All Levels {{class.level}} This filter replaces ids from an objects with a corresponding value from another array. (I am trying to do something like an 'Equijoin' from SQL in AngularJS. If there is a better way let me know :) ) .filter('replaceId', function () { //filter, which ...

ادامه مطلب

Create group access to firebase storage without using custom authorization

Vote count: 0 Is there a way to limit uploads to a path in Firebase Storage by group? asked 27 secs agoecalvo Let's block ads! بخوانید...

ادامه مطلب

Play-Slick Instruction on How to Perform Custom Sorting using Case-When

Vote count: 0 Our project requries a custom sorting. And upon diving into the net I come up with the following SQL statements. SELECT CountryName FROM dbo.Country ORDER BY CASE WHEN CountryName = 'INDIA' THEN '1' WHEN CountryName = 'CHINA' THEN '2' ELSE CountryName END ASC Can someone help me have this in Slick? I already have this kind of query contriesQuery.map(_.CountryName) .sortBy(c => { val srt = { Case If(x.CountryName = "India") Then 1 Case If(x.CountryName = "China") Then 2 Case Else CountryName } srt.asc }) .result But it always showing me an error org.postgresql.util.PSQLException: ERROR: for SELECT ORDER BY expressions must appear in select list asked 43 secs agounderscore_05 Let...

ادامه مطلب

i need to add my customized icon to Material-ui radio button

Vote count: 0 But I caot get it to work. It does not toggle when I click on it as it renders both checkedIcon and unCheckedIcon state. I looked at one of the source code.. var ActionFavoriteBorder = function ActionFavoriteBorder(props) { retu _react2.default.createElement( _SvgIcon2.default, props, _react2.default.createElement('path', { d: 'M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c> ); }; and looks like it needs to be converted first?! Can someone please tell me what is wrong with the following code to render a customized radio button when it is in clicked state. import React, {Component} from 'react'; const PlatformIcon = (props) => { let platform = prop...

ادامه مطلب

C# Print from WebPage to a custom size label printer

Vote count: 0 I now have a php script that generates a barcode label with all needed information in a given size. I have used point instead of mm for getting the right size. I can print the barcode labels from Chrome, after choosing the right Paper Size and it works flawlessly. Now I want to automate the printing (choosing the right printer and size) and from what I have read you can't do it from a browser. So I have decided to use C#. I am able to load the php script in the webbrowser and view the image. Now how would I go on about printing the label. This is how I show the print preview dialog once the webbrowser completes, ((WebBrowser)sender).ShowPrintPreviewDialog();. But I can't edit t...

ادامه مطلب